strtok_r: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         strtok_r: Move AC_LIBOBJ invocations to module description.
4         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5         and gl_PREREQ_STRTOK_R invocations from here...
6         * modules/strtok_r (configure.ac): ... to here.
7         (Depends-on): Update conditions.
8
9 2011-05-22  Bruno Haible  <bruno@clisp.org>
10
11         strtoumax: Move AC_LIBOBJ invocations to module description.
12         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14         from here...
15         * modules/strtoumax (configure.ac): ... to here.
16
17 2011-05-22  Bruno Haible  <bruno@clisp.org>
18
19         strtoimax: Move AC_LIBOBJ invocations to module description.
20         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
21         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
22         from here...
23         * modules/strtoimax (configure.ac): ... to here.
24
25 2011-05-22  Bruno Haible  <bruno@clisp.org>
26
27         strtoull: Move AC_LIBOBJ invocations to module description.
28         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
29         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
30         from here...
31         * modules/strtoull (configure.ac): ... to here.
32
33 2011-05-22  Bruno Haible  <bruno@clisp.org>
34
35         strtoll: Move AC_LIBOBJ invocations to module description.
36         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
37         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
38         here...
39         * modules/strtoll (configure.ac): ... to here.
40
41 2011-05-22  Bruno Haible  <bruno@clisp.org>
42
43         strtoul: Move AC_LIBOBJ invocations to module description.
44         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
45         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
46         * modules/strtoul (configure.ac): ... to here.
47
48 2011-05-22  Bruno Haible  <bruno@clisp.org>
49
50         strtol: Move AC_LIBOBJ invocations to module description.
51         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53         * modules/strtol (configure.ac): ... to here.
54
55 2011-05-22  Bruno Haible  <bruno@clisp.org>
56
57         strtod: Move AC_LIBOBJ invocations to module description.
58         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
59         invocations from here...
60         * modules/strtod (configure.ac): ... to here.
61
62 2011-05-22  Bruno Haible  <bruno@clisp.org>
63
64         strstr*: Move AC_LIBOBJ invocations to module description.
65         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
66         invocations from here...
67         * modules/strstr-simple (configure.ac): ... to here.
68         * modules/strstr (configure.ac): ... and here.
69
70 2011-05-22  Bruno Haible  <bruno@clisp.org>
71
72         strsignal: Move AC_LIBOBJ invocations to module description.
73         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
74         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
75         * modules/strsignal (configure.ac): ... to here.
76         (Depends-on): Update conditions.
77
78 2011-05-22  Bruno Haible  <bruno@clisp.org>
79
80         strsep: Move AC_LIBOBJ invocations to module description.
81         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
82         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
83         here...
84         * modules/strsep (configure.ac): ... to here.
85
86 2011-05-22  Bruno Haible  <bruno@clisp.org>
87
88         strptime: Move AC_LIBOBJ invocations to module description.
89         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
90         gl_PREREQ_STRPTIME invocations from here...
91         * modules/strptime (configure.ac): ... to here.
92
93 2011-05-22  Bruno Haible  <bruno@clisp.org>
94
95         strpbrk: Move AC_LIBOBJ invocations to module description.
96         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
97         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
98         here...
99         * modules/strpbrk (configure.ac): ... to here.
100
101 2011-05-22  Bruno Haible  <bruno@clisp.org>
102
103         strnlen: Move AC_LIBOBJ invocations to module description.
104         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
105         invocations from here...
106         * modules/strnlen (configure.ac): ... to here.
107
108 2011-05-22  Bruno Haible  <bruno@clisp.org>
109
110         strndup: Move AC_LIBOBJ invocations to module description.
111         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
112         invocations from here...
113         * modules/strndup (configure.ac): ... to here.
114         (Depends-on): Update conditions.
115
116 2011-05-22  Bruno Haible  <bruno@clisp.org>
117
118         strncat: Move AC_LIBOBJ invocations to module description.
119         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
120         invocations from here...
121         * modules/strncat (configure.ac): ... to here.
122
123 2011-05-22  Bruno Haible  <bruno@clisp.org>
124
125         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
126         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
127         invocations from here...
128         * modules/strdup (configure.ac): ... to here.
129         * modules/strdup-posix (configure.ac): ... and here.
130
131 2011-05-22  Bruno Haible  <bruno@clisp.org>
132
133         strcspn: Move AC_LIBOBJ invocations to module description.
134         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
136         here...
137         * modules/strcspn (configure.ac): ... to here.
138
139 2011-05-22  Bruno Haible  <bruno@clisp.org>
140
141         strchrnul: Move AC_LIBOBJ invocations to module description.
142         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
143         gl_PREREQ_STRCHRNUL invocations from here...
144         * modules/strchrnul (configure.ac): ... to here.
145
146 2011-05-22  Bruno Haible  <bruno@clisp.org>
147
148         strcasestr*: Move AC_LIBOBJ invocations to module description.
149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
150         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
151         * modules/strcasestr-simple (configure.ac): ... to here.
152         * modules/strcasestr (configure.ac): ... and here.
153
154 2011-05-22  Bruno Haible  <bruno@clisp.org>
155
156         strcase: Move AC_LIBOBJ invocations to module description.
157         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
158         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
159         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
160         gl_PREREQ_STRNCASECMP invocations from here...
161         * modules/strcase (configure.ac): ... to here.
162
163 2011-05-22  Bruno Haible  <bruno@clisp.org>
164
165         stpncpy: Move AC_LIBOBJ invocations to module description.
166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
167         here...
168         * modules/stpncpy (configure.ac): ... to here.
169
170 2011-05-22  Bruno Haible  <bruno@clisp.org>
171
172         stpcpy: Move AC_LIBOBJ invocations to module description.
173         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
175         here...
176         * modules/stpcpy (configure.ac): ... to here.
177
178 2011-05-21  Bruno Haible  <bruno@clisp.org>
179
180         stat: Move AC_LIBOBJ invocations to module description.
181         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
182         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
183         here...
184         * modules/stat (configure.ac): ... to here.
185
186 2011-05-21  Bruno Haible  <bruno@clisp.org>
187
188         sleep: Move AC_LIBOBJ invocations to module description.
189         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
190         * modules/sleep (configure.ac): ... to here.
191
192 2011-05-21  Bruno Haible  <bruno@clisp.org>
193
194         signbit: Move AC_LIBOBJ invocations to module description.
195         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
196         * modules/signbit (configure.ac): ... to here.
197
198 2011-05-21  Bruno Haible  <bruno@clisp.org>
199
200         sigprocmask: Move AC_LIBOBJ invocations to module description.
201         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
202         gl_PREREQ_SIGPROMASK invocations from here...
203         * modules/sigprocmask (configure.ac): ... to here.
204
205 2011-05-21  Bruno Haible  <bruno@clisp.org>
206
207         sigaction: Move AC_LIBOBJ invocations to module description.
208         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
209         gl_PREREQ_SIGACTION invocations from here...
210         * modules/sigaction (configure.ac): ... to here.
211
212 2011-05-21  Bruno Haible  <bruno@clisp.org>
213
214         sig2str: Move AC_LIBOBJ invocations to module description.
215         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
216         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
217         here...
218         * modules/sig2str (configure.ac): ... to here.
219
220 2011-05-21  Bruno Haible  <bruno@clisp.org>
221
222         setlocale: Move AC_LIBOBJ invocations to module description.
223         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
224         gl_PREREQ_SETLOCALE invocations from here...
225         * modules/setlocale (configure.ac): ... to here.
226
227 2011-05-21  Bruno Haible  <bruno@clisp.org>
228
229         unsetenv: Move AC_LIBOBJ invocations to module description.
230         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
231         and gl_PREREQ_UNSETENV invocations from here...
232         * modules/unsetenv (configure.ac): ... to here.
233         (Depends-on): Update.
234
235 2011-05-21  Bruno Haible  <bruno@clisp.org>
236
237         setenv: Move AC_LIBOBJ invocations to module description.
238         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
239         here...
240         * modules/setenv (configure.ac): ... to here.
241
242 2011-05-21  Bruno Haible  <bruno@clisp.org>
243
244         selinux-h: Move AC_LIBOBJ invocations to module description.
245         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
246         AC_LIBOBJ invocation from here...
247         * modules/selinux-h (configure.ac): ... to here.
248
249 2011-05-21  Bruno Haible  <bruno@clisp.org>
250
251         select: Respect rules for use of AC_LIBOBJ.
252         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
253         here...
254         * modules/select (configure.ac): ... to here.
255
256 2011-05-21  Bruno Haible  <bruno@clisp.org>
257
258         scandir: Move AC_LIBOBJ invocations to module description.
259         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
260         invocations from here...
261         * modules/scandir (configure.ac): ... to here.
262
263 2011-05-21  Bruno Haible  <bruno@clisp.org>
264
265         rpmatch: Move AC_LIBOBJ invocations to module description.
266         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
268         here...
269         * modules/rpmatch (configure.ac): ... to here.
270
271 2011-05-21  Bruno Haible  <bruno@clisp.org>
272
273         rmdir: Respect rules for use of AC_LIBOBJ.
274         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
275         * modules/rmdir (configure.ac): ... to here.
276
277 2011-05-21  Bruno Haible  <bruno@clisp.org>
278
279         renameat: Move AC_LIBOBJ invocations to module description.
280         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
281         here...
282         * modules/renameat (configure.ac): ... to here.
283
284 2011-05-21  Bruno Haible  <bruno@clisp.org>
285
286         rename: Respect rules for use of AC_LIBOBJ.
287         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
288         here...
289         * modules/rename (configure.ac): ... to here.
290
291 2011-05-21  Bruno Haible  <bruno@clisp.org>
292
293         remove: Move AC_LIBOBJ invocations to module description.
294         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
295         here...
296         * modules/remove (configure.ac): ... to here.
297
298 2011-05-21  Bruno Haible  <bruno@clisp.org>
299
300         relocatable-lib: Move AC_LIBOBJ invocations to module description.
301         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
302         macro.
303         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
304         * modules/relocatable-lib (configure.ac): ... to here.
305         * modules/relocatable-prog-wrapper (configure.ac): Invoke
306         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
307
308 2011-05-21  Bruno Haible  <bruno@clisp.org>
309
310         relocatable-prog: Move AC_LIBOBJ invocations to module description.
311         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
312         here...
313         * modules/relocatable-prog (configure.ac): ... to here.
314
315 2011-05-21  Bruno Haible  <bruno@clisp.org>
316
317         regex: Move AC_LIBOBJ invocations to module description.
318         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
319         invocations from here...
320         * modules/regex (configure.ac): ... to here.
321
322 2011-05-21  Bruno Haible  <bruno@clisp.org>
323
324         realloc-*: Move AC_LIBOBJ invocations to module description.
325         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
326         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
327         AC_LIBOBJ invocations from here...
328         * modules/realloc-gnu (configure.ac): ... to here.
329         * modules/realloc-posix (configure.ac): ... and here.
330
331 2011-05-21  Bruno Haible  <bruno@clisp.org>
332
333         readutmp: Move AC_LIBOBJ invocations to module description.
334         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
335         * modules/readutmp (configure.ac): ... to here.
336
337 2011-05-21  Bruno Haible  <bruno@clisp.org>
338
339         readlinkat: Move AC_LIBOBJ invocations to module description.
340         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
341         here...
342         * modules/readlinkat (configure.ac): ... to here.
343
344 2011-05-21  Bruno Haible  <bruno@clisp.org>
345
346         readlink: Move AC_LIBOBJ invocations to module description.
347         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
348         gl_PREREQ_READLINK invocations from here...
349         * modules/readlink (configure.ac): ... to here.
350
351 2011-05-21  Bruno Haible  <bruno@clisp.org>
352
353         readline: Move AC_LIBOBJ invocations to module description.
354         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
355         gl_PREREQ_READLINE invocations from here...
356         * modules/readline (configure.ac): ... to here.
357
358 2011-05-21  Bruno Haible  <bruno@clisp.org>
359
360         read: Move AC_LIBOBJ invocations to module description.
361         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
362         * modules/read (configure.ac): ... to here.
363
364 2011-05-21  Bruno Haible  <bruno@clisp.org>
365
366         rawmemchr: Move AC_LIBOBJ invocations to module description.
367         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
369         from here...
370         * modules/rawmemchr (configure.ac): ... to here.
371
372 2011-05-21  Bruno Haible  <bruno@clisp.org>
373
374         random_r: Move AC_LIBOBJ invocations to module description.
375         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
376         gl_PREREQ_RANDOM_R invocations from here...
377         * modules/random_r (configure.ac): ... to here.
378
379 2011-05-21  Bruno Haible  <bruno@clisp.org>
380
381         pwrite: Move AC_LIBOBJ invocations to module description.
382         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
383         * modules/pwrite (configure.ac): ... to here.
384
385 2011-05-21  Bruno Haible  <bruno@clisp.org>
386
387         putenv: Move AC_LIBOBJ invocations to module description.
388         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
389         * modules/putenv (configure.ac): ... to here.
390
391 2011-05-21  Bruno Haible  <bruno@clisp.org>
392
393         login_tty: Move AC_LIBOBJ invocations to module description.
394         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
395         * modules/login_tty (configure.ac): ... to here.
396
397 2011-05-21  Bruno Haible  <bruno@clisp.org>
398
399         openpty: Move AC_LIBOBJ invocations to module description.
400         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
401         * modules/openpty (configure.ac): ... to here.
402
403 2011-05-21  Bruno Haible  <bruno@clisp.org>
404
405         forkpty: Move AC_LIBOBJ invocations to module description.
406         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
407         * modules/forkpty (configure.ac): ... to here.
408
409 2011-05-21  Bruno Haible  <bruno@clisp.org>
410
411         ptsname: Move AC_LIBOBJ invocations to module description.
412         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
413         invocations from here...
414         * modules/ptsname (configure.ac): ... to here.
415
416 2011-05-21  Bruno Haible  <bruno@clisp.org>
417
418         pread: Move AC_LIBOBJ invocations to module description.
419         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
420         * modules/pread (configure.ac): ... to here.
421
422 2011-05-21  Bruno Haible  <bruno@clisp.org>
423
424         posix_spawn*: Move AC_LIBOBJ invocations to module description.
425         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
426         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
427         * modules/posix_spawn (configure.ac): ... to here.
428         * modules/posix_spawnp (configure.ac): ... and here.
429
430 2011-05-21  Bruno Haible  <bruno@clisp.org>
431
432         popen: Move AC_LIBOBJ invocations to module description.
433         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
434         invocations from here...
435         * modules/popen (configure.ac): ... to here.
436
437 2011-05-21  Bruno Haible  <bruno@clisp.org>
438
439         poll: Move AC_LIBOBJ invocations to module description.
440         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
441         invocations from here...
442         * modules/poll (configure.ac): ... to here.
443
444 2011-05-21  Bruno Haible  <bruno@clisp.org>
445
446         pipe-posix: Move AC_LIBOBJ invocations to module description.
447         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
448         * modules/pipe-posix (configure.ac): ... to here.
449
450 2011-05-21  Bruno Haible  <bruno@clisp.org>
451
452         openat: Respect rules for use of AC_LIBOBJ.
453         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
454         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
455         * modules/openat (configure.ac): ... to here.
456
457 2011-05-21  Bruno Haible  <bruno@clisp.org>
458
459         obstack-printf*: Move AC_LIBOBJ invocations to module description.
460         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
461         invocation from here...
462         * modules/obstack-printf (configure.ac): ... to here.
463         * modules/obstack-printf-posix (configure.ac): ... and here.
464
465 2011-05-21  Bruno Haible  <bruno@clisp.org>
466
467         nl_langinfo: Move AC_LIBOBJ invocations to module description.
468         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
469         from here...
470         * modules/nl_langinfo (configure.ac): ... to here.
471
472 2011-05-21  Bruno Haible  <bruno@clisp.org>
473
474         nanosleep: Move AC_LIBOBJ invocations to module description.
475         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
476         gl_PREREQ_NANOSLEEP invocations from here...
477         * modules/nanosleep (configure.ac): ... to here.
478
479 2011-05-21  Bruno Haible  <bruno@clisp.org>
480
481         mountlist: Move AC_LIBOBJ invocations to module description.
482         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
483         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
484         * modules/mountlist (configure.ac): ... to here.
485
486 2011-05-21  Bruno Haible  <bruno@clisp.org>
487
488         mktime: Respect rules for use of AC_LIBOBJ.
489         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
490         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
491         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
492         (gl_FUNC_MKTIME_INTERNAL): ... and here...
493         * modules/mktime (configure.ac): ... to here.
494         * modules/mktime-internal (configure.ac): ... and here.
495         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
496
497 2011-05-21  Bruno Haible  <bruno@clisp.org>
498
499         mkstemps: Move AC_LIBOBJ invocations to module description.
500         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
501         here...
502         * modules/mkstemps (configure.ac): ... to here.
503
504 2011-05-21  Bruno Haible  <bruno@clisp.org>
505
506         mkstemp: Move AC_LIBOBJ invocations to module description.
507         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
508         gl_PREREQ_MKSTEMP invocations from here...
509         * modules/mkstemp (configure.ac): ... to here.
510
511 2011-05-21  Bruno Haible  <bruno@clisp.org>
512
513         mkostemps: Move AC_LIBOBJ invocations to module description.
514         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
515         here...
516         * modules/mkostemps (configure.ac): ... to here.
517
518 2011-05-21  Bruno Haible  <bruno@clisp.org>
519
520         mkostemp: Move AC_LIBOBJ invocations to module description.
521         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
522         gl_PREREQ_MKOSTEMP invocations from here...
523         * modules/mkostemp (configure.ac): ... to here.
524
525 2011-05-21  Bruno Haible  <bruno@clisp.org>
526
527         mknod: Move AC_LIBOBJ invocations to module description.
528         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
529         * modules/mknod (configure.ac): ... to here.
530
531 2011-05-21  Bruno Haible  <bruno@clisp.org>
532
533         mkfifoat: Move AC_LIBOBJ invocations to module description.
534         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
535         here...
536         * modules/mkfifoat (configure.ac): ... to here.
537
538 2011-05-21  Bruno Haible  <bruno@clisp.org>
539
540         mkfifo: Respect rules for use of AC_LIBOBJ.
541         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
542         here...
543         * modules/mkfifo (configure.ac): ... to here.
544
545 2011-05-21  Bruno Haible  <bruno@clisp.org>
546
547         mkdtemp: Move AC_LIBOBJ invocations to module description.
548         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
549         invocations from here...
550         * modules/mkdtemp (configure.ac): ... to here.
551
552 2011-05-21  Bruno Haible  <bruno@clisp.org>
553
554         mkdir: Move AC_LIBOBJ invocations to module description.
555         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
556         * modules/mkdir (configure.ac): ... to here.
557
558 2011-05-21  Bruno Haible  <bruno@clisp.org>
559
560         memset: Move AC_LIBOBJ invocations to module description.
561         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
563         here...
564         * modules/memset (configure.ac): ... to here.
565
566 2011-05-21  Bruno Haible  <bruno@clisp.org>
567
568         memrchr: Move AC_LIBOBJ invocations to module description.
569         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
571         here...
572         * modules/memrchr (configure.ac): ... to here.
573
574 2011-05-21  Bruno Haible  <bruno@clisp.org>
575
576         mempcpy: Move AC_LIBOBJ invocations to module description.
577         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
578         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
579         here...
580         * modules/mempcpy (configure.ac): ... to here.
581
582 2011-05-21  Bruno Haible  <bruno@clisp.org>
583
584         memmove: Move AC_LIBOBJ invocations to module description.
585         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
587         here...
588         * modules/memmove (configure.ac): ... to here.
589
590 2011-05-21  Bruno Haible  <bruno@clisp.org>
591
592         memmem*: Move AC_LIBOBJ invocations to module description.
593         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
594         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
595         here...
596         (gl_FUNC_MEMMEM): ... and here...
597         * modules/memmem-simple (configure.ac): ... to here.
598         * modules/memmem (configure.ac): ... and here.
599
600 2011-05-21  Bruno Haible  <bruno@clisp.org>
601
602         memcpy: Move AC_LIBOBJ invocations to module description.
603         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
605         here...
606         * modules/memcpy (configure.ac): ... to here.
607
608 2011-05-21  Bruno Haible  <bruno@clisp.org>
609
610         memcmp: Simplify autoconf macro.
611         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
612         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
613         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
614
615 2011-05-21  Bruno Haible  <bruno@clisp.org>
616
617         memcmp: Move AC_LIBOBJ invocations to module description.
618         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
619         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
620         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
621         * modules/memcmp (configure.ac): ... to here.
622         (Depends-on): Update conditions.
623
624 2011-05-21  Bruno Haible  <bruno@clisp.org>
625
626         memchr: Respect rules for use of AC_LIBOBJ.
627         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
628         invocations from here...
629         * modules/memchr (configure.ac): ... to here.
630
631 2011-05-21  Bruno Haible  <bruno@clisp.org>
632
633         mbtowc: Move AC_LIBOBJ invocations to module description.
634         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
635         invocations from here...
636         * modules/mbtowc (configure.ac): ... to here.
637
638 2011-05-21  Bruno Haible  <bruno@clisp.org>
639
640         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
641         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
642         gl_PREREQ_MBSRTOWCS invocations from here...
643         * modules/mbsrtowcs (configure.ac): ... to here.
644
645 2011-05-21  Bruno Haible  <bruno@clisp.org>
646
647         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
648         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
649         gl_PREREQ_MBSNRTOWCS invocations from here...
650         * modules/mbsnrtowcs (configure.ac): ... to here.
651
652 2011-05-21  Bruno Haible  <bruno@clisp.org>
653
654         mbsinit: Move AC_LIBOBJ invocations to module description.
655         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
656         invocations from here...
657         * modules/mbsinit (configure.ac): ... to here.
658
659 2011-05-21  Bruno Haible  <bruno@clisp.org>
660
661         mbrlen: Move AC_LIBOBJ invocations to module description.
662         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
663         invocations from here...
664         * modules/mbrlen (configure.ac): ... to here.
665
666 2011-05-21  Bruno Haible  <bruno@clisp.org>
667
668         mbrtowc: Respect rules for use of AC_LIBOBJ.
669         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
670         invocations from here...
671         * modules/mbrtowc (configure.ac): ... to here.
672
673 2011-05-21  Bruno Haible  <bruno@clisp.org>
674
675         malloc-*: Move AC_LIBOBJ invocations to module description.
676         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
677         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
678         AC_LIBOBJ invocations from here...
679         * modules/malloc-gnu (configure.ac): ... to here.
680         * modules/malloc-posix (configure.ac): ... and here.
681
682 2011-05-21  Bruno Haible  <bruno@clisp.org>
683
684         lstat, openat: Respect rules for use of AC_LIBOBJ.
685         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
686         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
687         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
688         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
689         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
690         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
691         here.
692         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
693
694 2011-05-21  Bruno Haible  <bruno@clisp.org>
695
696         lseek: Move AC_LIBOBJ invocations to module description.
697         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
698         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
699         * modules/lseek (configure.ac): ... to here.
700
701 2011-05-21  Bruno Haible  <bruno@clisp.org>
702
703         linkat: Move AC_LIBOBJ invocations to module description.
704         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
705         here...
706         * modules/linkat (configure.ac): ... to here.
707
708 2011-05-21  Bruno Haible  <bruno@clisp.org>
709
710         link: Respect rules for use of AC_LIBOBJ.
711         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
712         * modules/link (configure.ac): ... to here.
713
714 2011-05-21  Bruno Haible  <bruno@clisp.org>
715
716         lchown: Move AC_LIBOBJ invocations to module description.
717         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
718         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
719         * modules/lchown (configure.ac): ... to here.
720
721 2011-05-21  Bruno Haible  <bruno@clisp.org>
722
723         iswctype: Move AC_LIBOBJ invocations to module description.
724         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
725         here...
726         * modules/iswctype (configure.ac): ... to here.
727
728 2011-05-21  Bruno Haible  <bruno@clisp.org>
729
730         iswblank: Move AC_LIBOBJ invocations to module description.
731         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
732         here...
733         * modules/iswblank (configure.ac): ... to here.
734
735 2011-05-21  Bruno Haible  <bruno@clisp.org>
736
737         atanl: Move AC_LIBOBJ invocations to module description.
738         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
739         * modules/atanl (configure.ac): ... to here.
740
741 2011-05-21  Bruno Haible  <bruno@clisp.org>
742
743         acosl: Move AC_LIBOBJ invocations to module description.
744         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
745         * modules/acosl (configure.ac): ... to here.
746
747 2011-05-21  Bruno Haible  <bruno@clisp.org>
748
749         asinl: Respect rules for use of AC_LIBOBJ.
750         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
751         * modules/asinl (configure.ac): ... to here.
752
753 2011-05-21  Bruno Haible  <bruno@clisp.org>
754
755         tanl: Move AC_LIBOBJ invocations to module description.
756         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
757         * modules/tanl (configure.ac): ... to here.
758
759 2011-05-21  Bruno Haible  <bruno@clisp.org>
760
761         cosl: Move AC_LIBOBJ invocations to module description.
762         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
763         * modules/cosl (configure.ac): ... to here.
764
765 2011-05-21  Bruno Haible  <bruno@clisp.org>
766
767         sinl: Move AC_LIBOBJ invocations to module description.
768         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
769         * modules/sinl (configure.ac): ... to here.
770
771 2011-05-21  Bruno Haible  <bruno@clisp.org>
772
773         logl: Move AC_LIBOBJ invocations to module description.
774         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
775         * modules/logl (configure.ac): ... to here.
776
777 2011-05-21  Bruno Haible  <bruno@clisp.org>
778
779         expl: Move AC_LIBOBJ invocations to module description.
780         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
781         * modules/expl (configure.ac): ... to here.
782
783 2011-05-21  Bruno Haible  <bruno@clisp.org>
784
785         roundl: Move AC_LIBOBJ invocations to module description.
786         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
787         * modules/roundl (configure.ac): ... to here.
788
789 2011-05-21  Bruno Haible  <bruno@clisp.org>
790
791         round: Move AC_LIBOBJ invocations to module description.
792         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
793         * modules/round (configure.ac): ... to here.
794
795 2011-05-21  Bruno Haible  <bruno@clisp.org>
796
797         roundf: Move AC_LIBOBJ invocations to module description.
798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
799         * modules/roundf (configure.ac): ... to here.
800
801 2011-05-21  Bruno Haible  <bruno@clisp.org>
802
803         truncl: Move AC_LIBOBJ invocations to module description.
804         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
805         * modules/truncl (configure.ac): ... to here.
806
807 2011-05-21  Bruno Haible  <bruno@clisp.org>
808
809         trunc: Move AC_LIBOBJ invocations to module description.
810         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
811         * modules/trunc (configure.ac): ... to here.
812
813 2011-05-21  Bruno Haible  <bruno@clisp.org>
814
815         truncf: Move AC_LIBOBJ invocations to module description.
816         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
817         * modules/truncf (configure.ac): ... to here.
818
819 2011-05-21  Bruno Haible  <bruno@clisp.org>
820
821         ceill: Move AC_LIBOBJ invocations to module description.
822         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
823         * modules/ceill (configure.ac): ... to here.
824
825 2011-05-21  Bruno Haible  <bruno@clisp.org>
826
827         ceil: Move AC_LIBOBJ invocations to module description.
828         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
829         * modules/ceil (configure.ac): ... to here.
830
831 2011-05-21  Bruno Haible  <bruno@clisp.org>
832
833         ceilf: Move AC_LIBOBJ invocations to module description.
834         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
835         * modules/ceilf (configure.ac): ... to here.
836
837 2011-05-21  Bruno Haible  <bruno@clisp.org>
838
839         floorl: Respect rules for use of AC_LIBOBJ.
840         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
841         * modules/floorl (configure.ac): ... to here.
842
843 2011-05-21  Bruno Haible  <bruno@clisp.org>
844
845         floor: Respect rules for use of AC_LIBOBJ.
846         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
847         * modules/floor (configure.ac): ... to here.
848
849 2011-05-21  Bruno Haible  <bruno@clisp.org>
850
851         floorf: Move AC_LIBOBJ invocations to module description.
852         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
853         * modules/floorf (configure.ac): ... to here.
854
855 2011-05-20  Bruno Haible  <bruno@clisp.org>
856
857         sqrtl: Respect rules for use of AC_LIBOBJ.
858         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
859         * modules/sqrtl (configure.ac): ... to here.
860
861 2011-05-20  Bruno Haible  <bruno@clisp.org>
862
863         ldexpl: Respect rules for use of AC_LIBOBJ.
864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
865         * modules/ldexpl (configure.ac): ... to here.
866
867 2011-05-20  Bruno Haible  <bruno@clisp.org>
868
869         frexpl*: Respect rules for use of AC_LIBOBJ.
870         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
871         invocation from here...
872         * modules/frexpl (configure.ac): ... to here.
873         * modules/frexpl-nolibm (configure.ac): ... and here.
874
875 2011-05-20  Bruno Haible  <bruno@clisp.org>
876
877         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
878         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
879         invocation from here...
880         * modules/frexp (configure.ac): ... to here.
881         * modules/frexp-nolibm (configure.ac): ... and here.
882
883 2011-05-20  Bruno Haible  <bruno@clisp.org>
884
885         isnan: Respect rules for use of AC_LIBOBJ.
886         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
887         invocations here.
888         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
889         REPLACE_ISNAN.
890         * modules/isnand (configure.ac): Likewise.
891         * modules/isnanl (configure.ac): Likewise.
892
893 2011-05-20  Bruno Haible  <bruno@clisp.org>
894
895         isnanl*: Respect rules for use of AC_LIBOBJ.
896         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
897         invocation from here...
898         * modules/isnanl (configure.ac): ... to here.
899         * modules/isnanl-nolibm (configure.ac): ... and here.
900
901 2011-05-20  Bruno Haible  <bruno@clisp.org>
902
903         isnand*: Move AC_LIBOBJ invocations to module description.
904         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
905         invocation from here...
906         * modules/isnand (configure.ac): ... to here.
907         * modules/isnand-nolibm (configure.ac): ... and here.
908
909 2011-05-20  Bruno Haible  <bruno@clisp.org>
910
911         isnanf*: Move AC_LIBOBJ invocations to module description.
912         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
913         invocation from here...
914         * modules/isnanf (configure.ac): ... to here.
915         * modules/isnanf-nolibm (configure.ac): ... and here.
916
917 2011-05-20  Bruno Haible  <bruno@clisp.org>
918
919         isnan*: Separate the AC_LIBOBJ invocations.
920         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
921         AC_LIBOBJ invocation.
922         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
923         here.
924         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
925         AC_LIBOBJ invocation.
926         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
927         here.
928         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
929         AC_LIBOBJ invocation.
930         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
931         here.
932         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
933
934 2011-05-08  Bruno Haible  <bruno@clisp.org>
935
936         isinf: Move AC_LIBOBJ invocations to module description.
937         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
938         * modules/isinf (configure.ac): ... to here.
939
940 2011-05-08  Bruno Haible  <bruno@clisp.org>
941
942         isfinite: Move AC_LIBOBJ invocations to module description.
943         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
944         * modules/isfinite (configure.ac): ... to here.
945
946 2011-05-08  Bruno Haible  <bruno@clisp.org>
947
948         isblank: Move AC_LIBOBJ invocations to module description.
949         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
950         here...
951         * modules/isblank (configure.ac): ... to here.
952
953 2011-05-08  Bruno Haible  <bruno@clisp.org>
954
955         isapipe: Move AC_LIBOBJ invocations to module description.
956         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
957         gl_PREREQ_ISAPIPE invocations from here...
958         * modules/isapipe (configure.ac): ... to here.
959         (Depends-on): Update condition.
960
961 2011-05-08  Bruno Haible  <bruno@clisp.org>
962
963         ioctl: Move AC_LIBOBJ invocations to module description.
964         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
965         invocations from here...
966         * modules/ioctl (configure.ac): ... to here.
967         (Depends-on): Update condition.
968
969 2011-05-08  Bruno Haible  <bruno@clisp.org>
970
971         imaxdiv: Move AC_LIBOBJ invocations to module description.
972         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
973         invocations from here...
974         * modules/imaxdiv (configure.ac): ... to here.
975
976 2011-05-08  Bruno Haible  <bruno@clisp.org>
977
978         imaxabs: Move AC_LIBOBJ invocations to module description.
979         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
980         invocations from here...
981         * modules/imaxabs (configure.ac): ... to here.
982
983 2011-05-08  Bruno Haible  <bruno@clisp.org>
984
985         getaddrinfo: Move AC_LIBOBJ invocations to module description.
986         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
987         AC_LIBOBJ invocations from here...
988         * modules/getaddrinfo (configure.ac): ... to here.
989         (Depends-on): Add conditions.
990
991 2011-05-08  Bruno Haible  <bruno@clisp.org>
992
993         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
994         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
995         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
996         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
997         (gl_PREREQ_INET_PTON): ... from here.
998         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
999         gl_PREREQ_INET_PTON here.
1000         (Depends-on): Update condition.
1001
1002 2011-05-08  Bruno Haible  <bruno@clisp.org>
1003
1004         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1005         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1006         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1007         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1008         (gl_PREREQ_INET_NTOP): ... from here.
1009         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1010         gl_PREREQ_INET_NTOP here.
1011         (Depends-on): Update condition.
1012
1013 2011-05-08  Bruno Haible  <bruno@clisp.org>
1014
1015         iconv_open: Move AC_LIBOBJ invocations to module description.
1016         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1017         AC_LIBOBJ invocations from here...
1018         * modules/iconv_open (configure.ac): ... to here.
1019
1020 2011-05-08  Bruno Haible  <bruno@clisp.org>
1021
1022         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1023         If module 'iconv_open' is among the main modules and module
1024         'iconv_open-utf' is among the tests dependencies, then
1025         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1026         return the special iconv_t values. Therefore iconv() and iconv_close()
1027         must support these special iconv_t values, already in lib, not only in
1028         tests.
1029         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1030         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1031         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1032         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1033         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1034         (Depends-on): Add the dependencies of iconv_open-utf.
1035         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1036         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1037         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1038
1039 2011-05-08  Bruno Haible  <bruno@clisp.org>
1040
1041         group-member: Move AC_LIBOBJ invocations to module description.
1042         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1043         gl_PREREQ_GROUP_MEMBER invocations from here...
1044         * modules/group-member (configure.ac): ... to here.
1045
1046 2011-05-08  Bruno Haible  <bruno@clisp.org>
1047
1048         grantpt: Move AC_LIBOBJ invocations to module description.
1049         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1050         invocations from here...
1051         * modules/grantpt (configure.ac): ... to here.
1052
1053 2011-05-08  Bruno Haible  <bruno@clisp.org>
1054
1055         glob: Move AC_LIBOBJ invocations to module description.
1056         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1057         from here...
1058         * modules/glob (configure.ac): ... to here.
1059
1060 2011-05-08  Bruno Haible  <bruno@clisp.org>
1061
1062         getusershell: Move AC_LIBOBJ invocations to module description.
1063         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1064         Move AC_LIBOBJ invocation from here...
1065         * modules/getusershell (configure.ac): ... to here.
1066         (Depends-on): Update condition.
1067
1068 2011-05-08  Bruno Haible  <bruno@clisp.org>
1069
1070         gettimeofday: Move AC_LIBOBJ invocations to module description.
1071         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1072         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1073         gl_PREREQ_GETTIMEOFDAY invocations from here...
1074         * modules/gettimeofday (configure.ac): ... to here.
1075
1076 2011-05-08  Bruno Haible  <bruno@clisp.org>
1077
1078         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1079         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1080         just gl_FUNC_TZSET.
1081         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1082         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1083         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1084         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1085
1086 2011-05-08  Bruno Haible  <bruno@clisp.org>
1087
1088         getsubopt: Move AC_LIBOBJ invocations to module description.
1089         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1090         gl_PREREQ_GETSUBOPT invocations from here...
1091         * modules/getsubopt (configure.ac): ... to here.
1092
1093 2011-05-08  Bruno Haible  <bruno@clisp.org>
1094
1095         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1096         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1097         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1098         * modules/getpass-gnu (configure.ac): ... to here.
1099
1100 2011-05-08  Bruno Haible  <bruno@clisp.org>
1101
1102         getpass: Move AC_LIBOBJ invocations to module description.
1103         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1104         gl_PREREQ_GETPASS invocations from here...
1105         * modules/getpass (configure.ac): ... to here.
1106
1107 2011-05-08  Bruno Haible  <bruno@clisp.org>
1108
1109         getpagesize: Move AC_LIBOBJ invocations to module description.
1110         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1111         from here...
1112         * modules/getpagesize (configure.ac): ... to here.
1113
1114 2011-05-08  Bruno Haible  <bruno@clisp.org>
1115
1116         getopt: Move AC_LIBOBJ invocations to module description.
1117         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1118         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1119         invocations from here...
1120         * modules/getopt-gnu (configure.ac): ... to here.
1121         * modules/getopt-posix (configure.ac): ... and here.
1122         (Depends-on): Update condition.
1123
1124 2011-05-08  Bruno Haible  <bruno@clisp.org>
1125
1126         getopt, argp: Respect rules for use of AC_LIBOBJ.
1127         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1128         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1129         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1130         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1131
1132 2011-05-08  Bruno Haible  <bruno@clisp.org>
1133
1134         getlogin_r: Move AC_LIBOBJ invocations to module description.
1135         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1136         gl_PREREQ_GETLOGIN_R invocations from here...
1137         * modules/getlogin_r (configure.ac): ... to here.
1138
1139 2011-05-08  Bruno Haible  <bruno@clisp.org>
1140
1141         getlogin: Move AC_LIBOBJ invocations to module description.
1142         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1143         here...
1144         * modules/getlogin (configure.ac): ... to here.
1145
1146 2011-05-08  Bruno Haible  <bruno@clisp.org>
1147
1148         getloadavg: Move AC_LIBOBJ invocations to module description.
1149         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1150         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1151         * modules/getloadavg (configure.ac): ... to here.
1152
1153 2011-05-08  Bruno Haible  <bruno@clisp.org>
1154
1155         gethrxtime: Move AC_LIBOBJ invocations to module description.
1156         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1157         LIB_GETHRXTIME from here...
1158         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1159         invocations from here...
1160         * modules/gethrxtime (configure.ac): ... to here.
1161
1162 2011-05-08  Bruno Haible  <bruno@clisp.org>
1163
1164         gethostname: Move AC_LIBOBJ invocations to module description.
1165         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1166         gl_PREREQ_GETHOSTNAME invocations from here...
1167         * modules/gethostname (configure.ac): ... to here.
1168
1169 2011-05-08  Bruno Haible  <bruno@clisp.org>
1170
1171         getgroups: Move AC_LIBOBJ invocations to module description.
1172         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1173         here...
1174         * modules/getgroups (configure.ac): ... to here.
1175
1176 2011-05-08  Bruno Haible  <bruno@clisp.org>
1177
1178         getdtablesize: Move AC_LIBOBJ invocations to module description.
1179         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1180         invocation from here...
1181         * modules/getdtablesize (configure.ac): ... to here.
1182
1183 2011-05-08  Bruno Haible  <bruno@clisp.org>
1184
1185         getdomainname: Move AC_LIBOBJ invocations to module description.
1186         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1187         gl_PREREQ_GETDOMAINNAME invocations from here...
1188         * modules/getdomainname (configure.ac): ... to here.
1189
1190 2011-05-08  Bruno Haible  <bruno@clisp.org>
1191
1192         getline: Move AC_LIBOBJ invocations to module description.
1193         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1194         invocations from here...
1195         * modules/getline (configure.ac): ... to here.
1196
1197 2011-05-08  Bruno Haible  <bruno@clisp.org>
1198
1199         getline: Simplify.
1200         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1201         It's already handled through the module dependency.
1202
1203 2011-05-08  Bruno Haible  <bruno@clisp.org>
1204
1205         getdelim: Move AC_LIBOBJ invocations to module description.
1206         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1207         and gl_PREREQ_GETDELIM invocations from here...
1208         * modules/getdelim (configure.ac): ... to here.
1209         (Depends-on): Fix condition.
1210
1211 2011-05-08  Bruno Haible  <bruno@clisp.org>
1212
1213         getcwd: Move AC_LIBOBJ invocations to module description.
1214         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1215         invocations from here...
1216         * modules/getcwd (configure.ac): ... to here.
1217
1218 2011-05-08  Bruno Haible  <bruno@clisp.org>
1219
1220         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1221         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1222         here...
1223         * modules/getcwd-lgpl (configure.ac): ... to here.
1224
1225 2011-05-07  Bruno Haible  <bruno@clisp.org>
1226
1227         crypto/gc: Move AC_LIBOBJ invocations to module description.
1228         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1229         * modules/crypto/gc (configure.ac): ... to here.
1230
1231 2011-05-07  Bruno Haible  <bruno@clisp.org>
1232
1233         fwriting: Move AC_LIBOBJ invocations to module description.
1234         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1235         here...
1236         * modules/fwriting (configure.ac): ... to here.
1237
1238 2011-05-07  Bruno Haible  <bruno@clisp.org>
1239
1240         fwritable: Move AC_LIBOBJ invocations to module description.
1241         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1242         here...
1243         * modules/fwritable (configure.ac): ... to here.
1244
1245 2011-05-07  Bruno Haible  <bruno@clisp.org>
1246
1247         futimens: Move AC_LIBOBJ invocations to module description.
1248         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1249         here...
1250         * modules/futimens (configure.ac): ... to here.
1251
1252 2011-05-07  Bruno Haible  <bruno@clisp.org>
1253
1254         ftruncate: Move AC_LIBOBJ invocations to module description.
1255         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1256         gl_PREREQ_FTRUNCATE invocations from here...
1257         * modules/ftruncate (configure.ac): ... to here.
1258
1259 2011-05-07  Bruno Haible  <bruno@clisp.org>
1260
1261         fsync: Move AC_LIBOBJ invocations to module description.
1262         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1263         invocations from here...
1264         * modules/fsync (configure.ac): ... to here.
1265
1266 2011-05-07  Bruno Haible  <bruno@clisp.org>
1267
1268         fsusage: Move AC_LIBOBJ invocations to module description.
1269         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1270         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1271         * modules/fsusage (configure.ac): ... to here.
1272
1273 2011-05-07  Bruno Haible  <bruno@clisp.org>
1274
1275         freopen: Move AC_LIBOBJ invocations to module description.
1276         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1277         invocations from here...
1278         * modules/freopen (configure.ac): ... to here.
1279
1280 2011-05-07  Bruno Haible  <bruno@clisp.org>
1281
1282         free: Move AC_LIBOBJ invocations to module description.
1283         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1284         invocations from here...
1285         * modules/free (configure.ac): ... to here.
1286
1287 2011-05-07  Bruno Haible  <bruno@clisp.org>
1288
1289         freadable: Move AC_LIBOBJ invocations to module description.
1290         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1291         here...
1292         * modules/freadable (configure.ac): ... to here.
1293
1294 2011-05-07  Bruno Haible  <bruno@clisp.org>
1295
1296         fpurge: Move AC_LIBOBJ invocations to module description.
1297         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1298         invocations from here...
1299         * modules/fpurge (configure.ac): ... to here.
1300
1301 2011-05-07  Bruno Haible  <bruno@clisp.org>
1302
1303         fpending: Move AC_LIBOBJ invocations to module description.
1304         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1305         gl_FUNC_FPENDING.
1306         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1307         invocations from here...
1308         * modules/fpending (configure.ac): ... to here.
1309
1310 2011-05-07  Bruno Haible  <bruno@clisp.org>
1311
1312         fopen: Move AC_LIBOBJ invocations to module description.
1313         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1314         invocations from here...
1315         * modules/fopen (configure.ac): ... to here.
1316
1317 2011-05-07  Bruno Haible  <bruno@clisp.org>
1318
1319         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1320         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1321         gl_FUNC_FNMATCH_POSIX.
1322         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1323         invocations from here...
1324         * modules/fnmatch (configure.ac): ... to here.
1325         * modules/fnmatch-gnu (configure.ac): ... and here.
1326
1327 2011-05-07  Bruno Haible  <bruno@clisp.org>
1328
1329         flock: Move AC_LIBOBJ invocations to module description.
1330         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1331         invocations from here...
1332         * modules/flock (configure.ac): ... to here.
1333
1334 2011-05-07  Bruno Haible  <bruno@clisp.org>
1335
1336         fileblocks: Move AC_LIBOBJ invocations to module description.
1337         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1338         gl_PREREQ_FILEBLOCKS invocations from here...
1339         * modules/fileblocks (configure.ac): ... to here.
1340
1341 2011-05-06  Bruno Haible  <bruno@clisp.org>
1342
1343         fflush: Move AC_LIBOBJ invocations to module description.
1344         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1345         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1346         invocations from here...
1347         * modules/fflush (configure.ac): ... to here.
1348
1349 2011-05-06  Bruno Haible  <bruno@clisp.org>
1350
1351         fdopendir: Move AC_LIBOBJ invocations to module description.
1352         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1353         here...
1354         * modules/fdopendir (configure.ac): ... to here.
1355         (Depends-on): Improve conditions.
1356
1357 2011-05-06  Bruno Haible  <bruno@clisp.org>
1358
1359         _Exit: Move AC_LIBOBJ invocations to module description.
1360         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1361         invocations from here...
1362         * modules/_Exit (configure.ac): ... to here.
1363
1364 2011-05-21  Bruno Haible  <bruno@clisp.org>
1365
1366         euidaccess: Respect rules for use of AC_LIBOBJ.
1367         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1369         from here...
1370         * modules/euidaccess (configure.ac): ... to here.
1371
1372 2011-05-06  Bruno Haible  <bruno@clisp.org>
1373
1374         error: Move AC_LIBOBJ invocations to module description.
1375         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1376         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1377         invocations from here...
1378         * modules/error (configure.ac): ... to here.
1379
1380 2011-05-06  Bruno Haible  <bruno@clisp.org>
1381
1382         duplocale: Move AC_LIBOBJ invocations to module description.
1383         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1384         gl_PREREQ_DUPLOCALE invocations from here...
1385         * modules/duplocale (configure.ac): ... to here.
1386
1387 2011-05-05  Bruno Haible  <bruno@clisp.org>
1388
1389         dirfd: Move AC_LIBOBJ invocations to module description.
1390         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1391         gl_FUNC_DIRFD.
1392         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1393         here...
1394         * modules/dirfd (configure.ac): ... to here.
1395         (Depends-on): Fix condition.
1396
1397 2011-05-05  Bruno Haible  <bruno@clisp.org>
1398
1399         chown: Respect rules for use of AC_LIBOBJ.
1400         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1401         * modules/chown (configure.ac): ... to here.
1402
1403 2011-05-05  Bruno Haible  <bruno@clisp.org>
1404
1405         chdir-long: Move AC_LIBOBJ invocations to module description.
1406         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1407         gl_PREREQ_CHDIR_LONG invocations from here...
1408         * modules/chdir-long (configure.ac): ... to here.
1409
1410 2011-05-05  Bruno Haible  <bruno@clisp.org>
1411
1412         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1413         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1414         from here...
1415         * modules/canonicalize-lgpl (configure.ac): ... to here.
1416
1417 2011-05-05  Bruno Haible  <bruno@clisp.org>
1418
1419         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1420         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1421         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1422         REPLACE_CALLOC.
1423         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1424         * modules/calloc-gnu (configure.ac): Likewise.
1425
1426 2011-05-05  Bruno Haible  <bruno@clisp.org>
1427
1428         btowc: Move AC_LIBOBJ invocations to module description.
1429         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1430         invocations from here...
1431         * modules/btowc (configure.ac): ... to here.
1432
1433 2011-05-21  Bruno Haible  <bruno@clisp.org>
1434
1435         atexit: Move AC_LIBOBJ invocations to module description.
1436         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1438         here...
1439         * modules/atexit (configure.ac): ... to here.
1440
1441 2011-05-05  Bruno Haible  <bruno@clisp.org>
1442
1443         atoll: Move AC_LIBOBJ invocations to module description.
1444         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1445         invocations from here...
1446         * modules/atoll (configure.ac): ... to here.
1447
1448 2011-05-05  Bruno Haible  <bruno@clisp.org>
1449
1450         argz: Move AC_LIBOBJ invocations to module description.
1451         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1452         * modules/argz (configure.ac): ... to here.
1453
1454 2011-05-05  Bruno Haible  <bruno@clisp.org>
1455
1456         alphasort: Move AC_LIBOBJ invocations to module description.
1457         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1458         gl_PREREQ_ALPHASORT invocations from here...
1459         * modules/alphasort (configure.ac): ... to here.
1460
1461 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1462
1463         verify: new macro verify_expr; verify_true deprecated
1464         * NEWS: Mention this.
1465         * doc/verify.texi (Compile-time Assertions): Document this.
1466         * lib/verify.h (verify_true): Deprecate.
1467         (verify_expr): New macro.
1468         * tests/test-verify.c (function): Test verify_expr.
1469
1470 2011-06-14  Jim Meyering  <meyering@redhat.com>
1471
1472         init.sh: give more portable redirection-related advice in a comment
1473         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1474         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1475         for lots of discussion.  Stefano Lattarini suggested the solution
1476         of putting "9>&2" after the command.  Reported by Bruno Haible.
1477
1478 2011-06-13  Bruno Haible  <bruno@clisp.org>
1479
1480         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1481         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1482         'none'.
1483
1484 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1485
1486         ftoastr: use strtof only if HAVE_STRTOF
1487         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1489         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1490         * modules/ftoastr (configure.ac): Check for strtof.
1491
1492 2011-06-13  Bruno Haible  <bruno@clisp.org>
1493
1494         gnulib-tool: Addendum to 2011-06-08 commit.
1495         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1496         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1497
1498 2011-06-13  Bruno Haible  <bruno@clisp.org>
1499
1500         fseeko: Provide a non-inline replacement of fseek().
1501         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1502         * modules/fseeko (Depends-on): Add fseek.
1503         * modules/fseek (License): Change to LGPLv2+.
1504
1505 2011-06-13  Bruno Haible  <bruno@clisp.org>
1506
1507         ftello: Provide a non-inline replacement of ftell().
1508         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1509         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1510         not have ftello() (such as on mingw).
1511         * modules/ftello (Depends-on): Add ftell.
1512         * modules/ftell (License): Change to LGPLv2+.
1513
1514 2011-05-07  Bruno Haible  <bruno@clisp.org>
1515
1516         ftell: Move AC_LIBOBJ invocations to module description.
1517         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1518         * modules/ftell (configure.ac): ... to here.
1519
1520 2011-05-07  Bruno Haible  <bruno@clisp.org>
1521
1522         ftello: Respect rules for use of AC_LIBOBJ.
1523         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1524         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1525         here...
1526         * modules/ftello (configure.ac): ... to here.
1527
1528 2011-05-07  Bruno Haible  <bruno@clisp.org>
1529
1530         fseeko: Simplify.
1531         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1532         (gl_FUNC_FSEEKO): Inline it here.
1533
1534 2011-05-07  Bruno Haible  <bruno@clisp.org>
1535
1536         fseek: Move AC_LIBOBJ invocations to module description.
1537         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1538         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1539         * modules/fseek (configure.ac): ... to here.
1540
1541 2011-05-07  Bruno Haible  <bruno@clisp.org>
1542
1543         fseek: Respect rules for use of AC_LIBOBJ.
1544         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1545         here...
1546         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1547
1548 2011-05-07  Bruno Haible  <bruno@clisp.org>
1549
1550         fseeko: Respect rules for use of AC_LIBOBJ.
1551         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1552         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1553         here...
1554         * modules/fseeko (configure.ac): ... to here.
1555
1556 2011-06-13  Bruno Haible  <bruno@clisp.org>
1557
1558         gnulib-tool: Allow comments in the 'Depends-on' section.
1559         * doc/gnulib.texi (Module description): Mention comment syntax in the
1560         Depends-on section.
1561         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1562
1563 2011-06-13  Bruno Haible  <bruno@clisp.org>
1564
1565         file-set.h: guard __attibute__ use, now that it's not always defined
1566         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1567         versions that support it.  This fixes a coreutils build failure with
1568         the vendor cc on HP-UX 11.31.
1569
1570 2011-06-12  Bruno Haible  <bruno@clisp.org>
1571
1572         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1573         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1574         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1575         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1576         (acl, aclsort): New declarations.
1577         (aclv_nontrivial): New declaration.
1578         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1579         (file_has_acl): Read also the second kind of HP-UX ACLs.
1580         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1581         kind of HP-UX ACLs if the first kind fails.
1582         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1583         second kind of HP-UX ACLs.
1584         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1585         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1586         agree.
1587         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1588         hpuxjfs.
1589         Handle hpuxjfs.
1590         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1591         hpuxjfs.
1592         Handle hpuxjfs.
1593         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1594         (func_test_same_acls): Use both lsacl and getacl.
1595         Handle hpuxjfs.
1596         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1597         (func_test_same_acls): Use both lsacl and getacl.
1598         Handle hpuxjfs.
1599
1600 2011-06-12  Bruno Haible  <bruno@clisp.org>
1601
1602         acl: Complete the 2010-08-10 fix.
1603         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1604         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1605         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1606         explicitly.
1607         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1608         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1609
1610 2011-06-12  Bruno Haible  <bruno@clisp.org>
1611
1612         spawn-pipe tests: Comments.
1613         * tests/test-spawn-pipe-child.c (main): Update comment.
1614         Reported by James Youngman <jay@gnu.org>.
1615
1616 2011-06-11  James Youngman  <jay@gnu.org>
1617
1618         New module 'stat-size'.
1619         * modules/stat-size: New module.  Provides macros for accessing
1620         file size information in instances of struct stat.  Depends on the
1621         fileblocks module because it calls st_blocks.
1622         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1623         * doc/gnulib.texi: Include stat-size.texi.
1624         * doc/stat-size.texi: Documentation for this module.
1625         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1626         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1627         AC_STRUCT_ST_BLOCKS.
1628
1629 2011-06-09  Bruno Haible  <bruno@clisp.org>
1630
1631         thread: Support pthreads-win32.
1632         * lib/glthread/thread.h (gl_thread_self): Define differently on
1633         pthreads-win32.
1634         (gl_null_thread): New declaration.
1635         (gl_thread_self_pointer): New macro.
1636         * lib/glthread/thread.c (gl_null_thread): New constant.
1637         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1638         gl_thread_self.
1639         * tests/test-tls.c: Likewise.
1640         Suggested by Paul Eggert. Reported by Eric Blake.
1641
1642 2011-06-09  Bruno Haible  <bruno@clisp.org>
1643
1644         thread: Fix confusion between NULL and 0.
1645         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1646         Reported by Paul Eggert.
1647
1648 2011-06-09  Bruno Haible  <bruno@clisp.org>
1649
1650         spawn-pipe tests: Avoid test failure on HP-UX 11.
1651         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1652         is closed.
1653
1654 2011-06-09  Bruno Haible  <bruno@clisp.org>
1655
1656         acl tests: Fix compilation error on HP-UX 11.
1657         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1658
1659 2011-06-09  Bruno Haible  <bruno@clisp.org>
1660
1661         rmdir: Avoid test failure on HP-UX 10.20.
1662         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1663         EEXIST.
1664
1665 2011-06-08  Eric Blake  <eblake@redhat.com>
1666
1667         perror: fix test on mingw
1668         * modules/perror-tests (Depends-on): Add dup2.
1669
1670         strerror_r-posix: fix on MacOS
1671         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1672         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1673         logic bug.
1674         * lib/strerror_r.c (strerror_r): Fix the bug.
1675         * lib/strerror.c (strerror): Likewise.
1676         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1677         problem.
1678         * doc/posix-functions/strerror.texi (strerror): Likewise.
1679         * doc/posix-functions/perror.texi (perror): Likewise.
1680         * tests/test-strerror.c (main): Enhance test.
1681         * tests/test-strerror_r.c (main): Likewise.
1682
1683 2011-06-08  Bruno Haible  <bruno@clisp.org>
1684
1685         gnulib-tool: Better isolation between different gnulib-tool invocations.
1686         * gnulib-tool: New option --witness-c-macro.
1687         (witness_c_macro): New variable.
1688         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1689         AM_CPPFLAGS define it as a C macro.
1690         (func_emit_tests_Makefile_am): Likewise.
1691         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1692         read it from there.
1693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1694         m4_define, not AC_DEFUN.
1695         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1696         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1697         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1698         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1699         s|...|...|, to substitute the values of the GNULIB_* module indicator
1700         variables.
1701         * modules/dirent (Makefile.am): Likewise.
1702         * modules/fcntl-h (Makefile.am): Likewise.
1703         * modules/iconv-h (Makefile.am): Likewise.
1704         * modules/langinfo (Makefile.am): Likewise.
1705         * modules/locale (Makefile.am): Likewise.
1706         * modules/math (Makefile.am): Likewise.
1707         * modules/netdb (Makefile.am): Likewise.
1708         * modules/poll-h (Makefile.am): Likewise.
1709         * modules/pty (Makefile.am): Likewise.
1710         * modules/search (Makefile.am): Likewise.
1711         * modules/signal (Makefile.am): Likewise.
1712         * modules/spawn (Makefile.am): Likewise.
1713         * modules/stdio (Makefile.am): Likewise.
1714         * modules/stdlib (Makefile.am): Likewise.
1715         * modules/string (Makefile.am): Likewise.
1716         * modules/sys_ioctl (Makefile.am): Likewise.
1717         * modules/sys_select (Makefile.am): Likewise.
1718         * modules/sys_socket (Makefile.am): Likewise.
1719         * modules/sys_stat (Makefile.am): Likewise.
1720         * modules/sys_times (Makefile.am): Likewise.
1721         * modules/sys_utsname (Makefile.am): Likewise.
1722         * modules/sys_wait (Makefile.am): Likewise.
1723         * modules/termios (Makefile.am): Likewise.
1724         * modules/time (Makefile.am): Likewise.
1725         * modules/unistd (Makefile.am): Likewise.
1726         * modules/wchar (Makefile.am): Likewise.
1727
1728 2011-06-08  Eric Blake  <eblake@redhat.com>
1729
1730         strerror: simplify replacement
1731         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1732         * modules/strerror (configure.ac): No prereqs needed here...
1733         * modules/strerror-override (configure.ac): ...but this needs it.
1734         (Files): Add file for needed prereq macro.
1735
1736 2011-06-08  Bruno Haible  <bruno@clisp.org>
1737
1738         strerror_r-posix: Tweaks.
1739         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1740         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1741         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1742         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1743         (gl_FUNC_STRERROR_R): ... to here.
1744         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1745
1746 2011-06-07  Eric Blake  <eblake@redhat.com>
1747
1748         perror: document fixed bugs
1749         * doc/posix-functions/perror.texi (perror): Document recent
1750         patches.
1751
1752 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1753
1754         stat-time: get_stat_birthtime failure is better-defined
1755         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1756         return a timestamp whose tv_sec and tv_nsec values are both -1.
1757         Previously, the spec said only that the tv_nsec value was negative.
1758         This upward-compatible change simplifies GNU tar a bit.
1759
1760 2011-06-07  Eric Blake  <eblake@redhat.com>
1761
1762         strerror_r-posix: work around cygwin 1.7.9
1763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1764         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1765         bug without replacing strerror_r.
1766         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1767         strerror_r is buggy, but without requiring strerror_r compilation.
1768         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1769
1770         test-perror: relax test to ignore cygwin bug
1771         * tests/test-perror2.c (main): Relax test on requiring detection
1772         of stream errors, and use unbuffered stream.
1773         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1774         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1775         * doc/posix-functions/fputc.texi (fputc): Likewise.
1776         * doc/posix-functions/fputs.texi (fputs): Likewise.
1777         * doc/posix-functions/fputws.texi (fputws): Likewise.
1778         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1779         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1780         * doc/posix-functions/getopt.texi (getopt): Likewise.
1781         * doc/posix-functions/perror.texi (perror): Likewise.
1782         * doc/posix-functions/printf.texi (printf): Likewise.
1783         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1784         * doc/posix-functions/psignal.texi (psignal): Likewise.
1785         * doc/posix-functions/putc.texi (putc): Likewise.
1786         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1787         Likewise.
1788         * doc/posix-functions/putchar.texi (putchar): Likewise.
1789         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1790         Likewise.
1791         * doc/posix-functions/puts.texi (puts): Likewise.
1792         * doc/posix-functions/putwc.texi (putwc): Likewise.
1793         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1794         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1795         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1796         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1797         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1798         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1799         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1800         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1801
1802 2011-05-22  Bruno Haible  <bruno@clisp.org>
1803
1804         strerror: Move AC_LIBOBJ invocations to module description.
1805         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1806         gl_PREREQ_STRERROR invocations from here...
1807         * modules/strerror (configure.ac): ... to here.
1808
1809 2011-05-21  Bruno Haible  <bruno@clisp.org>
1810
1811         perror: Use common idiom.
1812         * modules/perror (configure.ac): Reorder statements.
1813
1814 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1815
1816         tests: fix usage message in 'mktempd_'
1817         * tests/init.sh (mktempd_): In the usage message, use literal
1818         'mktempd_', not '$ME' (which is even undefined), as the name of
1819         the subroutine.
1820
1821 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1822
1823         tests init: new function 'fatal_', for hard errors
1824         Before this patch, the only way offered by tests/init.sh to
1825         properly signal a hard error was the `framework_failure_'
1826         function.  But the error message issued by that function,
1827         as its name would suggest, refers to a set-up failure in the
1828         testsuite, while hard errors can obviously also be due to
1829         other reasons.  The best way to fix this inconsistency is to
1830         introduce a new function with a more general error message.
1831         * tests/init.sh (fatal_): New function.
1832
1833 2011-06-06  Eric Blake  <eblake@redhat.com>
1834
1835         canonicalize-lgpl: use common idiom
1836         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1837         over newer POSIX -Rf.
1838         Reported by Bruno Haible.
1839
1840         canonicalize-lgpl: work around AIX realpath bug
1841         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1842         * doc/posix-functions/realpath.texi (realpath): Document it.
1843         Reported by Bruno Haible.
1844
1845         strerror: work around FreeBSD bug
1846         * lib/strerror.c (strerror): Special case 0.
1847         Reported by Bruno Haible.
1848
1849         strerror-override: avoid bloating errno module
1850         * modules/errno (Files, configure.ac): Move replacement strings...
1851         * modules/strerror-override: ...to new module.
1852         * modules/strerror (Depends-on): Add strerror-override.
1853         * modules/strerror_r-posix (Depends-on): Likewise.
1854         * MODULES.html.sh: Document new module.
1855         Reported by Bruno Haible.
1856
1857 2011-06-06  Bruno Haible  <bruno@clisp.org>
1858
1859         spawn-pipe tests: Rename program.
1860         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1861         * tests/test-spawn-pipe-child.c: Update comment.
1862         * tests/test-spawn-pipe.sh: Update.
1863         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1864
1865         spawn-pipe tests: Link the child program only against libc.
1866         * tests/test-spawn-pipe-child.c: New file, extracted from
1867         tests/test-spawn-pipe.c.
1868         (main): Expect only one argument.
1869         (is_open): New function, copied from tests/test-pipe.c.
1870         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1871         (child_main): Remove function.
1872         (test_pipe): Pass only one argument to the child program.
1873         (main): Remove child process code. Expect the child program's name as
1874         first argument.
1875         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1876         argument.
1877         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1878         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1879         test-spawn-pipe-child against no libraries.
1880
1881 2011-06-06  Bruno Haible  <bruno@clisp.org>
1882
1883         careadlinkat: Avoid mismatch between ssize_t and int.
1884         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1885         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1886
1887 2011-06-06  Jim Meyering  <meyering@redhat.com>
1888
1889         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1890         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1891         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1892
1893 2011-06-05  Bruno Haible  <bruno@clisp.org>
1894
1895         ansi-c++-opt: Interoperability with libtool.
1896         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1897         set the variable to "no", not to ":".
1898         * NEWS: Mention the change.
1899
1900 2011-06-05  Bruno Haible  <bruno@clisp.org>
1901
1902         acl: Fix test failure on AIX 7.
1903         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1904         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1905
1906 2011-06-05  Bruno Haible  <bruno@clisp.org>
1907
1908         pipe-filter-ii: Fix test failure on AIX and IRIX.
1909         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1910         with EAGAIN, retry with a smaller buffer size.
1911
1912 2011-06-05  Bruno Haible  <bruno@clisp.org>
1913
1914         localename: Fix link dependencies.
1915         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1916         * modules/localename-tests (Makefile.am): Link test-localename with
1917         $(LIBTHREAD).
1918
1919 2011-06-05  Bruno Haible  <bruno@clisp.org>
1920
1921         error: Avoid gcc warning.
1922         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1923
1924 2011-06-05  Bruno Haible  <bruno@clisp.org>
1925
1926         unsetenv: Avoid gcc warning.
1927         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1928
1929 2011-06-05  Bruno Haible  <bruno@clisp.org>
1930
1931         setenv: Avoid gcc warning.
1932         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1933
1934 2011-06-05  Bruno Haible  <bruno@clisp.org>
1935
1936         sys_select: Ensure memset is declared also on AIX 7.
1937         * lib/sys_select.in.h: Include <string.h> also on AIX.
1938         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1939         self-contained also on AIX 7.1.
1940
1941 2011-06-04  Jim Meyering  <meyering@redhat.com>
1942
1943         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1944         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1945         function name, "error".
1946         (_gl_translatable_diag_func_re): New configurable variable.
1947
1948 2011-06-04  Bruno Haible  <bruno@clisp.org>
1949
1950         getopt: Avoid gcc warning.
1951         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1952
1953 2011-06-04  Bruno Haible  <bruno@clisp.org>
1954
1955         strerror_r: Fix comments.
1956         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1957         commit.
1958
1959 2011-06-04  Bruno Haible  <bruno@clisp.org>
1960
1961         perror: Fix compilation error.
1962         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1963         Undefine fprintf, not sprintf.
1964         * modules/perror (Depends-on): Remove intprops, verify.
1965
1966 2011-06-04  Bruno Haible  <bruno@clisp.org>
1967
1968         setlocale: Enable replacement on Cygwin 1.5.
1969         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1970         Cygwin 1.5.x.
1971         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1972         LC_CTYPE category also exists on Cygwin 1.5.x.
1973
1974 2011-06-04  Bruno Haible  <bruno@clisp.org>
1975
1976         strerror-override: Don't disable symbol renamings.
1977         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1978         * lib/strerror-override.c: Include config.h.
1979         (strerror_override): Don't undefine.
1980
1981 2011-06-03  Bruno Haible  <bruno@clisp.org>
1982
1983         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1984         * lib/localename.h: Update copyright header.
1985         * lib/localename.c: Likewise.
1986         * lib/relocatable.h: Likewise.
1987         * lib/relocatable.c: Likewise.
1988
1989 2011-06-02  Bruno Haible  <bruno@clisp.org>
1990
1991         doc: Fix a module name.
1992         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1993
1994 2011-06-02  Bruno Haible  <bruno@clisp.org>
1995
1996         pipe2: Remove dependency on 'nonblocking' module.
1997         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1998         O_NONBLOCK is defined by gnulib.
1999         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2000         is zero.
2001         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2002         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2003         defined by gnulib.
2004         (get_nonblocking_flag): New function.
2005         (main): Test O_NONBLOCK flag only if it is nonzero.
2006         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2007
2008 2011-06-03  Jim Meyering  <meyering@redhat.com>
2009
2010         maint: three new prohibit-header-without-use rules
2011         Prohibit use of cloexec.h, posixver.h, same.h without use.
2012         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2013         (sc_prohibit_posixver_without_use): Likewise.
2014         (sc_prohibit_same_without_use): Likewise.
2015
2016 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         allocator: 'die' routine is now given requested size
2019         * lib/allocator.h (struct allocator.die): New size arg.
2020         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2021         If the actual problem is an ssize_t limitation, not a size_t or
2022         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2023
2024 2011-06-01  Eric Blake  <eblake@redhat.com>
2025
2026         strerror: drop strerror_r dependency
2027         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2028         * lib/strerror-override.c (strerror_override): ...to new file.
2029         * lib/strerror-override.h: Add prototype.
2030         * lib/strerror-impl.h: Delete.
2031         * lib/strerror.c (strerror): New implementation.
2032         * modules/errno (Files): Add new files.
2033         (configure.ac): Compile new file as appropriate.
2034         * modules/strerror (Files): Drop unused file.
2035         (Depends-on): Drop strerror_r-posix.
2036         * MODULES.html.sh: Document strerror_r-posix.
2037         Requested by Sam Steingold.
2038
2039         perror: call strerror_r directly
2040         * modules/perror (Files): Drop strerror-impl.h.
2041         * lib/perror.c (perror): Use our own stack buffer, rather than
2042         calling a wrapper that uses static storage.
2043         * doc/posix-functions/perror.texi (perror): Document a limitation
2044         of our replacement.
2045
2046         strerror_r: fix includes for FreeBSD
2047         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2048         since we use abort on some platforms.
2049         Reported by Matthias Bolte.
2050
2051 2011-05-31  Bruno Haible  <bruno@clisp.org>
2052
2053         Fix link errors in tests: openat-die uses gettext-h.
2054         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2055         against $(LIBINTL).
2056         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2057         against $(LIBINTL).
2058         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2059         $(LIBINTL).
2060         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2061         against $(LIBINTL).
2062         * modules/linkat-tests (Makefile.am): Link test-linkat against
2063         $(LIBINTL).
2064         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2065         $(LIBINTL).
2066         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2067         against $(LIBINTL).
2068         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2069         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2070         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2071         $(LIBINTL).
2072         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2073         $(LIBINTL).
2074         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2075         $(LIBINTL).
2076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2077
2078 2011-05-31  Bruno Haible  <bruno@clisp.org>
2079
2080         Fix link errors in tests: wait-process uses gettext-h.
2081         * modules/nonblocking-pipe-tests (Makefile.am): Set
2082         test_nonblocking_pipe_main_LDADD.
2083         * modules/nonblocking-socket-tests (Makefile.am): Link
2084         test-nonblocking-socket-main against $(LIBINTL).
2085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2086
2087 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2088
2089         assert-h: work around 'verify' incompatibility
2090         * lib/verify.h: Use @...@ directives, not ifdef.
2091         * modules/assert-h (assert.h): Implement the directives.
2092         (assert.h): Substitute the symbol-prefix more consistently.
2093
2094 2011-05-29  Jim Meyering  <meyering@redhat.com>
2095
2096         trim: remove three superfluous assignments
2097         * lib/trim.c (trim2): Remove three superfluous assignments
2098         and correct brace positioning.
2099
2100 2011-05-29  Bruno Haible  <bruno@clisp.org>
2101
2102         wctype-h: Avoid namespace pollution on Solaris 2.6.
2103         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2104         identifiers.
2105         * doc/posix-headers/wctype.texi: Mention the problem.
2106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2107
2108 2011-05-28  Jim Meyering  <meyering@redhat.com>
2109
2110         parse-datetime.y: accommodate -Wstrict-overflow
2111         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2112         placate -Wstrict-overflow.
2113
2114         trim: avoid a warning from -O2 -Wstrict-overflow
2115         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2116
2117 2011-05-29  Bruno Haible  <bruno@clisp.org>
2118
2119         gnulib-tool: Fix bug in yesterday's commit.
2120         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2121         twice.
2122
2123 2011-05-29  Bruno Haible  <bruno@clisp.org>
2124
2125         Allow multiple gnulib generated include files to be combined.
2126         * gnulib-tool (func_compute_include_guard_prefix): New function.
2127         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2128         ${gl_include_guard_prefix} references.
2129         (func_import, func_create_testdir): Invoke
2130         func_compute_include_guard_prefix.
2131         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2132         * lib/ctype.in.h: Likewise.
2133         * lib/dirent.in.h: Likewise.
2134         * lib/errno.in.h: Likewise.
2135         * lib/fcntl.in.h: Likewise.
2136         * lib/float.in.h: Likewise.
2137         * lib/getopt.in.h: Likewise.
2138         * lib/iconv.in.h: Likewise.
2139         * lib/langinfo.in.h: Likewise.
2140         * lib/locale.in.h: Likewise.
2141         * lib/math.in.h: Likewise.
2142         * lib/netdb.in.h: Likewise.
2143         * lib/netinet_in.in.h: Likewise.
2144         * lib/poll.in.h: Likewise.
2145         * lib/pthread.in.h: Likewise.
2146         * lib/pty.in.h: Likewise.
2147         * lib/sched.in.h: Likewise.
2148         * lib/se-selinux.in.h: Likewise.
2149         * lib/search.in.h: Likewise.
2150         * lib/signal.in.h: Likewise.
2151         * lib/spawn.in.h: Likewise.
2152         * lib/stdarg.in.h: Likewise.
2153         * lib/stddef.in.h: Likewise.
2154         * lib/stdint.in.h: Likewise.
2155         * lib/stdio.in.h: Likewise.
2156         * lib/stdlib.in.h: Likewise.
2157         * lib/string.in.h: Likewise.
2158         * lib/strings.in.h: Likewise.
2159         * lib/sys_file.in.h: Likewise.
2160         * lib/sys_ioctl.in.h: Likewise.
2161         * lib/sys_select.in.h: Likewise.
2162         * lib/sys_socket.in.h: Likewise.
2163         * lib/sys_stat.in.h: Likewise.
2164         * lib/sys_time.in.h: Likewise.
2165         * lib/sys_times.in.h: Likewise.
2166         * lib/sys_uio.in.h: Likewise.
2167         * lib/sys_utsname.in.h: Likewise.
2168         * lib/sys_wait.in.h: Likewise.
2169         * lib/sysexits.in.h: Likewise.
2170         * lib/termios.in.h: Likewise.
2171         * lib/time.in.h: Likewise.
2172         * lib/unistd.in.h: Likewise.
2173         * lib/wchar.in.h: Likewise.
2174         * lib/wctype.in.h: Likewise.
2175         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2176         * modules/ctype (Makefile.am): Likewise.
2177         * modules/dirent (Makefile.am): Likewise.
2178         * modules/errno (Makefile.am): Likewise.
2179         * modules/fcntl-h (Makefile.am): Likewise.
2180         * modules/float (Makefile.am): Likewise.
2181         * modules/getopt-posix (Makefile.am): Likewise.
2182         * modules/iconv-h (Makefile.am): Likewise.
2183         * modules/langinfo (Makefile.am): Likewise.
2184         * modules/locale (Makefile.am): Likewise.
2185         * modules/math (Makefile.am): Likewise.
2186         * modules/netdb (Makefile.am): Likewise.
2187         * modules/netinet_in (Makefile.am): Likewise.
2188         * modules/poll-h (Makefile.am): Likewise.
2189         * modules/pthread (Makefile.am): Likewise.
2190         * modules/pty (Makefile.am): Likewise.
2191         * modules/sched (Makefile.am): Likewise.
2192         * modules/search (Makefile.am): Likewise.
2193         * modules/selinux-h (Makefile.am): Likewise.
2194         * modules/signal (Makefile.am): Likewise.
2195         * modules/spawn (Makefile.am): Likewise.
2196         * modules/stdarg (Makefile.am): Likewise.
2197         * modules/stddef (Makefile.am): Likewise.
2198         * modules/stdint (Makefile.am): Likewise.
2199         * modules/stdio (Makefile.am): Likewise.
2200         * modules/stdlib (Makefile.am): Likewise.
2201         * modules/string (Makefile.am): Likewise.
2202         * modules/strings (Makefile.am): Likewise.
2203         * modules/sys_file (Makefile.am): Likewise.
2204         * modules/sys_ioctl (Makefile.am): Likewise.
2205         * modules/sys_select (Makefile.am): Likewise.
2206         * modules/sys_socket (Makefile.am): Likewise.
2207         * modules/sys_stat (Makefile.am): Likewise.
2208         * modules/sys_time (Makefile.am): Likewise.
2209         * modules/sys_times (Makefile.am): Likewise.
2210         * modules/sys_uio (Makefile.am): Likewise.
2211         * modules/sys_utsname (Makefile.am): Likewise.
2212         * modules/sys_wait (Makefile.am): Likewise.
2213         * modules/sysexits (Makefile.am): Likewise.
2214         * modules/termios (Makefile.am): Likewise.
2215         * modules/time (Makefile.am): Likewise.
2216         * modules/unistd (Makefile.am): Likewise.
2217         * modules/wchar (Makefile.am): Likewise.
2218         * modules/wctype-h (Makefile.am): Likewise.
2219         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2220
2221 2011-05-29  Bruno Haible  <bruno@clisp.org>
2222
2223         assert-h: Allow multiple gnulib generated replacements to coexist.
2224         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2225
2226 2011-05-29  Bruno Haible  <bruno@clisp.org>
2227
2228         argp: Allow coexistence with strerror_r-posix module.
2229         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2230         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2231         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2232         not the glibc signature.
2233
2234 2011-05-28  Bruno Haible  <bruno@clisp.org>
2235
2236         gnulib-tool: Alternative structure of testdirs, similar to --import.
2237         * gnulib-tool: New option --single-configure.
2238         (func_usage): Document it.
2239         (single_configure): New variable.
2240         (func_modules_transitive_closure_separately,
2241         func_modules_transitive_closure_separately,
2242         func_determine_use_libtests, func_modules_add_dummy_separately,
2243         func_modules_to_filelist_separately): New functions, extracted from
2244         func_import.
2245         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2246         (func_import): Use the new functions.
2247         (func_create_testdir): Set final_modules. Handle $single_configure =
2248         true case.
2249
2250 2011-05-28  Bruno Haible  <bruno@clisp.org>
2251
2252         getloadavg: Remove an unreliable safety check.
2253         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2254         getloadavg.c is in place.
2255         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2256         Reported by Sam Steingold <sds@gnu.org>.
2257
2258 2011-05-28  Bruno Haible  <bruno@clisp.org>
2259
2260         doc: Cleanup yet another file produced by texinfo.tex.
2261         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2262
2263 2011-05-28  Bruno Haible  <bruno@clisp.org>
2264
2265         Finish the conditional dependencies mechanism.
2266         * gnulib-tool: New option --no-conditional-dependencies.
2267         (func_usage): Document it. Don't mark --conditional-dependencies as
2268         experimental.
2269         (cond_dependencies): The possible values can now be true, false, empty.
2270         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2271         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2272         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2273
2274 2011-05-28  Bruno Haible  <bruno@clisp.org>
2275
2276         doc: Use a recent texinfo.tex.
2277         * doc/Makefile (tex_opts): New variable.
2278         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2279
2280 2011-05-28  Jim Meyering  <meyering@redhat.com>
2281
2282         intprops.h: adjust comment to match code change
2283         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2284         only once, it *may* have side effects.  Also fix an unrelated typo.
2285         (_GL_INT_SIGNED): Likewise.
2286
2287 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2288
2289         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2290
2291 2011-05-26  Bruno Haible  <bruno@clisp.org>
2292
2293         mbsrchr: Avoid collision with system function on Interix.
2294         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2295         Reported by Markus Duft <mduft@gentoo.org>.
2296
2297 2011-05-15  James Youngman  <jay@gnu.org>
2298
2299         getopt: for ambiguous options, enumerate the possibilities.
2300         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2301         the ambiguous options when an ambiguous prefix is given. This was
2302         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2303         glibc change was
2304         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2305
2306 2011-05-25  Eric Blake  <eblake@redhat.com>
2307
2308         getcwd: work around mingw bug
2309         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2310         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2311         Reported by Matthias Bolte.
2312
2313 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2314
2315         test-intprops: disable -Wtype-limits diagnostics
2316         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2317         diagnostics.  Otherwise, the integer overflow macros generate many
2318         diagnostics.  Reported by Jim Meyering in
2319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2320
2321         intprops: shorten, to pacify gcc -Woverlength-strings
2322         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2323         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2324         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2325         likely to run afoul of C compiler limits for string constant lengths.
2326         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2327
2328 2011-05-24  Eric Blake  <eblake@redhat.com>
2329
2330         docs: document recently fixed glibc printf bug
2331         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2332         * doc/posix-functions/printf.texi (printf): Likewise.
2333         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2334         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2335
2336         closein-tests: convert to init.sh
2337         * modules/closein-tests (Files): Add init.sh
2338         * tests/test-closein.sh Use it.
2339
2340         yesno-tests: convert to init.sh
2341         * modules/yesno-tests (Files): Add init.sh.
2342         * tests/test-yesno.sh: Use it.
2343
2344         atexit-tests: ensure reliable exit status
2345         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2346         Reported by Bruno Haible.
2347
2348 2011-05-24  Bruno Haible  <bruno@clisp.org>
2349
2350         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2351         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2352         gl_PREREQ_STRERROR_R invocations from here...
2353         * modules/strerror_r-posix (configure.ac): ... to here.
2354
2355 2011-05-24  Eric Blake  <eblake@redhat.com>
2356
2357         strerror_r: fix missing header
2358         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2359
2360         strerror_r: fix AIX test failures
2361         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2362         ERANGE failure.
2363
2364         strerror_r: fix Solaris test failures
2365         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2366         failures.
2367         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2368
2369         strerror_r: enforce POSIX recommendations
2370         * lib/strerror_r.c (safe_copy): New helper method.
2371         (strerror_r): Guarantee a non-empty string.
2372         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2373         recent POSIX rulings and to match our strerror guarantees.
2374         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2375
2376 2011-05-24  Jim Meyering  <meyering@redhat.com>
2377
2378         test-perror2.c: avoid warning about unused variable
2379         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2380
2381 2011-05-24  Eric Blake  <eblake@redhat.com>
2382
2383         perror: avoid spurious test failure on HP-UX
2384         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2385
2386         tests: fix logic bug in init.sh
2387         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2388         shell.
2389
2390 2011-05-24  Jim Meyering  <meyering@redhat.com>
2391
2392         utimensat: do not reference an out-of-scope buffer
2393         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2394         declared in an inner scope, yet "times" would be dereferenced outside
2395         the scope in which "ts" was valid.
2396         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2397         of ts[2] "out/up", so that the use of aliased "times" (via
2398         "times = ts;") does not end up referencing an out-of-scope "ts"
2399
2400         opendir-safer.c: don't clobber errno; don't close negative FD
2401         * lib/opendir-safer.c (opendir_safer):
2402         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2403         file descriptor, and more importantly, don't clobber the
2404         offending errno value with EINVAL.  Before, upon failure
2405         of dup_safer, we would pass the negative file descriptor to
2406         fdopendir, which would clobber errno.
2407
2408 2011-05-23  Bruno Haible  <bruno@clisp.org>
2409
2410         idcache: Fix module description.
2411         * modules/idcache (Include): Set to "idcache.h".
2412
2413 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2414
2415         gnulib-tool: fix portability problem with MacOS sed
2416         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2417         before the "}".  Problem reported by Leo in
2418         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2419         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2420         sed_extract_condition1, sed_extract_condition2.
2421
2422 2011-05-23  Bruno Haible  <bruno@clisp.org>
2423
2424         hash: Simplify autoconf macro.
2425         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2426
2427 2011-05-23  Bruno Haible  <bruno@clisp.org>
2428
2429         getugroups: Fix module description.
2430         * modules/getugroups (Include): Set to "getugroups.h".
2431
2432 2011-05-23  Bruno Haible  <bruno@clisp.org>
2433
2434         linkat: Simplify autoconf macro.
2435         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2436
2437 2011-05-23  Bruno Haible  <bruno@clisp.org>
2438             Eric Blake  <eblake@redhat.com>
2439
2440         linkat, renameat: Update dependencies.
2441         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2442         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2443         symlinkat.
2444
2445 2011-05-23  Jim Meyering  <meyering@redhat.com>
2446
2447         maint.mk: more tight_scope improvements
2448         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2449         (_gl_TS_headers): Define only in if-0'd block.
2450         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2451         sometimes we must *not* use it.  Adjust uses accordingly.
2452         (sc_tight_scope): Use much simpler grep-based test to determine
2453         whether we skip this rule.
2454
2455         maint.mk: generalize/improve the tight-scope rule
2456         * top/maint.mk: Emit a warning when the test is skipped.
2457         (_gl_TS_dir): Add $(srcdir)/ prefix.
2458         (_gl_TS_function_match): Simplify, rather than trying
2459         to enumerate common types.  Otherwise, it would fail to match an
2460         "extern unsigned char const *" declaration in idutils.
2461         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2462         a way to support use of that type of macro.
2463         (_gl_TS_var_match): Simplify regexp.
2464         (_gl_TS_obj_files): New configurable variable.
2465         (_gl_TS_headers): Likewise.
2466
2467 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2468
2469         verify: fix bug when gnulib <assert.h> is also included
2470         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2471         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2472         Perhaps there's a better way, but this fixes the immediate problem.
2473         Problem reported by Bruno Haible in
2474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2475
2476 2011-05-22  Bruno Haible  <bruno@clisp.org>
2477
2478         xgetcwd: Simplify autoconf macro.
2479         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2480
2481 2011-05-22  Bruno Haible  <bruno@clisp.org>
2482
2483         New module 'mktime-internal'.
2484         * modules/mktime-internal: New file.
2485         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2486         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2487         mktime_internal as a C macro if libc has __mktime_internal.
2488         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2489         conditions.
2490         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2491
2492 2011-05-22  Bruno Haible  <bruno@clisp.org>
2493
2494         timegm: Correct mktime replacement statements.
2495         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2496         defining mktime as a C macro. This completes a 2009-07-28 commit.
2497
2498 2011-05-22  Bruno Haible  <bruno@clisp.org>
2499
2500         timegm: Simplify autoconf macro.
2501         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2502
2503 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2504
2505         clock-time: change to LGPLv2+.
2506         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2507         BSD-like but we have no mark for that; this is good enough for now.
2508
2509 2011-05-21  Bruno Haible  <bruno@clisp.org>
2510
2511         strerror_r: Fix comments.
2512         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2513
2514 2011-05-21  Bruno Haible  <bruno@clisp.org>
2515
2516         relocatable-prog-wrapper: Fix possible link error.
2517         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2518         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2519         (gl_FUNC_SETENV): ... to here.
2520         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2521         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2522
2523 2011-05-21  Bruno Haible  <bruno@clisp.org>
2524
2525         relocatable-prog-wrapper: Assume strerror() exists.
2526         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2527         m4/strerror.m4.
2528         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2529         * lib/relocwrapper.c: Remove mention of strerror module.
2530         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2531         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2532         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2533         C macro.
2534
2535 2011-05-21  Bruno Haible  <bruno@clisp.org>
2536
2537         select: Simplify replacement idiom.
2538         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2539         Win32 platforms.
2540         * lib/sys_select.in.h (select): Simplify accordingly.
2541         * modules/select (Depends-on): Likewise.
2542
2543 2011-05-21  Bruno Haible  <bruno@clisp.org>
2544
2545         mkdir-p: Simplify autoconf macro.
2546         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2547         gl_FUNC_LCHOWN.
2548
2549 2011-05-21  Eric Blake  <eblake@redhat.com>
2550
2551         strerror_r: avoid clobbering strerror on cygwin
2552         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2553         fall back instead to sys_errlist.
2554         * modules/strerror (configure.ac): Add witness.
2555         * tests/test-strerror_r.c (main): Enhance test.
2556         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2557         * tests/test-perror2.c (main): Free memory before exit.
2558
2559 2011-05-21  Bruno Haible  <bruno@clisp.org>
2560
2561         mkdtemp: Use gnulib naming conventions.
2562         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2563         * modules/mkdtemp (configure.ac): Update.
2564
2565 2011-05-20  Eric Blake  <eblake@redhat.com>
2566
2567         strerror_r: avoid corrupting errno on Solaris
2568         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2569         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2570
2571         strerror_r: avoid compiler warning
2572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2573
2574         strerror_r: simplify AIX code
2575         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2576
2577         test-perror: avoid spurious failure on FreeBSD
2578         * modules/perror-tests (Depends-on): Add strerror, now that
2579         strerror_r no longer pulls it in.
2580
2581 2011-05-20  Bruno Haible  <bruno@clisp.org>
2582
2583         strerror_r-posix: Remove unused dependencies.
2584         * modules/strerror_r-posix (Depends-on): Remove strerror.
2585         Reported by Eric Blake.
2586
2587 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         intprops: remove assumption about A|B representation
2590         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2591         is a valid integer if both A and B are.  Although this is true for
2592         all known practical hosts, the C standard doesn't guarantee it,
2593         and the code need not assume it.  Also, this change may work around
2594         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2596
2597 2011-05-20  Eric Blake  <eblake@redhat.com>
2598
2599         perror: work around FreeBSD bug
2600         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2601         is broken.  Move AC_LIBOBJ...
2602         * modules/perror (configure.ac): Here.
2603         * doc/posix-functions/perror.texi (perror): Document this.
2604         * tests/test-perror2.c (main): Enhance test.
2605
2606         test-perror: check for strerror interactions
2607         * tests/macros.h (STREQ): Add macro.
2608         * modules/perror-tests (Files): Add second test.
2609         * tests/test-perror2.c (main): New file.
2610         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2611
2612         test-perror: rewrite to use init script
2613         * modules/perror-tests (Files): Add init.sh.
2614         * tests/test-perror.sh: Use temporary directory.
2615
2616 2011-05-20  Jim Meyering  <meyering@redhat.com>
2617
2618         maint: replace misused "a" with "an"
2619         * doc/intprops.texi: "a integer"
2620         * doc/regex.texi: "a explanation"
2621         * lib/alignof.h: "a object"
2622         * lib/argmatch.h: "a explanation"
2623         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2624         * lib/stdint.in.h: "a integer"
2625         * lib/userspec.c: "a owner"
2626         * doc/gnulib.texi: Fix "a idea", and reword.
2627
2628 2011-05-19  Jim Meyering  <meyering@redhat.com>
2629
2630         maint: correct misuse of "a" and "an"
2631         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2632         * lib/argp-help.c: "an docum...": s/an/a/
2633         * lib/argp-parse.c: "An vector": s/An/A/
2634         * lib/execute.c: "an native": s/an/a/
2635         * lib/spawn-pipe.c: Likewise.
2636         * lib/gc.h: "an Gc_rc": s/an/a/
2637         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2638         * lib/fts.c: "an stat.st_dev": s/an/a/
2639
2640 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2641
2642         intprops-tests: work around HP-UX 11.23 cc bug with constants
2643         * tests/test-intprops.c (VERIFY): New macro.
2644         (main): Use it, instead of verify, to work around the compiler bug; see
2645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2646
2647         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2648         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2649         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2650         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2651         (_GL_REMAINDER_OVERFLOW): Use it.
2652
2653         intprops-tests: revert unsigned part of previous change
2654         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2655         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2656         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2658
2659 2011-05-19  Bruno Haible  <bruno@clisp.org>
2660
2661         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2662         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2663         strerror_r() returned without filling the buffer.
2664         Reported by Eric Blake.
2665
2666 2011-05-19  Eric Blake  <eblake@redhat.com>
2667
2668         strerror_r: guarantee unchanged errno
2669         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2670         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2671         failure.
2672         * tests/test-strerror_r.c (main): Enhance test.
2673
2674 2011-05-19  Bruno Haible  <bruno@clisp.org>
2675
2676         strerror_r: Reorder #if blocks.
2677         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2678         for consistency with the previous commit.
2679
2680 2011-05-19  Bruno Haible  <bruno@clisp.org>
2681
2682         perror: Avoid clobbering the strerror buffer when possible.
2683         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2684         * lib/strerror.c: Include it.
2685         * modules/strerror (Files): Add lib/strerror-impl.h.
2686         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2687         (my_strerror): New function, defined through lib/strerror-impl.h.
2688         (perror): Use it instead of strerror.
2689         * modules/perror (Files): Add lib/strerror-impl.h.
2690         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2691
2692 2011-05-19  Eric Blake  <eblake@redhat.com>
2693
2694         strerror_r: fix on newer cygwin
2695         * lib/strerror_r.c (strerror_r): Cygwin now has
2696         __xpg_strerror_r, use it.
2697
2698 2011-05-19  Bruno Haible  <bruno@clisp.org>
2699
2700         strerror_r: Avoid clobbering the strerror buffer when possible.
2701         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2702         (sys_nerr, sys_errlist): New declarations.
2703         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2704         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2705         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2706
2707 2011-05-19  Bruno Haible  <bruno@clisp.org>
2708
2709         strerror_r: Fix test failure on mingw.
2710         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2711         EXTEND_STRERROR_R.
2712         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2713         macros from errno.in.h instead.
2714
2715 2011-05-19  Eric Blake  <eblake@redhat.com>
2716
2717         strerror: relax test for Solaris
2718         * tests/test-strerror.c (main): Permit Solaris behavior.
2719         * tests/test-strerror_r.c (main): Likewise.
2720
2721         strerror: enforce POSIX ruling on strerror(0)
2722         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2724         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2725         * doc/posix-functions/strerror.texi (strerror): Document it.
2726         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2727         * tests/test-strerror.c (main): Strengthen test.
2728         * tests/test-strerror_r.c (main): Likewise.
2729
2730 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2731
2732         intprop-tests: port to older and more-pedantic compilers
2733         * modules/intprops-tests (Files): Add tests/macros.h.
2734         * tests/test-intprops.c: Include macros.h.
2735         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2736         it's no longer documented to expand to an integer constant expression.
2737         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2738         argument is floating point, as it's no longer documented to expand
2739         to an integer constant expression in that case.
2740         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2741         compiler bugs reported by Bruno Haible.  See
2742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2743         (U0, U1): New constants, to work around the same bugs.  Also,
2744         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2745
2746         intprops: work around C compiler bugs
2747         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2748         bug in Sun C 5.11 2010/08/13 and other compilers; see
2749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2750
2751         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2752         * doc/intprops.texi (Integer Type Determination): Fix
2753         documentation for TYPE_IS_INTEGER: it returns an constant
2754         expression, not an integer constant expression.  Fix doc for
2755         TYPE_SIGNED: it returns an integer constant expression only if its
2756         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2757         hardly worth documented that way....)
2758
2759 2011-05-18  Bruno Haible  <bruno@clisp.org>
2760
2761         strerror_r: Avoid clobbering the strerror buffer when possible.
2762         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2763         Handle gnulib defined errno values here. When strerror() returns NULL
2764         or an empty string, return EINVAL.
2765         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2766         gnulib defined errno values here.
2767         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2768
2769 2011-05-18  Eric Blake  <eblake@redhat.com>
2770
2771         fnmatch: avoid compiler warning
2772         * lib/fnmatch_loop.c (FCT): Use correct type.
2773         Reported by Matthias Bolte.
2774
2775 2011-05-13  Jim Meyering  <meyering@redhat.com>
2776
2777         maint.mk: three new prohibit_<HDR>_without_use rules
2778         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2779         (sc_prohibit_stdio-safer_without_use): Likewise.
2780         (sc_prohibit_xfreopen_without_use): Likewise.
2781
2782 2011-05-17  Jim Meyering  <meyering@redhat.com>
2783
2784         announce-gen: fail if the NEWS delta is empty
2785         If there's nothing noteworthy in NEWS, then either you forgot
2786         or you shouldn't be releasing.
2787         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2788
2789 2011-05-17  Pádraig Brady <P@draigBrady.com>
2790
2791         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2792         reserved symbols starting with double underscore from the check.
2793
2794 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2795
2796         intprops: add doc
2797         * doc/intprops.texi: New file, documenting intprops.
2798         * doc/gnulib.texi (Particular Modules): Include it.
2799
2800         verify: add doc to gnulib manual and fix example
2801         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2802         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2803         (Compile-time Assertions): Fix example so it can't overflow.
2804
2805 2011-05-17  Jim Meyering  <meyering@redhat.com>
2806
2807         warnings.m4: don't usurp save_CPPFLAGS variable name
2808         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2809
2810         doc: fix typo
2811         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2812
2813 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2814             Bruno Haible  <bruno@clisp.org>
2815
2816         doc: Tweak recent change.
2817         * README (Portability guidelines): Tweak new text.
2818         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2819         Interix 6.1.
2820
2821 2011-05-16  Eric Blake  <eblake@redhat.com>
2822
2823         inttypes: avoid autoconf warning
2824         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2825         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2826
2827 2011-05-16  Sam Steingold <sds@gnu.org>
2828         and Eric Blake  <eblake@redhat.com>
2829
2830         vc-list-files: accept multiple directory operands
2831         * build-aux/vc-list-files: Iterate over all remaining operands.
2832
2833 2011-05-16  Bruno Haible  <bruno@clisp.org>
2834
2835         Fix confusion regarding deprecated modules.
2836         * modules/calloc (Status, Notice): Mark module as deprecated, not
2837         obsolete.
2838         * modules/fnmatch-posix (Status, Notice): Likewise.
2839         * modules/getdate (Status, Notice): Likewise.
2840         * modules/getopt (Status, Notice): Likewise.
2841         * modules/malloc (Status, Notice): Likewise.
2842         * modules/pipe (Status, Notice): Likewise.
2843         * modules/realloc (Status, Notice): Likewise.
2844         * modules/rename-dest-slash (Status, Notice): Likewise.
2845         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2846         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2847         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2848         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2849         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2850
2851 2011-05-16  Bruno Haible  <bruno@clisp.org>
2852
2853         doc: List the target platforms.
2854         * doc/gnulib-intro.texi (Target Platforms): New section.
2855         * doc/gnulib.texi (Introduction): Update menu.
2856         * README (Portability guidelines): Refer to the new section. Update
2857         statement about oldest supported environment. Remove rationale why
2858         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2859         unportable C89 function.
2860         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2861         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2862
2863 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2864
2865         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2866
2867 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2868
2869         intprops-tests: new module
2870         * modules/intprops-tests, tests/test-intprops.c: New files.
2871
2872         intprops: add safe, portable integer overflow checking
2873         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2874         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2875         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2876         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2877         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2878         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2879         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2880         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2881         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2882         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2883         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2884
2885 2011-05-12  James Youngman  <jay@gnu.org>
2886
2887         Add a test for glibc's Bugzilla bug #12378.
2888         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2889         doesn't allow the literal matching of a lone "[" (which is
2890         required by POSIX).
2891         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2892
2893 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2894
2895         Sync glibc change fixing Bugzilla bug #12378.
2896         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2897         beginning and fall back to matching as normal character if the
2898         string ends before the matching ']' is found.  This is what POSIX
2899         requires.
2900
2901 2011-05-13  Eric Blake  <eblake@redhat.com>
2902
2903         getcwd-lgpl: relax test for FreeBSD
2904         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2905         issue.
2906         * tests/test-getcwd-lgpl.c (main): Relax test.
2907         Reported by Matthias Bolte.
2908
2909 2011-05-11  Eric Blake  <eblake@redhat.com>
2910
2911         test-fflush: silence compiler warning
2912         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2913
2914 2011-05-11  Bruno Haible  <bruno@clisp.org>
2915
2916         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2917         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2918         * modules/canonicalize (Depends-on): Add 'nocrash'.
2919         * modules/canonicalize-lgpl (Depends-on): Likewise.
2920         * doc/posix-functions/realpath.texi: Update platforms list.
2921         Reported by Ryan Schmidt <ryandesign@macports.org>.
2922
2923 2011-05-11  Bruno Haible  <bruno@clisp.org>
2924
2925         group-member: Declare function in <unistd.h>.
2926         * lib/unistd.in.h (group_member): New declaration.
2927         * lib/group-member.h: Remove file.
2928         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2929         * tests/test-unistd-c++.cc: Check signature of group_member.
2930         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2931         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2932         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2933         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2934         HAVE_GROUP_MEMBER.
2935         * modules/group-member (Files): Remove lib/group-member.h.
2936         (Depends-on): Add unistd. Specify conditions.
2937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2938         (Include): Change to <unistd.h>.
2939         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2940         HAVE_GROUP_MEMBER.
2941         * NEWS: Mention the change.
2942         * lib/euidaccess.c: Don't include group-member.h.
2943
2944 2011-05-11  Bruno Haible  <bruno@clisp.org>
2945
2946         group-member: Document module.
2947         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2948         module.
2949
2950 2011-05-11  Bruno Haible  <bruno@clisp.org>
2951
2952         fclose: Fix mistake earlier today.
2953         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2954
2955 2011-05-11  Eric Blake  <eblake@redhat.com>
2956
2957         fclose: preserve fflush errors
2958         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2959         Reported by Jim Meyering.
2960
2961         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2962         * build-aux/bootstrap (check_versions): When no specific version
2963         is required, merely check that the app produces an exit status
2964         that indicates its existence.
2965
2966         maint.mk: drop redundant check
2967         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2968         the same but better.
2969
2970 2011-05-11  Bruno Haible  <bruno@clisp.org>
2971
2972         fclose: Fix possible link error.
2973         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2974         unregister_shadow_fd. Improve comments.
2975         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2976         Eric Blake.
2977
2978 2011-05-11  Jim Meyering  <meyering@redhat.com>
2979
2980         maint.mk: improve "can not" detection and generalize rule name
2981         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2982         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2983         Use the same technique as in sc_prohibit_doubled_word, so that
2984         we recognize "can not" also when the words are separated by a newline.
2985         Suggested by Eric Blake.
2986         (perl_filename_lineno_text_): Define.  Factored out of...
2987         (prohibit_doubled_word_): ...here.  Use the new definition.
2988         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2989         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2990         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2991
2992 2011-05-10  Eric Blake  <eblake@redhat.com>
2993
2994         fclose: avoid double close race when possible
2995         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2996         all but WINDOWS_SOCKETS.
2997
2998 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2999
3000         openat: correct new comment
3001         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3002
3003 2011-05-10  Jim Meyering  <meyering@redhat.com>
3004
3005         openat: add comments
3006         * lib/openat-proc.c (openat_proc_name): Add comments,
3007         mostly from Eric Blake.
3008
3009 2011-05-09  Eric Blake  <eblake@redhat.com>
3010
3011         openat: reduce syscalls in first probe of /proc
3012         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3013         be a directory.  Simplify the probe for .. bugs.
3014         * modules/openat (Depends-on): Drop same-inode.
3015         Reported by Bastien ROUCARIES.
3016
3017 2011-05-09  Jim Meyering  <meyering@redhat.com>
3018
3019         maint.mk: change semantics/name of tight_scope variables
3020         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3021         Rename variables to align with semantics that make them more useful.
3022
3023         maint.mk: tweak new rule's name not to impinge
3024         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3025         (sc_tight_scope): Use new rule name rather than $@-0.
3026
3027         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3028         * top/maint.mk (sc_tight_scope): New rule.
3029         (sc_tight_scope-0): New rule, ifdef'd out.
3030         (_gl_TS_dir): Default.
3031         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3032         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3033
3034 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3035
3036         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3037         Haible <bruno@clisp.org>.
3038
3039 2011-05-08  Bruno Haible  <bruno@clisp.org>
3040
3041         Comments.
3042         * m4/isnanf.m4: Add comment.
3043         * m4/isnanl.m4: Likewise.
3044
3045 2011-05-08  Bruno Haible  <bruno@clisp.org>
3046
3047         glob: Remove obsolete macro.
3048         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3049
3050 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3051
3052         intprops: Sun C 5.11 supports __typeof__
3053         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3054         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3055         which is new.
3056         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3057
3058         intprops: switch to usual gnulib indenting and naming
3059         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3060         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3061
3062         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3063
3064 2011-05-08  Jim Meyering  <meyering@redhat.com>
3065
3066         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3067         * top/maint.mk (release-prep): Use make's --no-print-directory
3068         option when generating the announcement.  This eliminates the
3069         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3070         generated announcement template.
3071
3072 2011-05-08  Bruno Haible  <bruno@clisp.org>
3073
3074         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3075         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3076         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3077
3078 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3079
3080         ignore-value, verify: Omit include files from lib_SOURCES.
3081         * modules/ignore-value, modules/verify (Makefile.am):
3082         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3083         that leads Automake to duplicate use of am__objects_... variables
3084         in Makefile.in.  See
3085         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3086
3087 2011-05-07  Bruno Haible  <bruno@clisp.org>
3088
3089         fclose: Simplify autoconf macro.
3090         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3091         defined.
3092
3093 2011-05-07  Bruno Haible  <bruno@clisp.org>
3094
3095         canonicalize-lgpl: Fix autoconf macro ordering bug.
3096         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3097         gl_STDLIB_H_DEFAULTS.
3098
3099 2011-05-06  Eric Blake  <eblake@redhat.com>
3100
3101         maintainer-makefile: make sc_po_check easier to tune
3102         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3103         to probe for strings, such as an alternate location for gnulib.
3104
3105         fclose: guarantee behavior on seekable stdin
3106         * modules/fclose (Depends-on): Add fflush.
3107         * doc/posix-functions/fclose.texi (fclose): Document this.
3108         * tests/test-fclose.c (main): Make test for this unconditional.
3109
3110 2011-05-06  Bruno Haible  <bruno@clisp.org>
3111
3112         fflush, fpurge: Relicense under LGPLv2+.
3113         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3114         * modules/fpurge (License): Likewise.
3115         With permission from Eric Blake and Jim Meyering.
3116         Suggested by Eric Blake.
3117
3118 2011-05-06  Karl Berry  <karl@gnu.org>
3119
3120         * MODULES.html.sh (func_all_modules): remove exit.
3121
3122 2011-05-06  Jim Meyering  <meyering@redhat.com>
3123
3124         maint.mk: use info-gnu@ as the default only for a stable release
3125         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3126         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3127         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3129
3130 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         assert-h: new module, which supports C1X-style static_assert
3133         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3134         * lib/verify.h: Revamp so that this can be copied into assert.h,
3135         while retaining the ability to use it standalone as before.
3136         Rename private identifiers so as not to encroach on the
3137         standard C namespace, since this is now used by assert.h.
3138         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3139         the old verify_true.
3140         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3141         the old verify_true.  Use _GL_VERIFY_TYPE.
3142         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3143         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3144         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3145         defined when this file is copied into the replacement assert.h.
3146         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3147         and _Static_assert is not built in.
3148         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3149         defined, and use the new macros mentioned above.
3150         * doc/posix-headers/assert.texi: Document this.
3151
3152 2011-05-05  Bruno Haible  <bruno@clisp.org>
3153
3154         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3155         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3156         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3157         gl_REPLACE_FCLOSE here.
3158         * modules/fflush (Depends-on): Remove fclose.
3159         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3160         combination with module 'fclose'.
3161
3162 2011-05-05  Bruno Haible  <bruno@clisp.org>
3163
3164         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3165         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3166         gl_FUNC_FFLUSH.
3167         (gl_FUNC_FFLUSH): Use it.
3168         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3169         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3170         gl_REPLACE_FSEEKO here.
3171
3172 2011-05-05  Bruno Haible  <bruno@clisp.org>
3173
3174         tzset: Relicense under LGPL.
3175         * modules/tzset (License): Change to LGPL.
3176         No agreement needed; it's a no-op.
3177
3178         strtoimax, strtoumax: Relicense under LGPL.
3179         * modules/strtoimax (License): Change to LGPL.
3180         * modules/strtoumax (License): Likewise.
3181         With permission from Jim Meyering, Paul Eggert:
3182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3184
3185         getgroups: Relicense under LGPL.
3186         * modules/getgroups (License): Change to LGPL.
3187         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3191
3192         nanosleep: Relicense under LGPL.
3193         * modules/nanosleep (License): Change to LGPL.
3194         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3195         Haible:
3196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3200
3201         futimens: Relicense under LGPL.
3202         * modules/futimens (License): Change to LGPL.
3203         With permission from Eric Blake:
3204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3205
3206         fflush: Relicense under LGPL.
3207         * modules/fflush (License): Change to LGPL.
3208         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3212
3213         tmpfile: Relicense under LGPL.
3214         * modules/tmpfile (License): Change to LGPL.
3215         With permission from Ben Pfaff:
3216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3217
3218         isfinite: Relicense under LGPL.
3219         * modules/isfinite (License): Change to LGPL.
3220         With permission from Ben Pfaff, Bruno Haible:
3221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3223
3224         acosl..tanl: Relicense under LGPL.
3225         * modules/acosl (License): Change to LGPL.
3226         * modules/asinl (License): Likewise.
3227         * modules/atanl (License): Likewise.
3228         * modules/cosl (License): Likewise.
3229         * modules/expl (License): Likewise.
3230         * modules/logl (License): Likewise.
3231         * modules/sinl (License): Likewise.
3232         * modules/sqrtl (License): Likewise.
3233         * modules/tanl (License): Likewise.
3234         Source code originally from glibc and Paolo Bonzini. Agreements:
3235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3237
3238 2011-05-05  Bruno Haible  <bruno@clisp.org>
3239
3240         signal: Define sighandler_t.
3241         * lib/signal.in.h (sighandler_t): New type.
3242         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3243         whether sighandler_t is defined.
3244         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3245         * modules/signal (Depends-on): Add extensions.
3246         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3247         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3248         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3249
3250 2011-05-05  Eric Blake  <eblake@redhat.com>
3251
3252         maint: remove useless REPLACE_*_H macros
3253         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3254         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3255         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3256         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3257         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3258         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3259         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3260         * m4/btowc.m4: Update callers.
3261         * m4/dirfd.m4: Likewise.
3262         * m4/duplocale.m4: Likewise.
3263         * m4/fchdir.m4: Likewise.
3264         * m4/fdopendir.m4: Likewise.
3265         * m4/inet_ntop.m4: Likewise.
3266         * m4/inet_pton.m4: Likewise.
3267         * m4/ioctl.m4: Likewise.
3268         * m4/mbrlen.m4: Likewise.
3269         * m4/mbrtowc.m4: Likewise.
3270         * m4/mbsinit.m4: Likewise.
3271         * m4/mbsnrtowcs.m4: Likewise.
3272         * m4/mbsrtowcs.m4: Likewise.
3273         * m4/poll.m4: Likewise.
3274         * m4/setlocale.m4: Likewise.
3275         * m4/wcrtomb.m4: Likewise.
3276         * m4/wcsnrtombs.m4: Likewise.
3277         * m4/wcsrtombs.m4: Likewise.
3278         * m4/wctob.m4: Likewise.
3279         * m4/wcwidth.m4: Likewise.
3280         * modules/posix_spawn: Likewise.
3281         * modules/posix_spawn_file_actions_addclose: Likewise.
3282         * modules/posix_spawn_file_actions_adddup2: Likewise.
3283         * modules/posix_spawn_file_actions_addopen: Likewise.
3284         * modules/posix_spawn_file_actions_destroy: Likewise.
3285         * modules/posix_spawn_file_actions_init: Likewise.
3286         * modules/posix_spawnattr_destroy: Likewise.
3287         * modules/posix_spawnattr_getflags: Likewise.
3288         * modules/posix_spawnattr_getpgroup: Likewise.
3289         * modules/posix_spawnattr_getschedparam: Likewise.
3290         * modules/posix_spawnattr_getschedpolicy: Likewise.
3291         * modules/posix_spawnattr_getsigdefault: Likewise.
3292         * modules/posix_spawnattr_getsigmask: Likewise.
3293         * modules/posix_spawnattr_init: Likewise.
3294         * modules/posix_spawnattr_setflags: Likewise.
3295         * modules/posix_spawnattr_setpgroup: Likewise.
3296         * modules/posix_spawnattr_setschedparam: Likewise.
3297         * modules/posix_spawnattr_setschedpolicy: Likewise.
3298         * modules/posix_spawnattr_setsigdefault: Likewise.
3299         * modules/posix_spawnattr_setsigmask: Likewise.
3300         * modules/posix_spawnp: Likewise.
3301
3302 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3303
3304         Add option to do-release-commit-and-tag to specify branch.
3305         * build-aux/do-release-commit-and-tag: Add --branch.
3306
3307 2011-05-03  Bruno Haible  <bruno@clisp.org>
3308
3309         Avoid unnecessary compilation units, through conditional dependencies.
3310         * modules/accept (Depends-on): Add conditions to the dependencies.
3311         * modules/acosl (Depends-on): Likewise.
3312         * modules/argz (Depends-on): Likewise.
3313         * modules/asinl (Depends-on): Likewise.
3314         * modules/atanl (Depends-on): Likewise.
3315         * modules/atoll (Depends-on): Likewise.
3316         * modules/bind (Depends-on): Likewise.
3317         * modules/btowc (Depends-on): Likewise.
3318         * modules/canonicalize-lgpl (Depends-on): Likewise.
3319         * modules/ceil (Depends-on): Likewise.
3320         * modules/ceilf (Depends-on): Likewise.
3321         * modules/ceill (Depends-on): Likewise.
3322         * modules/chdir-long (Depends-on): Likewise.
3323         * modules/chown (Depends-on): Likewise.
3324         * modules/close (Depends-on): Likewise.
3325         * modules/connect (Depends-on): Likewise.
3326         * modules/cosl (Depends-on): Likewise.
3327         * modules/dirfd (Depends-on): Likewise.
3328         * modules/dprintf (Depends-on): Likewise.
3329         * modules/dprintf-posix (Depends-on): Likewise.
3330         * modules/error (Depends-on): Likewise.
3331         * modules/euidaccess (Depends-on): Likewise.
3332         * modules/expl (Depends-on): Likewise.
3333         * modules/faccessat (Depends-on): Likewise.
3334         * modules/fchdir (Depends-on): Likewise.
3335         * modules/fclose (Depends-on): Likewise.
3336         * modules/fcntl (Depends-on): Likewise.
3337         * modules/fdopendir (Depends-on): Likewise.
3338         * modules/fflush (Depends-on): Likewise.
3339         * modules/floor (Depends-on): Likewise.
3340         * modules/floorf (Depends-on): Likewise.
3341         * modules/floorl (Depends-on): Likewise.
3342         * modules/fnmatch (Depends-on): Likewise.
3343         * modules/fopen (Depends-on): Likewise.
3344         * modules/fprintf-posix (Depends-on): Likewise.
3345         * modules/frexp (Depends-on): Likewise.
3346         * modules/frexp-nolibm (Depends-on): Likewise.
3347         * modules/frexpl (Depends-on): Likewise.
3348         * modules/frexpl-nolibm (Depends-on): Likewise.
3349         * modules/fseek (Depends-on): Likewise.
3350         * modules/fsusage (Depends-on): Likewise.
3351         * modules/ftell (Depends-on): Likewise.
3352         * modules/ftello (Depends-on): Likewise.
3353         * modules/futimens (Depends-on): Likewise.
3354         * modules/getcwd (Depends-on): Likewise.
3355         * modules/getcwd-lgpl (Depends-on): Likewise.
3356         * modules/getdelim (Depends-on): Likewise.
3357         * modules/getdomainname (Depends-on): Likewise.
3358         * modules/getgroups (Depends-on): Likewise.
3359         * modules/gethostname (Depends-on): Likewise.
3360         * modules/getline (Depends-on): Likewise.
3361         * modules/getlogin_r (Depends-on): Likewise.
3362         * modules/getopt-posix (Depends-on): Likewise.
3363         * modules/getpeername (Depends-on): Likewise.
3364         * modules/getsockname (Depends-on): Likewise.
3365         * modules/getsockopt (Depends-on): Likewise.
3366         * modules/getsubopt (Depends-on): Likewise.
3367         * modules/getusershell (Depends-on): Likewise.
3368         * modules/glob (Depends-on): Likewise.
3369         * modules/grantpt (Depends-on): Likewise.
3370         * modules/iconv_open (Depends-on): Likewise.
3371         * modules/iconv_open-utf (Depends-on): Likewise.
3372         * modules/inet_ntop (Depends-on): Likewise.
3373         * modules/inet_pton (Depends-on): Likewise.
3374         * modules/ioctl (Depends-on): Likewise.
3375         * modules/isapipe (Depends-on): Likewise.
3376         * modules/isfinite (Depends-on): Likewise.
3377         * modules/isinf (Depends-on): Likewise.
3378         * modules/lchown (Depends-on): Likewise.
3379         * modules/ldexpl (Depends-on): Likewise.
3380         * modules/link (Depends-on): Likewise.
3381         * modules/linkat (Depends-on): Likewise.
3382         * modules/listen (Depends-on): Likewise.
3383         * modules/logl (Depends-on): Likewise.
3384         * modules/lstat (Depends-on): Likewise.
3385         * modules/mbrlen (Depends-on): Likewise.
3386         * modules/mbrtowc (Depends-on): Likewise.
3387         * modules/mbsinit (Depends-on): Likewise.
3388         * modules/mbsnrtowcs (Depends-on): Likewise.
3389         * modules/mbsrtowcs (Depends-on): Likewise.
3390         * modules/mbtowc (Depends-on): Likewise.
3391         * modules/memcmp (Depends-on): Likewise.
3392         * modules/mkdir (Depends-on): Likewise.
3393         * modules/mkdtemp (Depends-on): Likewise.
3394         * modules/mkfifo (Depends-on): Likewise.
3395         * modules/mkfifoat (Depends-on): Likewise.
3396         * modules/mknod (Depends-on): Likewise.
3397         * modules/mkostemp (Depends-on): Likewise.
3398         * modules/mkostemps (Depends-on): Likewise.
3399         * modules/mkstemp (Depends-on): Likewise.
3400         * modules/mkstemps (Depends-on): Likewise.
3401         * modules/mktime (Depends-on): Likewise.
3402         * modules/nanosleep (Depends-on): Likewise.
3403         * modules/open (Depends-on): Likewise.
3404         * modules/openat (Depends-on): Likewise.
3405         * modules/perror (Depends-on): Likewise.
3406         * modules/poll (Depends-on): Likewise.
3407         * modules/popen (Depends-on): Likewise.
3408         * modules/posix_spawn (Depends-on): Likewise.
3409         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3410         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3411         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3412         * modules/posix_spawnp (Depends-on): Likewise.
3413         * modules/pread (Depends-on): Likewise.
3414         * modules/printf-posix (Depends-on): Likewise.
3415         * modules/ptsname (Depends-on): Likewise.
3416         * modules/putenv (Depends-on): Likewise.
3417         * modules/pwrite (Depends-on): Likewise.
3418         * modules/readline (Depends-on): Likewise.
3419         * modules/readlink (Depends-on): Likewise.
3420         * modules/readlinkat (Depends-on): Likewise.
3421         * modules/recv (Depends-on): Likewise.
3422         * modules/recvfrom (Depends-on): Likewise.
3423         * modules/regex (Depends-on): Likewise.
3424         * modules/remove (Depends-on): Likewise.
3425         * modules/rename (Depends-on): Likewise.
3426         * modules/renameat (Depends-on): Likewise.
3427         * modules/rmdir (Depends-on): Likewise.
3428         * modules/round (Depends-on): Likewise.
3429         * modules/roundf (Depends-on): Likewise.
3430         * modules/roundl (Depends-on): Likewise.
3431         * modules/rpmatch (Depends-on): Likewise.
3432         * modules/select (Depends-on): Likewise.
3433         * modules/send (Depends-on): Likewise.
3434         * modules/sendto (Depends-on): Likewise.
3435         * modules/setenv (Depends-on): Likewise.
3436         * modules/setlocale (Depends-on): Likewise.
3437         * modules/setsockopt (Depends-on): Likewise.
3438         * modules/shutdown (Depends-on): Likewise.
3439         * modules/sigaction (Depends-on): Likewise.
3440         * modules/signbit (Depends-on): Likewise.
3441         * modules/sigprocmask (Depends-on): Likewise.
3442         * modules/sinl (Depends-on): Likewise.
3443         * modules/sleep (Depends-on): Likewise.
3444         * modules/snprintf (Depends-on): Likewise.
3445         * modules/snprintf-posix (Depends-on): Likewise.
3446         * modules/socket (Depends-on): Likewise.
3447         * modules/sprintf-posix (Depends-on): Likewise.
3448         * modules/sqrtl (Depends-on): Likewise.
3449         * modules/stat (Depends-on): Likewise.
3450         * modules/strchrnul (Depends-on): Likewise.
3451         * modules/strdup-posix (Depends-on): Likewise.
3452         * modules/strerror (Depends-on): Likewise.
3453         * modules/strerror_r-posix (Depends-on): Likewise.
3454         * modules/strndup (Depends-on): Likewise.
3455         * modules/strnlen (Depends-on): Likewise.
3456         * modules/strptime (Depends-on): Likewise.
3457         * modules/strsep (Depends-on): Likewise.
3458         * modules/strsignal (Depends-on): Likewise.
3459         * modules/strstr-simple (Depends-on): Likewise.
3460         * modules/strtod (Depends-on): Likewise.
3461         * modules/strtoimax (Depends-on): Likewise.
3462         * modules/strtok_r (Depends-on): Likewise.
3463         * modules/strtoumax (Depends-on): Likewise.
3464         * modules/symlink (Depends-on): Likewise.
3465         * modules/symlinkat (Depends-on): Likewise.
3466         * modules/tanl (Depends-on): Likewise.
3467         * modules/tcgetsid (Depends-on): Likewise.
3468         * modules/tmpfile (Depends-on): Likewise.
3469         * modules/trunc (Depends-on): Likewise.
3470         * modules/truncf (Depends-on): Likewise.
3471         * modules/truncl (Depends-on): Likewise.
3472         * modules/uname (Depends-on): Likewise.
3473         * modules/unlink (Depends-on): Likewise.
3474         * modules/unlockpt (Depends-on): Likewise.
3475         * modules/unsetenv (Depends-on): Likewise.
3476         * modules/usleep (Depends-on): Likewise.
3477         * modules/utimensat (Depends-on): Likewise.
3478         * modules/vasprintf (Depends-on): Likewise.
3479         * modules/vdprintf (Depends-on): Likewise.
3480         * modules/vdprintf-posix (Depends-on): Likewise.
3481         * modules/vfprintf-posix (Depends-on): Likewise.
3482         * modules/vprintf-posix (Depends-on): Likewise.
3483         * modules/vsnprintf (Depends-on): Likewise.
3484         * modules/vsnprintf-posix (Depends-on): Likewise.
3485         * modules/vsprintf-posix (Depends-on): Likewise.
3486         * modules/wcrtomb (Depends-on): Likewise.
3487         * modules/wcscasecmp (Depends-on): Likewise.
3488         * modules/wcscspn (Depends-on): Likewise.
3489         * modules/wcsdup (Depends-on): Likewise.
3490         * modules/wcsncasecmp (Depends-on): Likewise.
3491         * modules/wcsnrtombs (Depends-on): Likewise.
3492         * modules/wcspbrk (Depends-on): Likewise.
3493         * modules/wcsrtombs (Depends-on): Likewise.
3494         * modules/wcsspn (Depends-on): Likewise.
3495         * modules/wcsstr (Depends-on): Likewise.
3496         * modules/wcstok (Depends-on): Likewise.
3497         * modules/wcswidth (Depends-on): Likewise.
3498         * modules/wctob (Depends-on): Likewise.
3499         * modules/wctomb (Depends-on): Likewise.
3500         * modules/wctype (Depends-on): Likewise.
3501         * modules/wcwidth (Depends-on): Likewise.
3502         * modules/write (Depends-on): Likewise.
3503
3504 2011-05-03  Bruno Haible  <bruno@clisp.org>
3505
3506         Support for conditional dependencies.
3507         * doc/gnulib.texi (Module description): Document the syntax of
3508         conditional dependencies.
3509         * gnulib-tool: New option --conditional-dependencies.
3510         (func_usage): Document it.
3511         (cond_dependencies): New variable.
3512         (func_get_automake_snippet_conditional,
3513         func_get_automake_snippet_unconditional): New functions, extracted from
3514         func_get_automake_snippet.
3515         (func_get_automake_snippet): Use them.
3516         (sed_first_32_chars): New variable.
3517         (func_module_shellfunc_name): New function.
3518         (func_module_shellvar_name): New function.
3519         (func_module_conditional_name): New function.
3520         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3521         func_cond_module_condition): New functions.
3522         (func_modules_transitive_closure): Add support for conditional
3523         dependencies.
3524         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3525         conditional automake snippet in an automake conditional.
3526         (func_emit_autoconf_snippets): Emit shell functions that contain the
3527         code for conditional modules.
3528         (func_import, func_create_testdir): Update specification.
3529
3530 2011-05-03  Eric Blake  <eblake@redhat.com>
3531
3532         test-getaddrinfo: report error information
3533         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3534
3535 2011-05-03  Jim Meyering  <meyering@redhat.com>
3536
3537         bootstrap: avoid build failure when $GZIP is set
3538         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3539         program name.  If defined at all, it is supposed to list gzip options.
3540         Reported by Alan Curry in http://debbugs.gnu.org/8609
3541
3542 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3543
3544         readme-release: new module with release instructions
3545         * modules/readme-release: New module.
3546         * top/README-release: New file, from coreutils, grep, diffutils.
3547         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3548
3549 2011-05-02  Eric Blake  <eblake@redhat.com>
3550
3551         fflush: also replace fclose when fixing fflush
3552         * modules/fflush (Depends-on): Add fclose.
3553         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3554         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3555         memstreams with no backing fd.
3556         * doc/posix-functions/fclose.texi (fclose): Document the use of
3557         fflush module to fix the bug.
3558         * tests/test-fclose.c (main): Relax test when fclose is used in
3559         isolation.
3560
3561         fclose: add some tests
3562         * modules/fclose-tests: New test module.
3563         * tests/test-fclose.c: New file.
3564         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3565
3566         fclose: reduced dependencies
3567         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3568         simpler lseek.
3569         * lib/fclose.c (rpl_fclose): Likewise.
3570         Reported by Simon Josefsson.
3571
3572         exit: drop remaining clients
3573         * modules/argmatch (Depends-on): Replace exit with stdlib.
3574         * modules/copy-file (Depends-on): Likewise.
3575         * modules/execute (Depends-on): Likewise.
3576         * modules/exitfail (Depends-on): Likewise.
3577         * modules/obstack (Depends-on): Likewise.
3578         * modules/pagealign_alloc (Depends-on): Likewise.
3579         * modules/pipe-filter-gi (Depends-on): Likewise.
3580         * modules/pipe-filter-ii (Depends-on): Likewise.
3581         * modules/savewd (Depends-on): Likewise.
3582         * modules/spawn-pipe (Depends-on): Likewise.
3583         * modules/wait-process (Depends-on): Likewise.
3584         * modules/xsetenv (Depends-on): Likewise.
3585         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3586         * modules/git-merge-changelog (Depends-on): Likewise.
3587         * modules/long-options (Depends-on): Likewise.
3588         * modules/pt_chown (Depends-on): Likewise.
3589         * modules/sysexits (Depends-on): Likewise.
3590
3591         freading: relax license from LGPLv3+ to LGPLv2+
3592         * modules/freading (License): Relax LGPL version.
3593
3594 2011-05-02  Bruno Haible  <bruno@clisp.org>
3595
3596         fchdir: Remove unused dependencies.
3597         * modules/fchdir (Depends-on): Remove include_next.
3598
3599 2011-05-02  Bruno Haible  <bruno@clisp.org>
3600
3601         gnulib-tool: Refactor.
3602         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3603         from func_emit_autoconf_snippets.
3604         (func_emit_autoconf_snippets): Use it.
3605
3606 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3607
3608         * NEWS: Document removal of 'exit'.
3609         * modules/exit: Remove file.
3610
3611 2011-05-01  Bruno Haible  <bruno@clisp.org>
3612
3613         Update DEPENDENCIES.
3614         * DEPENDENCIES (gettext): Recommend the newest release.
3615         Reported by Simon Josefsson.
3616
3617 2011-05-01  Bruno Haible  <bruno@clisp.org>
3618
3619         gnulib-tool: Reduce code duplication.
3620         * gnulib-tool (func_emit_autoconf_snippets): New function.
3621         (func_import, func_create_testdir): Use it.
3622
3623 2011-04-30  Eric Blake  <eblake@redhat.com>
3624
3625         fclose: don't fail on non-seekable input stream
3626         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3627         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3628         since fflush is allowed to fail in that case.
3629
3630 2011-04-30  Bruno Haible  <bruno@clisp.org>
3631
3632         dup3: cleanup
3633         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3634
3635 2011-04-30  Bruno Haible  <bruno@clisp.org>
3636
3637         netdb: Make it work in C++ mode.
3638         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3639         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3640         module.
3641         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3642         gl_MODULE_INDICATOR_FOR_TESTS.
3643         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3644         * modules/netdb-c++-tests: New file.
3645         * tests/test-netdb-c++.cc: New file.
3646
3647 2011-04-30  Bruno Haible  <bruno@clisp.org>
3648
3649         New modules 'vfscanf', 'vscanf'.
3650         * modules/vfscanf: New file.
3651         * modules/vscanf: New file.
3652         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3653         here.
3654         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3655         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3656
3657 2011-04-30  Bruno Haible  <bruno@clisp.org>
3658
3659         passfd: Add comments.
3660         * lib/passfd.c: Add comments about platforms.
3661
3662 2011-04-30  Bruno Haible  <bruno@clisp.org>
3663
3664         sys_uio: Make <sys/uio.h> self-contained.
3665         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3666         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3667
3668 2011-04-30  Bruno Haible  <bruno@clisp.org>
3669
3670         sys_socket: Ensure 'struct iovec' definition.
3671         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3672         <sys/socket.h>.
3673         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3674
3675 2011-04-30  Bruno Haible  <bruno@clisp.org>
3676
3677         sys_uio: Protect definition of 'struct iovec'.
3678         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3679         it as a C struct.
3680
3681 2011-04-30  Bruno Haible  <bruno@clisp.org>
3682
3683         manywarnings: fix indentation
3684         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3685
3686 2011-04-30  Pádraig Brady <P@draigBrady.com>
3687
3688         manywarnings: add -Wno-missing-field-initializers if needed.
3689         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3690         option if it's needed to allow initialization with { 0, }
3691
3692 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3693
3694         announce-gen: cosmetic improvement
3695         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3696
3697 2011-04-29  Jim Meyering  <meyering@redhat.com>
3698
3699         vc-list-files: indent with spaces, not TABs
3700         * build-aux/vc-list-files: Convert leading TABs to spaces,
3701         to match the style of most other files in gnulib.
3702
3703         announce-gen: indent with spaces, not TABs
3704         * build-aux/announce-gen: Convert all TABs to spaces, to match
3705         the style of most other files in gnulib.
3706
3707 2011-04-29  Eric Blake  <eblake@redhat.com>
3708
3709         quotearg: avoid uninitialized variable use
3710         * lib/quotearg.c (quoting_options_from_style): Initialize
3711         remaining fields, and ensure that custom styles are only used via
3712         quoting_options rather than quoting_style.
3713
3714 2011-04-29  Jim Meyering  <meyering@redhat.com>
3715
3716         maint.mk: remove unused VC-tag variable
3717         * top/maint.mk (VC-tag): Remove unused variable.
3718
3719 2011-04-29  Bruno Haible  <bruno@clisp.org>
3720
3721         netdb: fix gai_strerror replacements
3722         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3723         * modules/netdb: Substitute it.
3724
3725 2011-04-29  Jim Meyering  <meyering@redhat.com>
3726
3727         test-getcwd.c: avoid new set-but-not-used warning
3728         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3729         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3730         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3731         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3732
3733         test-hash.c: avoid a new shadowing warning
3734         * tests/test-hash.c (main): Don't shadow "dup".
3735
3736 2011-04-28  Eric Blake  <eblake@redhat.com>
3737
3738         getaddrinfo: fix gai_strerror signature
3739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3740         and work around mingw with UNICODE defined.
3741         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3742         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3743         * modules/netdb (Makefile.am): Substitute it.
3744         * lib/netdb.in.h (gai_strerror): Declare replacement.
3745         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3746         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3747         the fix.
3748
3749         getsockopt: avoid compiler warning
3750         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3751         Reported by Matthias Bolte.
3752
3753         tests: drop unused link dependency
3754         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3755         * modules/dirent-safer-tests (Makefile.am): Likewise.
3756         * modules/fdopendir-tests (Makefile.am): Likewise.
3757         * modules/mkfifoat-tests (Makefile.am): Likewise.
3758         * modules/openat-safer-tests (Makefile.am): Likewise.
3759         * modules/openat-tests (Makefile.am): Likewise.
3760         * modules/readlinkat-tests (Makefile.am): Likewise.
3761         * modules/symlinkat-tests (Makefile.am): Likewise.
3762         * modules/linkat-tests (Makefile.am): Likewise.
3763         (Depends-on): Switch to filenamecat-lgpl.
3764         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3765         LIBINTL.
3766         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3767         * tests/test-linkat.c (main): Don't require xalloc.
3768
3769         hash, mgetgroups: drop xalloc dependency
3770         * lib/hash.c (includes): Adjust includes.
3771         * lib/mgetgroups.c (includes): Likewise.
3772         (xgetgroups): Move...
3773         * lib/xgetgroups.c: ...to new file.
3774         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3775         * modules/xgetgroups: New file, split from...
3776         * modules/mgetgroups: ...here.
3777         (Depends-on): Add xalloc-oversized.
3778         * modules/hash (Depends-on): Likewise.
3779         * modules/hash-tests (Depends-on): Drop xalloc.
3780         (test_hash_LDADD): Drop unused library.
3781         * tests/test-hash.c (main): Break xalloc dependency.
3782         (includes): Drop unused include.
3783
3784         xalloc-oversized: new module
3785         * modules/xalloc-oversized: New module.
3786         * modules/xalloc (Depends-on): Add it.
3787         * lib/xalloc.h (xalloc_oversized): Move...
3788         * lib/xalloc-oversized.h: ...into new file.
3789
3790         utimecmp: drop dependency on xmalloc
3791         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3792         due to memory pressure.
3793         * modules/utimecmp (Depends-on): Drop xalloc.
3794
3795 2011-04-27  Eric Blake  <eblake@redhat.com>
3796
3797         getcwd: fix mingw bugs
3798         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3799         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3800         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3801
3802 2011-04-27  Bruno Haible  <bruno@clisp.org>
3803
3804         mkstemps: Ensure declaration on MacOS X 10.5.
3805         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3806         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3807         MacOS X.
3808
3809 2011-04-27  Bruno Haible  <bruno@clisp.org>
3810
3811         mkstemp: More documentation.
3812         * doc/posix-functions/mkstemp.texi: Document header file problem on
3813         MacOS X.
3814
3815 2011-04-27  Bruno Haible  <bruno@clisp.org>
3816
3817         mkstemp: Tweak configure message when cross-compiling.
3818         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3819         result as a guess.
3820
3821 2011-04-27  Bruno Haible  <bruno@clisp.org>
3822
3823         clean-temp: Clarify what it does.
3824         * lib/clean-temp.h: Add more comments.
3825         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3826         module.
3827         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3828         * doc/glibc-functions/mkstemps.texi: Likewise.
3829         * doc/glibc-functions/mkostemps.texi: Likewise.
3830
3831 2011-04-27  Eric Blake  <eblake@redhat.com>
3832
3833         fchdir: avoid extra chdir and fix test
3834         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3835         getcwd-lgpl.
3836         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3837         have to be canonical.
3838         (canonicalize_file_name): Drop unused macro.
3839         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3840
3841         filenamecat-lgpl: fix licence
3842         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3843         when it was first created.
3844
3845         linkat, renameat: add missing dependency
3846         * modules/linkat (Depends-on): Require getcwd-lgpl.
3847         * modules/renameat (Depends-on): Likewise.
3848
3849         tests: reduce dependencies
3850         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3851         * tests/test-renameat.c (main): Likewise.
3852         * modules/linkat-tests (Depends-on): Relax dependency.
3853         * modules/renameat-tests (Depends-on): Likewise.
3854         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3855         dependency explicit.
3856
3857         save-cwd: reduce default dependency
3858         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3859         * lib/save-cwd.c: Update comments.
3860         * NEWS: Document the semantic change.
3861
3862         getcwd: enhance tests
3863         * tests/test-getcwd-lgpl.c: New file, taken from...
3864         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3865         repeat long path stress tests from m4 probe.
3866         * modules/getcwd-lgpl-tests: New module.
3867         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3868         * m4/getcwd-abort-bug.m4: Update comment.
3869         * m4/getcwd-path-max.m4: Likewise.
3870
3871         getcwd-lgpl: new module
3872         * modules/getcwd-lgpl: New module.
3873         * lib/getcwd-lgpl.c: New file.
3874         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3875         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3876         * modules/getcwd (configure.ac): Set C witness.
3877         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3878
3879         getcwd: tweak comments
3880         * m4/getcwd-abort-bug.m4: Fix comments.
3881         * m4/getcwd-path-max.m4: Likewise.
3882         * m4/getcwd.m4: Likewise.
3883
3884 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3885         and Eric Blake  <eblake@redhat.com>
3886
3887         mkstemp: replace if system version uses wrong permissions
3888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3889         read/write mode bits set in file created by mkstemp.
3890         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3891
3892 2011-04-27  Eric Blake  <eblake@redhat.com>
3893
3894         passfd: avoid compiler warning
3895         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3896         Reported by Laine Stump.
3897
3898 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3899
3900         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3901         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3902
3903 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3904         and Eric Blake  <eblake@redhat.com>
3905
3906         mkstemp: mention clean-temp module
3907         * lib/mkstemp.c: Add comment.
3908         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3909
3910 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3911
3912         inttypes: also provide default values for 32-bit tests
3913         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3914         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3915
3916 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3917
3918         strtoumax: remove dependency on strtoimax
3919         This is like the strtoull change of yesterday.
3920         * modules/strtoumax (Files): Add lib/strtoimax.c.
3921         (Depends-on): Remove strtoimax and add verify.
3922
3923         inttypes-incomplete: new module
3924         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3925         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3926         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3927         of gl_INTTYPES_H.
3928         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3929         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3930         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3931         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3932         * modules/strtoumax, modules/xstrtol (Depends-on):
3933         Depend on inttypes-incomplete, not inttypes.
3934         * modules/inttypes-incomplete: New module, containing the contents
3935         of the old modules/inttypes module, except that the Files: section
3936         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3937         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3938         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3939         (Depends-on): Depend only on inttypes-incomplete.
3940         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3941
3942         inttypes: omit now-redundant strtoimax and strtoumax work
3943         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3944         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3945
3946         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3947         This supports apps that need pointers to strtoimax and strtoumax,
3948         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3949         nonexistent functions.  See
3950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3951         et seq.
3952         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3953         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3954         a macro.
3955         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3956
3957 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3958
3959         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3960
3961 2011-04-25  Bruno Haible  <bruno@clisp.org>
3962
3963         strtol, strtoul: Mark modules as obsolete.
3964         * modules/strtol (Status, Notice): New sections.
3965         * modules/strtoul (Status, Notice): New sections.
3966
3967 2011-04-25  Bruno Haible  <bruno@clisp.org>
3968
3969         strtod: Remove check for strtod, unless supporting old platforms.
3970         * modules/strtod-obsolete: New file.
3971         * m4/strtod-obsolete.m4: New file.
3972         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3973         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3974         * modules/strtod (Depends-on): Add strtod-obsolete.
3975         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3976
3977 2011-04-25  Bruno Haible  <bruno@clisp.org>
3978
3979         strcase: Make module obsolete.
3980         * modules/strcase (Status, Notice): New sections.
3981
3982 2011-04-25  Bruno Haible  <bruno@clisp.org>
3983
3984         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3985         * modules/dup2-obsolete: New file.
3986         * m4/dup2-obsolete.m4: New file.
3987         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3988         gl_FUNC_DUP2_OBSOLETE is not also defined.
3989         * modules/dup2 (Depends-on): Add dup2-obsolete.
3990         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3991
3992 2011-04-25  Bruno Haible  <bruno@clisp.org>
3993
3994         strnlen: Avoid memchr related link error on old obsolete platforms.
3995         * modules/memchr-obsolete: New file.
3996         * m4/memchr-obsolete.m4: New file.
3997         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3998         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3999         * modules/memchr (Depends-on): Add memchr-obsolete.
4000         * modules/strnlen (Depends-on): Likewise.
4001         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4002
4003 2011-04-25  Jim Meyering  <meyering@redhat.com>
4004
4005         maint.mk: makefile_at_at_check extend and clean up
4006         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4007         in addition to */Makefile.am.
4008         Exempt legitimate uses of @VAR@ notation, e.g.,
4009         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4010         Remove obsolete coreutils-specific comment.
4011         Prompted by discussion here:
4012         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4013
4014 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4015
4016         strtoul: remove dependency on strtol
4017         This is so that 'configure' need not check for strtol merely because
4018         the application needs strtoul.
4019         * modules/strtoul (Files): Add lib/strtol.c.
4020         (Depends-on): Remove strtol.
4021
4022         strtoull: remove dependency on strtoul
4023         This is like the strtoll change.
4024         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4025         (Depends-on): Remove strtoul.
4026
4027         strtoll: remove dependency on strtol
4028         This is so that 'configure' need not check for strtol merely because
4029         the application needs strtoll.
4030         * modules/strtoll (Files): Add lib/strtol.c.
4031         (Depends-on): Remove strtol.
4032
4033 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4034
4035         inttypes: Move some configure check to module 'imaxdiv'.
4036         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4037         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4038         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4039
4040 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4041
4042         inttypes: Move some configure check to module 'imaxabs'.
4043         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4044         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4045         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4046
4047 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4048
4049         inttypes: Remove configure tests that are not needed since 2009-12-31.
4050         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4051         gl_cv_header_working_inttypes_h.
4052
4053 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4054
4055         * modules/strnlen (Depends-on): Remove memchr.
4056         The strnlen implementation doesn't need the memchr module's fixes; see
4057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4058
4059         strtol: remove dependency on wchar
4060         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4061         * modules/strtol (Depends-on): Remove wchar.
4062
4063 2011-04-21  Eric Blake  <eblake@redhat.com>
4064
4065         passfd: fix test regression on Linux
4066         * modules/passfd-tests (configure.ac): Correct socketpair check.
4067
4068         passfd: speed up configure and drop unused code
4069         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4070         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4071         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4072         Instead of probing at configure for unix_scm_rights_bsd44_way,
4073         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4074         check to a struct member probe.
4075         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4076         (sendfd, recvfd): Update preprocessor checks.
4077         * modules/passfd (Files): Reflect rename, and drop unused file.
4078         (Depends-on): Drop unused dependency.
4079
4080         passfd: allow compilation on mingw
4081         * modules/sys_socket (Depends-on): Add sys_uio.
4082         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4083         iovec and a minimal struct msghdr.
4084         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4085         * tests/test-sys_socket.c (main): Enhance test.
4086         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4087         guaranteed to provide what we need.
4088         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4089         * modules/passfd-tests (Depends-on): Add sys_wait.
4090         * tests/test-passfd.c (main): Skip test on mingw, for now.
4091         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4092         partial 'struct msghdr' implementation.
4093
4094         sys_uio: new module
4095         * modules/sys_uio: New module.
4096         * modules/sys_uio-tests: Likewise.
4097         * lib/sys_uio.in.h: New file.
4098         * m4/sys_uio_h.m4: Likewise.
4099         * tests/test-sys_uio.c: Likewise.
4100         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4101         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4102
4103 2011-04-20  Jim Meyering  <meyering@redhat.com>
4104
4105         useless-if-before-free: avoid false-positive
4106         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4107         disjunct so that it too requires a terminating ";".  Without that,
4108         this script would identify as useless one statement from gcc that
4109         was not:
4110           if (aligned_ptr)
4111             free (((void **) aligned_ptr) [-1]);
4112
4113 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4114
4115         doc: update users.txt.
4116         * users.txt: Add barcode.
4117
4118 2011-04-19  Bruno Haible  <bruno@clisp.org>
4119
4120         ioctl: Remove link dependency on native Windows.
4121         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4122         (gl_close_fn, gl_ioctl_fn): New types.
4123         (struct fd_hook): Renamed from struct close_hook. Change type of
4124         private_close_fn field. Add private_ioctl_fn field.
4125         (close_hook_fn): Add parameter for primary close method.
4126         (execute_close_hooks, execute_all_close_hooks): Likewise.
4127         (ioctl_hook_fn): New type.
4128         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4129         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4130         argument.
4131         (unregister_fd_hook): Renamed from unregister_close_hook.
4132         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4133         Don't include <unistd.h>.
4134         (close): Remove undef.
4135         (anchor): Update.
4136         (execute_close_hooks): Add argument for primary close method.
4137         (execute_all_close_hooks): Likewise.
4138         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4139         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4140         argument. Allow each argument to be NULL.
4141         (unregister_fd_hook): Renamed from unregister_close_hook.
4142         * lib/close.c (rpl_close): Pass 'close' function pointer to
4143         execute_all_close_hooks.
4144         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4145         (primary_ioctl): New function.
4146         (ioctl): Don't call ioctlsocket here. Instead, call
4147         execute_all_ioctl_hooks.
4148         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4149         close method.
4150         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4151         (fd_sockets_hook): Renamed from close_sockets_hook.
4152         (gl_sockets_startup, gl_sockets_cleanup): Update.
4153         * modules/fd-hook: Renamed from modules/close-hook. Update.
4154         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4155         * modules/sockets (Depends-on): Likewise.
4156         * modules/ioctl (Depends-on): Add fd-hook.
4157         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4158         GNULIB_SOCKET.
4159
4160 2011-04-19  Bruno Haible  <bruno@clisp.org>
4161
4162         Move the support of O_NONBLOCK in open() to the 'open' module.
4163         * modules/nonblocking (Depends-on): Remove 'open'.
4164         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4165         gl_cv_have_open_O_NONBLOCK.
4166         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4167         O_NONBLOCK support.
4168         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4169
4170 2011-04-17  Bruno Haible  <bruno@clisp.org>
4171
4172         pipe2: Simplify code.
4173         * lib/pipe2.c (pipe2): Reduce code duplication.
4174
4175 2011-04-17  Bruno Haible  <bruno@clisp.org>
4176
4177         nonblocking: Add comment.
4178         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4179
4180 2011-04-17  Bruno Haible  <bruno@clisp.org>
4181
4182         nonblocking: Add tests for sockets.
4183         * tests/test-nonblocking-socket.sh: New file.
4184         * tests/test-nonblocking-socket-main.c: New file.
4185         * tests/test-nonblocking-socket-child.c: New file.
4186         * tests/test-nonblocking-socket.h: New file.
4187         * tests/socket-server.h: New file.
4188         * tests/socket-client.h: New file.
4189         * modules/nonblocking-socket-tests: New file.
4190         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4191
4192 2011-04-17  Bruno Haible  <bruno@clisp.org>
4193
4194         nonblocking: Add tests for pipes.
4195         * tests/test-nonblocking-pipe.sh: New file.
4196         * tests/test-nonblocking-pipe-main.c: New file.
4197         * tests/test-nonblocking-pipe-child.c: New file.
4198         * tests/test-nonblocking-pipe.h: New file.
4199         * tests/test-nonblocking-writer.h: New file.
4200         * tests/test-nonblocking-reader.h: New file.
4201         * tests/test-nonblocking-misc.h: New file.
4202         * modules/nonblocking-pipe-tests: New file.
4203         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4204
4205 2011-04-16  Bruno Haible  <bruno@clisp.org>
4206
4207         gettext: Clarify the needed programmer actions.
4208         * modules/gettext (Notice): New field.
4209         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4210
4211 2011-04-16  Bruno Haible  <bruno@clisp.org>
4212
4213         strchrnul: Tweak last commit.
4214         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4215         bug.
4216         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4217         as in _GL_FUNCDECL_SYS.
4218         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4219         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4220
4221 2011-04-15  Eric Blake  <eblake@redhat.com>
4222
4223         strchrnul: work around cygwin bug
4224         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4225         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4227         * modules/string (Makefile.am): Substitute it.
4228         * lib/string.in.h (strchrnul): Use it.
4229
4230 2011-04-15  Bruno Haible  <bruno@clisp.org>
4231
4232         Don't require lib/stdio-write.c when only module 'stdio' is used.
4233         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4234         invocation.
4235         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4236
4237 2011-04-14  Bruno Haible  <bruno@clisp.org>
4238
4239         Support non-blocking pipe I/O in read() on native Windows.
4240         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4241         (read): New declaration.
4242         * lib/read.c: New file.
4243         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4244         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4245         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4246         vscanf): New declarations.
4247         * lib/stdio-read.c: New file.
4248         * m4/read.m4: New file.
4249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4250         REPLACE_READ.
4251         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4252         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4253         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4254         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4255         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4256         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4257         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4258         * modules/read: New file.
4259         * modules/nonblocking (Files): Add lib/stdio-read.c.
4260         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4261         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4262         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4263         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4264         * modules/pread (Depends-on): Add read.
4265         * modules/safe-read (Depends-on): Likewise.
4266         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4267         gets, scanf, vfscanf, vscanf): Verify signatures.
4268         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4269         problem with non-blocking pipes.
4270         * doc/posix-functions/fgetc.texi: Likewise.
4271         * doc/posix-functions/fgets.texi: Likewise.
4272         * doc/posix-functions/fread.texi: Likewise.
4273         * doc/posix-functions/fscanf.texi: Likewise.
4274         * doc/posix-functions/getc.texi: Likewise.
4275         * doc/posix-functions/getchar.texi: Likewise.
4276         * doc/posix-functions/gets.texi: Likewise.
4277         * doc/posix-functions/scanf.texi: Likewise.
4278         * doc/posix-functions/vfscanf.texi: Likewise.
4279         * doc/posix-functions/vscanf.texi: Likewise.
4280
4281 2011-04-14  Bruno Haible  <bruno@clisp.org>
4282
4283         Support non-blocking pipe I/O in write() on native Windows.
4284         * lib/write.c (rpl_write): Split a write request that failed merely
4285         because the byte count was larger than the pipe buffer's size.
4286         * doc/posix-functions/write.texi: Mention the problem with large byte
4287         counts.
4288
4289 2011-04-14  Bruno Haible  <bruno@clisp.org>
4290
4291         wchar: Ensure that wchar_t gets defined on uClibc.
4292         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4293         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4294
4295 2011-04-13  Bruno Haible  <bruno@clisp.org>
4296
4297         safe-write, full-read: Avoid unnecessary compilation units.
4298         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4299         (Depends-on): Remove safe-read. Add ssize_t.
4300         * modules/full-read (Files): Add lib/full-write.c.
4301         (Depends-on): Add full-write.
4302
4303 2011-04-13  Bruno Haible  <bruno@clisp.org>
4304
4305         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4306         * modules/pwrite (Depends-on): Add 'write'.
4307
4308 2011-04-13  Bruno Haible  <bruno@clisp.org>
4309
4310         Support non-blocking pipe I/O in write() on native Windows.
4311         * lib/unistd.in.h (write): Enable replacement also if
4312         GNULIB_UNISTD_H_NONBLOCKING is 1.
4313         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4314         (rpl_write): When failing to write on a non-blocking pipe, change
4315         errno from ENOSPC to EAGAIN.
4316         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4317         putchar, puts, vfprintf, vprintf): Enable replacement also if
4318         GNULIB_STDIO_H_NONBLOCKING is 1.
4319         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4320         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4321         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4322         CALL_WITH_SIGPIPE_EMULATION.
4323         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4324         * m4/nonblocking.m4: New file.
4325         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4326         for non-blocking I/O support.
4327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4328         GNULIB_UNISTD_H_NONBLOCKING.
4329         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4330         required for non-blocking I/O support.
4331         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4332         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4333         lib/stdio-write.c, m4/asm-underscore.m4.
4334         (Depends-on): Add stdio, unistd.
4335         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4336         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4337         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4338         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4339         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4340         problem with non-blocking pipes.
4341         * doc/posix-functions/fputc.texi: Likewise.
4342         * doc/posix-functions/fputs.texi: Likewise.
4343         * doc/posix-functions/fwrite.texi: Likewise.
4344         * doc/posix-functions/printf.texi: Likewise.
4345         * doc/posix-functions/putc.texi: Likewise.
4346         * doc/posix-functions/putchar.texi: Likewise.
4347         * doc/posix-functions/puts.texi: Likewise.
4348         * doc/posix-functions/vfprintf.texi: Likewise.
4349         * doc/posix-functions/vprintf.texi: Likewise.
4350         * doc/posix-functions/write.texi: Likewise.
4351
4352 2011-04-10  Jim Meyering  <meyering@redhat.com>
4353
4354         maint.mk: prohibit doubled words
4355         Detect them also when they're separated by a newline.
4356         There are 3 ways to customize it:
4357           - disable the test on a per file basis, as usual with rules using
4358             $(VC_LIST_EXCEPT)
4359           - replace the default doubled-word-selecting regexp (affects all files)
4360           - ignore a particular file-vs-doubled-word match
4361         I nearly used that last one to ignore the "is is" match in
4362         coreutils' NEWS file, since the text was "ls -is is ..."
4363         To do that, I would have added this line to cfg.mk:
4364           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4365         but it would have ignored any "is is" match in NEWS.
4366         Low probability, but still...
4367         Instead, I changed the text, slightly:
4368           -  ls -is is now consistent with ls -lis in ignoring values returned
4369           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4370         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4371         (prohibit_doubled_word_): Define.
4372         (sc_prohibit_doubled_word): New rule.
4373         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4374
4375 2011-04-10  Jim Meyering  <meyering@redhat.com>
4376
4377         maint: fix doubled-word typo in comment
4378         * m4/gethostname.m4: s/is is/it is/
4379         * m4/getdomainname.m4: Likewise.
4380
4381 2011-04-10  Jim Meyering  <meyering@redhat.com>
4382
4383         maint: remove doubled word: s/it it/it/
4384         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4385
4386 2011-04-10  Jim Meyering  <meyering@redhat.com>
4387
4388         maint.mk: remove useless semicolon and backslash
4389         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4390         semicolon and backslash.
4391
4392 2011-04-10  Bruno Haible  <bruno@clisp.org>
4393
4394         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4395         * modules/stdint-tests (Depends-on): Add wchar.
4396
4397 2011-04-10  Jim Meyering  <meyering@redhat.com>
4398
4399         maint: remove doubled words in comments, e.g., s/a a/a/
4400         * lib/strptime.c (day_of_the_week): s/the the/the/
4401         * tests/test-chown.h (test_chown): s/a a/a/
4402
4403         test-chown.h: correct a cast
4404         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4405         when the destination is a stat.st_gid.
4406
4407 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4408
4409         getaddrinfo: Fix test for sa_len member.
4410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4411         include <sys/types.h> before <sys/socket.h>.
4412
4413 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4414
4415         maint: change "can not" to "cannot"
4416         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4417         boundaries.
4418
4419 2011-04-09  Jim Meyering  <meyering@redhat.com>
4420
4421         maint: change "a a" to "a"
4422         * tests/test-lchown.h (test_lchown): s/a a/a/
4423
4424         maint.mk: prohibit \<the the\>
4425         * top/maint.mk (sc_prohibit_the_the): New rule.
4426
4427         maint: fix "the the" in comment
4428         * lib/count-one-bits.h: s/the the/the/
4429
4430         maint: change "can not" to "cannot"
4431         But do not change the occurrences in maintain.texi or in
4432         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4433         * doc/gnulib-tool.texi: s/can not/cannot/
4434         * doc/posix-functions/accept.texi (accept): Likewise.
4435         * doc/posix-functions/socket.texi (socket): Likewise.
4436         * lib/mbrtowc.c: Likewise.
4437
4438         maint.mk: prohibit use of "can not"
4439         * top/maint.mk (sc_prohibit_can_not): New rule.
4440         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4441
4442 2011-04-09  Bruno Haible  <bruno@clisp.org>
4443
4444         careadlinkat: Guard against misuse of careadlinkatcwd.
4445         * lib/careadlinkat.c: Include <stdlib.h>.
4446         (careadlinkatcwd): Check that the fd argument is as expected.
4447
4448 2011-04-09  Bruno Haible  <bruno@clisp.org>
4449
4450         careadlinkat: Use common coding style.
4451         * lib/careadlinkat.c: Move gnulib includes after system includes.
4452
4453 2011-04-09  Bruno Haible  <bruno@clisp.org>
4454
4455         careadlinkat: Clarify specification.
4456         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4457         (careadlinkatcwd): Add comment.
4458         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4459
4460 2011-04-09  Bruno Haible  <bruno@clisp.org>
4461
4462         areadlinkat: Avoid link error on many platforms.
4463         * modules/areadlinkat (Depends-on): Add areadlink.
4464
4465 2011-04-09  Bruno Haible  <bruno@clisp.org>
4466
4467         allocator, careadlinkat: Fix double-inclusion guard.
4468         * lib/allocator.h: Fix double-inclusion guard.
4469         * lib/careadlinkat.h: Likewise.
4470
4471 2011-04-09  Bruno Haible  <bruno@clisp.org>
4472
4473         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4474         * lib/relocwrapper.c: Update dependencies hierarchy.
4475         * build-aux/install-reloc: Update list of files to be compiled.
4476         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4477         lib/allocator.[hc].
4478
4479 2011-04-08  Eric Blake  <eblake@redhat.com>
4480
4481         strftime: silence gnulib-tool warning
4482         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4483
4484 2011-04-08  Bruno Haible  <bruno@clisp.org>
4485
4486         verify: Fix syntax error with GCC 4.6 in C++ mode.
4487         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4488         (HAVE_STATIC_ASSERT): New macro.
4489         (verify_true, verify): Use 'static_assert' if it is supported and
4490         '_Static_assert' is not supported.
4491
4492 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         allocator: New module.
4495         * modules/allocator, lib/allocator.c: New files.
4496         * lib/allocator.h (stdlib_allocator): New decl.
4497         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4498         Remove.  Do not include <stdlib.h>.
4499         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4500         * modules/careadlinkat (Files): Remove lib/allocator.h.
4501         (Depends-on): Add allocator.
4502
4503         stdlib: let modules use system malloc, realloc
4504         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4505         if !_GL_USE_STDLIB_ALLOC.
4506         (malloc, realloc): Limit this change to a smaller scope.
4507
4508         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4509         (malloc, realloc): Don't #undef; no longer needed.
4510         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4511         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4512         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4513         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4514         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4515         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4516         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4517         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4518
4519         careadlinkat: rename members to avoid problem
4520         * lib/allocator.h (struct allocator): Rename members from
4521         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4522         and realloc are #define'd.  Reported by Eric Blake in
4523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4524         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4525
4526 2011-04-08  Eric Blake  <eblake@redhat.com>
4527
4528         nonblocking: reduce dependency
4529         * tests/test-nonblocking.c: Only test sockets when in use.
4530         * modules/nonblocking-tests (Depends-on): Drop socket.
4531         (Makefile.am): Link even if sockets are not present.
4532         * modules/pipe2-tests (Makefile.am): Likewise.
4533         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4534
4535         pipe2: fix O_NONBLOCK support on mingw
4536         * modules/pipe2 (Depends-on): Add nonblocking.
4537         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4538         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4539         * tests/test-nonblocking.c (main): Likewise.
4540         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4541
4542         fcntl-h: fix O_ACCMODE on cygwin
4543         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4544         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4545
4546         pipe-filter: drop O_NONBLOCK workarounds
4547         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4548         * modules/pipe-filter-ii (Depends-on): Likewise.
4549         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4550
4551         nonblocking: provide O_NONBLOCK for mingw
4552         * modules/nonblocking (Depends-on): Add open.
4553         (configure.ac): Set new witness macro.
4554         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4555         * modules/fcntl-h (Makefile.am): Substitute it.
4556         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4557         nonblocking module is in use.
4558         * lib/nonblocking.c: Adjust portability test.
4559         * lib/open.c (open): Don't let native open see gnulib flag.
4560         * tests/test-fcntl-h.c (main): Enhance test.
4561         * tests/test-open.h (test_open): Likewise.
4562         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4563
4564         careadlinkat: fix compilation error on mingw
4565         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4566         within struct allocator.
4567
4568 2011-04-06  Eric Blake  <eblake@redhat.com>
4569
4570         binary-io: relicense under LGPLv2+
4571         * modules/binary-io (License): Relax to LGPLv2+.
4572         Requested for libvirt, and required by pipe2.
4573
4574 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4575
4576         verify: use _Static_assert if available
4577         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4578         (verify_true, verify): Use it if available.  This generates better
4579         diagnostics with GCC 4.6.0 and later.
4580
4581 2011-04-05  Bruno Haible  <bruno@clisp.org>
4582
4583         Remove leftover generated .h files after config.status changed.
4584
4585         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4586         GL_GENERATE_ALLOCA_H.
4587         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4588         GL_GENERATE_ALLOCA_H evaluates to false.
4589
4590         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4591         GL_GENERATE_ARGZ_H.
4592         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4593         evaluates to false.
4594
4595         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4596         GL_GENERATE_BYTESWAP_H.
4597         * modules/byteswap (Makefile.am): Remove byteswap.h if
4598         GL_GENERATE_BYTESWAP_H evaluates to false.
4599
4600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4601         GL_GENERATE_ERRNO_H.
4602         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4603         evaluates to false.
4604
4605         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4606         GL_GENERATE_FLOAT_H.
4607         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4608         evaluates to false.
4609
4610         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4611         GL_GENERATE_FNMATCH_H.
4612         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4613         GL_GENERATE_FNMATCH_H evaluates to false.
4614
4615         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4616         GL_GENERATE_GLOB_H.
4617         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4618         evaluates to false.
4619
4620         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4621         automake conditional GL_GENERATE_ICONV_H.
4622         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4623         evaluates to false.
4624
4625         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4626         GL_GENERATE_NETINET_IN_H.
4627         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4628         GL_GENERATE_NETINET_IN_H evaluates to false.
4629
4630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4631         conditional GL_GENERATE_PTHREAD_H.
4632         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4633         * modules/pthread (Makefile.am): Remove pthread.h if
4634         GL_GENERATE_PTHREAD_H evaluates to false.
4635
4636         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4637         GL_GENERATE_SCHED_H.
4638         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4639         evaluates to false.
4640
4641         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4642         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4643         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4644         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4645
4646         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4647         GL_GENERATE_STDARG_H.
4648         * modules/stdarg (Makefile.am): Remove stdarg.h if
4649         GL_GENERATE_STDARG_H evaluates to false.
4650
4651         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4652         GL_GENERATE_STDBOOL_H.
4653         * modules/stdbool (Makefile.am): Remove stdbool.h if
4654         GL_GENERATE_STDBOOL_H evaluates to false.
4655
4656         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4657         conditional GL_GENERATE_STDDEF_H.
4658         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4659         * modules/stddef (Makefile.am): Remove stddef.h if
4660         GL_GENERATE_STDDEF_H evaluates to false.
4661
4662         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4663         GL_GENERATE_STDINT_H.
4664         * modules/stdint (Makefile.am): Remove stdint.h if
4665         GL_GENERATE_STDINT_H evaluates to false.
4666
4667         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4668         GL_GENERATE_SYSEXITS_H.
4669         * modules/sysexits (Makefile.am): Remove sysexits.h if
4670         GL_GENERATE_SYSEXITS_H evaluates to false.
4671
4672         Reported by Karl Berry and Ralf Wildenhues.
4673
4674 2011-04-05  Bruno Haible  <bruno@clisp.org>
4675
4676         Ensure to rebuild generated .h files when config.status has changed.
4677         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4678         config.status.
4679         * modules/ctype (Makefile.am): Likewise.
4680         * modules/dirent (Makefile.am): Likewise.
4681         * modules/errno (Makefile.am): Likewise.
4682         * modules/fcntl-h (Makefile.am): Likewise.
4683         * modules/float (Makefile.am): Likewise.
4684         * modules/getopt-posix (Makefile.am): Likewise.
4685         * modules/glob (Makefile.am): Likewise.
4686         * modules/iconv-h (Makefile.am): Likewise.
4687         * modules/inttypes (Makefile.am): Likewise.
4688         * modules/langinfo (Makefile.am): Likewise.
4689         * modules/locale (Makefile.am): Likewise.
4690         * modules/math (Makefile.am): Likewise.
4691         * modules/netdb (Makefile.am): Likewise.
4692         * modules/netinet_in (Makefile.am): Likewise.
4693         * modules/poll-h (Makefile.am): Likewise.
4694         * modules/pthread (Makefile.am): Likewise.
4695         * modules/pty (Makefile.am): Likewise.
4696         * modules/sched (Makefile.am): Likewise.
4697         * modules/search (Makefile.am): Likewise.
4698         * modules/selinux-h (Makefile.am): Likewise.
4699         * modules/signal (Makefile.am): Likewise.
4700         * modules/spawn (Makefile.am): Likewise.
4701         * modules/stdarg (Makefile.am): Likewise.
4702         * modules/stdbool (Makefile.am): Likewise.
4703         * modules/stddef (Makefile.am): Likewise.
4704         * modules/stdint (Makefile.am): Likewise.
4705         * modules/stdio (Makefile.am): Likewise.
4706         * modules/stdlib (Makefile.am): Likewise.
4707         * modules/string (Makefile.am): Likewise.
4708         * modules/strings (Makefile.am): Likewise.
4709         * modules/sys_file (Makefile.am): Likewise.
4710         * modules/sys_ioctl (Makefile.am): Likewise.
4711         * modules/sys_select (Makefile.am): Likewise.
4712         * modules/sys_socket (Makefile.am): Likewise.
4713         * modules/sys_stat (Makefile.am): Likewise.
4714         * modules/sys_time (Makefile.am): Likewise.
4715         * modules/sys_times (Makefile.am): Likewise.
4716         * modules/sys_utsname (Makefile.am): Likewise.
4717         * modules/sys_wait (Makefile.am): Likewise.
4718         * modules/sysexits (Makefile.am): Likewise.
4719         * modules/termios (Makefile.am): Likewise.
4720         * modules/time (Makefile.am): Likewise.
4721         * modules/unistd (Makefile.am): Likewise.
4722         * modules/wchar (Makefile.am): Likewise.
4723         * modules/wctype-h (Makefile.am): Likewise.
4724         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4725
4726 2011-04-05  Bruno Haible  <bruno@clisp.org>
4727
4728         pipe2: Relicense under LGPLv2+.
4729         * modules/pipe2 (License): Change to LGPLv2+.
4730         Requested by Eric Blake, for libvirt.
4731
4732 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4733
4734         bootstrap: compute gnulib_extra_files after updating build_aux
4735         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4736         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4737
4738 2011-04-05  Eric Blake  <eblake@redhat.com>
4739
4740         bootstrap: preserve git whitelist item sorting
4741         * build-aux/bootstrap (sort_patterns): New function.
4742         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4743
4744 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4745
4746         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4747         sc_space_tab check.
4748
4749 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4750
4751         areadlink, areadlinkat: rewrite in terms of careadlinkat
4752         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4753         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4754         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4755         (malloc, realloc): Remove #undefs.
4756         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4757         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4758         readlink, ssize_t, stdint, unistd.
4759         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4760         areadlink, stdint.
4761
4762         careadlinkat: new module
4763         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4764         * modules/careadlinkat: New files, written by me with
4765         a review and feedback from Ben Pfaff in
4766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4767
4768 2011-04-01  Bruno Haible  <bruno@clisp.org>
4769
4770         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4771         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4772         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4773         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4774         Reported by Bruce Korb <bruce.korb@gmail.com>.
4775
4776 2011-04-01  Bruno Haible  <bruno@clisp.org>
4777
4778         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4779         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4780         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4781         * modules/wcpcpy (Depends-on): Add extensions.
4782         * modules/wcpncpy (Depends-on): Likewise.
4783         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4784         systems.
4785         * doc/posix-functions/wcpncpy.texi: Likewise.
4786         * doc/posix-functions/wcwidth.texi: Likewise.
4787
4788 2011-03-31  Eric Blake  <eblake@redhat.com>
4789
4790         nonblocking: fix mingw test failures
4791         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4792         non-blocking flag on regular file.
4793         (get_nonblocking_flag): Set errno on invalid fd.
4794         * tests/test-nonblocking.c (main): Avoid test failure on
4795         directories if fchdir is not active.
4796         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4797
4798 2011-03-31  Bruno Haible  <bruno@clisp.org>
4799
4800         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4801         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4802         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4803         Reported by Simon Josefsson <simon@josefsson.org>.
4804
4805 2011-03-31  Bruno Haible  <bruno@clisp.org>
4806         and Eric Blake  <eblake@redhat.com>
4807
4808         nonblocking: new module
4809         * modules/nonblocking: New module.
4810         * modules/nonblocking-tests: Likewise.
4811         * lib/nonblocking.h: New file.
4812         * lib/nonblocking.c: Likewise.
4813         * tests/test-nonblocking.c: New test.
4814         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4815
4816 2011-03-30  Bruno Haible  <bruno@clisp.org>
4817
4818         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4819         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4820         instead of 'printf' format for GCC >= 4.4.
4821         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4822         (fprintf, printf, vfprintf, vprintf): Declare with
4823         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4824         the system's vfprintf() function.
4825         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4826
4827 2011-03-30  Eric Blake  <eblake@redhat.com>
4828
4829         passfd: fix scoping bug
4830         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4831         before sendmsg/recvmsg.
4832
4833         passfd: standardize coding conventions
4834         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4835         can be learned at compile time.
4836         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4837         ifdefs.
4838         (sendfd, recvfd): Follow gnulib code conventions.
4839
4840         passfd: fix incorrect sendmsg arguments
4841         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4842         incorrect msg_controllen value.
4843         * modules/passfd-tests (Depends-on): Check for alarm.
4844         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4845         Reported by Bastien ROUCARIES.
4846
4847 2011-03-30  Bruno Haible  <bruno@clisp.org>
4848
4849         c-strcasestr: Relicense under LGPLv2+.
4850         * modules/c-strcasestr (License): Change to LGPLv2+.
4851         Requested by Eric Blake, for libvirt.
4852
4853 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4854
4855         * users.txt: Add libidn2.  Fix libtasn1 link.
4856
4857 2011-03-30  Jim Meyering  <meyering@redhat.com>
4858
4859         tests: readlink* ("",... fails with EINVAL on newer kernels
4860         readlink and readlinkat have typically failed with ENOENT for
4861         the invalid, empty file name,  "".  However, with the advent
4862         of linux-2.6.39, they fail with EINVAL.
4863         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4864         when operating on the empty file name.
4865         * tests/test-readlink.h (test_readlink): Likewise.
4866
4867 2011-03-29  Bruno Haible  <bruno@clisp.org>
4868
4869         Relicense some modules under LGPLv2+, for libidn2.
4870         * modules/array-mergesort (License): Change to LGPLv2+.
4871         * modules/c-strcaseeq (License): Likewise.
4872         * modules/striconveh (License): Likewise.
4873         * modules/striconveha (License): Likewise.
4874         * modules/uniconv/base (License): Likewise.
4875         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4876         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4877         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4878         * modules/unictype/base (License): Likewise.
4879         * modules/unictype/bidiclass-of (License): Likewise.
4880         * modules/unictype/category-M (License): Likewise.
4881         * modules/unictype/category-none (License): Likewise.
4882         * modules/unictype/category-of (License): Likewise.
4883         * modules/unictype/category-test (License): Likewise.
4884         * modules/unictype/category-test-withtable (License): Likewise.
4885         * modules/unictype/combining-class (License): Likewise.
4886         * modules/unictype/joiningtype-of (License): Likewise.
4887         * modules/unictype/scripts (License): Likewise.
4888         * modules/uninorm/base (License): Likewise.
4889         * modules/uninorm/canonical-decomposition (License): Likewise.
4890         * modules/uninorm/composition (License): Likewise.
4891         * modules/uninorm/decompose-internal (License): Likewise.
4892         * modules/uninorm/decomposition-table (License): Likewise.
4893         * modules/uninorm/nfc (License): Likewise.
4894         * modules/uninorm/nfd (License): Likewise.
4895         * modules/uninorm/u32-normalize (License): Likewise.
4896         * modules/unistr/base (License): Likewise.
4897         * modules/unistr/u32-cpy (License): Likewise.
4898         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4899         * modules/unistr/u32-to-u8 (License): Likewise.
4900         * modules/unistr/u32-uctomb (License): Likewise.
4901         * modules/unistr/u8-check (License): Likewise.
4902         * modules/unistr/u8-mblen (License): Likewise.
4903         * modules/unistr/u8-mbtouc (License): Likewise.
4904         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4905         * modules/unistr/u8-mbtoucr (License): Likewise.
4906         * modules/unistr/u8-prev (License): Likewise.
4907         * modules/unistr/u8-strlen (License): Likewise.
4908         * modules/unistr/u8-to-u32 (License): Likewise.
4909         * modules/unistr/u8-uctomb (License): Likewise.
4910         * modules/unitypes (License): Likewise.
4911         Requested by Simon Josefsson.
4912
4913 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4914
4915         lib-symbol-visibility: Add a notice.
4916         * modules/lib-symbol-visibility (Notice): New field.
4917
4918 2011-03-29  Bruno Haible  <bruno@clisp.org>
4919
4920         getaddrinfo: Doc fix.
4921         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4922         section "fixed in Gnulib".
4923
4924 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4925
4926         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4927         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4928
4929 2011-03-26  Bruno Haible  <bruno@clisp.org>
4930
4931         unictype/property-byname: Reduce the number of load-time relocations.
4932         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4933         (UC_PROPERTY_INDEX_*): New enumeration values.
4934         (uc_property_byname): Convert an index from the lookup table to an
4935         uc_property_t.
4936         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4937         values.
4938
4939 2011-03-26  Bruno Haible  <bruno@clisp.org>
4940
4941         unictype/property-byname: Allow omitted word separators and aliases.
4942         * lib/unictype/pr_byname.gperf: Add property names without word
4943         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4944         for 'space'.
4945
4946 2011-03-26  Bruno Haible  <bruno@clisp.org>
4947
4948         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4949         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4950         also hyphens to space.
4951         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4952         without spaces.
4953         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4954
4955 2011-03-26  Bruno Haible  <bruno@clisp.org>
4956
4957         unictype/joiningtype-byname: Recognize long names as well.
4958         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4959         a long name.
4960         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4961         unictype/joiningtype_byname.h.
4962         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4963         * lib/unictype/joiningtype_byname.gperf: New file.
4964         * modules/unictype/joiningtype-byname (Files): Add
4965         lib/unictype/joiningtype_byname.gperf.
4966         (Depends-on): Add gperf.
4967         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4968         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4969         long names.
4970
4971         Tests for module 'unictype/joiningtype-longname'.
4972         * modules/unictype/joiningtype-longname-tests: New file.
4973         * tests/unictype/test-joiningtype_longname.c: New file.
4974
4975         New module 'unictype/joiningtype-longname'.
4976         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4977         * lib/unictype/joiningtype_longname.c: New file.
4978         * modules/unictype/joiningtype-longname: New file.
4979         * modules/unictype/joiningtype-all (Depends-on): Add
4980         unictype/joiningtype-longname.
4981
4982 2011-03-26  Bruno Haible  <bruno@clisp.org>
4983
4984         unictype/bidiclass-byname: Recognize long names as well.
4985         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4986         name.
4987         * lib/unictype/bidi_byname.c: Include <string.h>,
4988         unictype/bidi_byname.h.
4989         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4990         * lib/unictype/bidi_byname.gperf: New file.
4991         * modules/unictype/bidiclass-byname (Files): Add
4992         lib/unictype/bidi_byname.gperf.
4993         (Depends-on): Add gperf.
4994         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4995         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4996         long names.
4997
4998         Tests for module 'unictype/bidiclass-longname'.
4999         * modules/unictype/bidiclass-longname-tests: New file.
5000         * tests/unictype/test-bidi_longname.c: New file.
5001
5002         New module 'unictype/bidiclass-longname'.
5003         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5004         * lib/unictype/bidi_longname.c: New file.
5005         * modules/unictype/bidiclass-longname: New file.
5006         * modules/unictype/bidiclass-all (Depends-on): Add
5007         unictype/bidiclass-longname.
5008
5009 2011-03-26  Bruno Haible  <bruno@clisp.org>
5010
5011         unictype/bidi*: Rename modules.
5012         * modules/unictype/bidiclass-all: Renamed from
5013         modules/unictype/bidicategory-all.
5014         * modules/unictype/bidiclass-name: Renamed from
5015         modules/unictype/bidiclass-name.
5016         (Description): Update.
5017         * modules/unictype/bidiclass-name-tests: Renamed from
5018         modules/unictype/bidicategory-name-tests.
5019         * modules/unictype/bidiclass-byname: Renamed from
5020         modules/unictype/bidicategory-byname.
5021         (Description): Update.
5022         * modules/unictype/bidiclass-byname-tests: Renamed from
5023         modules/unictype/bidicategory-byname-tests.
5024         * modules/unictype/bidiclass-of: Renamed from
5025         modules/unictype/bidicategory-of.
5026         (Description): Update.
5027         * modules/unictype/bidiclass-of-tests: Renamed from
5028         modules/unictype/bidicategory-of-tests.
5029         * modules/unictype/bidiclass-test: Renamed from
5030         modules/unictype/bidicategory-test.
5031         (Description): Update.
5032         * modules/unictype/bidiclass-test-tests: Renamed from
5033         modules/unictype/bidicategory-test-tests.
5034         * modules/unictype/bidicategory-all: New file, a simple redirection.
5035         * modules/unictype/bidicategory-name: Likewise.
5036         * modules/unictype/bidicategory-byname: Likewise.
5037         * modules/unictype/bidicategory-of: Likewise.
5038         * modules/unictype/bidicategory-test: Likewise.
5039         * modules/unictype/property-bidi-* (Dependencies): Update.
5040         * lib/unictype/bidi_*.c: Update comment.
5041
5042 2011-03-26  Bruno Haible  <bruno@clisp.org>
5043
5044         unictype/bidi*: Rename functions, part 2.
5045         * modules/unictype/bidicategory-name (configure.ac): Update required
5046         libunistring version.
5047         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5048
5049 2011-03-25  Bruno Haible  <bruno@clisp.org>
5050
5051         New module 'unictype/combining-class-all'.
5052         * modules/unictype/combining-class-all: New file.
5053
5054         Tests for module 'unictype/combining-class-byname'.
5055         * modules/unictype/combining-class-byname-tests: New file.
5056         * tests/unictype/test-combiningclass_byname.c: New file.
5057
5058         New module 'unictype/combining-class-byname'.
5059         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5060         * lib/unictype/combiningclass_byname.c: New file.
5061         * lib/unictype/combiningclass_byname.gperf: New file.
5062         * modules/unictype/combining-class-byname: New file.
5063
5064         Tests for module 'unictype/combining-class-longname'.
5065         * modules/unictype/combining-class-longname-tests: New file.
5066         * tests/unictype/test-combiningclass_longname.c: New file.
5067
5068         New module 'unictype/combining-class-longname'.
5069         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5070         * lib/unictype/combiningclass_longname.c: New file.
5071         * modules/unictype/combining-class-longname: New file.
5072
5073         Tests for module 'unictype/combining-class-name'.
5074         * modules/unictype/combining-class-name-tests: New file.
5075         * tests/unictype/test-combiningclass_name.c: New file.
5076
5077         New module 'unictype/combining-class-name'.
5078         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5079         * lib/unictype/combiningclass_name.c: New file.
5080         * modules/unictype/combining-class-name: New file.
5081
5082 2011-03-25  Bruno Haible  <bruno@clisp.org>
5083
5084         unictype/combining-class: Rename source files.
5085         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5086         of unictype/combining.h.
5087         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5088         Update.
5089         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5090         * modules/unictype/combining-class (Description): Fix.
5091         (Files, Makefile.am): Update.
5092         * tests/unictype/test-combiningclass.c: Renamed from
5093         tests/unictype/test-combining.c.
5094         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5095
5096 2011-03-25  Bruno Haible  <bruno@clisp.org>
5097
5098         unictype: Update list of canonical combining classes.
5099         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5100
5101 2011-03-25  Bruno Haible  <bruno@clisp.org>
5102
5103         unictype/category-byname: Recognize long names as well.
5104         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5105         a long name.
5106         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5107         unictype/categ_byname.h.
5108         (UC_CATEGORY_INDEX_*): New enumeration values.
5109         (uc_general_category_byname): Use uc_general_category_lookup and
5110         convert from index to value.
5111         * lib/unictype/categ_byname.gperf: New file.
5112         * modules/unictype/category-byname (Files): Add
5113         lib/unictype/categ_byname.gperf.
5114         (Depends-on): Add gperf.
5115         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5116         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5117         long names.
5118
5119         Tests for module 'unictype/category-longname'.
5120         * modules/unictype/category-longname-tests: New file.
5121         * tests/unictype/test-categ_longname.c: New file.
5122
5123         New module 'unictype/category-longname'.
5124         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5125         * lib/unictype/categ_longname.c: New file.
5126         * modules/unictype/category-longname: New file.
5127         * modules/unictype/category-all (Depends-on): Add it.
5128
5129 2011-03-25  Bruno Haible  <bruno@clisp.org>
5130
5131         Tests for module 'unictype/category-LC'.
5132         * modules/unictype/category-LC-tests: New file.
5133         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5134
5135         New module 'unictype/category-LC'.
5136         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5137         (UC_CATEGORY_LC): New declaration.
5138         (UC_CASED_LETTER): New macro.
5139         * lib/gen-uni-tables.c (is_category_LC): New function.
5140         (output_categories): Also handle category LC.
5141         (UC_CATEGORY_MASK_LC): New enumeration value.
5142         (general_category_byname): Also handle category LC.
5143         * lib/unictype/categ_LC.c: New file.
5144         * lib/unictype/categ_LC.h: New file, automatically generated.
5145         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5146         category LC.
5147         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5148         * modules/unictype/category-LC: New file.
5149         * modules/unictype/category-byname (Depends-on): Add
5150         unictype/category-LC.
5151         * modules/unictype/category-all (Depends-on): Likewise.
5152
5153 2011-03-25  Eric Blake  <eblake@redhat.com>
5154
5155         xmalloc: revert yesterday's regression
5156         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5157         realloc's underlying behavior (allowing allocation of zero-size
5158         objects, especially if malloc-gnu is also in use).
5159
5160 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5161
5162         maint.mk: add missing version to VC-tag
5163         * top/maint.mk: git tag was missing actual tag name; add it.
5164
5165         valgrind: do leak checking, and exit with code 1 on error (not 0)
5166         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5167         to VALGRIND.
5168
5169 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5170
5171         posix-modules: say what it does.
5172         * posix-modules: Add a line to the --help output saying what it does.
5173
5174 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5175
5176         xmalloc: Do not leak if underlying realloc is C99 compatible.
5177         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5178         This avoids a leak on C99-based systems.  See
5179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5180
5181 2011-03-24  Eric Blake  <eblake@redhat.com>
5182
5183         realloc: document portability problem
5184         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5185         passing 0 size to realloc.
5186
5187 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5188
5189         doc: update users.txt
5190         * users.txt: Add cvsps, tmpwatch
5191
5192 2011-03-23  Matt Rice  <ratmice@gmail.com>
5193
5194         doc: update users.txt
5195         * users.txt: Add gdb.
5196
5197 2011-03-23  Jim Meyering  <meyering@redhat.com>
5198
5199         doc: update users.txt
5200         Looking through matches up to the following URL (there are still
5201         several more pages), I found several projects that use gnulib:
5202         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5203         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5204         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5205
5206 2011-03-22  Bruno Haible  <bruno@clisp.org>
5207
5208         unictype/bidi*: Rename functions.
5209         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5210         uc_bidi_class, uc_is_bidi_class): New declarations.
5211         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5212         uc_bidi_category_byname.
5213         (uc_bidi_category_byname): New function.
5214         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5215         u_bidi_category_name.
5216         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5217         (uc_bidi_category_name): New function.
5218         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5219         uc_bidi_category.
5220         (uc_bidi_category): New function.
5221         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5222         uc_is_bidi_category. Invoke uc_bidi_class.
5223         (uc_is_bidi_category): New function.
5224         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5225         instead of uc_bidi_category_byname.
5226         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5227         instead of uc_bidi_category_name.
5228         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5229         uc_bidi_category.
5230         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5231         instead of uc_is_bidi_category.
5232
5233 2011-03-21  Bruno Haible  <bruno@clisp.org>
5234
5235         New module 'unictype/joininggroup-all'.
5236         * modules/unictype/joininggroup-all: New file.
5237
5238         Tests for module 'unictype/joininggroup-of'.
5239         * modules/unictype/joininggroup-of-tests: New file.
5240         * tests/unictype/test-joininggroup_of.c: New file.
5241         * tests/unictype/test-joininggroup_of.h: New file, automatically
5242         generated by gen-uni-tables.
5243
5244         New module 'unictype/joininggroup-of'.
5245         * modules/unictype/joininggroup-of: New file.
5246         * lib/unictype/joininggroup_of.c: New file.
5247         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5248         gen-uni-tables.
5249
5250         Tests for module 'unictype/joininggroup-byname'.
5251         * modules/unictype/joininggroup-byname-tests: New file.
5252         * tests/unictype/test-joininggroup_byname.c: New file.
5253
5254         New module 'unictype/joininggroup-byname'.
5255         * modules/unictype/joininggroup-byname: New file.
5256         * lib/unictype/joininggroup_byname.c: New file.
5257         * lib/unictype/joininggroup_byname.gperf: New file.
5258
5259         Tests for module 'unictype/joininggroup-name'.
5260         * modules/unictype/joininggroup-name-tests: New file.
5261         * tests/unictype/test-joininggroup_name.c: New file.
5262
5263         New module 'unictype/joininggroup-name'.
5264         * modules/unictype/joininggroup-name: New file.
5265         * lib/unictype/joininggroup_name.c: New file.
5266         * lib/unictype/joininggroup_name.h: New file.
5267
5268         New module 'unictype/joiningtype-all'.
5269         * modules/unictype/joiningtype-all: New file.
5270
5271         Tests for module 'unictype/joiningtype-of'.
5272         * modules/unictype/joiningtype-of-tests: New file.
5273         * tests/unictype/test-joiningtype_of.c: New file.
5274         * tests/unictype/test-joiningtype_of.h: New file, automatically
5275         generated by gen-uni-tables.
5276
5277         New module 'unictype/joiningtype-of'.
5278         * modules/unictype/joiningtype-of: New file.
5279         * lib/unictype/joiningtype_of.c: New file.
5280         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5281         gen-uni-tables.
5282
5283         Tests for module 'unictype/joiningtype-byname'.
5284         * modules/unictype/joiningtype-byname-tests: New file.
5285         * tests/unictype/test-joiningtype_byname.c: New file.
5286
5287         New module 'unictype/joiningtype-byname'.
5288         * modules/unictype/joiningtype-byname: New file.
5289         * lib/unictype/joiningtype_byname.c: New file.
5290
5291         Tests for module 'unictype/joiningtype-name'.
5292         * modules/unictype/joiningtype-name-tests: New file.
5293         * tests/unictype/test-joiningtype_name.c: New file.
5294
5295         New module 'unictype/joiningtype-name'.
5296         * modules/unictype/joiningtype-name: New file.
5297         * lib/unictype/joiningtype_name.c: New file.
5298
5299         unictype: Add support for Arabic shaping properties.
5300         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5301         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5302         declarations.
5303         (UC_JOINING_GROUP_*): New enumeration values.
5304         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5305         declarations.
5306         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5307         (unicode_joining_type): New variable.
5308         (UC_JOINING_GROUP_*): New enumeration values.
5309         (unicode_joining_group): New variable.
5310         (fill_arabicshaping, joining_type_as_c_identifier,
5311         output_joining_type_test, output_joining_type,
5312         joining_group_as_c_identifier, output_joining_group_test,
5313         output_joining_group): New functions.
5314         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5315         fill_arabicshaping and output_joining_type_test, output_joining_type,
5316         output_joining_group_test, output_joining_group.
5317         Reported by Simon Josefsson.
5318
5319 2011-03-21  Jim Meyering  <meyering@redhat.com>
5320
5321         strftime: fix a bug in yesterday's change
5322         * lib/strftime.c (add): Accommodate width's initial value of -1.
5323         Otherwise, nstrftime would copy uninitialized data into
5324         the result buffer.
5325
5326 2011-03-21  Jim Meyering  <meyering@redhat.com>
5327
5328         tests: add strftime-tests module
5329         * tests/test-strftime.c: New file.
5330         * modules/strftime-tests: New module.
5331
5332 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5333
5334         strftime: don't assume a byte count fits in 'int'
5335         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5336         found this problem by static analysis, using gcc -Wstrict-overflow
5337         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5338         on an integer overflow having undefined behavior, but it turns out
5339         that the argument is a size, which might not fit in 'int' anyway,
5340
5341 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5342
5343         stdio: don't require ignore_value around fwrite
5344
5345         This patch works around libc bug 11959
5346         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5347         Without this patch, applications must often write
5348         ignore_value (fwrite (...)) even though the ignore_value is
5349         not helpful here.  It's common to write many objects, using
5350         fwrite/printf/etc., and then use ferror to detect output error.
5351
5352         I considered making this patch optional, but decided against it,
5353         because libc is obviously being inconsistent here: there is no
5354         reason libc should insist that user code must inspect fwrite
5355         return's value without also insisting that it inspect printf's,
5356         putchar's, etc.  If user code wants to have a strict style where
5357         all these functions' values are checked (so that ferror need not
5358         be checked), we could add support for that style in a new gnulib
5359         module, but in the meantime it's better to be consistent and to
5360         support common usage.
5361
5362         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5363         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5364         that we are compiling in checking mode, and if not C++, and
5365         if not already wrapping fwrite for some other reason.
5366         (fwrite): #define to rpl_fwrite if the latter is defined.
5367
5368 2011-03-20  Bruno Haible  <bruno@clisp.org>
5369
5370         verror: Fix compilation error introduced on 2011-02-13.
5371         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5372         instead of __attribute__.
5373         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5374
5375 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5376             Bruno Haible  <bruno@clisp.org>
5377
5378         socklen: do not depend on sys_socket
5379         While trying to modify Emacs to use gnulib's socklen module,
5380         I discovered a circular dependency: socklen depends on sys_socket
5381         and vice versa.  Emacs can use socklen, but it does not need
5382         sys_socket because it has its own substitute for sys/socket.h.
5383         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5384         gl_TYPE_SOCKLEN_T.
5385         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5386         gl_PREREQ_SYS_H_SOCKET.
5387         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5388         gl_PREREQ_SYS_H_SOCKET.
5389         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5390         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5391         * modules/socklen (Depends-on): Do not depend on sys_socket.
5392         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5393
5394 2011-03-20  Jim Meyering  <meyering@redhat.com>
5395
5396         maint.mk: sort file names *after* new transformation
5397         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5398         prefix would have led to an unwarranted failure in GNU parted.
5399         Sort after that transformation.
5400
5401 2011-03-19  Jim Meyering  <meyering@redhat.com>
5402
5403         maint.mk: fix po-file syntax-check rule
5404         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5405         Patch by Bruno Haible.
5406
5407 2011-03-19  Bruno Haible  <bruno@clisp.org>
5408
5409         socklen: Update comment.
5410         * m4/socklen.m4: Update comment about platforms.
5411
5412 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5413             Bruno Haible  <bruno@clisp.org>
5414
5415         inet_ntop, inet_pton: Simplify.
5416         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5417         documented to provide socklen_t and we already depend on sys_socket.
5418         * modules/inet_pton (Depends-on): Likewise.
5419         * lib/arpa_inet.in.h: Adjust comment.
5420
5421 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5422             Bruno Haible  <bruno@clisp.org>
5423
5424         netdb: Simplify.
5425         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5426         documented to provide socklen_t and we already depend on sys_socket.
5427         * lib/netdb.in.h: Adjust comment.
5428
5429 2011-03-19  Bruno Haible  <bruno@clisp.org>
5430
5431         sys_socket, netdb: Document problem with socklen_t.
5432         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5433         platforms.
5434         * doc/posix-headers/netdb.texi: Likewise.
5435
5436 2011-03-18  Eric Blake  <eblake@redhat.com>
5437
5438         maint.mk: let po check work in VPATH build
5439         * top/maint.mk (po_file): Allow cfg.mk override.
5440         (sc_po_check): Allow VPATH use.
5441         Reported by Jiri Denemark.
5442
5443 2011-03-16  Jim Meyering  <meyering@redhat.com>
5444
5445         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5446         Before, you would have had to create one .x-sc_ file per rule in order
5447         to exempt offending files.  Now, you may instead use a Make variable --
5448         usually defined in cfg.mk -- whose name identifies the affected rule.
5449         * top/maint.mk (_sc_excl): Define.
5450         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5451         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5452
5453 2011-03-13  Bruno Haible  <bruno@clisp.org>
5454
5455         ignore-value tests: Avoid warnings.
5456         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5457         empty for gcc < 3.4.
5458
5459 2011-03-13  Bruno Haible  <bruno@clisp.org>
5460
5461         passfd: Fix link error on Solaris.
5462         * modules/passfd (Description): Correct.
5463         (Depends-on): Add socketlib.
5464         (Link): New section.
5465         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5466
5467 2011-03-13  Bruno Haible  <bruno@clisp.org>
5468
5469         passfd: Fix link error on AIX 5.2.
5470         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5471
5472 2011-03-13  Bruno Haible  <bruno@clisp.org>
5473
5474         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5475         * lib/sys_socket.in.h: Include <stddef.h>.
5476         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5477         CMSG_FIRSTHDR. Remove unused variable.
5478
5479 2011-03-13  Bruno Haible  <bruno@clisp.org>
5480
5481         passfd: Fix compilation error on OpenBSD.
5482         * lib/passfd.c: Include <sys/uio.h>.
5483
5484 2011-03-13  Bruno Haible  <bruno@clisp.org>
5485
5486         passfd test: Fix warnings.
5487         * tests/test-passfd.c: Include <sys/wait.h>.
5488         (main): Fix typo.
5489
5490 2011-03-13  Bruno Haible  <bruno@clisp.org>
5491
5492         passfd module, part 4, tweaks.
5493         * tests/test-passfd.c: Reorder includes.
5494         (main): Fix perror and printf calls.
5495
5496 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5497
5498         passfd module, part 4.
5499         * modules/passfd-tests: New file.
5500         * tests/test-passfd.c: New file.
5501
5502 2011-03-13  Jim Meyering  <meyering@redhat.com>
5503
5504         Makefile: rely on GNU make; derive syntax-check rule names
5505         Rather than requiring that each sc_ rule be listed as a dependent
5506         of "check", use features of GNU make to derive the list.
5507         * Makefile (syntax-check-rules): Define.
5508         (check): Depend on the new variable, not the hard-coded list.
5509
5510 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5511             Bruno Haible  <bruno@clisp.org>
5512
5513         passfd module, part 3.
5514         * lib/passfd.h (recvfd): Add a flags argument.
5515         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5516         (recvfd): Add a flags argument.
5517         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5518         exists.
5519         * modules/passfd (Depends-on): Add cloexec.
5520         Suggested by Eric Blake.
5521
5522 2011-03-13  Bruno Haible  <bruno@clisp.org>
5523
5524         passfd module, part 2, tweaks.
5525         * modules/passfd (Files): Reorder.
5526         (Depends-on): Remove errno.
5527         (Include): Remove <sys/socket.h>, <sys/un.h>.
5528         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5529         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5530         specification header. Include <sys/socket.h> always. Don't include
5531         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5532         (sendfd): Clarify that it sets errno when it fails.
5533         (recvfd): Fix specification.
5534
5535 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5536
5537         passfd module, part 2.
5538         * modules/passfd: New file.
5539         * lib/passfd.h: New file.
5540         * lib/passfd.c: New file.
5541
5542 2011-03-12  Bruno Haible  <bruno@clisp.org>
5543
5544         wcswidth, mbswidth: Avoid integer overflow.
5545         * lib/wcswidth.c: Include <limits.h>.
5546         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5547         * lib/mbswidth.c: Include <limits.h>.
5548         (mbsnwidth): Avoid 'int' overflow.
5549         Reported by Jim Meyering.
5550
5551 2011-03-12  Bruno Haible  <bruno@clisp.org>
5552
5553         futimens, utimensat: Avoid endless recursion on Solaris 10.
5554         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5555         Solaris.
5556         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5557         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5558
5559 2011-03-11  Jim Meyering  <meyering@redhat.com>
5560
5561         maint.mk: relax a regexp to accommodate other formatting styles
5562         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5563         between "ngettext" and the following "(".
5564
5565 2011-03-11  Pádraig Brady <P@draigBrady.com>
5566
5567         maint.mk: suppress a false positive warning
5568         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5569         diagnostics are marked with ngettext.
5570
5571 2011-03-10  Eric Blake  <eblake@redhat.com>
5572
5573         wchar: add explicit dependencies, for Tru64
5574         * modules/mbmemcasecoll (Depends-on): Add wchar.
5575         * modules/mbtowc (Depends-on): Likewise.
5576         * modules/vasnprintf (Depends-on): Likewise.
5577         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5578         * modules/wctomb (Depends-on): Likewise.
5579         Reported by Peter O'Gorman.
5580
5581 2011-03-08  Bruno Haible  <bruno@clisp.org>
5582
5583         passfd module, part 1, tweaks.
5584         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5585         Improve indentation. Improve AC_MSG_CHECKING messages.
5586         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5587         gl_SOCKET_FAMILIES.
5588
5589 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5590
5591         passfd module, part 1.
5592         * m4/afunix.m4: New file.
5593         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5594         sockets.
5595
5596 2011-03-08  Bruno Haible  <bruno@clisp.org>
5597
5598         regex-quote: New API.
5599         * lib/regex-quote.h: Include <stdbool.h>.
5600         (struct regex_quote_spec): New type.
5601         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5602         New declarations.
5603         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5604         'const struct regex_quote_spec *' argument.
5605         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5606         (pcre_special): New constant.
5607         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5608         New functions.
5609         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5610         'const struct regex_quote_spec *' argument.
5611         * modules/regex-quote (Depends-on): Add stdbool.
5612         * tests/test-regex-quote.c (check): Update for new API. Add test for
5613         anchored results.
5614         * NEWS: Mention the API change.
5615         Reported by Reuben Thomas and Eric Blake.
5616
5617 2011-03-06  Bruno Haible  <bruno@clisp.org>
5618
5619         regex-quote: Fix creation of POSIX extended regular expressions.
5620         * lib/regex-quote.c (ere_special): Add grouping and alternation
5621         operators.
5622
5623 2011-03-05  Bruno Haible  <bruno@clisp.org>
5624
5625         doc: Improve doc regarding autopoint vs. gnulib.
5626         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5627         disable autopoint while running autoreconf.
5628         Suggested by Ralf Wildenhues.
5629
5630 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5631
5632         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5633         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5634
5635 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5636
5637         parse-duration: remove xalloc.h dependency
5638         * lib/parse-duration.c (parse_period): handle NULL return from
5639         strdup instead of calling xstrdup().
5640         * modules/parse-duration: remove "xalloc" dependency
5641
5642 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5643
5644         bootstrap: honor m4_base when running aclocal
5645         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5646
5647 2011-03-02  Jim Meyering  <meyering@redhat.com>
5648
5649         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5650         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5651         on request from Matt Booth.
5652
5653 2011-03-01  Eric Blake  <eblake@redhat.com>
5654
5655         test-link: work on Hurd
5656         * tests/test-link.h (test_link): Hurd rejects linking directories
5657         with EISDIR instead of the POSIX-mandated EPERM.
5658
5659 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5660
5661         stdio: simplify by moving files to printf-posix, sigpipe
5662         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5663         since this symbol is needed only if printf is replaced.
5664         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5665         Require gl_ASM_SYMBOL_PREFIX.
5666         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5667         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5668         (Depends-on): Add 'raise'.
5669         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5670         * modules/stdio (Files): Remove lib/stdio-write.c,
5671         m4/asm-underscore.m4.
5672         (Depends-on): Remove 'raise'.
5673
5674         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5675         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5676         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5677         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5678
5679 2011-02-28  Bruno Haible  <bruno@clisp.org>
5680
5681         localcharset: Assume ANSI C behaviour of free().
5682         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5683         calling free().
5684         Suggested by Simon Josefsson <simon@josefsson.org>.
5685
5686 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5687             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5688             Bruno Haible  <bruno@clisp.org>  (tiny change)
5689
5690         On Cygwin, use /proc file system instead of win32 API.
5691         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5692         Win32 file names.
5693         (DllMain): Simplify by removing Cygwin specific code.
5694         (find_shared_library_fullname): Use Linux specific implementation also
5695         for Cygwin.
5696         (get_shared_library_fullname): Update accordingly.
5697         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5698         Win32 file names.
5699         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5700         Cygwin specific code.
5701
5702 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5703             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5704
5705         Fix OpenMP flag detection for various Fortran compilers.
5706         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5707         OpenMP-conditional compilation construct, to force compile
5708         failure with missing OpenMP flag.
5709         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5710
5711 2011-02-25  Eric Blake  <eblake@redhat.com>
5712
5713         strstr: expand test coverage
5714         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5715         compilation.
5716         * tests/test-memmem.c (main): Duplicate tests.
5717         * tests/test-strcasestr.c (main): Likewise.
5718         * tests/test-c-strcasestr.c (main): Likewise.
5719
5720 2011-02-25  Jim Meyering  <meyering@redhat.com>
5721
5722         maint.mk: detect missing-NL-at-EOF, too
5723         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5724         it also detects when a file lacks a newline at EOF.
5725         (require_exactly_one_NL_at_EOF_): Renamed from
5726         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5727         since people may well have .x-sc_... file names tied to the
5728         existing name.  Suggested by Eric Blake.
5729
5730 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5731
5732         dirname: move m4/dos.m4 functionality into lib/dosname.h
5733
5734         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5735         extracts symbols from it, puts them into config.h; but it's much
5736         easier to use the symbols directly.  filename.h already does this,
5737         but it disagrees with dos.m4 in some respects.  This patch
5738         introduces a different include file dosname.h that packages up
5739         dos.m4, and then later we can work on merging filename.h and
5740         dosname.h.  Applications that need only the easy-to-configure
5741         symbols should consider including dosname.h rather than dirname.h.
5742         * NEWS: Mention incompatible changes.
5743         * m4/dos.m4: Remove.
5744         * lib/dosname.h, modules/dosname: New files.
5745         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5746         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5747         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5748         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5749         Include dosname.h, not dirname.h.
5750         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5751         Include dosname.h, for definitions of symbols like ISSLASH
5752         that used to be in config.h.
5753         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5755         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5756         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5757         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5758         * modules/rmdir (Files): Likewise.
5759         * modules/stat (Files): Likewise.
5760         * modules/unlink (Files): Likewise.
5761         * modules/dirname-lgpl (Depends-on): Add dosname.
5762         * modules/lstat (Depends-on): Likewise.
5763         * modules/openat (Depends-on): Likewise.
5764         * modules/rmdir (Depends-on): Likewise.
5765         * modules/savewd (Depends-on): Likewise.
5766         * modules/stat (Depends-on): Likewise.
5767         * modules/unlink (Depends-on): Likewise.
5768         * modules/openat (Depends-on): Remove dirname-lgpl.
5769         * modules/savewd (Depends-on): Likewise.
5770         * tests/test-dirname.c: Do not use removed symbols like
5771         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5772         the remaining symbols, e.g., ISSLASH ('\\').
5773
5774 2011-02-25  Eric Blake  <eblake@redhat.com>
5775
5776         strstr: revert patches that introduced bug and pessimization
5777         * lib/str-two-way.h: Add another reference.
5778         (two_way_short_needle, two_way_long_needle): Revert changes from
5779         2011-02-24; they pessimize search speed.
5780         (critical_factorization): Partially revert changes from
5781         2010-06-22; they violate the requirement that the left half of the
5782         needle be smaller than the period of the needle.
5783
5784 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5785
5786         filenamecat: remove unnecessary dependency on dirname-lgpl
5787         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5788         is no direct dependency, just an indirect one via filenamecat-lgpl.
5789
5790         remove: remove unnecessary use of m4/dos.m4
5791         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5792         * modules/remove (FILES): Remove m4/dos.m4.
5793
5794         * lib/openat-proc.c: Don't include dirname.h; not needed.
5795
5796         backupfile: remove unnecessary use of m4/dos.m4
5797         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5798         of its symbols are used by the backupfile code.  backupfile.c does
5799         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5800         for the rare case of programs that want all their backup file
5801         names to live within 8+3 limits, and dos.m4 doesn't address that.
5802         * modules/backupfile (Files): Remove m4/dos.m4.
5803
5804 2011-02-24  Jim Meyering  <meyering@redhat.com>
5805
5806         strstr: fix a bug whereby strstr would mistakenly return NULL
5807         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5808         in period calculation.
5809         (two_way_long_needle): Likewise.
5810         The original problem was reported by Mike Stump in
5811         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5812         Ralf Wildenhues provided the short needle and haystack.
5813         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5814         Add a more involved test to trigger the bug in two_way_long_needle.
5815
5816 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5817
5818         gnulib-tool: remove use of bold display in help screen
5819         * gnulib-tool (func_usage): Do not use bold display anymore in the
5820         help screen.  That was just meant to be a temporary emphasis for a
5821         backward-incompatible change.
5822
5823 2011-02-23  Bruno Haible  <bruno@clisp.org>
5824
5825         Fix misindentation of preprocessor directives.
5826         * lib/argp-namefrob.h: Reindent preprocessor directives.
5827         * lib/getopt_int.h (struct _getopt_data): Likewise.
5828         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5829         * lib/vasnprintf.c (decode_long_double): Likewise.
5830         * tests/test-argmatch.c: Insert blank lines, for clarity.
5831         * tests/test-exclude.c: Likewise.
5832
5833 2011-02-22  Bruno Haible  <bruno@clisp.org>
5834
5835         ioctl: Fix for MacOS X in 64-bit mode.
5836         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5837         value.
5838         Suggested by Eric Blake.
5839         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5840
5841 2011-02-22  Jim Meyering  <meyering@redhat.com>
5842
5843         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5844         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5845         in lib/.
5846
5847 2011-02-22  Eric Blake  <eblake@redhat.com>
5848
5849         maint: avoid any CDPATH issue
5850         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5851
5852         maint: adjust cpp indentation for my modules, as well
5853         * Makefile (sc_cpp_indent_check): Add my name.
5854         * lib/fbufmode.c: Filter through cppi.
5855         * lib/fpurge.c: Likewise.
5856         * lib/freadable.c: Likewise.
5857         * lib/freading.c: Likewise.
5858         * lib/fwritable.c: Likewise.
5859         * lib/fwriting.c: Likewise.
5860         * lib/sigaction.c: Likewise.
5861
5862 2011-02-22  Jim Meyering  <meyering@redhat.com>
5863
5864         maint: adjust cpp indentation to reflect nesting depth
5865         I.e., in a block of code that begins with an unnested "#if",
5866         put one space between the "#" in column 1 and following token.
5867         For example,
5868         -#include <sys/vfs.h>
5869         +# include <sys/vfs.h>
5870         Do this only in .c files that are part of a module I maintain.
5871         * lib/linkat.c: Filter through cppi.
5872         * lib/nanosleep.c: Likewise.
5873         * lib/openat.c: Likewise.
5874         * lib/openat-die.c: Likewise.
5875         * lib/dup3.c: Likewise.
5876         * lib/fchownat.c: Likewise.
5877         * lib/flock.c: Likewise.
5878         * lib/fsync.c: Likewise.
5879         * lib/fts.c: Likewise.
5880         * lib/getpass.c: Likewise.
5881         * lib/gettimeofday.c: Likewise.
5882         * lib/userspec.c: Likewise.
5883         * Makefile (sc_cpp_indent_check): New rule, to check this.
5884
5885 2011-02-22  Bruno Haible  <bruno@clisp.org>
5886
5887         New module 'wctomb'.
5888         * lib/stdlib.in.h (wctomb): New declaration.
5889         * lib/wctomb.c: New file.
5890         * lib/wctomb-impl.h: New file.
5891         * m4/wctomb.m4: New file.
5892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5893         REPLACE_WCTOMB.
5894         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5895         REPLACE_WCTOMB.
5896         * modules/wctomb: New file.
5897         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5898         * doc/posix-functions/wctomb.texi: Mention the new module.
5899         * modules/wctob (Depends-on): Add wctomb.
5900
5901 2011-02-22  Bruno Haible  <bruno@clisp.org>
5902
5903         New module 'mbtowc'.
5904         * lib/stdlib.in.h (mbtowc): New declaration.
5905         * lib/mbtowc.c: New file.
5906         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5907         * m4/mbtowc.m4: New file.
5908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5909         REPLACE_MBTOWC.
5910         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5911         REPLACE_MBTOWC.
5912         * modules/mbtowc: New file.
5913         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5914         * doc/posix-functions/mbtowc.texi: Mention the new module.
5915         * modules/btowc (Depends-on): Add mbtowc.
5916
5917 2011-02-22  Bruno Haible  <bruno@clisp.org>
5918
5919         wcrtomb: Add more tests for native Windows platforms.
5920         * tests/test-wcrtomb-w32-1.sh: New file.
5921         * tests/test-wcrtomb-w32-2.sh: New file.
5922         * tests/test-wcrtomb-w32-3.sh: New file.
5923         * tests/test-wcrtomb-w32-4.sh: New file.
5924         * tests/test-wcrtomb-w32-5.sh: New file.
5925         * tests/test-wcrtomb-w32.c: New file.
5926         * modules/wcrtomb-tests (Files): Add them.
5927         (Makefile.am): Arrange to run these tests.
5928         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5929         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5930
5931 2011-02-20  Bruno Haible  <bruno@clisp.org>
5932
5933         wcrtomb: Enhance test.
5934         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5935
5936 2011-02-20  Bruno Haible  <bruno@clisp.org>
5937
5938         mbrtowc: Tiny optimization.
5939         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5940
5941 2011-02-20  Jim Meyering  <meyering@redhat.com>
5942
5943         test-exclude.c: remove unmatched #endif
5944         * tests/test-exclude.c: Remove stray #endif, left over from
5945         the change of a week ago.
5946
5947 2011-02-19  Jim Meyering  <meyering@redhat.com>
5948
5949         git-version-gen: skip "-dirty" check when appropriate
5950         * build-aux/git-version-gen: Don't run any git commands when the
5951         version string comes from .tarball-version.  Prior to this, we
5952         would run git update-index --refresh even from a just-unpacked
5953         tarball directory, and that could affect a .git/ directory in a
5954         parent of the build directory.  Reported by Mike Frysinger.
5955
5956 2011-02-19  Bruno Haible  <bruno@clisp.org>
5957
5958         unictype/property-byname: Reduce the size of the 'data' segment.
5959         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5960
5961 2011-02-19  Bruno Haible  <bruno@clisp.org>
5962
5963         unictype/scripts: Reduce the size of the 'data' segment.
5964         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5965         '%pic'.
5966         * lib/unictype/scripts_byname.gperf: Regenerated.
5967
5968 2011-02-19  Bruno Haible  <bruno@clisp.org>
5969
5970         stdint: Update documentation.
5971         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5972
5973 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5974
5975         stdint: omit redundant check for wchar.h
5976         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5977         always tests whether wchar.h exists, so remove the now-redundant test.
5978
5979 2011-02-18  Bruno Haible  <bruno@clisp.org>
5980
5981         stdint: Cut dependency to module 'wchar'.
5982         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5983         include the necessary prerequisites.
5984         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5985         * modules/stdint (Depends-on): Remove wchar.
5986         (Makefile.am): Substitute HAVE_WCHAR_H.
5987         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5988
5989 2011-02-18  Eric Blake  <eblake@redhat.com>
5990
5991         longlong: skip, rather than fail, on cross-compilation
5992         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5993         when cross-compiling; regression from 2011-02-16.
5994
5995 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5996
5997         * NEWS: Mention 2011-02-08 change to stdlib.
5998
5999 2011-02-17  Bruno Haible  <bruno@clisp.org>
6000
6001         getloadavg: Add comments about platforms.
6002         * m4/getloadavg.m4: Add comment.
6003         * lib/getloadavg.c: Likewise.
6004
6005 2011-02-17  Bruno Haible  <bruno@clisp.org>
6006
6007         getloadavg: Fix link error on Solaris 2.6.
6008         * modules/getloadavg (Link): New section.
6009         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6010         linking test-getloadavg.
6011         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6012         getloadavg.
6013
6014 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6015
6016         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6017         It was 'int', but this doesn't match the IRIX 6.5 manual.
6018         Suggested by Bruno Haible in
6019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6020
6021 2011-02-17  Bruno Haible  <bruno@clisp.org>
6022
6023         havelib: Fix comments.
6024         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6025         change.
6026
6027 2011-02-17  Bruno Haible  <bruno@clisp.org>
6028
6029         havelib: Update config.rpath.
6030         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6031
6032 2011-02-17  Bruno Haible  <bruno@clisp.org>
6033
6034         getloadavg test: Add some plausibility checks.
6035         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6036         is improbable.
6037
6038 2011-02-16  Eric Blake  <eblake@redhat.com>
6039
6040         maintainer-makefile: make syntax-check a no-op from tarballs
6041         * top/maint.mk (no-vc-detected): New rule.
6042         (local-checks-available): Use it to avoid hanging if someone tries
6043         'make syntax-check' from a tarball.  Also append to any non-syntax
6044         checks already defined in cfg.mk.
6045
6046 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6047
6048         longlong: tune, particularly for common case of c99
6049
6050         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6051         or running anything if c99, or if unsigned long long int does not
6052         work.  In either case, we know the answer without further tests.
6053         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6054         it at most once, and use its results for both long long int and
6055         unsigned long long int.  This is more likely to be efficient in
6056         the common case where the program wants to check for both long
6057         long int and unsigned long long int.
6058         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6059         since the answer is already known.
6060
6061 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6062
6063         getloadavg: set errno
6064         * lib/getloadavg.c: Set errno when returning -1.  If no other
6065         error number looks appropriate, set it to ENOSYS if the getloadavg
6066         looks like it can't possibly ever work, ENOTSUP otherwise.
6067         Suggested by Bruno Haible in
6068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6069
6070         getloadavg: trim unused parts and speed up 'configure'
6071         * NEWS: Document this.
6072         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6073         always compiled if getloadavg is absent.
6074         Move test code to ...
6075         * tests/test-getloadavg.c: New file, containing previous
6076         contents of test from lib/getloadavg.c.  It also contains
6077         suggestions by Bruno Haible in
6078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6079         * modules/getloadavg-tests: New file.
6080         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6081         Do tests in the same order as they're needed for getloadavg.c.
6082         Omit setgid-related tests that generate symbols KMEM_GROUP,
6083         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6084         Do only the tests that are needed to see whether the system has
6085         getloadavg, moving the other tests into ...
6086         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6087         NLIST_NAME_UNION; nobody should be using it.  Do not define
6088         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6089         relevant, as the user of this module shouldn't care how getloadavg
6090         is implemented.
6091
6092         getloadavg: omit unused var
6093         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6094
6095 2011-02-15  Jim Meyering  <meyering@redhat.com>
6096
6097         doc: update users.txt
6098         * users.txt: Update iwhd's URL.
6099
6100 2011-02-13  Bruno Haible  <bruno@clisp.org>
6101
6102         Consistent macro naming for macros that use GCC __attribute__.
6103         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6104         _ATTRIBUTE_NONNULL_.
6105         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6106         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6107         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6108         ATTRIBUTE_DEPRECATED.
6109         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6110         ATTRIBUTE_NORETURN.
6111         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6112         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6113         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6114         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6115         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6116         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6117         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6118         ATTRIBUTE_SENTINEL.
6119         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6120         ATTRIBUTE_RETURN_CHECK.
6121         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6122         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6123         ATTRIBUTE_NORETURN.
6124         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6125         Reported by Paul Eggert.
6126
6127 2011-02-13  Bruno Haible  <bruno@clisp.org>
6128
6129         Don't interfere with a program's definition of __attribute__.
6130         * lib/argp.h (__attribute__): Remove definition.
6131         (_GL_ATTRIBUTE_FORMAT): New macro.
6132         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6133         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6134         (_GL_ATTRIBUTE_FORMAT): New macro.
6135         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6136         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6137         GCC 3 or newer.
6138         * lib/error.h (__attribute__): Remove definition.
6139         (_GL_ATTRIBUTE_FORMAT): New macro.
6140         (error, error_at_line): Use it.
6141         * lib/hash.h (__attribute__): Remove definition.
6142         (ATTRIBUTE_WUR): Update definition. Define always.
6143         * lib/openat.h (__attribute__): Remove definition.
6144         (ATTRIBUTE_NORETURN): Update definition. Define always.
6145         * lib/sigpipe-die.h (__attribute__): Remove definition.
6146         (ATTRIBUTE_NORETURN): Update definition. Define always.
6147         * lib/vasnprintf.h (__attribute__): Remove definition.
6148         (_GL_ATTRIBUTE_FORMAT): New macro.
6149         (asnprintf, vasnprintf): Use it.
6150         * lib/xalloc.h (__attribute__): Remove definition.
6151         (ATTRIBUTE_NORETURN): Update definition. Define always.
6152         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6153         * lib/xmemdup0.h (__attribute__): Remove definition.
6154         (ATTRIBUTE_NORETURN): Update definition. Define always.
6155         * lib/xprintf.h (__attribute__): Remove definition.
6156         (_GL_ATTRIBUTE_FORMAT): New macro.
6157         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6158         * lib/xstrtol.h (__attribute__): Remove definition.
6159         (ATTRIBUTE_NORETURN): Update definition. Define always.
6160         * lib/xvasprintf.h (__attribute__): Remove definition.
6161         (_GL_ATTRIBUTE_FORMAT): New macro.
6162         (xasprintf, xvasprintf): Use it.
6163         * tests/test-argmatch.c (__attribute__): Remove definition.
6164         (ATTRIBUTE_NORETURN): Update definition. Define always.
6165         * tests/test-exclude.c (__attribute__): Remove definition.
6166         (ATTRIBUTE_NORETURN): Update definition. Define always.
6167         Reported by Paul Eggert.
6168
6169 2011-02-13  Bruno Haible  <bruno@clisp.org>
6170
6171         mbrtowc: Add more tests for native Windows platforms.
6172         * tests/test-mbrtowc-w32-1.sh: New file.
6173         * tests/test-mbrtowc-w32-2.sh: New file.
6174         * tests/test-mbrtowc-w32-3.sh: New file.
6175         * tests/test-mbrtowc-w32-4.sh: New file.
6176         * tests/test-mbrtowc-w32-5.sh: New file.
6177         * tests/test-mbrtowc-w32.c: New file.
6178         * modules/mbrtowc-tests (Files): Add them.
6179         (Makefile.am): Arrange to run these tests.
6180         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6181         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6182
6183 2011-02-13  Bruno Haible  <bruno@clisp.org>
6184
6185         mbrtowc: Work around native Windows bug.
6186         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6187         guess when no suitable locale for testing was found.
6188         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6189
6190 2011-02-13  Bruno Haible  <bruno@clisp.org>
6191
6192         mbsinit: Work around mingw bug.
6193         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6194         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6195         Windows.
6196         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6197
6198 2011-02-13  Bruno Haible  <bruno@clisp.org>
6199
6200         mbsinit: Don't crash for a NULL argument.
6201         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6202         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6203
6204 2011-02-13  Bruno Haible  <bruno@clisp.org>
6205
6206         Don't interfere with a program's definition of __attribute__.
6207         * lib/stdio.in.h (__attribute__): Remove definition.
6208         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6209         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6210         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6211         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6212         * lib/string.in.h (__attribute__): Remove definition.
6213         Reported by Paul Eggert.
6214
6215 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6216
6217         stdlib: don't get in the way of non-GCC __attribute__
6218         See thread starting at
6219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6220         Revert previous stdlib change, installing the following instead:
6221         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6222         to get in the way of a non-GCC compiler that supports __attribute__.
6223         (_GL_ATTRIBUTE_RETURN): New macro.
6224         (_Exit): Use it instead of __attribute__.
6225
6226 2011-02-12  Bruno Haible  <bruno@clisp.org>
6227
6228         quotearg test: Avoid test failure on mingw.
6229         * tests/test-quotearg.sh: Convert the locale identifier from native
6230         Windows syntax to Unix syntax.
6231
6232 2011-02-12  Bruno Haible  <bruno@clisp.org>
6233
6234         setlocale: Prefer gnulib's override over libintl's override.
6235         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6236         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6237         GNULIB_defined_setlocale is set.
6238
6239 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6240
6241         stdlib: support non-GCC __attribute__
6242
6243         Fix a serious and tricky problem encountered when attempting to
6244         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6245         5.5, but it crashed due to memory corruption on Solaris 10 with
6246         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6247         bits that are otherwise zero.  This tagging is optional inside
6248         Emacs but is preferred and is used when __attribute__ ((__aligned
6249         (8))) works, as it does with both recent-enough GCC and with Sun C
6250         5.11.  However, Sun C 5.11 is not GCC and does not #define
6251         __GNUC__ and __GNUC_MINOR__.
6252
6253         When I added the getloadavg module to Emacs, it brought in
6254         stdlib.in.h, which contained this fragment:
6255
6256            #ifndef __attribute__
6257            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6258            #  define __attribute__(Spec)   /* empty */
6259            # endif
6260            #endif
6261
6262         When files that include <stdlib.h> were compiled with Sun C 5.11,
6263         the above code disabled __attribute__ ((__aligned (8))), which
6264         caused variables to not be properly aligned, which eventually led
6265         to the pointer corruption mentioned above.  (This was a bit hard
6266         to diagnose, unfortunately.)
6267
6268         Several "#define __attribute__(X) /* empty */" code snippets need
6269         to be eradicated from Gnulib to work with non-GCC compilers that
6270         support __attribute__.  The Autoconf way to do this is to test for
6271         each kind of attribute that we want support for, and selectively
6272         enable that in source code.
6273
6274         Fix this problem just for stdlib.h, by adding a test for the
6275         __noreturn__ attribute, and change stdlib.in.h to use that test
6276         when needed.  This technique can be easily generalized to the
6277         other *.in.h files and attributes, and a similar technique can be
6278         used for *.h and *.c files.  This patch is enough to solve the
6279         problem for Emacs + getloadavg, and I thought I'd publish it for
6280         feedback before undertaking further, similar fixes in other
6281         modules.
6282
6283         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6284         because it's not needed for stdlib.h.  It merely substitutes the
6285         value directly into stdlib.h.  We may well need to #define it, or
6286         similar symbols, for other modules, but it's nice to also have an
6287         option to not #define it for applications like Emacs that do not
6288         need it.
6289
6290         * lib/stdlib.in.h (__attribute__): Do not #define.
6291         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6292         be defined only if the _Exit module is also used.
6293         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6295         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6296         platforms.
6297         * modules/_Exit (Files): Add m4/attribute.m4.
6298         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6299         * m4/attribute.m4: New file.
6300
6301 2011-02-12  Bruno Haible  <bruno@clisp.org>
6302
6303         wcsrtombs: Work around bug on native Windows.
6304         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6305         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6306         instead of len.
6307         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6308
6309 2011-02-12  Bruno Haible  <bruno@clisp.org>
6310
6311         mbsrtowcs: Work around bug on native Windows.
6312         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6313         against mingw bug.
6314         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6315
6316 2011-02-12  Bruno Haible  <bruno@clisp.org>
6317
6318         Avoid setlocale bugs in tests.
6319         * modules/btowc (Dependencies): Add setlocale.
6320         * modules/c-strcase (Dependencies): Likewise.
6321         * modules/mbmemcasecmp (Dependencies): Likewise.
6322         * modules/mbmemcasecoll (Dependencies): Likewise.
6323         * modules/mbrtowc (Dependencies): Likewise.
6324         * modules/mbscasecmp (Dependencies): Likewise.
6325         * modules/mbscasestr (Dependencies): Likewise.
6326         * modules/mbschr (Dependencies): Likewise.
6327         * modules/mbscspn (Dependencies): Likewise.
6328         * modules/mbsinit (Dependencies): Likewise.
6329         * modules/mbsncasecmp (Dependencies): Likewise.
6330         * modules/mbsnrtowcs (Dependencies): Likewise.
6331         * modules/mbspbrk (Dependencies): Likewise.
6332         * modules/mbspcasecmp (Dependencies): Likewise.
6333         * modules/mbsrchr (Dependencies): Likewise.
6334         * modules/mbsrtowcs (Dependencies): Likewise.
6335         * modules/mbsspn (Dependencies): Likewise.
6336         * modules/mbsstr (Dependencies): Likewise.
6337         * modules/nl_langinfo (Dependencies): Likewise.
6338         * modules/quotearg (Dependencies): Likewise.
6339         * modules/unicase/locale-language (Dependencies): Likewise.
6340         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6341         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6342         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6343         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6344         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6345         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6346         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6347         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6348         * modules/vasnprintf-posix (Dependencies): Likewise.
6349         * modules/wcrtomb (Dependencies): Likewise.
6350         * modules/wcsnrtombs (Dependencies): Likewise.
6351         * modules/wcsrtombs (Dependencies): Likewise.
6352
6353 2011-02-12  Bruno Haible  <bruno@clisp.org>
6354
6355         setlocale: Workaround native Windows bug.
6356         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6357         succeeds but sets LC_CTYPE to "C", report a failure.
6358         * tests/test-setlocale2.sh: New file.
6359         * tests/test-setlocale2.c: New file.
6360         * modules/setlocale-tests (Files): Add the new files.
6361         (Makefile.am): Enable test-setlocale2.sh test.
6362         * doc/posix-functions/setlocale.texi: Mention workaround.
6363
6364 2011-02-11  Bruno Haible  <bruno@clisp.org>
6365
6366         Tests for module 'setlocale'.
6367         * modules/setlocale-tests: New file.
6368         * tests/test-setlocale1.sh: New file.
6369         * tests/test-setlocale1.c: New file.
6370
6371         New module 'setlocale'.
6372         * lib/locale.in.h (setlocale): New declaration.
6373         * lib/setlocale.c: New file, based on
6374         gettext/gettext-runtime/intl/setlocale.c.
6375         * m4/setlocale.m4: New file.
6376         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6377         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6378         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6379         REPLACE_SETLOCALE.
6380         * modules/setlocale: New file.
6381         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6382         * doc/posix-functions/setlocale.texi: Mention the new module.
6383
6384 2011-02-11  Bruno Haible  <bruno@clisp.org>
6385
6386         Prepare for locale dependent tests on mingw.
6387         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6388         because it has the wrong locale encoding.
6389         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6390         French_France.1252 instead of "fr".
6391         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6392         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6393         because it has the wrong locale encoding.
6394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6395         native Windows, try Turkish_Turkey.65001.
6396         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6397         Chinese_China.54936.
6398
6399         Prepare for locale dependent tests on mingw.
6400         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6401         differently.
6402         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6403         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6404         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6405         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6406
6407 2011-02-11  Eric Blake  <eblake@redhat.com>
6408
6409         strptime: avoid compiler warnings
6410         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6411         compiler warnings about dead code.
6412         Reported by Daniel P. Berrange.
6413
6414 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6415
6416         doc: update users.txt
6417         * users.txt: Add rcs.
6418
6419 2011-02-10  John W. Eaton  <jwe@gnu.org>
6420
6421         doc: update users.txt
6422         * users.txt: Add octave.
6423
6424 2011-02-10  Jim Meyering  <meyering@redhat.com>
6425
6426         doc: update users.txt
6427         * users.txt: Add iwhd.
6428
6429 2011-02-09  Bruno Haible  <bruno@clisp.org>
6430
6431         gnulib-tool: Make copyright notice adjustment more robust.
6432         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6433         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6434         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6435         License".
6436         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6437
6438 2011-02-06  Bruno Haible  <bruno@clisp.org>
6439
6440         New module 'towctrans'.
6441         * modules/towctrans: New file.
6442         * lib/wctype.in.h (towctrans): New declaration.
6443         * lib/towctrans.c: New file.
6444         * lib/towctrans-impl.h: New file.
6445         * m4/towctrans.m4: New file.
6446         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6447         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6448         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6449         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6450         * doc/posix-functions/towctrans.texi: Mention the new module.
6451
6452 2011-02-06  Bruno Haible  <bruno@clisp.org>
6453
6454         New module 'wctrans'.
6455         * modules/wctrans: New file.
6456         * lib/wctype.in.h (wctrans): New declaration.
6457         * lib/wctrans.c: New file.
6458         * lib/wctrans-impl.h: New file.
6459         * m4/wctrans.m4: New file.
6460         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6461         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6462         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6463         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6464         * doc/posix-functions/wctrans.texi: Mention the new module.
6465
6466 2011-02-06  Bruno Haible  <bruno@clisp.org>
6467
6468         New module 'iswctype'.
6469         * modules/iswctype: New file.
6470         * lib/wctype.in.h (iswctype): New declaration.
6471         * lib/iswctype.c: New file.
6472         * lib/iswctype-impl.h: New file.
6473         * m4/iswctype.m4: New file.
6474         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6475         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6476         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6477         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6478         * doc/posix-functions/iswctype.texi: Mention the new module and the
6479         HP-UX 11.00 problem.
6480
6481 2011-02-06  Bruno Haible  <bruno@clisp.org>
6482
6483         New module 'wctype'.
6484         * modules/wctype: Change to represent the wctype() substitute.
6485         * lib/wctype.in.h (wctype): New declaration.
6486         * lib/wctype.c: New file.
6487         * lib/wctype-impl.h: New file.
6488         * m4/wctype.m4: New file.
6489         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6490         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6491         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6492         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6493         * doc/posix-functions/wctype.texi: Mention the new module and the
6494         HP-UX 11.00 problem.
6495
6496 2011-02-06  Bruno Haible  <bruno@clisp.org>
6497
6498         wctype-h: Ensure wctype_t and wctrans_t are defined.
6499         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6500         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6501         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6502         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6503         HAVE_WCTRANS_T.
6504         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6505
6506 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6507
6508         flock: fix license typo
6509
6510         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6511         omitted.
6512
6513 2011-02-08  Bruno Haible  <bruno@clisp.org>
6514
6515         Split large sed scripts, for HP-UX sed.
6516         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6517         to avoid HP-UX limit of 99 commands, in the near future.
6518         * modules/stdlib (Makefile.am): Likewise.
6519         * modules/unistd (Makefile.am): Likewise.
6520         * modules/wchar (Makefile.am): Likewise.
6521         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6522         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6524
6525 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6526             Bruno Haible  <bruno@clisp.org>
6527
6528         stdlib: improve random_r modularization
6529         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6530         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6531         you also need the random_r module to get this material right.
6532         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6533         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6534         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6535
6536 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6537
6538         stdlib: don't depend on stdint
6539         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6540         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6541         be independent of whether stdint.h is needed.
6542         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6543         here, instead of ...
6544         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6545         struct random_data should be using the random_r module, not just
6546         the stdlib module (which wouldn't make sense: what package needs
6547         just struct random_data without also needing random_r?).
6548         * modules/stdlib (Depends-on): Remove stdint.
6549
6550         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6551         See the thread rooted at
6552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6553         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6554         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6555         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6556         __VMS)); previously it was always included (via fcntl--.h).
6557         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6558         hand; this is good enough for load averages.  Also, do not use
6559         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6560         flags directly if available and don't bother otherwise.  (Packages
6561         that need the extra reliability should use the modules that define
6562         these flags on older platforms that lack them.)
6563         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6564         fcntl-safer.
6565
6566 2011-02-08  Jim Meyering  <meyering@redhat.com>
6567
6568         di-set.h, ino-map.h: add multiple-inclusion guard
6569         Technically, the guard is required only for ino-map.h, due to its
6570         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6571         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6572         * lib/ino-map.h: Likewise.
6573
6574 2011-02-06  Bruno Haible  <bruno@clisp.org>
6575
6576         iswblank: Ensure declaration on glibc systems.
6577         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6578         * modules/iswblank (Dependencies): Add 'extensions'.
6579         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6580
6581 2011-02-06  Bruno Haible  <bruno@clisp.org>
6582
6583         New module 'iswblank'.
6584         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6585         * modules/iswblank: New file.
6586         * modules/wctype-h (Files): Remove lib/iswblank.c.
6587         (Makefile.am): Substitute GNULIB_ISWBLANK.
6588         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6589         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6590         (gl_WCTYPE_H_DEFAULTS): New macro.
6591         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6592         * modules/iswblank-tests: New file.
6593         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6594         * tests/test-wctype-h.c (main): Remove iswblank tests.
6595         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6596         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6597         of 'wctype-h'.
6598         * NEWS: Mention the change.
6599         * modules/mbchar (Depends-on): Add iswblank.
6600
6601 2011-02-08  Bruno Haible  <bruno@clisp.org>
6602
6603         di-set tests: Refactor.
6604         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6605         unnecessary includes.
6606         (ASSERT): Remove macro.
6607         (main): Make C90 compliant by avoiding variable declaration after
6608         statement.
6609         * modules/di-set-tests (Files): Add tests/macros.h.
6610
6611 2011-02-08  Bruno Haible  <bruno@clisp.org>
6612
6613         ino-map tests: Refactor.
6614         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6615         unnecessary includes.
6616         (ASSERT): Remove macro.
6617         (main): Make C90 compliant by avoiding variable declaration after
6618         statement.
6619         * modules/ino-map-tests (Files): Add tests/macros.h.
6620
6621 2011-02-08  Jim Meyering  <meyering@redhat.com>
6622
6623         di-set: add "const" to a cast
6624         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6625         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6626
6627 2011-02-06  Bruno Haible  <bruno@clisp.org>
6628
6629         Rename module 'wctype' to 'wctype-h'.
6630         * modules/wctype-h: Renamed from modules/wctype.
6631         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6632         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6633         (Files, Depends-on, Makefile.am): Update.
6634         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6635         (Files, Makefile.am): Update.
6636         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6637         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6638         * doc/posix-headers/wctype.texi: Update.
6639         * doc/posix-functions/iswalnum.texi: Update.
6640         * doc/posix-functions/iswalpha.texi: Update.
6641         * doc/posix-functions/iswblank.texi: Update.
6642         * doc/posix-functions/iswcntrl.texi: Update.
6643         * doc/posix-functions/iswdigit.texi: Update.
6644         * doc/posix-functions/iswgraph.texi: Update.
6645         * doc/posix-functions/iswlower.texi: Update.
6646         * doc/posix-functions/iswprint.texi: Update.
6647         * doc/posix-functions/iswpunct.texi: Update.
6648         * doc/posix-functions/iswspace.texi: Update.
6649         * doc/posix-functions/iswupper.texi: Update.
6650         * doc/posix-functions/iswxdigit.texi: Update.
6651         * doc/posix-functions/towlower.texi: Update.
6652         * doc/posix-functions/towupper.texi: Update.
6653         * NEWS: Mention the change.
6654         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6655         * modules/mbchar (Dependencies): Likewise.
6656         * modules/mbswidth (Dependencies): Likewise.
6657         * modules/quotearg (Dependencies): Likewise.
6658         * modules/regex (Dependencies): Likewise.
6659         * modules/wcscasecmp (Dependencies): Likewise.
6660         * modules/wcsncasecmp (Dependencies): Likewise.
6661         * modules/wcwidth (Dependencies): Likewise.
6662
6663 2011-02-06  Bruno Haible  <bruno@clisp.org>
6664
6665         New module 'wcswidth'.
6666         * modules/wcswidth: New file.
6667         * lib/wchar.in.h (wcswidth): New declaration.
6668         * lib/wcswidth.c: New file.
6669         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6670         * m4/wcswidth.m4: New file.
6671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6673         REPLACE_WCSWIDTH.
6674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6675         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6676         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6677         * doc/posix-functions/wcswidth.texi: Mention the new module.
6678
6679 2011-02-06  Bruno Haible  <bruno@clisp.org>
6680
6681         New module 'wcstok'.
6682         * modules/wcstok: New file.
6683         * lib/wchar.in.h (wcstok): New declaration.
6684         * lib/wcstok.c: New file.
6685         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6686         * m4/wcstok.m4: New file.
6687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6690         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6691         * doc/posix-functions/wcstok.texi: Mention the new module.
6692
6693 2011-02-06  Bruno Haible  <bruno@clisp.org>
6694
6695         New module 'wcsstr'.
6696         * modules/wcsstr: New file.
6697         * lib/wchar.in.h (wcsstr): New declaration.
6698         * lib/wcsstr.c: New file.
6699         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6700         * m4/wcsstr.m4: New file.
6701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6704         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6705         * doc/posix-functions/wcsstr.texi: Mention the new module.
6706
6707 2011-02-06  Bruno Haible  <bruno@clisp.org>
6708
6709         New module 'wcspbrk'.
6710         * modules/wcspbrk: New file.
6711         * lib/wchar.in.h (wcspbrk): New declaration.
6712         * lib/wcspbrk.c: New file.
6713         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6714         * m4/wcspbrk.m4: New file.
6715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6718         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6719         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6720
6721 2011-02-06  Bruno Haible  <bruno@clisp.org>
6722
6723         New module 'wcsspn'.
6724         * modules/wcsspn: New file.
6725         * lib/wchar.in.h (wcsspn): New declaration.
6726         * lib/wcsspn.c: New file.
6727         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6728         * m4/wcsspn.m4: New file.
6729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6732         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6733         * doc/posix-functions/wcsspn.texi: Mention the new module.
6734
6735 2011-02-06  Bruno Haible  <bruno@clisp.org>
6736
6737         New module 'wcscspn'.
6738         * modules/wcscspn: New file.
6739         * lib/wchar.in.h (wcscspn): New declaration.
6740         * lib/wcscspn.c: New file.
6741         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6742         * m4/wcscspn.m4: New file.
6743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6746         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6747         * doc/posix-functions/wcscspn.texi: Mention the new module.
6748
6749 2011-02-06  Bruno Haible  <bruno@clisp.org>
6750
6751         New module 'wcsrchr'.
6752         * modules/wcsrchr: New file.
6753         * lib/wchar.in.h (wcsrchr): New declaration.
6754         * lib/wcsrchr.c: New file.
6755         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6756         * m4/wcsrchr.m4: New file.
6757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6760         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6761         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6762
6763 2011-02-06  Bruno Haible  <bruno@clisp.org>
6764
6765         New module 'wcschr'.
6766         * modules/wcschr: New file.
6767         * lib/wchar.in.h (wcschr): New declaration.
6768         * lib/wcschr.c: New file.
6769         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6770         * m4/wcschr.m4: New file.
6771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6774         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6775         * doc/posix-functions/wcschr.texi: Mention the new module.
6776
6777 2011-02-06  Bruno Haible  <bruno@clisp.org>
6778
6779         New module 'wcsdup'.
6780         * modules/wcsdup: New file.
6781         * lib/wchar.in.h (wcsdup): New declaration.
6782         * lib/wcsdup.c: New file.
6783         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6784         * m4/wcsdup.m4: New file.
6785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6788         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6789         * doc/posix-functions/wcsdup.texi: Mention the new module.
6790
6791 2011-02-06  Bruno Haible  <bruno@clisp.org>
6792
6793         New module 'wcsxfrm'.
6794         * modules/wcsxfrm: New file.
6795         * lib/wchar.in.h (wcsxfrm): New declaration.
6796         * lib/wcsxfrm.c: New file.
6797         * lib/wcsxfrm-impl.h: New file.
6798         * m4/wcsxfrm.m4: New file.
6799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6802         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6803         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6804
6805 2011-02-06  Bruno Haible  <bruno@clisp.org>
6806
6807         New module 'wcscoll'.
6808         * modules/wcscoll: New file.
6809         * lib/wchar.in.h (wcscoll): New declaration.
6810         * lib/wcscoll.c: New file.
6811         * lib/wcscoll-impl.h: New file.
6812         * m4/wcscoll.m4: New file.
6813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6816         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6817         * doc/posix-functions/wcscoll.texi: Mention the new module.
6818
6819 2011-02-06  Bruno Haible  <bruno@clisp.org>
6820
6821         New module 'wcsncasecmp'.
6822         * modules/wcsncasecmp: New file.
6823         * lib/wchar.in.h (wcsncasecmp): New declaration.
6824         * lib/wcsncasecmp.c: New file.
6825         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6826         * m4/wcsncasecmp.m4: New file.
6827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6830         HAVE_WCSNCASECMP.
6831         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6832         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6833
6834 2011-02-06  Bruno Haible  <bruno@clisp.org>
6835
6836         New module 'wcscasecmp'.
6837         * modules/wcscasecmp: New file.
6838         * lib/wchar.in.h (wcscasecmp): New declaration.
6839         * lib/wcscasecmp.c: New file.
6840         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6841         * m4/wcscasecmp.m4: New file.
6842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6845         HAVE_WCSCASECMP.
6846         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6847         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6848
6849 2011-02-05  Bruno Haible  <bruno@clisp.org>
6850
6851         New module 'wcsncmp'.
6852         * modules/wcsncmp: New file.
6853         * lib/wchar.in.h (wcsncmp): New declaration.
6854         * lib/wcsncmp.c: New file.
6855         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6856         * m4/wcsncmp.m4: New file.
6857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6860         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6861         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6862
6863 2011-02-05  Bruno Haible  <bruno@clisp.org>
6864
6865         New module 'wcscmp'.
6866         * modules/wcscmp: New file.
6867         * lib/wchar.in.h (wcscmp): New declaration.
6868         * lib/wcscmp.c: New file.
6869         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6870         * m4/wcscmp.m4: New file.
6871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6873         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6874         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6875         * doc/posix-functions/wcscmp.texi: Mention the new module.
6876
6877 2011-02-05  Bruno Haible  <bruno@clisp.org>
6878
6879         New module 'wcsncat'.
6880         * modules/wcsncat: New file.
6881         * lib/wchar.in.h (wcsncat): New declaration.
6882         * lib/wcsncat.c: New file.
6883         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6884         * m4/wcsncat.m4: New file.
6885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6887         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6888         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6889         * doc/posix-functions/wcsncat.texi: Mention the new module.
6890
6891 2011-02-05  Bruno Haible  <bruno@clisp.org>
6892
6893         New module 'wcscat'.
6894         * modules/wcscat: New file.
6895         * lib/wchar.in.h (wcscat): New declaration.
6896         * lib/wcscat.c: New file.
6897         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6898         * m4/wcscat.m4: New file.
6899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6902         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6903         * doc/posix-functions/wcscat.texi: Mention the new module.
6904
6905 2011-02-05  Bruno Haible  <bruno@clisp.org>
6906
6907         New module 'wcpncpy'.
6908         * modules/wcpncpy: New file.
6909         * lib/wchar.in.h (wcpncpy): New declaration.
6910         * lib/wcpncpy.c: New file.
6911         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6912         * m4/wcpncpy.m4: New file.
6913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6915         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6916         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6917         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6918
6919 2011-02-05  Bruno Haible  <bruno@clisp.org>
6920
6921         New module 'wcsncpy'.
6922         * modules/wcsncpy: New file.
6923         * lib/wchar.in.h (wcsncpy): New declaration.
6924         * lib/wcsncpy.c: New file.
6925         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6926         * m4/wcsncpy.m4: New file.
6927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6930         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6931         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6932
6933 2011-02-05  Bruno Haible  <bruno@clisp.org>
6934
6935         New module 'wcpcpy'.
6936         * modules/wcpcpy: New file.
6937         * lib/wchar.in.h (wcpcpy): New declaration.
6938         * lib/wcpcpy.c: New file.
6939         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6940         * m4/wcpcpy.m4: New file.
6941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6943         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6944         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6945         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6946
6947 2011-02-05  Bruno Haible  <bruno@clisp.org>
6948
6949         New module 'wcscpy'.
6950         * modules/wcscpy: New file.
6951         * lib/wchar.in.h (wcscpy): New declaration.
6952         * lib/wcscpy.c: New file.
6953         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6954         * m4/wcscpy.m4: New file.
6955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6958         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6959         * doc/posix-functions/wcscpy.texi: Mention the new module.
6960
6961 2011-02-05  Bruno Haible  <bruno@clisp.org>
6962
6963         New module 'wcsnlen'.
6964         * modules/wcsnlen: New file.
6965         * lib/wchar.in.h (wcsnlen): New declaration.
6966         * lib/wcsnlen.c: New file.
6967         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6968         * m4/wcsnlen.m4: New file.
6969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6972         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6973         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6974
6975 2011-02-05  Bruno Haible  <bruno@clisp.org>
6976
6977         New module 'wcslen'.
6978         * modules/wcslen: New file.
6979         * lib/wchar.in.h (wcslen): New declaration.
6980         * lib/wcslen.c: New file.
6981         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6982         * m4/wcslen.m4: New file.
6983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6986         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6987         * doc/posix-functions/wcslen.texi: Mention the new module.
6988
6989 2011-02-05  Bruno Haible  <bruno@clisp.org>
6990
6991         New module 'wmemset'.
6992         * modules/wmemset: New file.
6993         * lib/wchar.in.h (wmemset): New declaration.
6994         * lib/wmemset.c: New file.
6995         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6996         * m4/wmemset.m4: New file.
6997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6999         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7000         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7001         * doc/posix-functions/wmemset.texi: Mention the new module.
7002
7003 2011-02-05  Bruno Haible  <bruno@clisp.org>
7004
7005         New module 'wmemmove'.
7006         * modules/wmemmove: New file.
7007         * lib/wchar.in.h (wmemmove): New declaration.
7008         * lib/wmemmove.c: New file.
7009         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7010         * m4/wmemmove.m4: New file.
7011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7013         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7014         HAVE_WMEMMOVE.
7015         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7016         * doc/posix-functions/wmemmove.texi: Mention the new module.
7017
7018 2011-02-05  Bruno Haible  <bruno@clisp.org>
7019
7020         New module 'wmemcpy'.
7021         * modules/wmemcpy: New file.
7022         * lib/wchar.in.h (wmemcpy): New declaration.
7023         * lib/wmemcpy.c: New file.
7024         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7025         * m4/wmemcpy.m4: New file.
7026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7028         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7029         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7030         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7031
7032 2011-02-05  Bruno Haible  <bruno@clisp.org>
7033
7034         New module 'wmemcmp'.
7035         * modules/wmemcmp: New file.
7036         * lib/wchar.in.h (wmemcmp): New declaration.
7037         * lib/wmemcmp.c: New file.
7038         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7039         * m4/wmemcmp.m4: New file.
7040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7042         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7043         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7044         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7045
7046 2011-02-07  Jim Meyering  <meyering@redhat.com>
7047
7048         di-set, ino-map: new modules, from coreutils
7049         * lib/di-set.c: New file.
7050         * lib/di-set.h: Likewise.
7051         * lib/ino-map.c: Likewise.
7052         * lib/ino-map.h: Likewise.
7053         * modules/di-set: Likewise.
7054         * modules/di-set-tests: Likewise.
7055         * modules/ino-map: Likewise.
7056         * modules/ino-map-tests: Likewise.
7057         * tests/test-di-set.c: Likewise.
7058         * tests/test-ino-map.c: Likewise.
7059
7060 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7061
7062         getloadavg: merge minor changes from Emacs
7063
7064         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7065         (getloadavg): Use memset, not bzero.
7066
7067         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7068         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7069         clash (bug#86).
7070
7071 2010-11-14  Bruno Haible  <bruno@clisp.org>
7072
7073         Allow multiple gnulib generated replacements to coexist.
7074         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7075         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7076         * lib/langinfo.in.h (nl_item): Likewise.
7077         * lib/math.in.h (_NaN, NAN): Likewise.
7078         * lib/netdb.in.h (struct addrinfo): Likewise.
7079         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7080         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7081         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7082         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7083         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7084         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7085         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7086         pthread_mutexattr_init, pthread_mutexattr_settype,
7087         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7088         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7089         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7090         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7091         * lib/sched.in.h (struct sched_param): Likewise.
7092         * lib/se-selinux.in.h (security_class_t, security_context_t,
7093         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7094         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7095         lsetfilecon, fsetfilecon, security_check_context,
7096         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7097         Likewise.
7098         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7099         Likewise.
7100         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7101         _gl_function_taking_int_returning_void_t, union sigval,
7102         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7103         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7104         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7105         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7106         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7107         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7108         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7109         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7110         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7111         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7112         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7113         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7114         socklen_t, rpl_fd_isset): Likewise.
7115         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7116         * lib/sys_time.in.h (struct timeval): Likewise.
7117         * lib/sys_times.in.h (struct tms): Likewise.
7118         * lib/sys_utsname.in.h (struct utsname):
7119         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7120         * lib/unistd.in.h (getpagesize): Likewise.
7121         * lib/wchar.in.h (mbstate_t): Likewise.
7122         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7123         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7124         towlower, towupper): Likewise.
7125         Reported by Sam Steingold <sds@gnu.org>.
7126
7127 2011-02-05  Eric Blake  <eblake@redhat.com>
7128
7129         unsetenv: work around Haiku issues
7130         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7131         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7132
7133 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7134
7135         libposix: avoid calling error() within libposix
7136         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7137         is defined.
7138
7139 2011-02-05  Eric Blake  <eblake@redhat.com>
7140
7141         strerror_r-posix: port to cygwin
7142         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7143         implementation.
7144         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7145         * tests/test-strerror_r.c (main): Fix test.
7146         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7147         issue.
7148
7149 2011-02-05  Bruno Haible  <bruno@clisp.org>
7150
7151         New module 'wmemchr'.
7152         * modules/wmemchr: New file.
7153         * lib/wchar.in.h (wmemchr): New declaration.
7154         * lib/wmemchr.c: New file.
7155         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7156         * m4/wmemchr.m4: New file.
7157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7159         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7160         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7161         * doc/posix-functions/wmemchr.texi: Mention the new module.
7162
7163 2011-02-04  Eric Blake  <eblake@redhat.com>
7164
7165         fdopendir: detect FreeBSD bug
7166         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7167         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7168
7169 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7170
7171         stdbool: do not define HAVE_STDBOOL_H
7172         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7173         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7174         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7175         imported from the latest Autoconf git.  It was motivated by Emacs,
7176         which uses gnulib but does not need HAVE_STDBOOL_H.
7177
7178 2011-02-04  Bruno Haible  <bruno@clisp.org>
7179
7180         wcsnrtombs: Prepare for new module wwcsnrtombs.
7181         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7182         * lib/wcsnrtombs.c: Include it.
7183         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7184
7185         wcsrtombs: Prepare for new module wwcsrtombs.
7186         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7187         * lib/wcsrtombs.c: Include it.
7188         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7189
7190         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7191         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7192         * lib/mbsnrtowcs.c: Include it.
7193         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7194
7195         mbsrtowcs: Prepare for new module mbsrtowwcs.
7196         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7197         * lib/mbsrtowcs.c: Include it.
7198         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7199
7200 2011-02-04  Bruno Haible  <bruno@clisp.org>
7201
7202         vasnprintf: Reduce use of malloc for small format strings.
7203         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7204         (arguments): Add room for the first 7 arguments.
7205         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7206         (char_directives, u8_directives, u16_directives, u32_directives): Add
7207         room for the first 7 directives.
7208         * lib/printf-parse.c: Include <string.h>.
7209         (PRINTF_PARSE): Change memory handling code so that it uses the first
7210         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7211         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7212         Reported by Pádraig Brady <P@draigbrady.com>.
7213
7214 2011-01-31  Eric Blake  <eblake@redhat.com>
7215
7216         dup2: work around Haiku bug
7217         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7218         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7219         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7220         * tests/test-dup2.c (main): Enhance test.
7221
7222 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7223
7224         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7225         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7226         declared by eglibc 2.11.2.
7227         * lib/stdio.in.h: Likewise.
7228
7229 2011-01-31  Eric Blake  <eblake@redhat.com>
7230
7231         ignore-value: add missing test dependency
7232         * tests/test-ignore-value.c: Revert previous change; stdio.h
7233         provides off_t.
7234         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7235
7236 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7237
7238         mktime: clarify long_int width checking
7239         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7240         the top level, to make it clearer that the assumption about
7241         long_int width is being checked.  See
7242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7243
7244 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7245
7246         ignore-value: Fix self-test.
7247         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7248
7249 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7250
7251         TYPE_MAXIMUM: avoid theoretically undefined behavior
7252         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7253         negative number, which the C Standard says has undefined behavior.
7254         In practice this is not a problem, but might as well do it by the book.
7255         Reported by Rich Felker and Eric Blake; see
7256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7257         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7258         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7260         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7261         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7262         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7263
7264         mktime: #undef mktime before #defining it
7265         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7266
7267         mktime: systematically normalize tm_isdst comparisons
7268         * lib/mktime.c (isdst_differ): New function.
7269         (__mktime_internal): Use it systematically for all isdst comparisons.
7270         This completes the fix for libc BZ #6723, and removes the need for
7271         normalizing tm_isdst.  See
7272         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7273         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7274
7275         mktime: fix some integer overflow issues and sidestep the rest
7276
7277         This was prompted by a bug report by Benjamin Lindner for MinGW
7278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7279         His bug is due to signed integer overflow (0 - INT_MIN), and I
7280         I scanned through mktime.c looking for other integer overflow
7281         problems, fixing all the bugs I found.
7282
7283         Although the C Standard says the resulting code is still not safe
7284         in the presence of integer overflow, in practice it should be good
7285         enough for all real-world two's-complement implementations, except
7286         for debugging environments that deliberately trap on integer
7287         overflow (e.g., gcc -ftrapv).
7288
7289         * lib/mktime.c (WRAPV): New macro.
7290         (SHR): Also check that long_int and time_t shift right in the
7291         usual way, before using the fast-but-unportable method.
7292         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7293         used.  The code already assumed two's complement, so there's
7294         no need to test for alternatives.  All uses removed.
7295         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7296         the C standard.  Problem reported by Rich Felker in
7297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7298         (twos_complement_arithmetic): Also check long_int and time_t.
7299         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7300         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7301         (__mktime_internal): Avoid integer overflow with unary subtraction
7302         in two instances where -1 - X is an adequate replacement for -X,
7303         since the calculations are approximate.
7304
7305 2011-01-29  Eric Blake  <eblake@redhat.com>
7306
7307         mktime: avoid infinite loop
7308         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7309         type; behavior is still undefined but portable to all known targets.
7310         Reported by Rich Felker.
7311
7312 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7313
7314         rename, unlink, same-inode: Relicense.
7315         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7316         * modules/unlink (License): Likewise.
7317         * modules/same-inode (License): Likewise.
7318
7319 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7320
7321         mktime: avoid problems on NetBSD 5 / i386
7322         * lib/mktime.c (long_int): New type.  This works around a problem
7323         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7324         but time_t is 64 bits, and where I expect the existing code is
7325         wrong in some cases.
7326         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7327         (ydhms_diff): Bring back the compile-time check for wide-enough
7328         year and yday.
7329
7330         mktime: fix misspelling in comment
7331         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7332         This merges all recent glibc changes of importance.
7333
7334 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7335
7336         move-if-change: cope with concurrent mv of identical file.
7337         * build-aux/move-if-change (CMPPROG): Accept environment
7338         variable as an override for `cmp'.
7339         (usage): Document CMPPROG.
7340         Adjust comparison to drop stdout.  Cope with failure of mv if
7341         the target file exists and is identical to the source, for
7342         parallel builds.
7343         Report from H.J. Lu against binutils in PR binutils/12283.
7344
7345 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7346
7347         * users.txt: Mention sharutils.
7348
7349 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7350
7351         * users.txt: Mention OATH Toolkit.
7352
7353 2011-01-27  Bruno Haible  <bruno@clisp.org>
7354
7355         Prepare for supporting FreeBSD 10.
7356         * build-aux/config.libpath: Remove handling of freebsd1*.
7357
7358 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7359
7360         Prepare for supporting FreeBSD 10.
7361         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7362         match FreeBSD 10.0.
7363
7364 2011-01-27  Bruno Haible  <bruno@clisp.org>
7365
7366         vma-iter, get-rusage-as: Add OpenBSD support.
7367         * modules/vma-iter (configure.ac): Test for mquery.
7368         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7369         * lib/vma-iter.c: Include <sys/mman.h>.
7370         (vma_iterate): Add an implementation based on mquery().
7371         * lib/resource-ext.h (get_rusage_as): Update comments.
7372         * lib/get-rusage-as.c: Likewise.
7373         * lib/get-rusage-data.c: Likewise.
7374
7375 2011-01-26  Karl Berry  <karl@gnu.org>
7376
7377         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7378         variables to make it easier to override the makeinfo program used.
7379
7380 2011-01-26  Eric Blake  <eblake@redhat.com>
7381
7382         fcntl: work around Haiku F_DUPFD bugs
7383         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7384         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7385         cloexec bit on duplication.
7386         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7387
7388 2011-01-26  Bruno Haible  <bruno@clisp.org>
7389
7390         Enable memory leak tests on AIX.
7391         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7392         * tests/test-fprintf-posix3.c (main): Likewise.
7393
7394 2011-01-26  Bruno Haible  <bruno@clisp.org>
7395
7396         Tests for module 'get-rusage-data'.
7397         * modules/get-rusage-data-tests: New file.
7398         * tests/test-get-rusage-data.c: New file.
7399
7400         New module 'get-rusage-data'.
7401         * lib/resource-ext.h (get_rusage_data): New declaration.
7402         * lib/get-rusage-data.c: New file.
7403         * modules/get-rusage-data: New file.
7404
7405 2011-01-25  Bruno Haible  <bruno@clisp.org>
7406
7407         get-rusage-as: Allow for easier testing.
7408         * lib/resource-ext.h (get_rusage_as): Add comment.
7409         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7410         (main): New function for interactive testing.
7411
7412 2011-01-25  Bruno Haible  <bruno@clisp.org>
7413
7414         vma-iter: Treat Haiku like BeOS.
7415         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7416         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7417
7418 2011-01-25  Eric Blake  <eblake@redhat.com>
7419
7420         c-stack: fix regression on cygwin when libsigsegv is present
7421         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7422
7423 2011-01-24  Bruno Haible  <bruno@clisp.org>
7424
7425         vma-iter: Avoid empty intervals.
7426         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7427         on an empty interval.
7428
7429 2011-01-24  Jim Meyering  <meyering@redhat.com>
7430
7431         u64: remove unnecessary #include
7432         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7433
7434 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7435
7436         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7437         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7438
7439 2011-01-23  Bruno Haible  <bruno@clisp.org>
7440
7441         New module 'vma-iter'.
7442         * lib/vma-iter.h: New file.
7443         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7444         * modules/vma-iter: New file.
7445         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7446         for get_rusage_as_via_iterator.
7447         (vma_iterate_callback): New function.
7448         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7449         * modules/get-rusage-as (Depends-on): Add vma-iter.
7450
7451 2011-01-23  Bruno Haible  <bruno@clisp.org>
7452
7453         uninorm: Tweak includes.
7454         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7455         Reported by Jim Meyering.
7456
7457 2011-01-23  Bruno Haible  <bruno@clisp.org>
7458
7459         get-rusage-as: Improve on NetBSD.
7460         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7461         /proc, like on FreeBSD.
7462
7463 2011-01-23  Jim Meyering  <meyering@redhat.com>
7464
7465         xreadlink.h: remove unnecessary #include
7466         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7467
7468         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7469         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7470
7471 2011-01-23  Bruno Haible  <bruno@clisp.org>
7472
7473         get-rusage-as: Fix bug.
7474         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7475         original limit when aborting the first loop.
7476
7477 2011-01-23  Bruno Haible  <bruno@clisp.org>
7478
7479         wctype: Ensure valid C syntax.
7480         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7481         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7482
7483 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7484
7485         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7487         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7488         as they are needed only for configure's test case.
7489         This removes two unnecessary symbols from config.h.
7490
7491         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7492         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7494         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7495         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7496         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7497         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7498         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7499         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7500         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7501         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7502         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7503         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7504         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7505         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7506         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7507         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7508         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7509
7510 2011-01-21  Eric Blake  <eblake@redhat.com>
7511
7512         maintainer-makefile: work with older git for submodule check
7513         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7514         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7515         Reported by Matthias Bolte.
7516
7517         bootstrap: minor portability fixes
7518         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7519         (usage): Omit leading capital and trailing . on help phrases, per
7520         GNU Coding Standards.
7521         (check_versions, top level): Prefix messages with script name.
7522
7523 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7524
7525         bootstrap: support --no-git option
7526         * build-aux/bootstrap: Add --no-git option, to be used when
7527         --gnulib-srcdir points to the exact desired checkout.
7528
7529 2011-01-21  Eric Blake  <eblake@redhat.com>
7530
7531         strerror_r-posix: work with glibc 2.13
7532         * lib/strerror_r.c (strerror_r): Fix return type.
7533
7534 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7535             Bruno Haible  <bruno@clisp.org>
7536
7537         uN_strstr: New unit tests.
7538         * modules/unistr/u8-strstr-tests: New file.
7539         * modules/unistr/u16-strstr-tests: New file.
7540         * modules/unistr/u32-strstr-tests: New file.
7541         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7542         * tests/unistr/test-u8-strstr.c: New file.
7543         * tests/unistr/test-u16-strstr.c: New file.
7544         * tests/unistr/test-u32-strstr.c: New file.
7545
7546 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7547             Bruno Haible  <bruno@clisp.org>
7548
7549         Make uN_strstr functions O(n) worst-case.
7550         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7551         16-bit and 32-bit unit cases, use the unibyte algorithm from
7552         lib/mbsstr.c.
7553         * lib/unistr/u8-strstr.c: Include <string.h>.
7554         (UNIT_IS_UINT8_T): New macro.
7555         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7556         (U_STRLEN, U_STRNLEN): New macros.
7557         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7558         (U_STRLEN, U_STRNLEN): New macros.
7559         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7560         (configure.ac): Update required libunistring version.
7561         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7562         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7563         malloca.
7564         (configure.ac): Update required libunistring version.
7565         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7566         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7567         malloca.
7568         (configure.ac): Update required libunistring version.
7569
7570 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7571             Bruno Haible  <bruno@clisp.org>
7572
7573         Prepare for faster uN_strstr functions.
7574         * lib/str-kmp.h: Support definable UNITs.
7575         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7576         needle_len argument.
7577         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7578         * lib/mbscasestr.c (mbscasestr): Likewise.
7579
7580 2011-01-21  Pádraig Brady <P@draigBrady.com>
7581
7582         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7583         * tests/test-malloca.c (main): Unset the environment variable
7584         to greatly speed up the test.
7585         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7586         * modules/malloca-tests: Depend on unsetenv.
7587
7588 2011-01-21  Pádraig Brady <P@draigBrady.com>
7589
7590         ignore-value: remove stdint dependency
7591         * lib/ignore-value.h: Remove <stdint.h>
7592         * modules/ignore-value: Remove stdint dependency.
7593
7594 2011-01-21  Jim Meyering  <meyering@redhat.com>
7595
7596         maint.mk: adjust variable name to be consistent with other gl_ vars
7597         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7598         to be lower case.
7599
7600 2011-01-20  Jim Meyering  <meyering@redhat.com>
7601
7602         maint.mk: make "check" depend on public-submodule-commit by default
7603         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7604
7605 2011-01-20  Bruno Haible  <bruno@clisp.org>
7606
7607         mbfile, mbiter: Complete change from 2008-12-21.
7608         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7609         * m4/mbiter.m4 (gl_MBITER): Likewise.
7610
7611 2011-01-20  Jim Meyering  <meyering@redhat.com>
7612
7613         init.sh: insert space between each function name and "()"
7614         * tests/init.sh: Make it a little easier to see that a function's
7615         name is "warn_", and not "warn" when looking at the first part of
7616         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7617
7618 2011-01-20  Jim Meyering  <meyering@redhat.com>
7619
7620         mountlist: clean up code formatting
7621         * lib/mountlist.c (read_file_system_list): Split a long line,
7622         correct bracing style, use NULL in place of "(struct statfs *)0",
7623         don't parenthesize return value, add spaces around "=" and after
7624         ";-in-for-stmt".
7625
7626 2011-01-14  Markus Duft <mduft@gentoo.org>
7627
7628         mountlist: add support for Interix
7629         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7630         Apply statvfs to all entries of /dev/fs.
7631         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7632         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7633
7634 2011-01-20  Jim Meyering  <meyering@redhat.com>
7635
7636         maint.mk: improve the public-submodule-commit rule
7637         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7638         to suppress printing of its commands... unless V=1.
7639         Add git submodule's --quiet option to suppress printing of e.g.,
7640         "Entering gnulib" output.
7641         "cd" into $(srcdir) before running git submodule.
7642
7643 2011-01-20  Bruno Haible  <bruno@clisp.org>
7644
7645         include_next: Fix bug introduced on 2011-01-18.
7646         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7647         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7648         ac_cv_header_... variable if the second argument is not 'check'.
7649         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7650         gl_NEXT_HEADERS_INTERNAL.
7651
7652 2011-01-20  Bruno Haible  <bruno@clisp.org>
7653
7654         Allow the user to avoid the GNULIB_TEST_* macros.
7655         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7656         Suggested by Paul Eggert.
7657
7658 2011-01-14  Jim Meyering  <meyering@redhat.com>
7659
7660         bootstrap: avoid failure when there is no .gitmodules file
7661         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7662         has been assigned to, even when its value is the empty string.
7663         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7664         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7665         Reported by John W. Eaton <jwe@gnu.org>.
7666
7667 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7668
7669         assume <ctype.h>, ..., <time.h> exist
7670         For years gnulib has been assuming the existence of the headers
7671         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7672         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7673         them, since they don't appear to be needed.
7674         * README (Portability guidelines): Document this.
7675         * lib/flock.c: Assume <fcntl.h> exists.
7676         * lib/regex_internal.h: Assume <locale.h> exists.
7677         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7679         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7680         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7681         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7682         * m4/regex.m4 (gl_REGEX): Likewise.
7683         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7684         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7685         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7686         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7687         * tests/test-argp.c: Likewise.
7688         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7689
7690         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7691         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7692         AA_APPLE_UNIVERSAL_BUILD.  See
7693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7694         * NEWS: Document this.
7695
7696 2011-01-19  Eric Blake  <eblake@redhat.com>
7697
7698         c-stack: assume stack overflow if SA_SIGINFO unsupported
7699         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7700         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7701         sigaction will work.
7702         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7703         behavior match Linux.
7704         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7705
7706         stdbool-tests: accomodate Haiku
7707         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7708
7709         binary-io: fix O_TEXT on Haiku
7710         * modules/binary-io (Depends-on): Add fcntl-h.
7711         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7712         than blindly undefining O_TEXT.
7713         Reported by Scott McCreary.
7714
7715 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7716
7717         include_next: do not check for standard headers like stddef.h
7718
7719         I found this problem when modifying Emacs to use gnulib.
7720         I noticed that it added HAVE_STDDEF_H to config.h, even though
7721         gnulib always assumes <stddef.h> exists as per README and this
7722         symbol is unnecessary.
7723         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7724         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7725         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7726         faster for headers like stddef.h that are known to exist.
7727         (gl_CHECK_NEXT_HEADERS): Use it.
7728         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7729         rather than gl_CHECK_NEXT_HEADERS.
7730         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7731         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7732
7733 2011-01-18  Eric Blake  <eblake@redhat.com>
7734
7735         ansi-c++-opt: skip C++ dependency style if C++ is unused
7736         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7737         tests when we know C++ compilation is not desired.
7738         Reported by Scott McCreary.
7739
7740 2011-01-18  Bruno Haible  <bruno@clisp.org>
7741
7742         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7743         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7744         (main): Perform test also when getrlimit and setrlimit don't exist or
7745         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7746         limiting the address space size using setrlimit, compare the address
7747         space size before and after the the test.
7748         * tests/test-dprintf-posix2.c: Likewise.
7749         * tests/test-fprintf-posix3.sh: Update skip messages.
7750         * tests/test-dprintf-posix2.sh: Likewise.
7751         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7752         * modules/dprintf-posix-tests (Depends-on): Likewise.
7753         Reported by Bruce Korb <bkorb@gnu.org> and
7754         Gary V. Vaughan <gary@gnu.org>.
7755
7756 2011-01-18  Bruno Haible  <bruno@clisp.org>
7757
7758         get-rusage-as: Improvement for Cygwin.
7759         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7760         areas that are merely reserved.
7761
7762 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7763
7764         strftime: remove dependencies on multibyte modules
7765
7766         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7767         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7768         only if __osf__ is defined, and I suspect OSF doesn't need these
7769         other modules.  If my guess is wrong, we'll need to come up with a
7770         variant of strftime that doesn't need the multibyte modules.
7771
7772         I discovered this problem when attempting modify Emacs to use the
7773         strftime module.  With the previous gnulib, this caused Emacs to
7774         need 31 new files, ranging from lib/config.charset to
7775         m4/wint_t.m4.  This was overkill and I expect would be offputting
7776         to the Emacs maintainers.  After this change, only 6 new files are
7777         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7778         stdbool.m4, and tm_gmtoff.m4.
7779
7780         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7781         Suggested by Bruno Haible in
7782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7783         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7784         and do not check for wchar.h.
7785         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7786         (Depends-on): Remove mbrlen, mbsinit, wchar.
7787
7788 2011-01-18  Bruno Haible  <bruno@clisp.org>
7789
7790         Tests for module 'get-rusage-as'.
7791         * modules/get-rusage-as-tests: New file.
7792         * tests/test-get-rusage-as.c: New file.
7793
7794         New module 'get-rusage-as'.
7795         * modules/get-rusage-as: New file.
7796         * lib/resource-ext.h: New file.
7797         * lib/get-rusage-as.c: New file.
7798
7799 2011-01-17  Eric Blake  <eblake@redhat.com>
7800
7801         sigaction: relax license from LGPLv3+ to LGPLv2+
7802         * modules/sigaction (License): Relax to LGPLv2+.
7803
7804 2011-01-14  Bruno Haible  <bruno@clisp.org>
7805
7806         filemode: Make function declarations usable in C++ mode.
7807         * lib/filemode.h: Enclose function declarations in extern "C" block.
7808         Reported by John W. Eaton <jwe@gnu.org>.
7809
7810 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7811
7812         save-cwd: no longer include "xgetcwd.h"
7813         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7814         This avoids a compilation failure in projects that use save-cwd
7815         without also using the xgetcwd module.
7816
7817 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7818
7819         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7820         This is so that a program like Emacs, which needs only dtoastr,
7821         does not have to bother with distributing and compiling ftoastr
7822         and ldtoastr.
7823         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7824         * modules/dtoastr, modules/ldtoastr: New files.
7825         * modules/ftoastr: Now works just for 'float'.
7826         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7827         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7828         dtoastr.c, ldtoastr.c.
7829
7830 2011-01-11  Jim Meyering  <meyering@redhat.com>
7831
7832         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7833         There is no need to work around the lack of the fchdir function,
7834         since gnulib can now provide a replacement when required.
7835         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7836         * modules/save-cwd (Depends-on): Add fchdir.
7837
7838 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7839
7840         openat, save-cwd: avoid xmalloc
7841
7842         This removes a direct (but undocumented) dependency of openat on
7843         xalloc, along with an indirect dependency via save-cwd.  It also
7844         removes a dependency of save-cwd on xgetcwd, and thereby
7845         indirectly on xalloc.  This change causes the openat substitute
7846         to fall back on save_cwd when memory is tight, and for save_cwd to
7847         fail instead of dying when memory is tight, but that's good enough.
7848         Problem and initial idea for fix reported by Bastien Roucaries in
7849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7850
7851         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7852         xalloc.h (for xmalloc).
7853         (openat_proc_name): Use malloc, not xmalloc.
7854         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7855         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7856
7857         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7858         This avoids heap allocation for file names whose lengths are in
7859         the range 512..1023, with the upper bound increasing to at most
7860         4031 depending on the platform's PATH_MAX.  (We do not want
7861         pathmax.h here as it might supply a non-constant PATH_MAX.)
7862         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7863         Perhaps they should be moved to malloca.h?
7864         (OPENAT_BUFFER_SIZE): Use them.
7865
7866 2011-01-10  Bruno Haible  <bruno@clisp.org>
7867
7868         doc: Update users.txt.
7869         * users.txt: Add recutils.
7870
7871 2011-01-09  Karl Berry  <karl@gnu.org>
7872
7873         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7874
7875         * doc/configmake.texi: New file.
7876         * doc/gnulib.texi: Include it.
7877         * modules/configmake: Move documentation from here.
7878
7879 2011-01-09  Bruno Haible  <bruno@clisp.org>
7880
7881         Update to Unicode 6.0.0.
7882         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7883         (get_lbp): Update for Unicode 6.0.0.
7884         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7885         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7886         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7887         U+11001, U+11038..U+11046. Remove U+06DE.
7888         (uc_width): Fix bounds of planes.
7889         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7890         lib/uniwidth/width.c.
7891         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7892         trailing whitespace removed.
7893         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7894         without comments, but with the original copyright notice.
7895         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7896         * lib/unicase/ignorable.h: Likewise.
7897         * lib/unicase/tocasefold.h: Likewise.
7898         * lib/unicase/tolower.h: Likewise.
7899         * lib/unicase/totitle.h: Likewise.
7900         * lib/unicase/toupper.h: Likewise.
7901         * lib/unictype/bidi_of.h: Likewise.
7902         * lib/unictype/blocks.h: Likewise.
7903         * lib/unictype/categ_C.h: Likewise.
7904         * lib/unictype/categ_Cn.h: Likewise.
7905         * lib/unictype/categ_L.h: Likewise.
7906         * lib/unictype/categ_Ll.h: Likewise.
7907         * lib/unictype/categ_Lm.h: Likewise.
7908         * lib/unictype/categ_Lo.h: Likewise.
7909         * lib/unictype/categ_Lu.h: Likewise.
7910         * lib/unictype/categ_M.h: Likewise.
7911         * lib/unictype/categ_Mc.h: Likewise.
7912         * lib/unictype/categ_Me.h: Likewise.
7913         * lib/unictype/categ_Mn.h: Likewise.
7914         * lib/unictype/categ_N.h: Likewise.
7915         * lib/unictype/categ_Nd.h: Likewise.
7916         * lib/unictype/categ_No.h: Likewise.
7917         * lib/unictype/categ_P.h: Likewise.
7918         * lib/unictype/categ_Po.h: Likewise.
7919         * lib/unictype/categ_S.h: Likewise.
7920         * lib/unictype/categ_Sc.h: Likewise.
7921         * lib/unictype/categ_Sk.h: Likewise.
7922         * lib/unictype/categ_Sm.h: Likewise.
7923         * lib/unictype/categ_So.h: Likewise.
7924         * lib/unictype/categ_of.h: Likewise.
7925         * lib/unictype/combining.h: Likewise.
7926         * lib/unictype/ctype_alnum.h: Likewise.
7927         * lib/unictype/ctype_alpha.h: Likewise.
7928         * lib/unictype/ctype_graph.h: Likewise.
7929         * lib/unictype/ctype_lower.h: Likewise.
7930         * lib/unictype/ctype_print.h: Likewise.
7931         * lib/unictype/ctype_punct.h: Likewise.
7932         * lib/unictype/ctype_upper.h: Likewise.
7933         * lib/unictype/decdigit.h: Likewise.
7934         * lib/unictype/digit.h: Likewise.
7935         * lib/unictype/numeric.h: Likewise.
7936         * lib/unictype/pr_alphabetic.h: Likewise.
7937         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7938         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7939         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7940         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7941         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7942         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7943         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7944         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7945         * lib/unictype/pr_case_ignorable.h: Likewise.
7946         * lib/unictype/pr_cased.h: Likewise.
7947         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7948         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7949         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7950         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7951         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7952         * lib/unictype/pr_combining.h: Likewise.
7953         * lib/unictype/pr_composite.h: Likewise.
7954         * lib/unictype/pr_currency_symbol.h: Likewise.
7955         * lib/unictype/pr_decimal_digit.h: Likewise.
7956         * lib/unictype/pr_deprecated.h: Likewise.
7957         * lib/unictype/pr_format_control.h: Likewise.
7958         * lib/unictype/pr_grapheme_base.h: Likewise.
7959         * lib/unictype/pr_grapheme_extend.h: Likewise.
7960         * lib/unictype/pr_grapheme_link.h: Likewise.
7961         * lib/unictype/pr_id_continue.h: Likewise.
7962         * lib/unictype/pr_id_start.h: Likewise.
7963         * lib/unictype/pr_ideographic.h: Likewise.
7964         * lib/unictype/pr_lowercase.h: Likewise.
7965         * lib/unictype/pr_math.h: Likewise.
7966         * lib/unictype/pr_numeric.h: Likewise.
7967         * lib/unictype/pr_other_alphabetic.h: Likewise.
7968         * lib/unictype/pr_other_id_continue.h: Likewise.
7969         * lib/unictype/pr_other_math.h: Likewise.
7970         * lib/unictype/pr_punctuation.h: Likewise.
7971         * lib/unictype/pr_sentence_terminal.h: Likewise.
7972         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7973         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7974         * lib/unictype/pr_unified_ideograph.h: Likewise.
7975         * lib/unictype/pr_uppercase.h: Likewise.
7976         * lib/unictype/pr_xid_continue.h: Likewise.
7977         * lib/unictype/pr_xid_start.h: Likewise.
7978         * lib/unictype/scripts.h: Likewise.
7979         * lib/unictype/scripts_byname.gperf: Likewise.
7980         * lib/unictype/sy_java_ident.h: Likewise.
7981         * lib/unigbrk/gbrkprop.h: Likewise.
7982         * lib/unilbrk/lbrkprop1.h: Likewise.
7983         * lib/unilbrk/lbrkprop2.h: Likewise.
7984         * lib/uninorm/decomposition-table2.h: Likewise.
7985         * lib/uniwbrk/wbrkprop.h: Likewise.
7986         * tests/unicase/test-cased.c: Likewise.
7987         * tests/unicase/test-ignorable.c: Likewise.
7988         * tests/unicase/test-uc_tolower.c: Likewise.
7989         * tests/unicase/test-uc_totitle.c: Likewise.
7990         * tests/unicase/test-uc_toupper.c: Likewise.
7991         * tests/unictype/test-categ_C.c: Likewise.
7992         * tests/unictype/test-categ_Cn.c: Likewise.
7993         * tests/unictype/test-categ_L.c: Likewise.
7994         * tests/unictype/test-categ_Ll.c: Likewise.
7995         * tests/unictype/test-categ_Lm.c: Likewise.
7996         * tests/unictype/test-categ_Lo.c: Likewise.
7997         * tests/unictype/test-categ_Lu.c: Likewise.
7998         * tests/unictype/test-categ_M.c: Likewise.
7999         * tests/unictype/test-categ_Mc.c: Likewise.
8000         * tests/unictype/test-categ_Me.c: Likewise.
8001         * tests/unictype/test-categ_Mn.c: Likewise.
8002         * tests/unictype/test-categ_N.c: Likewise.
8003         * tests/unictype/test-categ_Nd.c: Likewise.
8004         * tests/unictype/test-categ_No.c: Likewise.
8005         * tests/unictype/test-categ_P.c: Likewise.
8006         * tests/unictype/test-categ_Po.c: Likewise.
8007         * tests/unictype/test-categ_S.c: Likewise.
8008         * tests/unictype/test-categ_Sc.c: Likewise.
8009         * tests/unictype/test-categ_Sk.c: Likewise.
8010         * tests/unictype/test-categ_Sm.c: Likewise.
8011         * tests/unictype/test-categ_So.c: Likewise.
8012         * tests/unictype/test-ctype_alnum.c: Likewise.
8013         * tests/unictype/test-ctype_alpha.c: Likewise.
8014         * tests/unictype/test-ctype_graph.c: Likewise.
8015         * tests/unictype/test-ctype_lower.c: Likewise.
8016         * tests/unictype/test-ctype_print.c: Likewise.
8017         * tests/unictype/test-ctype_punct.c: Likewise.
8018         * tests/unictype/test-ctype_upper.c: Likewise.
8019         * tests/unictype/test-decdigit.h: Likewise.
8020         * tests/unictype/test-digit.h: Likewise.
8021         * tests/unictype/test-numeric.h: Likewise.
8022         * tests/unictype/test-pr_alphabetic.c: Likewise.
8023         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8024         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8025         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8026         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8027         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8028         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8029         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8030         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8031         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8032         * tests/unictype/test-pr_cased.c: Likewise.
8033         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8034         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8035         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8036         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8037         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8038         * tests/unictype/test-pr_combining.c: Likewise.
8039         * tests/unictype/test-pr_composite.c: Likewise.
8040         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8041         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8042         * tests/unictype/test-pr_deprecated.c: Likewise.
8043         * tests/unictype/test-pr_format_control.c: Likewise.
8044         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8045         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8046         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8047         * tests/unictype/test-pr_id_continue.c: Likewise.
8048         * tests/unictype/test-pr_id_start.c: Likewise.
8049         * tests/unictype/test-pr_ideographic.c: Likewise.
8050         * tests/unictype/test-pr_lowercase.c: Likewise.
8051         * tests/unictype/test-pr_math.c: Likewise.
8052         * tests/unictype/test-pr_numeric.c: Likewise.
8053         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8054         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8055         * tests/unictype/test-pr_other_math.c: Likewise.
8056         * tests/unictype/test-pr_punctuation.c: Likewise.
8057         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8058         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8059         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8060         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8061         * tests/unictype/test-pr_uppercase.c: Likewise.
8062         * tests/unictype/test-pr_xid_continue.c: Likewise.
8063         * tests/unictype/test-pr_xid_start.c: Likewise.
8064         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8065         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8066         changes.
8067         * lib/unictype/categ_Cc.h: Likewise.
8068         * lib/unictype/categ_Cf.h: Likewise.
8069         * lib/unictype/categ_Co.h: Likewise.
8070         * lib/unictype/categ_Cs.h: Likewise.
8071         * lib/unictype/categ_Lt.h: Likewise.
8072         * lib/unictype/categ_Nl.h: Likewise.
8073         * lib/unictype/categ_Pc.h: Likewise.
8074         * lib/unictype/categ_Pd.h: Likewise.
8075         * lib/unictype/categ_Pe.h: Likewise.
8076         * lib/unictype/categ_Pf.h: Likewise.
8077         * lib/unictype/categ_Pi.h: Likewise.
8078         * lib/unictype/categ_Ps.h: Likewise.
8079         * lib/unictype/categ_Z.h: Likewise.
8080         * lib/unictype/categ_Zl.h: Likewise.
8081         * lib/unictype/categ_Zp.h: Likewise.
8082         * lib/unictype/categ_Zs.h: Likewise.
8083         * lib/unictype/ctype_blank.h: Likewise.
8084         * lib/unictype/ctype_cntrl.h: Likewise.
8085         * lib/unictype/ctype_digit.h: Likewise.
8086         * lib/unictype/ctype_space.h: Likewise.
8087         * lib/unictype/ctype_xdigit.h: Likewise.
8088         * lib/unictype/mirror.h: Likewise.
8089         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8090         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8091         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8092         * lib/unictype/pr_bidi_control.h: Likewise.
8093         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8094         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8095         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8096         * lib/unictype/pr_bidi_pdf.h: Likewise.
8097         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8098         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8099         * lib/unictype/pr_dash.h: Likewise.
8100         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8101         * lib/unictype/pr_diacritic.h: Likewise.
8102         * lib/unictype/pr_extender.h: Likewise.
8103         * lib/unictype/pr_hex_digit.h: Likewise.
8104         * lib/unictype/pr_hyphen.h: Likewise.
8105         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8106         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8107         * lib/unictype/pr_ignorable_control.h: Likewise.
8108         * lib/unictype/pr_iso_control.h: Likewise.
8109         * lib/unictype/pr_join_control.h: Likewise.
8110         * lib/unictype/pr_left_of_pair.h: Likewise.
8111         * lib/unictype/pr_line_separator.h: Likewise.
8112         * lib/unictype/pr_logical_order_exception.h: Likewise.
8113         * lib/unictype/pr_non_break.h: Likewise.
8114         * lib/unictype/pr_not_a_character.h: Likewise.
8115         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8116         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8117         * lib/unictype/pr_other_id_start.h: Likewise.
8118         * lib/unictype/pr_other_lowercase.h: Likewise.
8119         * lib/unictype/pr_other_uppercase.h: Likewise.
8120         * lib/unictype/pr_paired_punctuation.h: Likewise.
8121         * lib/unictype/pr_paragraph_separator.h: Likewise.
8122         * lib/unictype/pr_pattern_syntax.h: Likewise.
8123         * lib/unictype/pr_pattern_white_space.h: Likewise.
8124         * lib/unictype/pr_private_use.h: Likewise.
8125         * lib/unictype/pr_quotation_mark.h: Likewise.
8126         * lib/unictype/pr_radical.h: Likewise.
8127         * lib/unictype/pr_soft_dotted.h: Likewise.
8128         * lib/unictype/pr_space.h: Likewise.
8129         * lib/unictype/pr_titlecase.h: Likewise.
8130         * lib/unictype/pr_variation_selector.h: Likewise.
8131         * lib/unictype/pr_white_space.h: Likewise.
8132         * lib/unictype/pr_zero_width.h: Likewise.
8133         * lib/unictype/sy_c_ident.h: Likewise.
8134         * lib/unictype/sy_c_whitespace.h: Likewise.
8135         * lib/unictype/sy_java_whitespace.h: Likewise.
8136         * lib/uninorm/composition-table.gperf: Likewise.
8137         * lib/uninorm/decomposition-table1.h: Likewise.
8138         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8139         LB8.
8140         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8141         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8142         * modules/unictype/*: Bump version number of expected libunistring
8143         version.
8144
8145 2011-01-09  Bruno Haible  <bruno@clisp.org>
8146
8147         Update to Unicode 5.2.0.
8148         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8149         trailing whitespace removed.
8150
8151 2011-01-09  Bruno Haible  <bruno@clisp.org>
8152
8153         New Unicode character properties, from Unicode 5.2.0.
8154         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8155         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8156         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8157         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8158         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8159         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8160         uc_is_property_cased, uc_is_property_case_ignorable,
8161         uc_is_property_changes_when_lowercased,
8162         uc_is_property_changes_when_uppercased,
8163         uc_is_property_changes_when_titlecased,
8164         uc_is_property_changes_when_casefolded,
8165         uc_is_property_changes_when_casemapped): New declarations.
8166         * lib/unictype/pr_byname.gperf: Add the new properties.
8167         * modules/unictype/property-byname (Depends-on): Depend on the new
8168         properties modules.
8169         * modules/unictype/property-all (Depends-on): Likewise.
8170         * MODULES.html.sh (Unicode string functions): Add
8171         unictype/property-case-ignorable, unictype/property-cased,
8172         unictype/property-changes-when-casefolded,
8173         unictype/property-changes-when-casemapped,
8174         unictype/property-changes-when-lowercased,
8175         unictype/property-changes-when-titlecased,
8176         unictype/property-changes-when-uppercased.
8177
8178         New module 'unictype/property-changes-when-casemapped'.
8179         * modules/unictype/property-changes-when-casemapped: New file.
8180         * lib/unictype/pr_changes_when_casemapped.c: New file.
8181         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8182         generated by gen-uni-tables.
8183         * modules/unictype/property-changes-when-casemapped-tests: New file.
8184         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8185         automatically generated by gen-uni-tables.
8186
8187         New module 'unictype/property-changes-when-casefolded'.
8188         * modules/unictype/property-changes-when-casefolded: New file.
8189         * lib/unictype/pr_changes_when_casefolded.c: New file.
8190         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8191         generated by gen-uni-tables.
8192         * modules/unictype/property-changes-when-casefolded-tests: New file.
8193         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8194         automatically generated by gen-uni-tables.
8195
8196         New module 'unictype/property-changes-when-titlecased'.
8197         * modules/unictype/property-changes-when-titlecased: New file.
8198         * lib/unictype/pr_changes_when_titlecased.c: New file.
8199         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8200         generated by gen-uni-tables.
8201         * modules/unictype/property-changes-when-titlecased-tests: New file.
8202         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8203         automatically generated by gen-uni-tables.
8204
8205         New module 'unictype/property-changes-when-uppercased'.
8206         * modules/unictype/property-changes-when-uppercased: New file.
8207         * lib/unictype/pr_changes_when_uppercased.c: New file.
8208         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8209         generated by gen-uni-tables.
8210         * modules/unictype/property-changes-when-uppercased-tests: New file.
8211         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8212         automatically generated by gen-uni-tables.
8213
8214         New module 'unictype/property-changes-when-lowercased'.
8215         * modules/unictype/property-changes-when-lowercased: New file.
8216         * lib/unictype/pr_changes_when_lowercased.c: New file.
8217         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8218         generated by gen-uni-tables.
8219         * modules/unictype/property-changes-when-lowercased-tests: New file.
8220         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8221         automatically generated by gen-uni-tables.
8222
8223         New module 'unictype/property-case-ignorable'.
8224         * modules/unictype/property-case-ignorable: New file.
8225         * lib/unictype/pr_case_ignorable.c: New file.
8226         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8227         by gen-uni-tables.
8228         * modules/unictype/property-case-ignorable-tests: New file.
8229         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8230         generated by gen-uni-tables.
8231
8232         New module 'unictype/property-cased'.
8233         * modules/unictype/property-cased: New file.
8234         * lib/unictype/pr_cased.c: New file.
8235         * lib/unictype/pr_cased.h: New file, automatically generated by
8236         gen-uni-tables.
8237         * modules/unictype/property-cased-tests: New file.
8238         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8239         gen-uni-tables.
8240
8241 2011-01-09  Bruno Haible  <bruno@clisp.org>
8242
8243         Update to Unicode 5.2.0.
8244         * lib/gen-uni-tables.c (output_predicate, output_category,
8245         output_combclass, output_bidi_category, output_decimal_digit_test,
8246         output_decimal_digit, output_digit_test, output_digit,
8247         output_numeric_test, output_numeric, output_mirror, output_scripts,
8248         output_scripts_byname, output_blocks, output_ident_category): Fix
8249         comment header.
8250         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8251         get_wbp.
8252         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8253         items.
8254         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8255         Changes_When_Lowercased, Changes_When_Uppercased,
8256         Changes_When_Titlecased, Changes_When_Casefolded,
8257         Changes_When_Casemapped.
8258         (is_property_alphabetic, is_property_default_ignorable_code_point):
8259         Update for Unicode 5.2.0.
8260         (is_property_cased, is_property_case_ignorable,
8261         is_property_changes_when_lowercased,
8262         is_property_changes_when_uppercased,
8263         is_property_changes_when_titlecased,
8264         is_property_changes_when_casefolded,
8265         is_property_changes_when_casemapped): New functions.
8266         (output_properties): Output also the properties cased, case_ignorable,
8267         changes_when_lowercased, changes_when_uppercased,
8268         changes_when_titlecased, changes_when_casefolded,
8269         changes_when_casemapped.
8270         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8271         Unicode TR#11 revision 17 -> 19.
8272         (LBP_CP): New enumeration value.
8273         (LBP_*): Adjust values accordingly.
8274         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8275         TR#14 revision 22 -> 24.
8276         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8277         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8278         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8279         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8280         is_WBP_MIDLETTER.
8281         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8282         the code1 and code2 of each composition rule.
8283         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8284         * lib/unicase/ignorable.h: Likewise.
8285         * lib/unicase/tocasefold.h: Likewise.
8286         * lib/unicase/tolower.h: Likewise.
8287         * lib/unicase/totitle.h: Likewise.
8288         * lib/unicase/toupper.h: Likewise.
8289         * lib/unictype/bidi_of.h: Likewise.
8290         * lib/unictype/blocks.h: Likewise.
8291         * lib/unictype/categ_C.h: Likewise.
8292         * lib/unictype/categ_Cf.h: Likewise.
8293         * lib/unictype/categ_Cn.h: Likewise.
8294         * lib/unictype/categ_L.h: Likewise.
8295         * lib/unictype/categ_Ll.h: Likewise.
8296         * lib/unictype/categ_Lm.h: Likewise.
8297         * lib/unictype/categ_Lo.h: Likewise.
8298         * lib/unictype/categ_Lu.h: Likewise.
8299         * lib/unictype/categ_M.h: Likewise.
8300         * lib/unictype/categ_Mc.h: Likewise.
8301         * lib/unictype/categ_Mn.h: Likewise.
8302         * lib/unictype/categ_N.h: Likewise.
8303         * lib/unictype/categ_Nd.h: Likewise.
8304         * lib/unictype/categ_Nl.h: Likewise.
8305         * lib/unictype/categ_No.h: Likewise.
8306         * lib/unictype/categ_P.h: Likewise.
8307         * lib/unictype/categ_Pd.h: Likewise.
8308         * lib/unictype/categ_Po.h: Likewise.
8309         * lib/unictype/categ_S.h: Likewise.
8310         * lib/unictype/categ_Sc.h: Likewise.
8311         * lib/unictype/categ_So.h: Likewise.
8312         * lib/unictype/categ_of.h: Likewise.
8313         * lib/unictype/combining.h: Likewise.
8314         * lib/unictype/ctype_alnum.h: Likewise.
8315         * lib/unictype/ctype_alpha.h: Likewise.
8316         * lib/unictype/ctype_graph.h: Likewise.
8317         * lib/unictype/ctype_lower.h: Likewise.
8318         * lib/unictype/ctype_print.h: Likewise.
8319         * lib/unictype/ctype_punct.h: Likewise.
8320         * lib/unictype/ctype_upper.h: Likewise.
8321         * lib/unictype/decdigit.h: Likewise.
8322         * lib/unictype/digit.h: Likewise.
8323         * lib/unictype/numeric.h: Likewise.
8324         * lib/unictype/pr_alphabetic.h: Likewise.
8325         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8326         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8327         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8328         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8329         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8330         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8331         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8332         * lib/unictype/pr_combining.h: Likewise.
8333         * lib/unictype/pr_composite.h: Likewise.
8334         * lib/unictype/pr_currency_symbol.h: Likewise.
8335         * lib/unictype/pr_dash.h: Likewise.
8336         * lib/unictype/pr_decimal_digit.h: Likewise.
8337         * lib/unictype/pr_deprecated.h: Likewise.
8338         * lib/unictype/pr_diacritic.h: Likewise.
8339         * lib/unictype/pr_extender.h: Likewise.
8340         * lib/unictype/pr_grapheme_base.h: Likewise.
8341         * lib/unictype/pr_grapheme_extend.h: Likewise.
8342         * lib/unictype/pr_grapheme_link.h: Likewise.
8343         * lib/unictype/pr_id_continue.h: Likewise.
8344         * lib/unictype/pr_id_start.h: Likewise.
8345         * lib/unictype/pr_ideographic.h: Likewise.
8346         * lib/unictype/pr_ignorable_control.h: Likewise.
8347         * lib/unictype/pr_logical_order_exception.h: Likewise.
8348         * lib/unictype/pr_lowercase.h: Likewise.
8349         * lib/unictype/pr_numeric.h: Likewise.
8350         * lib/unictype/pr_other_alphabetic.h: Likewise.
8351         * lib/unictype/pr_punctuation.h: Likewise.
8352         * lib/unictype/pr_sentence_terminal.h: Likewise.
8353         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8354         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8355         * lib/unictype/pr_unified_ideograph.h: Likewise.
8356         * lib/unictype/pr_uppercase.h: Likewise.
8357         * lib/unictype/pr_xid_continue.h: Likewise.
8358         * lib/unictype/pr_xid_start.h: Likewise.
8359         * lib/unictype/pr_zero_width.h: Likewise.
8360         * lib/unictype/scripts.h: Likewise.
8361         * lib/unictype/scripts_byname.gperf: Likewise.
8362         * lib/unictype/sy_java_ident.h: Likewise.
8363         * lib/unigbrk/gbrkprop.h: Likewise.
8364         * lib/unilbrk/lbrkprop1.h: Likewise.
8365         * lib/unilbrk/lbrkprop2.h: Likewise.
8366         * lib/unilbrk/lbrktables.h: Likewise.
8367         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8368         LBP_CP. Implement rule LB30.
8369         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8370         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8371         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8372         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8373         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8374         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8375         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8376         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8377         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8378         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8379         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8380         bits instead of 16 bits in the code1 and code2 of each composition
8381         rule.
8382         (uc_composition): Update for Unicode 5.2.0.
8383         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8384         * lib/uninorm/decomposition-table2.h: Likewise.
8385         * lib/uniwbrk/wbrkprop.h: Likewise.
8386         * tests/unicase/test-cased.c: Likewise.
8387         * tests/unicase/test-ignorable.c: Likewise.
8388         * tests/unicase/test-uc_tolower.c: Likewise.
8389         * tests/unicase/test-uc_totitle.c: Likewise.
8390         * tests/unicase/test-uc_toupper.c: Likewise.
8391         * tests/unictype/test-categ_C.c: Likewise.
8392         * tests/unictype/test-categ_Cf.c: Likewise.
8393         * tests/unictype/test-categ_Cn.c: Likewise.
8394         * tests/unictype/test-categ_L.c: Likewise.
8395         * tests/unictype/test-categ_Ll.c: Likewise.
8396         * tests/unictype/test-categ_Lm.c: Likewise.
8397         * tests/unictype/test-categ_Lo.c: Likewise.
8398         * tests/unictype/test-categ_Lu.c: Likewise.
8399         * tests/unictype/test-categ_M.c: Likewise.
8400         * tests/unictype/test-categ_Mc.c: Likewise.
8401         * tests/unictype/test-categ_Mn.c: Likewise.
8402         * tests/unictype/test-categ_N.c: Likewise.
8403         * tests/unictype/test-categ_Nd.c: Likewise.
8404         * tests/unictype/test-categ_Nl.c: Likewise.
8405         * tests/unictype/test-categ_No.c: Likewise.
8406         * tests/unictype/test-categ_P.c: Likewise.
8407         * tests/unictype/test-categ_Pd.c: Likewise.
8408         * tests/unictype/test-categ_Po.c: Likewise.
8409         * tests/unictype/test-categ_S.c: Likewise.
8410         * tests/unictype/test-categ_Sc.c: Likewise.
8411         * tests/unictype/test-categ_So.c: Likewise.
8412         * tests/unictype/test-ctype_alnum.c: Likewise.
8413         * tests/unictype/test-ctype_alpha.c: Likewise.
8414         * tests/unictype/test-ctype_graph.c: Likewise.
8415         * tests/unictype/test-ctype_lower.c: Likewise.
8416         * tests/unictype/test-ctype_print.c: Likewise.
8417         * tests/unictype/test-ctype_punct.c: Likewise.
8418         * tests/unictype/test-ctype_upper.c: Likewise.
8419         * tests/unictype/test-decdigit.h: Likewise.
8420         * tests/unictype/test-digit.h: Likewise.
8421         * tests/unictype/test-numeric.h: Likewise.
8422         * tests/unictype/test-pr_alphabetic.c: Likewise.
8423         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8424         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8425         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8426         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8427         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8428         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8429         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8430         * tests/unictype/test-pr_combining.c: Likewise.
8431         * tests/unictype/test-pr_composite.c: Likewise.
8432         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8433         * tests/unictype/test-pr_dash.c: Likewise.
8434         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8435         * tests/unictype/test-pr_deprecated.c: Likewise.
8436         * tests/unictype/test-pr_diacritic.c: Likewise.
8437         * tests/unictype/test-pr_extender.c: Likewise.
8438         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8439         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8440         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8441         * tests/unictype/test-pr_id_continue.c: Likewise.
8442         * tests/unictype/test-pr_id_start.c: Likewise.
8443         * tests/unictype/test-pr_ideographic.c: Likewise.
8444         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8445         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8446         * tests/unictype/test-pr_lowercase.c: Likewise.
8447         * tests/unictype/test-pr_numeric.c: Likewise.
8448         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8449         * tests/unictype/test-pr_punctuation.c: Likewise.
8450         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8451         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8452         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8453         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8454         * tests/unictype/test-pr_uppercase.c: Likewise.
8455         * tests/unictype/test-pr_xid_continue.c: Likewise.
8456         * tests/unictype/test-pr_xid_start.c: Likewise.
8457         * tests/unictype/test-pr_zero_width.c: Likewise.
8458         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8459         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8460         changed behaviour: line breaking is now disallowed between a letter
8461         or '=' and '('.
8462         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8463         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8464         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8465         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8466         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8467         lib/uniwidth/width.c.
8468         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8469         without comments, but with the original copyright notice.
8470         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8471         changes.
8472         * lib/unictype/categ_Cc.h: Likewise.
8473         * lib/unictype/categ_Co.h: Likewise.
8474         * lib/unictype/categ_Cs.h: Likewise.
8475         * lib/unictype/categ_Lt.h: Likewise.
8476         * lib/unictype/categ_Me.h: Likewise.
8477         * lib/unictype/categ_Pc.h: Likewise.
8478         * lib/unictype/categ_Pe.h: Likewise.
8479         * lib/unictype/categ_Pf.h: Likewise.
8480         * lib/unictype/categ_Pi.h: Likewise.
8481         * lib/unictype/categ_Ps.h: Likewise.
8482         * lib/unictype/categ_Sk.h: Likewise.
8483         * lib/unictype/categ_Sm.h: Likewise.
8484         * lib/unictype/categ_Z.h: Likewise.
8485         * lib/unictype/categ_Zl.h: Likewise.
8486         * lib/unictype/categ_Zp.h: Likewise.
8487         * lib/unictype/categ_Zs.h: Likewise.
8488         * lib/unictype/ctype_blank.h: Likewise.
8489         * lib/unictype/ctype_cntrl.h: Likewise.
8490         * lib/unictype/ctype_digit.h: Likewise.
8491         * lib/unictype/ctype_space.h: Likewise.
8492         * lib/unictype/ctype_xdigit.h: Likewise.
8493         * lib/unictype/mirror.h: Likewise.
8494         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8495         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8496         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8497         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8498         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8499         * lib/unictype/pr_bidi_control.h: Likewise.
8500         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8501         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8502         * lib/unictype/pr_bidi_pdf.h: Likewise.
8503         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8504         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8505         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8506         * lib/unictype/pr_format_control.h: Likewise.
8507         * lib/unictype/pr_hex_digit.h: Likewise.
8508         * lib/unictype/pr_hyphen.h: Likewise.
8509         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8510         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8511         * lib/unictype/pr_iso_control.h: Likewise.
8512         * lib/unictype/pr_join_control.h: Likewise.
8513         * lib/unictype/pr_left_of_pair.h: Likewise.
8514         * lib/unictype/pr_line_separator.h: Likewise.
8515         * lib/unictype/pr_math.h: Likewise.
8516         * lib/unictype/pr_non_break.h: Likewise.
8517         * lib/unictype/pr_not_a_character.h: Likewise.
8518         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8519         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8520         * lib/unictype/pr_other_id_continue.h: Likewise.
8521         * lib/unictype/pr_other_id_start.h: Likewise.
8522         * lib/unictype/pr_other_lowercase.h: Likewise.
8523         * lib/unictype/pr_other_math.h: Likewise.
8524         * lib/unictype/pr_other_uppercase.h: Likewise.
8525         * lib/unictype/pr_paired_punctuation.h: Likewise.
8526         * lib/unictype/pr_paragraph_separator.h: Likewise.
8527         * lib/unictype/pr_pattern_syntax.h: Likewise.
8528         * lib/unictype/pr_pattern_white_space.h: Likewise.
8529         * lib/unictype/pr_private_use.h: Likewise.
8530         * lib/unictype/pr_quotation_mark.h: Likewise.
8531         * lib/unictype/pr_radical.h: Likewise.
8532         * lib/unictype/pr_soft_dotted.h: Likewise.
8533         * lib/unictype/pr_space.h: Likewise.
8534         * lib/unictype/pr_titlecase.h: Likewise.
8535         * lib/unictype/pr_variation_selector.h: Likewise.
8536         * lib/unictype/pr_white_space.h: Likewise.
8537         * lib/unictype/sy_c_ident.h: Likewise.
8538         * lib/unictype/sy_c_whitespace.h: Likewise.
8539         * lib/unictype/sy_java_whitespace.h: Likewise.
8540         * modules/uni*/*: Bump version number of expected libunistring version.
8541         Reported by Simon Josefsson.
8542
8543 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8544
8545         useless-if-before-free: fix typo in --help and make the internal,
8546         automatic version date update process work once again.
8547         --help output contained a NUL character instead of the
8548         backslash-zero that was intended.  Also, the "must lie within
8549         the first 8 lines" line is on line 9, and hence not getting
8550         automatically updated.
8551         * build-aux/useless-if-before-free: Fix the former by adding a
8552         backslash, and the latter by condensing the three lines of what-it-does
8553         to a single line, leaving one line of slack for the future.
8554
8555 2011-01-09  Bruno Haible  <bruno@clisp.org>
8556
8557         uniwidth/width: Fix width of U+1D173..U+1D17A.
8558         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8559         symbolic_width, output_width_property_test): New functions.
8560         (main): Invoke output_nonspacing_property, output_width_property_test.
8561         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8562         U+1D173..U+1D17A.
8563         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8564         1.
8565         * modules/uniwidth/*: Bump version number of expected libunistring
8566         version.
8567         * modules/unilbrk/*: Likewise.
8568
8569 2011-01-08  Bruno Haible  <bruno@clisp.org>
8570
8571         uninorm tests: Preserve copyright of Unicode data file.
8572         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8573         Mention modifications.
8574
8575 2011-01-08  Bruno Haible  <bruno@clisp.org>
8576
8577         gen-uni-tables: Prepare for Unicode 5.2.0.
8578         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8579         (debug_output_lbp, output_lbp): Update.
8580
8581 2011-01-08  Bruno Haible  <bruno@clisp.org>
8582
8583         unilbrk: Clarify gen-uni-tables.c code.
8584         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8585         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8586         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8587
8588 2011-01-07  Bruno Haible  <bruno@clisp.org>
8589
8590         strtod: Restore errno when successfully parsing Infinity or NaN.
8591         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8592         restore the original errno.
8593
8594 2011-01-07  Bruno Haible  <bruno@clisp.org>
8595
8596         remove test: Avoid failure on HP-UX 11.
8597         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8598
8599 2011-01-07  Bruno Haible  <bruno@clisp.org>
8600
8601         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8602         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8603         error code.
8604
8605 2011-01-07  Pádraig Brady <P@draigBrady.com>
8606
8607         ignore-value: fixup comments, and add Eric Blake
8608         as an author since he rewrote the macros.
8609         * lib/ignore-value.h (ignore_value):  State that
8610         we now support aggregates.  Also specify exactly
8611         when the GCC warn_unused_result feature was added.
8612
8613 2011-01-06  Eric Blake  <eblake@redhat.com>
8614
8615         ignore-value: support aggregate types
8616         * lib/ignore-value.h (ignore_value): Provide separate gcc
8617         definition.
8618         * modules/ignore-value-tests: New test module.
8619         * tests/test-ignore-value.c: New test.
8620
8621         maint.mk: improve sc_prohibit_strcmp regex
8622         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8623         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8624         definition of STRNEQ.
8625
8626         signal: work around Haiku issue with SIGBUS
8627         * lib/siglist.h: Add comment.
8628         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8629         strsignal's favoring of SIGSEGV.
8630         * tests/test-signal.c (main): Avoid test failure.
8631         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8632         Reported by Scott McCreary.
8633
8634         maint.mk: add pre-release check to ensure submodule commits are public
8635         * top/maint.mk (public-submodule-commit): New rule.
8636         (submodule-checks): New variable.
8637         (alpha beta stable): Depend on the variable.
8638
8639 2011-01-05  Pádraig Brady <P@draigBrady.com>
8640         and Jim Meyering  <meyering@redhat.com>
8641
8642         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8643         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8644         (ATTRIBUTE_DEPRECATED): Define.
8645         (_ignore_case): New function.
8646         (ignore_value): New macro, to replace the old function.
8647         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8648         * modules/ignore-value (Depends-on): Add stdint.
8649
8650 2011-01-04  Eric Blake  <eblake@redhat.com>
8651
8652         doc: regenerate INSTALL
8653         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8654         @firstparagraphindent support, now that autoconf dropped it.
8655         (INSTALL_PRELUDE): Reinstate old macro.
8656         * doc/install.texi: Resync from autoconf.
8657         * doc/INSTALL: Reflect recent autoconf update.
8658         * doc/INSTALL.ISO: Likewise.
8659         * doc/INSTALL.UTF-8: Likewise.
8660         Reported by Karl Berry.
8661
8662 2011-01-04  Bruce Korb  <address@hidden>
8663
8664         git-version-gen: avoid a sub-shell
8665         * build-aux/git-version-gen: Redirect stderr in `...` via
8666         "exec 2>...", rather than via an added sub-shell.
8667
8668 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8669
8670         git-version-gen: use (...) rather than sh -c '...'
8671         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8672         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8673
8674 2011-01-03  Jim Meyering  <meyering@redhat.com>
8675
8676         git-version-gen: convert leading TABs to spaces
8677         * build-aux/git-version-gen: Expand leading TABs.
8678
8679         git-version-gen: handle failed "git rev-list"
8680         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8681         from git and proceeding as if it had succeeded but printed no SHA1
8682         checksums, suppress the diagnostic and handle the failure.
8683         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8684
8685         git-version-gen: include command name in one more diagnostic
8686         * build-aux/git-version-gen: When the required .tarball-version file
8687         was missing or unreadable, you might see the diagnostic from "cat",
8688         but no trace of the name of the invoking script.  Now, you still see
8689         the diagnostic from cat, but also get one from "git-version-gen: ".
8690         Inspired by a patch from Bruce Korb.
8691
8692         update-copyright: adjust test to match changed code
8693         * tests/test-update-copyright.sh: Change test's expected output
8694         to match new actual output.
8695
8696 2011-01-02  Bruno Haible  <bruno@clisp.org>
8697
8698         getlogin_r: Avoid test failure on HP-UX 11.
8699         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8700         ERANGE when the second argument is zero.
8701         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8702         portability problem.
8703
8704 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8705
8706         * build-aux/update-copyright: doc Simon's changes
8707
8708 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8709
8710         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8711         environment variable.
8712
8713 2011-01-02  Bruno Haible  <bruno@clisp.org>
8714
8715         unigbrk: Avoid gcc warnings.
8716         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8717         unused variable.
8718         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8719         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8720         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8721         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8722         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8723         Change type of first argument to 'const char *'.
8724         (main): Remove unused variable.
8725         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8726         type of first argument to 'const char *'.
8727         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8728         Likewise.
8729         (main): Change type of variable 's'.
8730         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8731         to 'int'.
8732
8733 2011-01-02  Bruno Haible  <bruno@clisp.org>
8734
8735         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8736         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8737         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8738         bug.
8739         * lib/pwrite.c: Undo 2010-12-31 patch.
8740         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8741
8742 2011-01-02  Bruno Haible  <bruno@clisp.org>
8743
8744         pread: Fix test whether it works.
8745         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8746
8747 2011-01-02  Bruno Haible  <bruno@clisp.org>
8748
8749         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8750         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8751         ends in "6". Don't require a specific month name. Try also the locale
8752         names found on HP-UX 11 and Solaris 7.
8753
8754 2011-01-02  Bruno Haible  <bruno@clisp.org>
8755
8756         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8757         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8758         C linkage.
8759         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8760
8761 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8762
8763         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8764         for consistency, since the "cluster" term is not used elsewhere.
8765         * lib/unigbrk.in.h: Update name.
8766         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8767         * lib/unigbrk/u16-grapheme-next.c: Update name.
8768         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8769         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8770         * lib/unigbrk/u32-grapheme-next.c: Update name.
8771         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8772         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8773         * lib/unigbrk/u8-grapheme-next.c: Update name.
8774         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8775         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8776         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8777         Suggested by Bruno Haible.
8778
8779 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8780
8781         Remove module 'u8-grapheme-len' as too redundant with
8782         'u8-grapheme-next'.
8783         * modules/unigbrk/u8-grapheme-len: Delete file.
8784         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8785         * lib/unigbrk.in.h: Remove prototype for deleted function.
8786         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8787         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8788
8789         Remove module 'u16-grapheme-len' as too redundant with
8790         'u16-grapheme-next'.
8791         * modules/unigbrk/u16-grapheme-len: Delete file.
8792         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8793         * lib/unigbrk.in.h: Remove prototype for deleted function.
8794         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8795         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8796
8797         Remove module 'u32-grapheme-len' as too redundant with
8798         'u32-grapheme-next'.
8799         * modules/unigbrk/u32-grapheme-len: Delete file.
8800         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8801         * lib/unigbrk.in.h: Remove prototype for deleted function.
8802         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8803         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8804
8805         Suggested by Bruno Haible.
8806
8807 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8808
8809         * unigbrk.in.h: Fix typo: "ben" => "been".
8810         Reported by Bruno Haible.
8811
8812 2011-01-01  Jim Meyering  <meyering@redhat.com>
8813
8814         maint: update almost all copyright ranges to include 2011
8815         Run the new "make update-copyright" rule.
8816
8817 2011-01-01  Jim Meyering  <meyering@redhat.com>
8818
8819         maint: update-copyright: exempt doc/INSTALL*
8820         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8821         since they are generated.  Suggested by Bruno Haible.
8822
8823 2011-01-01  Jim Meyering  <meyering@redhat.com>
8824
8825         maint: refine the update-copyright rule
8826         * Makefile (update-copyright): Also exclude any file that includes
8827         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8828         code that merely generates the comment.
8829
8830 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8831
8832         New module 'u8-grapheme-len'.
8833         * modules/unigbrk/u8-grapheme-len: New file.
8834         * modules/unigbrk/u8-grapheme-len-tests: New file.
8835         * lib/unigbrk.in.h: Add prototype for new function.
8836         * lib/unigbrk/u8-grapheme-len.c: New file.
8837         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8838
8839         New module 'u16-grapheme-len'.
8840         * modules/unigbrk/u16-grapheme-len: New file.
8841         * modules/unigbrk/u16-grapheme-len-tests: New file.
8842         * lib/unigbrk.in.h: Add prototype for new function.
8843         * lib/unigbrk/u16-grapheme-len.c: New file.
8844         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8845
8846         New module 'u32-grapheme-len'.
8847         * modules/unigbrk/u32-grapheme-len: New file.
8848         * modules/unigbrk/u32-grapheme-len-tests: New file.
8849         * lib/unigbrk.in.h: Add prototype for new function.
8850         * lib/unigbrk/u32-grapheme-len.c: New file.
8851         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8852
8853         New module 'u8-grapheme-next'.
8854         * modules/unigbrk/u8-grapheme-next: New file.
8855         * modules/unigbrk/u8-grapheme-next-tests: New file.
8856         * lib/unigbrk.in.h: Add prototype for new function.
8857         * lib/unigbrk/u8-grapheme-next.c: New file.
8858         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8859
8860         New module 'u16-grapheme-next'.
8861         * modules/unigbrk/u16-grapheme-next: New file.
8862         * modules/unigbrk/u16-grapheme-next-tests: New file.
8863         * lib/unigbrk.in.h: Add prototype for new function.
8864         * lib/unigbrk/u16-grapheme-next.c: New file.
8865         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8866
8867         New module 'u32-grapheme-next'.
8868         * modules/unigbrk/u32-grapheme-next: New file.
8869         * modules/unigbrk/u32-grapheme-next-tests: New file.
8870         * lib/unigbrk.in.h: Add prototype for new function.
8871         * lib/unigbrk/u32-grapheme-next.c: New file.
8872         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8873
8874         New module 'u8-grapheme-prev'.
8875         * modules/unigbrk/u8-grapheme-prev: New file.
8876         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8877         * lib/unigbrk.in.h: Add prototype for new function.
8878         * lib/unigbrk/u8-grapheme-prev.c: New file.
8879         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8880
8881         New module 'u16-grapheme-prev'.
8882         * modules/unigbrk/u16-grapheme-prev: New file.
8883         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8884         * lib/unigbrk.in.h: Add prototype for new function.
8885         * lib/unigbrk/u16-grapheme-prev.c: New file.
8886         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8887
8888         New module 'u32-grapheme-prev'.
8889         * modules/unigbrk/u32-grapheme-prev: New file.
8890         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8891         * lib/unigbrk.in.h: Add prototype for new function.
8892         * lib/unigbrk/u32-grapheme-prev.c: New file.
8893         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8894
8895         New module 'u8-grapheme-breaks'.
8896         * modules/unigbrk/u8-grapheme-breaks: New file.
8897         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8898         * lib/unigbrk.in.h: Add prototype for new function.
8899         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8900         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8901
8902         New module 'u16-grapheme-breaks'.
8903         * modules/unigbrk/u16-grapheme-breaks: New file.
8904         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8905         * lib/unigbrk.in.h: Add prototype for new function.
8906         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8907         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8908
8909         New module 'u32-grapheme-breaks'.
8910         * modules/unigbrk/u32-grapheme-breaks: New file.
8911         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8912         * lib/unigbrk.in.h: Add prototype for new function.
8913         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8914         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8915
8916         New module 'ulc-grapheme-breaks'.
8917         * modules/unigbrk/ulc-grapheme-breaks: New file.
8918         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8919         * m4/locale-ar.m4: New file.
8920         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8921         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8922         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8923
8924 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8925
8926         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8927         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8928         modified how this file was generated before I initially submitted
8929         the module, but failed to regenerate it.  This meant that several
8930         of the level2 entries were wrong.
8931         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8932         Remove the division-by-2 that is folded into the table now that
8933         gbrkprop.h has been regenerated properly.  Now -1 entries are
8934         handled correctly.
8935
8936         New module 'unigbrk/uc-gbrk-prop-tests'.
8937         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8938         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8939         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8940         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8941
8942 2011-01-01  Bruno Haible  <bruno@clisp.org>
8943
8944         Avoid use of hexadecimal escapes.
8945         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8946         instead of hexadecimal escapes.
8947
8948 2011-01-01  Jim Meyering  <meyering@redhat.com>
8949
8950         maint: new rule to update copyright year ranges
8951         * Makefile (update-copyright): New rule.
8952
8953         maint: indent with TABs in Makefile
8954         * Makefile: Expand leading sequences of spaces to TABs
8955
8956         version-etc: update the copyright year it reports
8957         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8958
8959 2010-12-31  Bruno Haible  <bruno@clisp.org>
8960
8961         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8962         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8963         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8964         zero.
8965
8966 2010-12-31  Bruno Haible  <bruno@clisp.org>
8967
8968         pwrite: Work around HP-UX 11.11 bug.
8969         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8970         works and set REPLACE_PWRITE if not.
8971         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8972         function.
8973         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8974
8975 2010-12-31  Bruno Haible  <bruno@clisp.org>
8976
8977         pread: Work around HP-UX 11 bugs.
8978         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8979         and set REPLACE_PREAD if not.
8980         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8981
8982 2010-12-31  Eric Blake  <eblake@redhat.com>
8983
8984         nl_langinfo: fix YESEXPR on Irix 6.5
8985         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8986         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8987         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8988         it.
8989
8990 2010-12-31  Bruno Haible  <bruno@clisp.org>
8991
8992         iconv: Document HP-UX 11 bug.
8993         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8994
8995 2010-12-31  Bruno Haible  <bruno@clisp.org>
8996
8997         ldexpl: Fix link error on HP-UX 11.
8998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8999         LDEXPL_LIBM, using $ISNANL_LIBM.
9000
9001 2010-12-31  Eric Blake  <eblake@redhat.com>
9002
9003         ftello: avoid compilation failure with SunStudio c89
9004         * lib/ftello.c (ftello): Use lseek, not llseek.
9005
9006         tests: avoid failing coreutils tests on cygwin
9007         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9008         (create_exe_shims_): Return 0 when skipping.
9009
9010 2010-12-31  Bruno Haible  <bruno@clisp.org>
9011
9012         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9013         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9014
9015 2010-12-31  Bruno Haible  <bruno@clisp.org>
9016
9017         waitpid: Fix link error in C++ mode.
9018         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9019
9020 2010-12-31  Bruno Haible  <bruno@clisp.org>
9021
9022         isnan: Use GCC built-ins when possible.
9023         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9024         __builtin_isnan.
9025         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9026         (isnan): Define using GCC built-ins for GCC >= 4.0.
9027
9028 2010-12-31  Bruno Haible  <bruno@clisp.org>
9029
9030         isnand: Fix mistake.
9031         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9032         __builtin_isnand.
9033
9034 2010-12-31  Bruno Haible  <bruno@clisp.org>
9035
9036         open: Avoid C++ error on HP-UX 11.
9037         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9038
9039 2010-12-31  Bruno Haible  <bruno@clisp.org>
9040
9041         time_r: Add missing declarations on HP-UX 11.
9042         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9043         instead of HAVE_LOCALTIME_R.
9044         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9045         HAVE_LOCALTIME_R always.
9046         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9047         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9048         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9049         HAVE_LOCALTIME_R.
9050         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9051         * doc/posix-functions/localtime_r.texi: Likewise.
9052
9053 2010-12-29  Eric Blake  <eblake@redhat.com>
9054
9055         mountlist: tweak previous commit
9056         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9057         Reported by Paul Eggert.
9058
9059         mountlist: fix local drive detection on cygwin
9060         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9061         that works for cygwin.
9062
9063 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9064
9065         ftoastr, snprintf: ftoastr + snprintf module
9066         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9067         since the snprintf module now should be good enough here.
9068         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9069         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9070         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9071         GNULIB_SNPRINTF only for the test directory, and the latter
9072         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9073         seems to suffice by itself.
9074
9075 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         alloca: one step towards thread-safety
9078         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9079         need for a static variable.  All callers changed.  This does not
9080         make the alloca replacement thread-safe, but it's one step.
9081
9082         tests: minor indenting change
9083         * tests/init.sh: Sync from coreutils housekeeping patch
9084         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9085         to keep lines within 80 columns.
9086
9087 2010-12-28  Jim Meyering  <meyering@redhat.com>
9088
9089         regex: don't infloop on persistent failing calloc
9090         * lib/regexec.c (build_trtable): Return failure indication upon
9091         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9092         In glibc, this was fixed for version 2.13:
9093         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9094
9095 2010-12-28  Bruno Haible  <bruno@clisp.org>
9096             Paul Eggert <eggert@cs.ucla.edu>
9097
9098         linkat: Make implementation robust against system behaviour variations.
9099         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9100         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9101         way, and to -2 if it needs a generic runtime test.
9102         * lib/linkat.c (solaris_optimized_link_immediate,
9103         solaris_optimized_link_follow): New functions.
9104         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9105         (check_same_link): Use it.
9106
9107 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9108
9109         New module 'unigbrk/base'.
9110         * modules/unigbrk/base: New file.
9111         * lib/unigbrk.in.h: New file.
9112
9113         New module 'unigbrk/uc-gbrk-prop'.
9114         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9115         * modules/unigbrk/uc-gbrk-prop: New file.
9116         * lib/unigbrk/gbrkprop.h: New file.
9117         * lib/unigbrk/uc-gbrk-prop.c: New file.
9118
9119         New module 'unigbrk/uc-is-grapheme-break'.
9120         * modules/unigbrk/uc-is-grapheme-break: New file.
9121         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9122         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9123         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9124         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9125         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9126
9127         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9128
9129 2010-12-27  Bruno Haible  <bruno@clisp.org>
9130
9131         linkat test: Avoid failure on Solaris 11 2010-11.
9132         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9133
9134 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9135
9136         utimens: work around glibc rounding bug on more platforms
9137         * lib/utimens.c (fdutimens): Work around rounding bug even if
9138         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9139         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9140
9141 2010-12-27  Bruno Haible  <bruno@clisp.org>
9142
9143         select tests: Improve comments.
9144         * tests/test-select.c (do_select): Add comments.
9145
9146 2010-12-27  Bruno Haible  <bruno@clisp.org>
9147
9148         select tests: Safer way of handling timeout.
9149         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9150         at every invocation.
9151
9152 2010-12-27  Bruno Haible  <bruno@clisp.org>
9153
9154         select tests: Use 'bool' where appropriate.
9155         * tests/test-select.c (connect_to_socket): Change argument type to
9156         'bool'.
9157
9158 2010-12-27  Bruno Haible  <bruno@clisp.org>
9159
9160         select tests: Use existing modules.
9161         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9162         (configure.ac): Don't test for unistd.h.
9163         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9164         declared in <unistd.h>.
9165
9166 2010-12-27  Bruno Haible  <bruno@clisp.org>
9167
9168         mbrtowc: Work around a Solaris 7 bug.
9169         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9170         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9171         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9172         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9173         MBRTOWC_NULL_ARG1_BUG.
9174         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9175         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9176         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9177         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9178
9179 2010-12-27  Jim Meyering  <meyering@redhat.com>
9180
9181         read-file.c: tweak syntax
9182         * lib/read-file.c (fread_file): Remove space after "*" in function
9183         definitions.
9184
9185 2010-12-27  Bruno Haible  <bruno@clisp.org>
9186
9187         times test: Avoid gcc warnings on OSF/1.
9188         * tests/test-times.c (main): Cast printf arguments from clock_t to
9189         'long int'.
9190
9191 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9192
9193         utimens: work around glibc rounding bug on older Linux kernels
9194         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9195         on Linux with a glibc whose utimes might not work, then work
9196         around a longstanding glibc bug involving rounding rather than
9197         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9198         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9199
9200 2010-12-26  Bruno Haible  <bruno@clisp.org>
9201
9202         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9203         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9204         _GL_CXXALIAS_SYS.
9205         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9206
9207 2010-12-26  Bruno Haible  <bruno@clisp.org>
9208
9209         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9210         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9211         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9212         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9213         looking for the declaration.
9214         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9215         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9216         problem.
9217         * doc/posix-functions/inet_pton.texi: Likewise.
9218
9219 2010-12-26  Bruno Haible  <bruno@clisp.org>
9220
9221         arpa_inet: Use the common idioms with C++ support.
9222         * lib/arpa_inet.in.h: Include c++defs.h.
9223         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9224         support.
9225         * modules/arpa_inet (Depends-on): Add c++defs.
9226         (Makefile.am): Substitute the contents of c++defs.h.
9227         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9228         * modules/arpa_inet-c++-tests: New file.
9229         * tests/test-arpa_inet-c++.cc: New file.
9230
9231 2010-12-25  Bruno Haible  <bruno@clisp.org>
9232
9233         Fix more C++ link errors on Solaris 8.
9234         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9235         $(LIB_EACCESS).
9236         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9237         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9238         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9239         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9240         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9241
9242 2010-12-25  Bruno Haible  <bruno@clisp.org>
9243
9244         printf-posix: Fix link error when a non-GCC compiler is used.
9245         * lib/stdio.in.h (printf): When not using GCC, override printf
9246         correctly.
9247         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9248
9249 2010-12-25  Bruno Haible  <bruno@clisp.org>
9250
9251         strerror_r-posix: Update doc.
9252         * doc/posix-functions/strerror_r.texi: Update doc about the return
9253         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9254
9255 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9256
9257         utimens: simplify the logic of the previous change
9258         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9259         This should not affect whether the test succeeds or fails.
9260
9261         utimens: configure better on hosts with NFS clock skew
9262         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9263         uses the clock of the local host.  It might use the clock of the
9264         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9265         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9266
9267 2010-12-25  Bruno Haible  <bruno@clisp.org>
9268
9269         ptsname test: Avoid failure on Solaris.
9270         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9271         open a pseudo-terminal; don't use BSD-style ptys.
9272         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9273
9274 2010-12-25  Bruno Haible  <bruno@clisp.org>
9275
9276         ptsname: Avoid ERANGE failure on some systems.
9277         * lib/ptsname.c (buffer): Increase size.
9278
9279 2010-12-25  Bruno Haible  <bruno@clisp.org>
9280
9281         rename, renameat: Avoid test failures at NFS mounted locations.
9282         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9283         so that subsequent mkdir calls succeed.
9284
9285 2010-12-25  Bruno Haible  <bruno@clisp.org>
9286
9287         iswblank: Fix C++ link error on Solaris 8.
9288         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9289         _GL_FUNCDECL_SYS.
9290
9291 2010-12-25  Bruno Haible  <bruno@clisp.org>
9292
9293         unistd: Fix C++ link error on Solaris 8.
9294         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9295
9296 2010-12-25  Bruno Haible  <bruno@clisp.org>
9297
9298         readlink doc: Mention an old glibc bug.
9299         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9300
9301 2010-12-25  Bruno Haible  <bruno@clisp.org>
9302
9303         fcntl-h: Fix for use of C++ on glibc systems.
9304         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9305         also on glibc systems in C++ mode.
9306         Reported by Gary V. Vaughan <gary@gnu.org>.
9307
9308 2010-12-25  Bruno Haible  <bruno@clisp.org>
9309
9310         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9311         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9312
9313 2010-12-25  Bruno Haible  <bruno@clisp.org>
9314
9315         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9316         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9317         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9318         test whether truncl works according to ISO C 99 with IEC 60559.
9319         * m4/truncl-ieee.m4: New file.
9320         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9321         m4/signbit.m4.
9322         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9323
9324 2010-12-25  Bruno Haible  <bruno@clisp.org>
9325
9326         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9327         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9328         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9329         test whether ceill works according to ISO C 99 with IEC 60559.
9330         * m4/ceill-ieee.m4: New file.
9331         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9332         m4/signbit.m4.
9333         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9334
9335 2010-12-25  Bruno Haible  <bruno@clisp.org>
9336
9337         Ensure all prerequisites of <wchar.h> are included.
9338         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9339         before <wchar.h>.
9340         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9341         gl_MBRLEN_NUL_RETVAL): Likewise.
9342         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9343         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9344         AC_FUNC_MBRTOWC): Likewise.
9345         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9346         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9347         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9348         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9349         Likewise.
9350         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9351         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9352         (gl_WCHAR_H): Improve comments.
9353         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9354
9355 2010-12-25  Bruno Haible  <bruno@clisp.org>
9356
9357         strtok_r: Fix C syntax error in autoconf macro.
9358         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9359         characters in test program.
9360
9361 2010-12-24  Bruno Haible  <bruno@clisp.org>
9362
9363         ceil, trunc, round: Fix gcc warnings.
9364         * lib/ceil.c (MIN): Undefine before redefining.
9365         * lib/trunc.c (MIN): Likewise.
9366         * lib/round.c (MIN): Likewise.
9367         Include <math.h> first.
9368
9369 2010-12-24  Bruno Haible  <bruno@clisp.org>
9370
9371         select tests: Avoid failures on OSF/1 5.1.
9372         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9373         failure of closing the last socket; it may fail with ECONNRESET.
9374
9375 2010-12-24  Eric Blake  <eblake@redhat.com>
9376
9377         stdint: avoid HP-UX 10.20 preprocessor bug
9378         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9379         than #if.
9380         * tests/test-floor2.c (main): Likewise.
9381         Reported by Peter O'Gorman.
9382
9383         pipe: make obsoletion transition easier
9384         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9385         * modules/pipe (Files): Include revived file.
9386         (Include): Drop reference, to mirror getdate's behavior.
9387
9388 2010-12-24  Bruno Haible  <bruno@clisp.org>
9389
9390         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9391         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9392         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9393         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9394
9395 2010-12-24  Bruno Haible  <bruno@clisp.org>
9396
9397         gethostname: Ensure declaration on NonStop Kernel.
9398         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9399         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9400
9401 2010-12-24  Bruno Haible  <bruno@clisp.org>
9402
9403         sys_select: Ensure all necessary types on NonStop Kernel.
9404         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9405         include <sys/time.h>.
9406         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9407         NonStop Kernel.
9408         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9409
9410 2010-12-24  Bruno Haible  <bruno@clisp.org>
9411
9412         sys_select: Remove unneeded include.
9413         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9414         have <sys/select.h>.
9415
9416 2010-12-24  Bruno Haible  <bruno@clisp.org>
9417
9418         gethostname: Provide a fallback for HOST_NAME_MAX.
9419         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9420         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9421         instead.
9422         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9423
9424 2010-12-24  Bruno Haible  <bruno@clisp.org>
9425
9426         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9427         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9428         (SA_RESTART): Likewise.
9429         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9430
9431 2010-12-24  Bruno Haible  <bruno@clisp.org>
9432
9433         signal: Define NSIG.
9434         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9435         * tests/test-signal.c (nsig): New variable.
9436         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9437
9438 2010-12-24  Bruno Haible  <bruno@clisp.org>
9439
9440         rename, renameat: Avoid test failures on OSF/1 5.1.
9441         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9442         alternative error codes.
9443         * tests/test-renameat.c (main): Likewise.
9444
9445 2010-12-24  Bruno Haible  <bruno@clisp.org>
9446
9447         *printf: Detect large precisions bug on Solaris 10/SPARC.
9448         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9449         by Paul Eggert.
9450         * tests/test-snprintf-posix.h (test_function): Add this test code here
9451         too.
9452         * tests/test-sprintf-posix.h (test_function): Likewise.
9453         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9454         * tests/test-vasprintf-posix.c (test_function): Likewise.
9455         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9456         around by gnulib.
9457         * doc/posix-functions/printf.texi: Likewise.
9458         * doc/posix-functions/snprintf.texi: Likewise.
9459         * doc/posix-functions/sprintf.texi: Likewise.
9460         * doc/posix-functions/vfprintf.texi: Likewise.
9461         * doc/posix-functions/vprintf.texi: Likewise.
9462         * doc/posix-functions/vsnprintf.texi: Likewise.
9463         * doc/posix-functions/vsprintf.texi: Likewise.
9464         * doc/posix-functions/dprintf.texi: Undo last commit.
9465         * doc/posix-functions/vdprintf.texi: Likewise.
9466
9467 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9468
9469         tests: port test-fdutimensat.c to Solaris 8
9470         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9471         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9472         On Solaris 8, it fails with errno == ENOSYS, because there is no
9473         futimens (so it can't use the fd), and there is no lutimens (so it
9474         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9475
9476         vsnprintf: make more consistent with snprintf; doc fixes
9477
9478         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9479         the byte count return problem was promoted from the snprintf-posix
9480         to the snprintf module.
9481         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9482         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9483         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9484         * tests/test-snprintf.c (main): Check the byte count returned.
9485         * tests/test-vsnprintf.c (main): Likewise.
9486
9487 2010-12-23  Eric Blake  <eblake@redhat.com>
9488
9489         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9490         * modules/sigpipe (License): Relax license.
9491
9492 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9493
9494         doc: document Solaris printf bug with large float precisions
9495         * doc/posix-functions/dprintf.texi (dprintf):
9496         * doc/posix-functions/fprintf.texi (fprintf):
9497         * doc/posix-functions/printf.texi (printf):
9498         * doc/posix-functions/snprintf.texi (snprintf):
9499         * doc/posix-functions/sprintf.texi (sprintf):
9500         * doc/posix-functions/vdprintf.texi (vdprintf):
9501         * doc/posix-functions/vfprintf.texi (vfprintf):
9502         * doc/posix-functions/vprintf.texi (vprintf):
9503         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9504         * doc/posix-functions/vsprintf.texi (vsprintf):
9505         Mention that these functions mishandle large floating point
9506         precisions on Solaris 10.  The same bug is also present in Solaris
9507         8, and I assume earlier.  This causes "cd gnulib-tests; make
9508         check" to fail on Solaris 8 (and I assume, later) when building
9509         the latest coreutils, in test-vasprintf-posix's call to
9510         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9511         the wide flavors (e.g., wprintf) so this patch just updates the
9512         documentation for the narrow ones.
9513
9514         test-posixtm.c: add two tests
9515         * tests/test-posixtm.c: Add two tests, to highlight the
9516         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9517         around this bug; this is merely to document it.
9518
9519 2010-12-22  Bruno Haible  <bruno@clisp.org>
9520
9521         getlogin_r: Work around portability problem on OSF/1.
9522         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9523         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9524         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9525         test for a truncated result.
9526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9527         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9528         * modules/getlogin_r (Depends-on): Add memchr.
9529         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9530
9531 2010-12-22  Bruno Haible  <bruno@clisp.org>
9532
9533         ptsname: Avoid test failure on OSF/1 5.1.
9534         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9535         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9536         (same_slave): New function.
9537         (main): Use it to compare ptsname's result with the expected file name.
9538
9539 2010-12-22  Bruno Haible  <bruno@clisp.org>
9540
9541         Port extended stdio modules to HP NonStop Kernel.
9542         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9543         macros.
9544         * lib/fbufmode.c: Update comments.
9545         * lib/fflush.c: Likewise.
9546         * lib/fpurge.c: Likewise.
9547         * lib/freadable.c: Likewise.
9548         * lib/freadahead.c: Likewise.
9549         * lib/freading.c: Likewise.
9550         * lib/freadptr.c: Likewise.
9551         * lib/freadseek.c: Likewise.
9552         * lib/fseeko.c: Likewise.
9553         * lib/fseterr.c: Likewise.
9554         * lib/fwritable.c: Likewise.
9555         * lib/fwriting.c: Likewise.
9556         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9557
9558 2010-12-22  Bruno Haible  <bruno@clisp.org>
9559
9560         ttyname_r: Work around bug on OSF/1 5.1.
9561         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9562         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9563         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9564         present.
9565         * lib/ttyname_r.c (ttyname_r): Update comments.
9566
9567 2010-12-22  Bruno Haible  <bruno@clisp.org>
9568
9569         round: Implement result sign according to IEEE 754.
9570         * lib/round.c (MIN, MINUS_ZERO): New macros.
9571         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9572         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9573         * tests/test-round-ieee.c (main): Likewise.
9574         * tests/test-roundl-ieee.c (main): Likewise.
9575
9576         trunc: Implement result sign according to IEEE 754.
9577         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9578         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9579         * tests/test-trunc2.c: Include minus-zero.h.
9580         (MINUS_ZERO): New macro.
9581         (trunc_reference): Keep in sync with lib/trunc.c.
9582         * tests/test-truncf2.c: Include minus-zero.h.
9583         (MINUS_ZERO): New macro.
9584         (truncf_reference): Keep in sync with lib/trunc.c.
9585         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9586         * tests/test-trunc-ieee.c (main): Likewise.
9587         * tests/test-truncl-ieee.c (main): Likewise.
9588
9589         ceil: Implement result sign according to IEEE 754.
9590         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9591         (FUNC): Return -0.0 for -1 < x < 0.
9592         * tests/test-ceil2.c: Include minus-zero.h.
9593         (MINUS_ZERO): New macro.
9594         (ceil_reference): Keep in sync with lib/ceil.c.
9595         * tests/test-ceilf2.c: Include minus-zero.h.
9596         (MINUS_ZERO): New macro.
9597         (ceilf_reference): Keep in sync with lib/ceil.c.
9598         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9599         * tests/test-ceil-ieee.c (main): Likewise.
9600         * tests/test-ceill-ieee.c (main): Likewise.
9601
9602         floor: Implement result sign according to IEEE 754.
9603         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9604         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9605         * tests/test-floorf2.c (floorf_reference): Likewise.
9606         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9607         * tests/test-floor-ieee.c (main): Likewise.
9608         * tests/test-floorl-ieee.c (main): Likewise.
9609
9610 2010-12-22  Bruno Haible  <bruno@clisp.org>
9611
9612         getaddrinfo: Update doc.
9613         * doc/posix-functions/gai_strerror.texi: Return type is also different
9614         on AIX and HP-UX.
9615
9616 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9617
9618         getaddrinfo, inet_ntop: Update doc for Solaris.
9619         * doc/posix-functions/gai_strerror.texi: Return type is also an
9620         issue on Solaris 9 and earlier.
9621         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9622         on Solaris 10 and earlier.
9623
9624 2010-12-21  Bruno Haible  <bruno@clisp.org>
9625
9626         New module 'roundl-ieee'.
9627         * modules/roundl-ieee: New file.
9628         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9629         test whether roundl works according to ISO C 99 with IEC 60559.
9630         * m4/roundl-ieee.m4: New file.
9631         * modules/roundl-ieee-tests: New file.
9632         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9633         * tests/test-roundl.c (main): Remove signbit tests.
9634         * modules/roundl-tests (Depends-on): Remove signbit.
9635         * doc/posix-functions/roundl.texi: Mention the new module.
9636
9637 2010-12-21  Bruno Haible  <bruno@clisp.org>
9638
9639         New module 'truncl-ieee'.
9640         * modules/truncl-ieee: New file.
9641         * modules/truncl-ieee-tests: New file.
9642         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9643         * tests/test-truncl.c (main): Remove signbit tests.
9644         * modules/truncl-tests (Depends-on): Remove signbit.
9645         * doc/posix-functions/truncl.texi: Mention the new module.
9646
9647 2010-12-21  Bruno Haible  <bruno@clisp.org>
9648
9649         New module 'ceill-ieee'.
9650         * modules/ceill-ieee: New file.
9651         * modules/ceill-ieee-tests: New file.
9652         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9653         * tests/test-ceill.c (main): Remove signbit tests.
9654         * modules/ceill-tests (Depends-on): Remove signbit.
9655         * doc/posix-functions/ceill.texi: Mention the new module.
9656
9657 2010-12-21  Bruno Haible  <bruno@clisp.org>
9658
9659         New module 'floorl-ieee'.
9660         * modules/floorl-ieee: New file.
9661         * modules/floorl-ieee-tests: New file.
9662         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9663         * tests/test-floorl.c (main): Remove signbit tests.
9664         * modules/floorl-tests (Depends-on): Remove signbit.
9665         * doc/posix-functions/floorl.texi: Mention the new module.
9666
9667 2010-12-21  Bruno Haible  <bruno@clisp.org>
9668
9669         New module 'round-ieee'.
9670         * modules/round-ieee: New file.
9671         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9672         whether round works according to ISO C 99 with IEC 60559.
9673         * m4/round-ieee.m4: New file.
9674         * modules/round-ieee-tests: New file.
9675         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9676         * tests/test-round1.c (main): Remove signbit tests.
9677         * modules/round-tests (Depends-on): Remove 'signbit'.
9678         * doc/posix-functions/round.texi: Mention the new module.
9679
9680 2010-12-21  Bruno Haible  <bruno@clisp.org>
9681
9682         New module 'trunc-ieee'.
9683         * modules/trunc-ieee: New file.
9684         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9685         whether trunc works according to ISO C 99 with IEC 60559.
9686         * m4/trunc-ieee.m4: New file.
9687         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9689         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9690         * modules/trunc-ieee-tests: New file.
9691         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9692         * tests/test-trunc1.c (main): Remove signbit tests.
9693         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9694         * doc/posix-functions/trunc.texi: Mention the new module.
9695
9696 2010-12-21  Bruno Haible  <bruno@clisp.org>
9697
9698         New module 'ceil-ieee'.
9699         * modules/ceil-ieee: New file.
9700         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9701         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9702         ISO C 99 with IEC 60559.
9703         * m4/ceil-ieee.m4: New file.
9704         * modules/ceil (Files): Add lib/ceil.c.
9705         (Depends-on): Add 'float'.
9706         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9707         * lib/math.in.h (ceil): New declaration.
9708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9709         REPLACE_CEIL.
9710         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9711         * modules/ceil-ieee-tests: New file.
9712         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9713         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9714         * doc/posix-functions/ceil.texi: Mention the new module.
9715
9716 2010-12-21  Bruno Haible  <bruno@clisp.org>
9717
9718         New module 'floor-ieee'.
9719         * modules/floor-ieee: New file.
9720         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9721         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9722         ISO C 99 with IEC 60559.
9723         * m4/floor-ieee.m4: New file.
9724         * modules/floor (Files): Add lib/floor.c.
9725         (Depends-on): Add 'float'.
9726         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9727         * lib/math.in.h (floor): New declaration.
9728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9729         REPLACE_FLOOR.
9730         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9731         * modules/floor-ieee-tests: New file.
9732         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9733         * tests/test-math-c++.cc: Check the signature of 'floor'.
9734         * doc/posix-functions/floor.texi: Mention the new module.
9735
9736 2010-12-21  Bruno Haible  <bruno@clisp.org>
9737
9738         New module 'roundf-ieee'.
9739         * modules/roundf-ieee: New file.
9740         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9741         test whether roundf works according to ISO C 99 with IEC 60559.
9742         * m4/roundf-ieee.m4: New file.
9743         * modules/roundf-ieee-tests: New file.
9744         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9745         * tests/test-roundf1.c (main): Remove signbit tests.
9746         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9747         * doc/posix-functions/roundf.texi: Mention the new module.
9748
9749 2010-12-21  Bruno Haible  <bruno@clisp.org>
9750
9751         New module 'truncf-ieee'.
9752         * modules/truncf-ieee: New file.
9753         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9754         test whether truncf works according to ISO C 99 with IEC 60559.
9755         * m4/truncf-ieee.m4: New file.
9756         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9758         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9759         * modules/truncf-ieee-tests: New file.
9760         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9761         * tests/test-truncf1.c (main): Remove signbit tests.
9762         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9763         * doc/posix-functions/truncf.texi: Mention the new module.
9764
9765 2010-12-21  Bruno Haible  <bruno@clisp.org>
9766
9767         New module 'ceilf-ieee'.
9768         * modules/ceilf-ieee: New file.
9769         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9770         test whether ceilf works according to ISO C 99 with IEC 60559.
9771         * m4/ceilf-ieee.m4: New file.
9772         * modules/ceilf-ieee-tests: New file.
9773         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9774         * tests/test-ceilf1.c (main): Remove signbit tests.
9775         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9776         * doc/posix-functions/ceilf.texi: Mention the new module.
9777
9778 2010-12-21  Bruno Haible  <bruno@clisp.org>
9779
9780         New module 'floorf-ieee'.
9781         * modules/floorf-ieee: New file.
9782         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9783         test whether floorf works according to ISO C 99 with IEC 60559.
9784         * m4/floorf-ieee.m4: New file.
9785         * modules/floorf-ieee-tests: New file.
9786         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9787         * tests/test-floorf1.c (main): Remove signbit tests.
9788         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9789         * doc/posix-functions/floorf.texi: Mention the new module.
9790
9791 2010-12-21  Bruno Haible  <bruno@clisp.org>
9792
9793         Support for minus zero in autoconf macros.
9794         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9795         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9796         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9797         * tests/minus-zero.h: Update comments.
9798
9799 2010-12-21  Bruno Haible  <bruno@clisp.org>
9800
9801         Tests for module 'ceil'.
9802         * modules/ceil-tests: New file.
9803         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9804         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9805
9806 2010-12-21  Bruno Haible  <bruno@clisp.org>
9807
9808         Tests for module 'floor'.
9809         * modules/floor-tests: New file.
9810         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9811         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9812
9813 2010-12-21  Bruno Haible  <bruno@clisp.org>
9814
9815         math: Fix indentation.
9816         * lib/math.in.h (floorf): Fix indentation.
9817
9818 2010-12-21  Bruno Haible  <bruno@clisp.org>
9819
9820         Fix cross-compilation guesses on Solaris.
9821         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9822         not match "solaris2.10".
9823         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9824         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9825         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9826
9827 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9828
9829         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9830         This fixes a problem observed with the latest coreutils snapshot
9831         that caused a test to fail on Solaris 8.  src/csplit.c's call
9832         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9833         earlier, instead of returning the number of bytes that would have
9834         been generated; this causes csplit to incorrectly report memory
9835         exhaustion.
9836         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9837         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9838         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9839         comments to match.
9840         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9841         Fix typo in matching older versions of Solaris: "solaris2.10"
9842         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9843         only for guessing while cross-compiling.
9844         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9845
9846 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9847
9848         ftoastr: fix comment again
9849         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9851         Also, simplify example a bit by using flags = 0.
9852
9853 2010-12-20  Bruno Haible  <bruno@clisp.org>
9854
9855         round*, trunc*: Update documentation regarding glibc.
9856         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9857         * doc/posix-functions/round.texi: Likewise.
9858         * doc/posix-functions/roundl.texi: Likewise.
9859         * doc/posix-functions/truncf.texi: Likewise.
9860         * doc/posix-functions/trunc.texi: Likewise.
9861         * doc/posix-functions/truncl.texi: Likewise.
9862
9863 2010-12-20  Bruno Haible  <bruno@clisp.org>
9864
9865         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9866         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9867         * doc/posix-functions/round.texi: Likewise.
9868         * doc/posix-functions/roundl.texi: Likewise.
9869
9870 2010-12-20  Bruno Haible  <bruno@clisp.org>
9871
9872         ttyname_r: Add missing declaration on HP-UX 11.
9873         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9874         HAVE_TTYNAME_R.
9875         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9876         declared. Set HAVE_TTYNAME_R always.
9877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9878         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9879         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9880         HAVE_TTYNAME_R.
9881         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9882
9883 2010-12-20  Bruno Haible  <bruno@clisp.org>
9884
9885         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9886         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9887         * doc/posix-functions/getlogin_r.texi: Likewise.
9888         * tests/test-getlogin.c: Include <errno.h>.
9889         (main): Avoid test failure on HP-UX 11.11.
9890         * tests/test-getlogin_r.c (main): Likewise.
9891
9892 2010-12-20  Bruno Haible  <bruno@clisp.org>
9893
9894         getlogin_r: Add missing declaration on HP-UX 11.
9895         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9896         declared also when it exists as a function.
9897         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9898
9899 2010-12-20  Bruno Haible  <bruno@clisp.org>
9900
9901         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9902         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9903         through wcrtomb.
9904
9905 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9906
9907         ftoastr: fix comment
9908         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9910
9911 2010-12-19  Bruno Haible  <bruno@clisp.org>
9912
9913         isnan: Ensure it is a macro.
9914         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9915         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9916         Solaris.
9917
9918 2010-12-19  Bruno Haible  <bruno@clisp.org>
9919
9920         ldexpl test: Fix link error on OSF/1 5.1.
9921         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9922
9923 2010-12-19  Bruno Haible  <bruno@clisp.org>
9924
9925         wctype: Make it work in C++ mode on OSF/1 5.1.
9926         * lib/wctype.in.h (iswblank): Declare but not define here.
9927         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9928         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9929         * modules/wctype (Files): Add lib/iswblank.c.
9930
9931 2010-12-19  Bruno Haible  <bruno@clisp.org>
9932
9933         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9934         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9935         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9936
9937 2010-12-19  Bruno Haible  <bruno@clisp.org>
9938
9939         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9941         _POSIX_PII_SOCKET.
9942         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9943         * doc/posix-functions/recvfrom.texi: Likewise.
9944         * doc/posix-functions/send.texi: Likewise.
9945         * doc/posix-functions/sendto.texi: Likewise.
9946
9947 2010-12-19  Bruno Haible  <bruno@clisp.org>
9948
9949         tcgetsid: Add missing declaration on OSF/1 5.1.
9950         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9951         HAVE_TCGETSID.
9952         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9953         Don't set HAVE_TCGETSID.
9954         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9955         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9956         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9957         HAVE_TCGETSID.
9958         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9959
9960 2010-12-19  Bruno Haible  <bruno@clisp.org>
9961
9962         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9963         * lib/stdio.in.h: During the include_next statement, let recursive
9964         includes of this file include only the system header file.
9965
9966 2010-12-19  Bruno Haible  <bruno@clisp.org>
9967
9968         iconv_open: Fix regression from 2010-12-04.
9969         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9970         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9971
9972 2010-12-19  Bruno Haible  <bruno@clisp.org>
9973
9974         stdbool test: Avoid a gcc warning.
9975         * tests/test-stdbool.c (main): Fail if e1 is false.
9976         Reported by Jim Meyering.
9977
9978 2010-12-19  Jim Meyering  <meyering@redhat.com>
9979
9980         setenv: restore to working order
9981         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9982         mistakenly removed.
9983         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9984         HAVE_SETENV.
9985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9986         HAVE_SETENV.
9987
9988 2010-12-19  Bruno Haible  <bruno@clisp.org>
9989
9990         Document some different function declarations on OSF/1 5.1.
9991         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9992         * doc/posix-functions/inet_ntop.texi: Likewise.
9993         * doc/posix-functions/gethostname.texi: Likewise.
9994         * lib/unistd.in.h (gethostname): Update comment.
9995
9996 2010-12-19  Bruno Haible  <bruno@clisp.org>
9997
9998         doc: Mention vasprintf-posix module.
9999         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10000         the 'vasprintf-posix' module.
10001         * doc/glibc-functions/vasprintf.texi: Likewise.
10002
10003 2010-12-19  Bruno Haible  <bruno@clisp.org>
10004
10005         unsetenv: Add missing declaration on OSF/1 5.1.
10006         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10007         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10008         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10010         not HAVE_UNSETENV.
10011         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10012         HAVE_UNSETENV.
10013         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10014
10015 2010-12-19  Bruno Haible  <bruno@clisp.org>
10016
10017         setenv: Add missing declaration on OSF/1 5.1.
10018         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10019         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10020         declared. Don't set HAVE_SETENV.
10021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10022         not HAVE_SETENV.
10023         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10024         HAVE_SETENV.
10025         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10026
10027 2010-12-19  Bruno Haible  <bruno@clisp.org>
10028
10029         nl_langinfo tests: Avoid gcc warning.
10030         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10031
10032 2010-12-19  Bruno Haible  <bruno@clisp.org>
10033
10034         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10035         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10036         _GL_CXXALIAS_SYS.
10037
10038 2010-12-19  Bruno Haible  <bruno@clisp.org>
10039
10040         stdbool: Relax test.
10041         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10042         address to 'bool' work in static initializer, for compilers other than
10043         GCC.
10044
10045 2010-12-19  Bruno Haible  <bruno@clisp.org>
10046
10047         ftello: Add missing declaration on OSF/1 5.1.
10048         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10049         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10051         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10052         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10053
10054 2010-12-19  Bruno Haible  <bruno@clisp.org>
10055
10056         fseeko: Add missing declaration on OSF/1 5.1.
10057         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10060         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10061         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10062
10063 2010-12-19  Bruno Haible  <bruno@clisp.org>
10064
10065         fchdir: Add missing declaration on OSF/1 5.1.
10066         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10069         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10070         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10071
10072 2010-12-19  Bruno Haible  <bruno@clisp.org>
10073
10074         relocatable-prog-wrapper: Separate from relocatable-prog.
10075         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10076         uninstall-relocwrapper rule here.
10077         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10078         Reported by Ian Beckwith <ianb@erislabs.net>.
10079
10080 2010-12-19  Bruno Haible  <bruno@clisp.org>
10081
10082         unistr/u8-mbsnlen: Add missing dependency.
10083         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10084         Reported by Ian Beckwith <ianb@erislabs.net>.
10085
10086 2010-12-19  Bruno Haible  <bruno@clisp.org>
10087
10088         iconv: Make it possible again to use this module without 'iconv-h'.
10089         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10090         if it is not defined.
10091         Reported by Ian Beckwith <ianb@erislabs.net>.
10092
10093 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10094
10095         acl: port to Solaris 8 when copying from tmpfs to ufs
10096         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10097         error number.  Problem observed on Solaris 8 with latest
10098         coreutils, with "mv A B", where A is on a tmpfs file system and B
10099         is on a ufs file system.  This caused coreutils' mv/part-symlink
10100         test to fail.
10101
10102         tests: set fail=0 at start
10103         * tests/init.sh (setup_): Move fail=0 initialization here ...
10104         (mktempd_): ... from here, so that tests can rely on fail being
10105         set to 0 initially.  This fixes a problem in coreutils; see:
10106         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10107
10108 2010-12-18  Bruno Haible  <bruno@clisp.org>
10109
10110         memmem-simple: Stylistic changes.
10111         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10112         Fix preprocessor directive indentation.
10113
10114 2010-12-15  Pádraig Brady <P@draigBrady.com>
10115
10116         memmem, memmem-simple: reorganize and expand empty needle check
10117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10118         functional checks to memmem-simple so that one has a fully functional
10119         memmem by using just this module.
10120         Restrict the performance only check to the memmem module.
10121         Also expand the empty needle check to ensure the correct
10122         pointer is returned, not just a non NULL pointer.
10123         * doc/glibc-functions/memmem.texi: Rearrange the portability
10124         documentation to correlate with the rearranged checks.
10125         Clarify exactly how the memmem and memmem-simple modules
10126         relate to each other.
10127
10128 2010-12-15  Pádraig Brady <P@draigBrady.com>
10129             Bruno Haible  <bruno@clisp.org>
10130
10131         Improve cross-compilation guesses for uClibc.
10132         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10133         that uClibc does not have the glibc bug.
10134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10135         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10136
10137 2010-12-14  Eric Blake  <eblake@redhat.com>
10138
10139         configmake: provide fallbacks for oldest supported autotools
10140         * m4/configmake.m4: New file.
10141         * modules/configmake (Files): Ship it.
10142         (configure.ac): Use it to guarantee fallbacks.
10143
10144 2010-12-13  Pádraig Brady <P@draigBrady.com>
10145
10146         read-file: Improve handling of large files
10147         * lib/read-file.c (fread_file): Minimize realloc()s
10148         for regular files, and better manage sizes around SIZE_MAX.
10149
10150 2010-12-13  Eric Blake  <eblake@redhat.com>
10151
10152         cloexec, fcntl: relax license
10153         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10154         consent from all contributors.
10155         * modules/fcntl (License): Likewise.
10156
10157 2010-12-10  Bruno Haible  <bruno@clisp.org>
10158
10159         Tests for module 'pipe-posix'.
10160         * modules/pipe-posix-tests: New file.
10161         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10162
10163 2010-12-10  Bruno Haible  <bruno@clisp.org>
10164
10165         pipe-posix: Make it work in C++ mode.
10166         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10167         (pipe): Use common idiom, not a macro definition.
10168         * lib/pipe.c: New file.
10169         * m4/pipe.m4: New file.
10170         * modules/pipe-posix (Description): Enhance.
10171         (Files): Add lib/pipe.c, m4/pipe.m4.
10172         (configure.ac): Invoke gl_FUNC_PIPE.
10173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10174         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10175         * tests/test-unistd-c++.cc: Check the signature of pipe.
10176
10177 2010-12-10  Bruno Haible  <bruno@clisp.org>
10178
10179         Rename module 'pipe' to 'spawn-pipe'.
10180         * modules/spawn-pipe: New file, renamed from modules/pipe.
10181         (Files, configure.ac, Makefile.am): Update.
10182         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10183         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10184         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10185         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10186         "spawn-pipe.h" instead of "pipe.h".
10187         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10188         to gl_SPAWN_PIPE.
10189         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10190         (Files, Makefile.am): Update.
10191         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10192         Update.
10193         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10194         Include "spawn-pipe.h" instead of "pipe.h".
10195         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10196         * lib/javacomp.c: Likewise.
10197         * lib/javaversion.c: Likewise.
10198         * lib/pipe-filter-gi.c: Likewise.
10199         * lib/pipe-filter-ii.c: Likewise.
10200         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10201         * modules/javacomp (Depends-on): Likewise.
10202         * modules/javaversion (Depends-on): Likewise.
10203         * modules/pipe-filter-gi (Depends-on): Likewise.
10204         * modules/pipe-filter-ii (Depends-on): Likewise.
10205         * MODULES.html.sh (Executing programs): Update.
10206         * NEWS: Mention the change.
10207
10208 2010-12-10  Eric Blake  <eblake@redhat.com>
10209
10210         pipe-posix: new module
10211         * modules/pipe-posix: New file.
10212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10213         (gl_UNISTD_H): Check for declaration.
10214         * modules/unistd (Makefile.am): Substitute it.
10215         * lib/unistd.in.h (pipe): Provide it for mingw.
10216         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10217         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10218
10219 2010-12-07  Bruno Haible  <bruno@clisp.org>
10220
10221         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10222         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10223         u8_strcmp_gnu.
10224         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10225
10226 2010-12-06  Bruno Haible  <bruno@clisp.org>
10227
10228         Update internal documentation.
10229         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10230
10231 2010-12-04  Bruno Haible  <bruno@clisp.org>
10232
10233         Put more information about failed tests into the test return codes.
10234         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10235         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10236         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10238         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10239         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10240         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10241         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10242         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10245         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10246         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10247         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10248         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10249         returns a bit mask.
10250         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10251         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10252         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10253         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10254         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10255         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10258         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10259         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10260         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10261         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10262         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10264         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10265         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10266         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10267         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10268         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10269         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10270         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10271         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10272         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10273         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10274         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10275         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10276         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10277         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10278         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10279         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10280         gl_PRINTF_PRECISION): Likewise.
10281         * m4/regex.m4 (gl_REGEX): Likewise.
10282         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10284         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10285         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10286         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10289         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10290         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10291         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10292         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10293         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10294         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10295         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10296         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10297         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10298         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10299         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10301         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10302         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10303         enumerated value.
10304         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10305
10306 2010-12-04  Bruno Haible  <bruno@clisp.org>
10307
10308         Update for Solaris 11 2010-11.
10309         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10310         Express, released in November 2010.
10311
10312 2010-12-04  Bruno Haible  <bruno@clisp.org>
10313
10314         nproc: Relax license.
10315         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10316         and Paul Eggert.
10317         Requested by Ludovic Courtès <ludo@gnu.org>.
10318
10319 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10320
10321         utimecmp: fine-grained src to nearby coarse-grained dest
10322
10323         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10324         and the source is on a file system with higher-resolution time
10325         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10326         not work, and the time stamps are close together, the algorithm to
10327         determine the exact resolution from the read-back mtime was buggy:
10328         it had a "!=" where it should have had an "==".  This bug has been
10329         in the code ever since it was introduced to gnulib.
10330         Problem reported by Dan Jacobson in
10331         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10332
10333 2010-11-30  Bruno Haible  <bruno@clisp.org>
10334
10335         strerror_r-posix: Fix autoconf test.
10336         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10337
10338 2010-11-28  Bruno Haible  <bruno@clisp.org>
10339             Paul Eggert  <eggert@cs.ucla.edu>
10340
10341         Tests for module 'getdomainname'.
10342         * modules/getdomainname-tests: New file.
10343         * tests/test-getdomainname.c: New file, based on
10344         tests/test-gethostname.c.
10345
10346 2010-11-28  Bruno Haible  <bruno@clisp.org>
10347             Paul Eggert  <eggert@cs.ucla.edu>
10348
10349         getdomainname: Use the system function when possible.
10350         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10351         (getdomainname): Replace if needed. Provide the declaration if it is
10352         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10353         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10354         (getdomainname): When the system has getdomainname, call the system
10355         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10356         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10357         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10358         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10359         the function if its second argument is of type 'int' or if it is found
10360         in libnsl.
10361         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10362         <sys/systeminfo.h> and sysinfo().
10363         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10365         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10366         HAVE_GETDOMAINNAME.
10367         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10368         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10369         * doc/glibc-functions/getdomainname.texi: Document the problems with
10370         the getdomainname declaration.
10371
10372 2010-11-28  Bruno Haible  <bruno@clisp.org>
10373
10374         sys_socket: Ensure ss_family field on AIX.
10375         * lib/sys_socket.in.h (ss_family): New macro definition.
10376         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10377         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10378         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10379         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10380         * modules/sys_socket (Makefile.am): Substitute
10381         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10382         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10383
10384 2010-11-27  Bruno Haible  <bruno@clisp.org>
10385
10386         readline: Improve configure output.
10387         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10388         "checking for readline..." result understandable.
10389
10390 2010-11-27  Bruno Haible  <bruno@clisp.org>
10391
10392         *printf-posix: Detect a bug on Solaris 10/x86.
10393         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10394         for floating-point output.
10395         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10396         directive.
10397         * tests/test-snprintf-posix.h (test_function): Likewise.
10398         * tests/test-sprintf-posix.h (test_function): Likewise.
10399         * tests/test-vasprintf-posix.c (test_function): Likewise.
10400         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10401         * doc/posix-functions/printf.texi: Likewise.
10402         * doc/posix-functions/snprintf.texi: Likewise.
10403         * doc/posix-functions/sprintf.texi: Likewise.
10404         * doc/posix-functions/vfprintf.texi: Likewise.
10405         * doc/posix-functions/vprintf.texi: Likewise.
10406         * doc/posix-functions/vsnprintf.texi: Likewise.
10407         * doc/posix-functions/vsprintf.texi: Likewise.
10408         * doc/glibc-functions/obstack_printf.texi: Likewise.
10409         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10410
10411 2010-11-27  Bruno Haible  <bruno@clisp.org>
10412
10413         Fix link error when module libunistring-optional is in use.
10414         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10415         * modules/striconveha-tests (Makefile.am): Likewise.
10416
10417 2010-11-27  Bruno Haible  <bruno@clisp.org>
10418
10419         regex: Mention link dependencies.
10420         * modules/regex (Link): New section.
10421         * modules/rpmatch (Link): Likewise.
10422         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10423
10424 2010-11-27  Bruno Haible  <bruno@clisp.org>
10425
10426         ftoastr: Fix compilation error on Solaris.
10427         * lib/ftoastr.c: Include <config.h>.
10428
10429 2010-11-27  Bruno Haible  <bruno@clisp.org>
10430
10431         getloadavg: Update documentation.
10432         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10433
10434 2010-11-27  Bruno Haible  <bruno@clisp.org>
10435
10436         sys_socket: Fix test whether the functions are declared.
10437         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10438         not <sys/select.h>.
10439
10440 2010-11-27  Bruno Haible  <bruno@clisp.org>
10441
10442         getpass: Make sure to get system declaration on some platforms.
10443         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10444         gl_USE_SYSTEM_EXTENSIONS.
10445         * modules/getpass (Depends-on): Add extensions.
10446
10447 2010-11-26  Bruno Haible  <bruno@clisp.org>
10448
10449         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10450         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10451         'iconv' module is present.
10452         (ICONV_CONST): New macro.
10453         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10454         ICONV_CONST.
10455         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10456         set ICONV_CONST.
10457         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10458         here.
10459         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10460         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10461         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10462         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10463         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10464         present.
10465
10466 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10467
10468         ftoastr: comment fix
10469         * lib/ftoastr.c: "little" -> "little or no" in comment
10470
10471 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10472
10473         stdint: port to GCC 4.3 + OSX + Octave
10474         On this platform, stdint.h is buggy and defines int64_t to long
10475         long int.  The replacement defined it to long int, causing
10476         problems with C++ style name mangling.  Instead, trust the system
10477         definition if INT64_MAX is defined, and likewise for the unsigned
10478         variant.   Problem reported by Jarno Rajahalme in
10479         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10480         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10481         and don't mess with int64_t and INT64_MAX in this case.
10482         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10483
10484 2010-11-24  Bruno Haible  <bruno@clisp.org>
10485
10486         doc: Corrections regarding MacOS X 10.4 and 10.5.
10487         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10488         MacOS X.
10489         Reported by Simon Josefsson.
10490
10491 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10492
10493         Uninstall ".bin" files installed by relocwrapper.
10494         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10495         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10496         unless it is already there.
10497
10498 2010-11-21  Bruno Haible  <bruno@clisp.org>
10499
10500         Update for NetBSD 5.0.
10501         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10502         NetBSD; the test fails on NetBSD 5.0.
10503         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10504         about NetBSD.
10505
10506 2010-11-21  Bruno Haible  <bruno@clisp.org>
10507
10508         Update for HP-UX 11.23 and HP-UX 11.31.
10509         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10510         HP-UX.
10511
10512 2010-11-21  Bruno Haible  <bruno@clisp.org>
10513
10514         Update for MacOS X 10.5.
10515         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10516         MacOS X; the test fails on MacOS X 10.5.8.
10517         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10518         about MacOS X.
10519
10520 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10521
10522         bootstrap: add bootstrap_sync option.
10523         See discussion at
10524         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10525         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10526         * build-aux/bootstrap: Accept --bootstrap-sync to update
10527         bootstrap if it is not identical to the local gnulib's
10528         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10529         enable this by default.  Accept --no-bootstrap-sync to disable
10530         it.
10531
10532 2010-11-20  Bruno Haible  <bruno@clisp.org>
10533
10534         Ensure that <features.h> is included before __GLIBC__ is tested.
10535         * lib/printf-parse.h: Include <features.h>.
10536         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10537         Reported by Mike Frysinger <vapier@gentoo.org>.
10538
10539         Ensure that <features.h> is included before __GLIBC__ is tested.
10540         * lib/wchar.in.h: Include <features.h>.
10541         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10542         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10543         Reported by Mike Frysinger <vapier@gentoo.org>.
10544
10545         Ensure that <features.h> is included before __GLIBC__ is tested.
10546         * lib/arpa_inet.in.h: Include <features.h>.
10547         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10548         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10549         Reported by Mike Frysinger <vapier@gentoo.org>.
10550
10551         Ensure that <features.h> is included before __GLIBC__ is tested.
10552         * build-aux/link-warning.h: Include <features.h>.
10553         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10554         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10555         Reported by Mike Frysinger <vapier@gentoo.org>.
10556
10557         Ensure that <features.h> is included before __GLIBC__ is tested.
10558         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10559         Reported by Mike Frysinger <vapier@gentoo.org>.
10560
10561 2010-11-20  Bruno Haible  <bruno@clisp.org>
10562
10563         memmem: Fix autoconf test.
10564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10565
10566 2010-11-20  Bruno Haible  <bruno@clisp.org>
10567
10568         Port to uClibc.
10569         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10570         * lib/fcntl.in.h: Likewise.
10571         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10572         * lib/mbrtowc.c (mbrtowc): Likewise.
10573         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10574         * lib/strerror_r.c: Likewise.
10575         * lib/unistr/u8-strnlen.c: Likewise.
10576         * lib/vasnprintf.c (decimal_point_char): Likewise.
10577         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10578         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10580         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10581         * tests/test-sigaction.c (handler, main): Likewise.
10582         * lib/freading.h: Treat uClibc like a non-glibc platform.
10583         * lib/freading.c: Likewise.
10584         * lib/gettext.h: Likewise.
10585         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10586         Likewise.
10587         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10588         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10589         * lib/propername.c (proper_name_utf8): Likewise.
10590         * lib/spawn.in.h: Likewise.
10591         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10592         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10593         mem_cd_iconveh_internal): Likewise.
10594         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10595         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10596         strstr, strcasestr): Likewise.
10597         * lib/unicodeio.c (unicode_to_mb): Likewise.
10598         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10599         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10600         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10601         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10602         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10603         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10604         * lib/unistr/u8-stpncpy.c: Likewise.
10605         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10606         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10607         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10608         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10609         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10610         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10611         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10612         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10614         Likewise.
10615         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10616         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10617         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10619         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10620         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10621         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10622         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10623         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10624         * tests/test-striconveha.c (main): Likewise.
10625         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10626         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10627         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10628         * doc/posix-functions/getline.texi: Likewise.
10629         Reported by Mike Frysinger <vapier@gentoo.org>.
10630
10631 2010-11-20  Bruno Haible  <bruno@clisp.org>
10632
10633         nproc: Fix condition.
10634         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10635         HAVE_PTHREAD_AFFINITY_NP.
10636
10637 2010-11-20  Bruno Haible  <bruno@clisp.org>
10638
10639         Fix a comment.
10640         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10641
10642 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10643
10644         ftoastr: don't assume snprintf
10645         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10646         Implement a subset of snprintf here, by using sprintf safely.
10647         * modules/ftoastr (Depends-on): Remove snprintf.
10648
10649 2010-11-19  Jim Meyering  <meyering@redhat.com>
10650
10651         test-rename.h: fix compilation failure
10652         * tests/test-rename.h (test_rename): Add omitted "}".
10653
10654 2010-11-17  Jim Meyering  <meyering@redhat.com>
10655
10656         maint.mk: add a URL discussing the no-@acronym policy
10657         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10658
10659 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         ftoastr: depend on snprintf, improve comments
10662         * lib/ftoastr.c: Also mention Loitsch's draft.
10663         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10664         needed in the current implementation, but it might simplify
10665         speeding up the code later.
10666         * modules/ftoastr: Depend on snprintf; this improves portability.
10667         Suggested by Bruno Haible in the same email.
10668
10669         ftoastr: port to hosts lacking strtof and strtold
10670         Problem reported by Bruno Haible in
10671         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10672         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10673         environment and strtold (and presumably strtof) are not available.
10674         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10675         (configure.ac): Require gl_C99_STRTOLD.
10676
10677 2010-11-18  Bruno Haible  <bruno@clisp.org>
10678
10679         c-strtold: Avoid link error on AIX 7.
10680         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10681         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10682         (gl_C_STRTOLD): Test whether strtold_l exists.
10683         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10684
10685 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10686
10687         intprops: new macro INT_BITS_STRLEN_BOUND
10688         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10689         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10690         not exposed.  Also, it uses a slightly tighter bound than before;
10691         though this makes no practical difference, we might as well be as
10692         tight as we easily can.
10693
10694         ftoastr: new module, for lossless conversion of floats to short strings
10695         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10696         * modules/ftoastr: New files.
10697
10698 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         bootstrap: port to Solaris sed
10701         * build-aux/bootstrap (get_version): Port to Solaris sed.
10702         See Ralf Wildenhues's note in
10703         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10704
10705 2010-11-14  Jim Meyering  <meyering@redhat.com>
10706
10707         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10708         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10709         and move definition closer to sole use.
10710
10711 2010-11-13  Jim Meyering  <meyering@redhat.com>
10712
10713         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10714         Now we require at least autoconf-2.59, which means the work-around
10715         is no longer needed.
10716         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10717         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10718         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10719         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10720         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10721
10722 2010-11-13  Bruno Haible  <bruno@clisp.org>
10723
10724         rename, renameat: Avoid test failures at NFS mounted locations.
10725         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10726         functions.
10727         (test_rename): Use assert_nonexistent.
10728         * tests/test-rename.c: Include <dirent.h>.
10729         * tests/test-renameat.c: Likewise.
10730         Reported by Gary V. Vaughan <gary@gnu.org>.
10731
10732         rename, renameat: Document Linux bug with NFS
10733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10734         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10735         * doc/posix-functions/renameat.texi: Likewise.
10736         Suggested by Eric Blake.
10737
10738 2010-11-13  Bruno Haible  <bruno@clisp.org>
10739
10740         rename test: Add comments.
10741         * tests/test-rename.h (test_rename): Add structure and comments.
10742
10743 2010-11-13  Eric Blake  <eblake@redhat.com>
10744
10745         maintainer-makefile: cover a few more files
10746         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10747         scripts generated within C files, for libvirt.
10748
10749 2010-11-13  Bruno Haible  <bruno@clisp.org>
10750
10751         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10752         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10753         character, return the number of bytes that belong together, not always
10754         1.
10755         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10756         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10757         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10758         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10759         number of bytes of an invalid character.
10760         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10761         (main): Invoke it.
10762         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10763         results.
10764         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10765         malformed byte sequences.
10766         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10767         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10768         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10769         Reported by Ben Pfaff and Paolo Bonzini.
10770
10771 2010-11-13  Bruno Haible  <bruno@clisp.org>
10772
10773         openat: Work around glibc bug with fchownat() and empty file names.
10774         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10775         (gl_FUNC_FCHOWNAT): Invoke it.
10776         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10777         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10778         Reported by Gary V. Vaughan <gary@gnu.org>.
10779
10780 2010-11-13  Bruno Haible  <bruno@clisp.org>
10781
10782         openat: Ensure autoconf macro ordering.
10783         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10784         gl_USE_SYSTEM_EXTENSIONS.
10785         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10786
10787 2010-11-13  Bruno Haible  <bruno@clisp.org>
10788
10789         Update comments.
10790         * lib/unistr/u8-check.c: Update file name in comments.
10791         * lib/unistr/u8-mblen.c: Likewise.
10792         * lib/unistr/u8-prev.c: Likewise.
10793         * lib/unistr/u8-strmblen.c: Likewise.
10794         * lib/unistr/u8-strmbtouc.c: Likewise.
10795
10796 2010-11-13  Jim Meyering  <meyering@redhat.com>
10797
10798         tests: avoid test failure on Solaris 10 due to lack of PATH export
10799         * tests/test-update-copyright.sh: Don't forget to export PATH.
10800
10801         init.sh: ensure that IFS is defined, just in case...
10802         * tests/init.sh (setup_): Ensure that IFS is defined,
10803         so that saving and restoring it works as expected.  This
10804         appears to be useful at least for an old version of dash
10805         from a long time ago (RH 6).  See here for details:
10806         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10807
10808         maint.mk: tighten "test a == b" check
10809         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10810         test to files that contain something like #!/bin/sh.
10811         Without this, coreutils would get two false positives in
10812         the comments of C source files.
10813
10814 2010-11-12  Eric Blake  <eblake@redhat.com>
10815
10816         bootstrap: fix typo in previous attempt
10817         * build-aux/bootstrap (buildreq): Correct the grouping.
10818         Reported by Paul Eggert.
10819
10820         maintainer-makefile: prohibit test x == x
10821         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10822         Based on a report by Matthias Bolte.
10823
10824         bootstrap: allow FreeBSD gzip
10825         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10826         which has no '.' and goes to stderr.
10827         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10828         Reported by Matthias Bolte.
10829
10830         maintainer-makefile: check for i18n setup
10831         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10832         will likely work.
10833
10834 2010-11-12  Bruno Haible  <bruno@clisp.org>
10835
10836         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10837         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10838         * lib/nanosleep.c (nanosleep): Likewise.
10839
10840 2010-11-11  Bruno Haible  <bruno@clisp.org>
10841
10842         fcntl-h: Fix for use of C++ on glibc systems.
10843         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10844         also on glibc systems in C++ mode.
10845         Reported by Gary V. Vaughan <gary@gnu.org>.
10846
10847 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10848
10849         mknod: avoid false failure with dash
10850         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10851
10852 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10853
10854         unlink: Fix "is it should" typo in diagnostic.
10855         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10856         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10857
10858 2010-11-11  Bruno Haible  <bruno@clisp.org>
10859
10860         Tests for module 'strerror_r-posix'.
10861         * modules/strerror_r-posix-tests: New file.
10862         * tests/test-strerror_r.c: New file.
10863         * tests/test-string-c++.cc: Check the signature of strerror_r.
10864
10865         New module 'strerror_r-posix'.
10866         * lib/string.in.h (strerror_r): New declaration.
10867         * lib/strerror_r.c: New file.
10868         * m4/strerror_r.m4: New file.
10869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10870         of strerror_r.
10871         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10872         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10873         * modules/strerror_r-posix: New file.
10874         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10875         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10876         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10877         portability problems.
10878
10879 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10880
10881         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10882         line is also considered for output. Quoted function name in shell
10883         command, so temporary files for functions like MyClass::operator()
10884         are removed correctly without errors.
10885
10886 2010-11-09  Bruno Haible  <bruno@clisp.org>
10887
10888         * doc/posix-functions/strerror.texi: List more failing platforms.
10889
10890         * doc/posix-functions/strerror.texi: Add a comment.
10891
10892 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10893
10894         fdopendir: fix bug on MacOS X when low on file descriptors
10895
10896         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10897         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10898         All callers changed.
10899         (fdopendir): Invoke save_cwd at the top level, not after using
10900         multiple dup() calls to use up file descriptors.  Then retry
10901         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10902         less than the maximum number of open file descriptors, because
10903         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10904         on Mac OS X 10.6.4 for tar 1.24
10905         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10906         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10907         and for tar 1.25
10908         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10909
10910 2010-11-07  Bruno Haible  <bruno@clisp.org>
10911
10912         vasnprintf: Support I flag on glibc systems.
10913         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10914         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10915         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10916         snprintf function.
10917         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10918         glibc systems.
10919         * tests/test-vasnprintf-posix3.c: New file.
10920         * modules/vasnprintf-posix-tests (Files): Add it.
10921         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10922
10923 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10924
10925         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10926         * MODULES.html.sh: For compiler warnings, use name
10927         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10928
10929 2010-11-05  Eric Blake  <eblake@redhat.com>
10930
10931         ceil, floor: avoid spurious failure with icc
10932         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10933         [denormals-as-zero] when optimizing without -mieee-fp option.
10934         * tests/test-floorf2.c (floorf_reference): Likewise.
10935         * tests/test-ceilf1.c (dummy): New function.
10936         (main): Use it to outsmart icc's optimization.
10937         * tests/test-floorf1.c (dummy, main): Likewise.
10938
10939         tests: require working signbit
10940         * modules/ceilf-tests (Depends-on): Add signbit.
10941         * modules/ceill-tests (Depends-on): Likewise.
10942         * modules/floorf-tests (Depends-on): Likewise.
10943         * modules/floorl-tests (Depends-on): Likewise.
10944         * modules/round-tests (Depends-on): Likewise.
10945         * modules/roundf-tests (Depends-on): Likewise.
10946         * modules/roundl-tests (Depends-on): Likewise.
10947         * modules/trunc-tests (Depends-on): Likewise.
10948         * modules/truncf-tests (Depends-on): Likewise.
10949         * modules/truncl-tests (Depends-on): Likewise.
10950
10951         strtod: work around icc bug
10952         * lib/strtod.c (minus_zero): Define to working value.
10953         (strtod): Use it to avoid icc bug.
10954
10955         copysign: enhance tests
10956         * modules/copysign-tests (Files): Add minus-zero.h.
10957         * tests/test-copysign.c (main): Also test zeros.
10958
10959 2010-11-04  Eric Blake  <eblake@redhat.com>
10960
10961         ceil, floor, round, trunc: enhance tests of -0
10962         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10963         * tests/test-ceill.c (main): Likewise.
10964         * tests/test-floorf1.c (main): Likewise.
10965         * tests/test-floorl.c (main): Likewise.
10966         * tests/test-round1.c (main): Likewise.
10967         * tests/test-roundf1.c (main): Likewise.
10968         * tests/test-roundl.c (main): Likewise.
10969         * tests/test-trunc1.c (main): Likewise.
10970         * tests/test-truncf1.c (main): Likewise.
10971         * tests/test-truncl.c (main): Likewise.
10972
10973 2010-11-04  Eric Blake  <eblake@redhat.com>
10974
10975         frexp, tests: work around ICC bug with -zero
10976         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10977         works with more compilers.
10978         * tests/minus-zero.h: New file.
10979         * modules/ceilf-tests (Files): Include it.
10980         * modules/ceill-tests (Files): Likewise.
10981         * modules/floorf-tests (Files): Likewise.
10982         * modules/floorl-tests (Files): Likewise.
10983         * modules/frexp-nolibm-tests (Files): Likewise.
10984         * modules/frexp-tests (Files): Likewise.
10985         * modules/frexpl-nolibm-tests (Files): Likewise.
10986         * modules/frexpl-tests (Files): Likewise.
10987         * modules/isnan-tests (Files): Likewise.
10988         * modules/isnand-nolibm-tests (Files): Likewise.
10989         * modules/isnand-tests (Files): Likewise.
10990         * modules/isnanf-nolibm-tests (Files): Likewise.
10991         * modules/isnanf-tests (Files): Likewise.
10992         * modules/isnanl-nolibm-tests (Files): Likewise.
10993         * modules/isnanl-tests (Files): Likewise.
10994         * modules/round-tests (Files): Likewise.
10995         * modules/roundf-tests (Files): Likewise.
10996         * modules/roundl-tests (Files): Likewise.
10997         * modules/ldexpl-tests (Files): Likewise.
10998         * modules/signbit-tests (Files): Likewise.
10999         * modules/snprintf-posix-tests (Files): Likewise.
11000         * modules/sprintf-posix-tests (Files): Likewise.
11001         * modules/strtod-tests (Files): Likewise.
11002         * modules/trunc-tests (Files): Likewise.
11003         * modules/truncf-tests (Files): Likewise.
11004         * modules/truncl-tests (Files): Likewise.
11005         * modules/vsnprintf-posix-tests (Files): Likewise.
11006         * modules/vsprintf-posix-tests (Files): Likewise.
11007         * modules/vasnprintf-posix-tests (Files): Likewise.
11008         * modules/vasprintf-posix-tests (Files): Likewise.
11009         * tests/test-ceilf1.c (main): Use it.
11010         * tests/test-ceill.c (main): Likewise.
11011         * tests/test-floorf1.c (main): Likewise.
11012         * tests/test-floorl.c (main): Likewise.
11013         * tests/test-frexp.c (main): Likewise.
11014         * tests/test-frexpl.c (main): Likewise.
11015         * tests/test-isnan.c (main): Likewise.
11016         * tests/test-isnand.h (main): Likewise.
11017         * tests/test-isnanf.h (main): Likewise.
11018         * tests/test-isnanl.h (main): Likewise.
11019         * tests/test-ldexpl.c (main): Likewise.
11020         * tests/test-round.c (main): Likewise.
11021         * tests/test-roundf.c (main): Likewise.
11022         * tests/test-roundl.c (main): Likewise.
11023         * tests/test-signbit.c (test_signbitf, test_signbitd)
11024         (test_signbitl): Likewise.
11025         * tests/test-snprintf-posix.h (test_function): Likewise.
11026         * tests/test-sprintf-posix.h (test_function): Likewise.
11027         * tests/test-strtod.c (main): Likewise.
11028         * tests/test-trunc1.c (main): Likewise.
11029         * tests/test-truncf1.c (main): Likewise.
11030         * tests/test-truncl.c (main): Likewise.
11031
11032         isnanl: work around icc bug
11033         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11034
11035 2010-11-03  Eric Blake  <eblake@redhat.com>
11036
11037         tests: fix compiler warnings
11038         * tests/test-getopt.h (test_getopt): Fix condition.
11039         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11040         * tests/test-pipe2.c (main): Likewise.
11041         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11042
11043         utimens: fix broken m4 test
11044         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11045
11046 2010-10-28  Bruno Haible  <bruno@clisp.org>
11047
11048         posix_spawn*, getdtablesize: Relax license.
11049         * modules/posix_spawn (License): Change to LGPLv2+.
11050         * modules/posix_spawnp (License): Likewise.
11051         * modules/posix_spawn-internal (License): Likewise.
11052         * modules/posix_spawnattr_init (License): Likewise.
11053         * modules/posix_spawnattr_getflags (License): Likewise.
11054         * modules/posix_spawnattr_setflags (License): Likewise.
11055         * modules/posix_spawnattr_getpgroup (License): Likewise.
11056         * modules/posix_spawnattr_setpgroup (License): Likewise.
11057         * modules/posix_spawnattr_getschedparam (License): Likewise.
11058         * modules/posix_spawnattr_setschedparam (License): Likewise.
11059         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11060         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11061         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11062         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11063         * modules/posix_spawnattr_getsigmask (License): Likewise.
11064         * modules/posix_spawnattr_setsigmask (License): Likewise.
11065         * modules/posix_spawnattr_destroy (License): Likewise.
11066         * modules/posix_spawn_file_actions_init (License): Likewise.
11067         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11068         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11069         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11070         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11071         * modules/getdtablesize (License): Likewise.
11072         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11073
11074 2010-10-26  Bruno Haible  <bruno@clisp.org>
11075
11076         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11077         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11078         Cygwin and mingw.
11079         Suggested by Eric Blake.
11080
11081 2010-10-26  Bruno Haible  <bruno@clisp.org>
11082
11083         stdio: Work around compilation error due to renameat() on Solaris 10.
11084         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11085         * lib/renameat.c: Don't include <unistd.h> here.
11086         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11087         Reported by Paul Eggert and Eric Blake.
11088
11089 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11090
11091         renameat: port to Solaris 10, which declares renameat in unistd.h
11092
11093         * lib/renameat.c: Include unistd.h before stdio.h, because
11094         Solaris 10 declares renameat in unistd.h.  Problem encountered
11095         when building GNU tar 1.24 on Solaris 10.
11096
11097 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11098
11099         fdopendir: fix C89 compilation
11100         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11101         compilers.
11102
11103 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11104
11105         inttostr: simplify by removing unnecessary redundancy
11106         * lib/anytostr.c: Don't include verify.h.
11107         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11108         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11109         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11110         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11111         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11112         Likewise.
11113         * modules/inttostr (Depends-on): Remove 'verify'.
11114
11115 2010-10-23  Bruno Haible  <bruno@clisp.org>
11116
11117         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11118         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11119         Reported by Eric Blake.
11120
11121 2010-10-23  Bruno Haible  <bruno@clisp.org>
11122
11123         Tests: Fix LOCALE_JA on MirBSD 10.
11124         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11125         to an UTF-8 locale.
11126         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11127         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11128         Reported by Eric Blake.
11129
11130 2010-10-21  Bruno Haible  <bruno@clisp.org>
11131
11132         nl_langinfo test: Avoid test failure on NetBSD 5.
11133         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11134         Reported by Eric Blake.
11135
11136 2010-10-21  Eric Blake  <eblake@redhat.com>
11137
11138         c-stack: work around libsigsegv 2.8 bug
11139         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11140         overflow on at least PowerPC64.
11141
11142 2010-10-17  Bruno Haible  <bruno@clisp.org>
11143
11144         userspec: Drop redundant file.
11145         * modules/userspec (Files): Remove lib/inttostr.h.
11146
11147 2010-10-17  Bruno Haible  <bruno@clisp.org>
11148
11149         nl_langinfo tests: Silence some warnings.
11150         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11151         Reported by Jim Meyering.
11152
11153 2010-10-17  Bruno Haible  <bruno@clisp.org>
11154
11155         Make use of GCC's attribute __alloc_size__.
11156         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11157         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11158         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11159         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11160         __alloc_size__.
11161         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11162         Suggested by Jim Meyering.
11163
11164 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11165
11166         bootstrap: anchor .gitignore entries.
11167         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11168         with...
11169         (insert_vc_ignore): ... this new function, which prepends `/' to
11170         all .gitignore entries before passing them to
11171         insert_sorted_if_absent.
11172
11173 2010-10-16  Bruno Haible  <bruno@clisp.org>
11174
11175         nextafter: Fix configure check.
11176         * modules/nextafter (configure.ac): Correct expected prototype.
11177
11178 2010-10-16  Bruno Haible  <bruno@clisp.org>
11179
11180         termios: Update documentation.
11181         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11182
11183 2010-10-16  Bruno Haible  <bruno@clisp.org>
11184
11185         tests: Make them compile with TinyCC.
11186         * tests/test-strstr.c (main): Remove parentheses around array
11187         initializer.
11188
11189 2010-10-15  Eric Blake  <eblake@redhat.com>
11190
11191         ignore-value: make header idempotent
11192         * lib/ignore-value.h: Add double-inclusion guards.
11193         Reported by Stefan Berger.
11194
11195 2010-10-15  Jim Meyering  <meyering@redhat.com>
11196
11197         GNUmakefile: handle "stable" target, not "major"
11198         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11199         lists in maint.mk and announce-gen.  Without this, "make stable"
11200         would fail to ensure that $(VERSION) is up to date.
11201
11202 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11203
11204         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11205         & co.
11206
11207 2010-10-14  Bruno Haible  <bruno@clisp.org>
11208
11209         vasnprintf: Don't set errno to 0.
11210         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11211         block that sets it to 0.
11212         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11213
11214 2010-10-14  Bruno Haible  <bruno@clisp.org>
11215
11216         socketlib: Fix.
11217         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11218         gl_PREREQ_SYS_H_WINSOCK2.
11219         Reported by Ian Beckwith <ianb@erislabs.net>.
11220
11221 2010-10-13  Jim Meyering  <meyering@redhat.com>
11222
11223         test-select-stdin.c: avoid warn_unused_result warnings
11224         * tests/test-select-stdin.c: Include "macros.h".
11225         ASSERT that read and fflush succeed.
11226
11227 2010-10-13  Jim Meyering  <meyering@redhat.com>
11228
11229         git-version-gen: do require git-VC'd files in cwd
11230         * build-aux/git-version-gen: Reject a git version string
11231         if there are no commits associated with the current directory.
11232         This avoids an unlikely false-positive (unrelated dir whose parent
11233         repository also contains a tag matching v*), as pointed out
11234         by Giuseppe Scrivano in
11235         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11236
11237 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11238
11239         argv-iter: omit nonconforming declaration
11240         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11241         enum arg_iter_err declaration, which doesn't conform to C99.
11242         Solaris 10 cc warns about this.
11243
11244 2010-10-13  Eric Blake  <eblake@redhat.com>
11245
11246         termios: fix compilation on mingw
11247         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11248         (gl_TERMIOS_H): Adjust it on mingw.
11249         * modules/termios (Makefile.am): Substitute new key.
11250         * lib/termios.in.h (includes): Make include_next conditional.
11251         * doc/posix-headers/termios.texi (termios.h): Update
11252         documentation.
11253         Reported by Daniel P. Berrange.
11254
11255 2010-10-13  Jim Meyering  <meyering@redhat.com>
11256
11257         git-version-gen: don't require that .git/ be in the current dir
11258         * build-aux/git-version-gen: Adjust this script so that it works
11259         when run from any working directory beneath the top-level .git/-
11260         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11261         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11262
11263         test-select: avoid warn_unused_result warnings
11264         * tests/test-select.c: Include "macros.h".
11265         ASSERT that each call to read, write, and pipe succeeds.
11266         While not technically required, also check each "close".
11267         * modules/select-tests (Files): Add tests/macros.h.
11268
11269         test-symlinkat: remove declaration of unused local
11270         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11271
11272         test-inttostr: avoid shadowing warnings
11273         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11274         and use malloc rather than the stack for the same reason as
11275         mentioned in the comment justifying the other allocation.
11276
11277 2010-10-11  Bruno Haible  <bruno@clisp.org>
11278
11279         stdlib: Allow multiple gnulib generated replacements to coexist.
11280         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11281         Reported by Sam Steingold <sds@gnu.org>.
11282
11283 2010-10-11  Jim Meyering  <meyering@redhat.com>
11284
11285         fix a documentation typo
11286         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11287
11288 2010-10-11  Eric Blake  <eblake@redhat.com>
11289
11290         futimens: work around Solaris 11 bug
11291         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11292         * tests/test-futimens.h (test_futimens): Enhance, rather than
11293         weaken test.
11294         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11295
11296 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11297
11298         Indentation.
11299         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11300         higher-level operators more to the left.
11301
11302 2010-10-11  Jim Meyering  <meyering@redhat.com>
11303
11304         test-futimens: avoid unwarranted test failure on Solaris 5.11
11305         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11306         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11307         because it tries to dereference the NULL name argument.
11308
11309 2010-10-11  Bruno Haible  <bruno@clisp.org>
11310
11311         Indentation.
11312         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11313         indentation.
11314
11315 2010-10-11  Jim Meyering  <meyering@redhat.com>
11316
11317         spawn.in.h: make indentation consistent with parentheses
11318         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11319         Make indentation consistent with parentheses.
11320
11321 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11322
11323         Fix mismatched parens in previous commit
11324         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11325         parens.
11326
11327 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11328
11329         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11330
11331         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11332         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11333         * lib/malloca.c: Include "verify.h".
11334         (verify1): Remove, replacing with a verify call.
11335         * lib/relocwrapper.c (verify1): Likewise.
11336         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11337         Likewise.
11338         * modules/malloca (Depends-on): Add 'verify'.
11339         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11340         * modules/vasnprintf (Depends-on): Add 'verify'.
11341         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11342         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11343         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11344         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11345         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11346         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11347         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11348
11349         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11350
11351         Formerly the style was sometimes 2*X - 1, because the C standard
11352         was wrongly thought to disallow ?: in integral constant expressions.
11353         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11354         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11355         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11356         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11357         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11358         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11359         verify that time_t cannot be floating.
11360
11361 2010-10-08  Eric Blake  <eblake@redhat.com>
11362
11363         time: enforce recent POSIX ruling that time_t is integral
11364         * lib/time.in.h (__time_t_must_be_integral): Detect any
11365         problematic systems, allowing the rest of gnulib to assume POSIX.
11366
11367 2010-10-08  Jim Meyering  <meyering@redhat.com>
11368
11369         fdopendir: fix a bug on systems lacking openat and /proc support
11370         OpenBSD 4.7 is one such system.  The most noticeable effect was
11371         failure of any application making nontrivial use of fts: rm, du,
11372         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11373           ./rm: traversal failed: `a': Bad file descriptor
11374         Debugging that, you see that even though FD 6 was closed just
11375         prior to the opendir call in fd_clone_opendir, its resulting
11376         dir->dd_fd was 8, rather than the expected value of 6:
11377
11378         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11379         93                close (fd);
11380         (gdb) n
11381         94                dir = fd_clone_opendir (dupfd);
11382         (gdb) n
11383         95                saved_errno = errno;
11384         (gdb) p dir->dd_fd
11385         $11 = 8
11386
11387         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11388         The problem is that on OpenBSD, fd_clone_opendir has to resort
11389         to using the old-style save/restore CWD mechanism, due to its
11390         lack of openat/proc support, and *that* would steal the FD (6)
11391         that opendir was supposed to use.
11392
11393         The fix is to squirrel away the desired FD so that save_cwd uses a
11394         different one, and then free the dest FD right before calling opendir.
11395         That guarantees opendir will use the required file descriptor.
11396
11397         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11398
11399 2010-10-08  Bruno Haible  <bruno@clisp.org>
11400
11401         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11402         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11403
11404 2010-10-08  Bruno Haible  <bruno@clisp.org>
11405
11406         nanosleep: Make replacement POSIX compliant.
11407         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11408         is out of range.
11409         Reported by Jim Meyering.
11410
11411 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11412
11413         bootstrap: add hook for altering gnulib.mk, for Bison
11414         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11415         the Bison bootstrapping process can rewrite file names and variables
11416         in this file before later parts of 'bootstrap' use the file.
11417         Bison wants to include lib/gnulib.mk from the top-level makefile,
11418         so it needs the file names in this file to be relative to the top
11419         level, not relative to lib; plus it needs variable names to be
11420         rewritten.
11421         (slurp): Use the new function.
11422
11423         bootstrap: reformat for readability
11424         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11425
11426 2010-10-08  Eric Blake  <eblake@redhat.com>
11427
11428         docs: update cygwin progress
11429         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11430         1.7.7.
11431         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11432         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11433         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11434         * doc/posix-functions/carg.texi (carg): Likewise.
11435         * doc/posix-functions/cargf.texi (cargf): Likewise.
11436         * doc/posix-functions/casin.texi (casin): Likewise.
11437         * doc/posix-functions/casinf.texi (casinf): Likewise.
11438         * doc/posix-functions/casinh.texi (casinh): Likewise.
11439         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11440         * doc/posix-functions/catan.texi (catan): Likewise.
11441         * doc/posix-functions/catanf.texi (catanf): Likewise.
11442         * doc/posix-functions/catanh.texi (catanh): Likewise.
11443         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11444         * doc/posix-functions/ccos.texi (ccos): Likewise.
11445         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11446         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11447         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11448         * doc/posix-functions/cexp.texi (cexp): Likewise.
11449         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11450         * doc/posix-functions/cimag.texi (cimag): Likewise.
11451         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11452         * doc/posix-functions/clog.texi (clog): Likewise.
11453         * doc/posix-functions/clogf.texi (clogf): Likewise.
11454         * doc/posix-functions/conj.texi (conj): Likewise.
11455         * doc/posix-functions/conjf.texi (conjf): Likewise.
11456         * doc/posix-functions/cpow.texi (cpow): Likewise.
11457         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11458         * doc/posix-functions/cproj.texi (cproj): Likewise.
11459         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11460         * doc/posix-functions/creal.texi (creal): Likewise.
11461         * doc/posix-functions/crealf.texi (crealf): Likewise.
11462         * doc/posix-functions/csin.texi (csin): Likewise.
11463         * doc/posix-functions/csinf.texi (csinf): Likewise.
11464         * doc/posix-functions/csinh.texi (csinh): Likewise.
11465         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11466         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11467         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11468         * doc/posix-functions/ctan.texi (ctan): Likewise.
11469         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11470         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11471         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11472         * doc/posix-headers/complex.texi (complex.h): Likewise.
11473
11474 2010-10-07  Jim Meyering  <meyering@redhat.com>
11475
11476         parse-datetime: avoid compilation failure on OpenBSD 4.7
11477         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11478         This works around a compilation failure on OpenBSD 4.7:
11479         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11480
11481 2010-10-07  Eric Blake  <eblake@redhat.com>
11482
11483         docs: update cygwin progress
11484         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11485         1.7.6.
11486         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11487         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11488         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11489         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11490         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11491         Likewise.
11492         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11493         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11494         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11495         Likewise.
11496         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11497         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11498         Likewise.
11499         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11500         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11501         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11502         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11503         Likewise.
11504         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11505         Likewise.
11506         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11507
11508         docs: update parse-datetime history
11509         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11510         documentation of this function's history and alternatives.
11511
11512         cygwin: use more robust version check
11513         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11514         exclude an eventual cygwin 1.9.1.
11515         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11517         (gl_FUNC_STRCASESTR): Likewise.
11518         Reported by Bruno Haible.
11519
11520 2010-10-06  Bruno Haible  <bruno@clisp.org>
11521
11522         string, sys_select: Avoid #including large headers unless necessary.
11523         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11524         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11525         OSF/1, BeOS, Haiku.
11526         Reported by Jim Meyering.
11527
11528 2010-10-05  Eric Blake  <eblake@redhat.com>
11529
11530         memmem, strstr, strcasestr: fix bug with long periodic needle
11531         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11532         periodic needle having false positive.
11533         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11534         and cygwin 1.7.7.
11535         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11537         (gl_FUNC_STRCASESTR): Likewise.
11538         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11539         * tests/test-memmem.c (main): Expose the bug.
11540         * tests/test-strcasestr.c (main): Likewise.
11541         * tests/test-strstr.c (main): Likewise.
11542         * tests/test-c-strcasestr.c (main): Likewise.
11543         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11544         * doc/posix-functions/strstr.texi (strstr): Likewise.
11545         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11546         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11547
11548 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11549
11550         parse-datetime: do some more renaming
11551         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11552         parse_datetime, not get_date.  Mention the renaming.
11553         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11554         in comments.
11555         * m4/bison.m4: Likewise.
11556
11557 2010-10-05  Eric Blake  <eblake@redhat.com>
11558
11559         parse-datetime: better name than get_date
11560         * NEWS: Reword the deprecation notice.
11561         * modules/get_date: Rename to modules/parse-datetime.
11562         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11563         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11564         * lib/get_date.y: Rename to lib/parse-datetime.y.
11565         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11566         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11567         * doc/getdate.texi: Provide fallback wrapper.
11568         * lib/getdate.h: Move guts, and wrap...
11569         * lib/parse-datetime.h: ...new file.
11570         * lib/parse-datetime.y (get_date): Rename...
11571         (parse_datetime): ...to this.
11572         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11573         (gl_PARSE_DATETIME): ...to this.
11574         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11575         documentation.
11576         * modules/getdate (Files): Provide fallback docs and header.
11577         (Notice, Depends-on): Update references.
11578         * tests/test-parse-datetime.c: Likewise.
11579         * DEPENDENCIES: Likewise.
11580         * MODULES.html.sh (Date and time <time.h>): Likewise.
11581         * doc/parse-datetime.texi (Date input formats)
11582         (Authors of parse_datetime): Likewise.
11583         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11584         (Include): Likewise.
11585         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11586         * gnulib-tool: Likewise.
11587         * m4/bison.m4 (gl_BISON): Likewise.
11588         Suggested by Bruno Haible.
11589
11590 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11591
11592         more ports to Solaris tr, which needs [] around ranges
11593         * gnulib-tool: Solaris tr needs [] around ranges.
11594         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11595         * tests/test-pipe-filter-gi1.c (main): Likewise.
11596         * tests/test-pipe-filter-ii1.c (main): Likewise.
11597
11598 2010-10-05  Eric Blake  <eblake@redhat.com>
11599
11600         bootstrap: fix Solaris regression
11601         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11602         around ranges.
11603         Reported by Pádraig Brady.
11604
11605         bootstrap: work with pkg-config
11606         * build-aux/bootstrap (check_versions): Also transliterate - in
11607         prerequisite name.
11608         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11609         prerequisites that were already found, to avoid confusion.
11610         Reported by Justin Clift.
11611
11612         faccessat: remove unused wrappers
11613         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11614         presence of these wrappers dragged in -lgen on Solaris.
11615         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11616
11617 2010-10-05  Jim Meyering  <meyering@redhat.com>
11618
11619         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11620         * Makefile (sc_pragma_columns): New syntax-check rule.
11621
11622 2010-10-04  Bruno Haible  <bruno@clisp.org>
11623
11624         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11625         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11626         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11627         Reported by Bruce Korb and Eric Blake.
11628
11629 2010-10-04  Bruno Haible  <bruno@clisp.org>
11630
11631         threadlib: Make option --with-libpth-prefix work.
11632         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11633         use $LIBPTH, not just -lpth.
11634
11635 2010-10-04  Bruno Haible  <bruno@clisp.org>
11636
11637         Avoid line length limitation from HP NonStop system header files.
11638         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11639         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11640         * lib/ctype.in.h: Likewise.
11641         * lib/dirent.in.h: Likewise.
11642         * lib/errno.in.h: Likewise.
11643         * lib/fcntl.in.h: Likewise.
11644         * lib/float.in.h: Likewise.
11645         * lib/getopt.in.h: Likewise.
11646         * lib/iconv.in.h: Likewise.
11647         * lib/inttypes.in.h: Likewise.
11648         * lib/langinfo.in.h: Likewise.
11649         * lib/locale.in.h: Likewise.
11650         * lib/math.in.h: Likewise.
11651         * lib/netdb.in.h: Likewise.
11652         * lib/netinet_in.in.h: Likewise.
11653         * lib/poll.in.h: Likewise.
11654         * lib/pthread.in.h: Likewise.
11655         * lib/pty.in.h: Likewise.
11656         * lib/sched.in.h: Likewise.
11657         * lib/se-selinux.in.h: Likewise.
11658         * lib/search.in.h: Likewise.
11659         * lib/signal.in.h: Likewise.
11660         * lib/spawn.in.h: Likewise.
11661         * lib/stdarg.in.h: Likewise.
11662         * lib/stddef.in.h: Likewise.
11663         * lib/stdint.in.h: Likewise.
11664         * lib/stdio.in.h: Likewise.
11665         * lib/stdlib.in.h: Likewise.
11666         * lib/string.in.h: Likewise.
11667         * lib/strings.in.h: Likewise.
11668         * lib/sys_file.in.h: Likewise.
11669         * lib/sys_ioctl.in.h: Likewise.
11670         * lib/sys_select.in.h: Likewise.
11671         * lib/sys_socket.in.h: Likewise.
11672         * lib/sys_stat.in.h: Likewise.
11673         * lib/sys_time.in.h: Likewise.
11674         * lib/sys_times.in.h: Likewise.
11675         * lib/sys_utsname.in.h: Likewise.
11676         * lib/sys_wait.in.h: Likewise.
11677         * lib/sysexits.in.h: Likewise.
11678         * lib/termios.in.h: Likewise.
11679         * lib/time.in.h: Likewise.
11680         * lib/unistd.in.h: Likewise.
11681         * lib/wchar.in.h: Likewise.
11682         * lib/wctype.in.h: Likewise.
11683         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11684         * modules/ctype (Makefile.am): Likewise.
11685         * modules/dirent (Makefile.am): Likewise.
11686         * modules/errno (Makefile.am): Likewise.
11687         * modules/fcntl-h (Makefile.am): Likewise.
11688         * modules/float (Makefile.am): Likewise.
11689         * modules/getopt-posix (Makefile.am): Likewise.
11690         * modules/iconv-h (Makefile.am): Likewise.
11691         * modules/inttypes (Makefile.am): Likewise.
11692         * modules/langinfo (Makefile.am): Likewise.
11693         * modules/locale (Makefile.am): Likewise.
11694         * modules/math (Makefile.am): Likewise.
11695         * modules/netdb (Makefile.am): Likewise.
11696         * modules/netinet_in (Makefile.am): Likewise.
11697         * modules/poll-h (Makefile.am): Likewise.
11698         * modules/pthread (Makefile.am): Likewise.
11699         * modules/pty (Makefile.am): Likewise.
11700         * modules/sched (Makefile.am): Likewise.
11701         * modules/search (Makefile.am): Likewise.
11702         * modules/selinux-h (Makefile.am): Likewise.
11703         * modules/signal (Makefile.am): Likewise.
11704         * modules/spawn (Makefile.am): Likewise.
11705         * modules/stdarg (Makefile.am): Likewise.
11706         * modules/stddef (Makefile.am): Likewise.
11707         * modules/stdint (Makefile.am): Likewise.
11708         * modules/stdio (Makefile.am): Likewise.
11709         * modules/stdlib (Makefile.am): Likewise.
11710         * modules/string (Makefile.am): Likewise.
11711         * modules/strings (Makefile.am): Likewise.
11712         * modules/sys_file (Makefile.am): Likewise.
11713         * modules/sys_ioctl (Makefile.am): Likewise.
11714         * modules/sys_select (Makefile.am): Likewise.
11715         * modules/sys_socket (Makefile.am): Likewise.
11716         * modules/sys_stat (Makefile.am): Likewise.
11717         * modules/sys_time (Makefile.am): Likewise.
11718         * modules/sys_times (Makefile.am): Likewise.
11719         * modules/sys_utsname (Makefile.am): Likewise.
11720         * modules/sys_wait (Makefile.am): Likewise.
11721         * modules/sysexits (Makefile.am): Likewise.
11722         * modules/termios (Makefile.am): Likewise.
11723         * modules/time (Makefile.am): Likewise.
11724         * modules/unistd (Makefile.am): Likewise.
11725         * modules/wchar (Makefile.am): Likewise.
11726         * modules/wctype (Makefile.am): Likewise.
11727
11728 2010-10-04  Bruno Haible  <bruno@clisp.org>
11729
11730         read-file tests: Avoid a test failure on NonStop Kernel.
11731         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11732         a regular file.
11733         Reported by Joachim Schmitz <schmitz@hp.com>.
11734
11735 2010-10-03  Bruno Haible  <bruno@clisp.org>
11736
11737         gnulib-tool: Fixes for --create-testdir with --libtool.
11738         * gnulib-tool (func_get_automake_snippet): Don't augment
11739         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11740         an executable.
11741         (func_create_testdir): Handle module 'alloca' like func_import.
11742         Reported by Bruce Korb <bruce.korb@gmail.com>.
11743
11744 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11745
11746         Avoid some lines longer than 80 characters.
11747         * lib/stdint.in.h: Break long comment lines.
11748         * lib/math.in.h: Likewise.
11749         (_GL_NUM_UINT_WORDS): New macro, for readability.
11750         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11751         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11752         * lib/stdlib.in.h: Likewise.
11753         * lib/spawn.in.h: Likewise.
11754         * lib/sys_socket.in.h: Update an URL.
11755         * lib/sys_stat.in.h: Break long line.
11756
11757 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11758
11759         Improve pmccabe2html.
11760         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11761         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11762         when the sources change. Remove the line in the HTML about "Used
11763         ranges" (which implied that there might be other unused ranges),
11764         rename "Resume" to "Summary" (easier to understand for more users).
11765         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11766         styles, and some unnecessary blank lines.
11767
11768 2010-10-03  Bruno Haible  <bruno@clisp.org>
11769             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11770
11771         acl: Add support for ACLs on NonStop Kernel.
11772         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11773         Check whether the function aclsort() exists.
11774         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11775         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11776         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11777         (acl_nontrivial [HAVE_ACLSORT]: New function.
11778         (file_has_acl): Implement for NonStop Kernel.
11779         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11780         (qset_acl): Implement for NonStop Kernel.
11781         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11782         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11783         (main): Implement for NonStop Kernel.
11784         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11785         Kernel. Handle this flavor.
11786         * tests/test-set-mode-acl.sh: Likewise.
11787         * tests/test-copy-acl.sh: Likewise.
11788         * tests/test-copy-file.sh: Likewise.
11789
11790 2010-10-03  Bruno Haible  <bruno@clisp.org>
11791
11792         Info about ACLs on NonStop Kernel.
11793         * doc/acl-resources.txt: Add info about NonStop Kernel.
11794         References by Joachim Schmitz <schmitz@hp.com>.
11795
11796 2010-10-02  Bruno Haible  <bruno@clisp.org>
11797
11798         Define missing EDQUOT on NonStop Kernel.
11799         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11800         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11801         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11802         missing.
11803         * doc/posix-headers/errno.texi: Mention the NSK bug.
11804         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11805         Reported by Joachim Schmitz <schmitz@hp.com>.
11806
11807 2010-10-02  Bruno Haible  <bruno@clisp.org>
11808
11809         Update doc for POSIX:2008.
11810         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11811         Update URL of POSIX specification.
11812
11813 2010-10-02  Bruno Haible  <bruno@clisp.org>
11814
11815         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11816         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11817         from gnulib, not from Automake.
11818
11819 2010-10-02  Bruno Haible  <bruno@clisp.org>
11820
11821         New module 'system-posix'.
11822         * modules/system-posix: New file.
11823         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11824         module is present.
11825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11826         GNULIB_SYSTEM_POSIX.
11827         * modules/stdlib (Depends-on): Remove sys_wait.
11828         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11829         * doc/posix-functions/system.texi: Mention the new module.
11830         * doc/posix-headers/stdlib.texi: Likewise.
11831         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11832         define test_sys_wait_macros to a no-op.
11833         Reported by Sam Steingold <sds@gnu.org>.
11834
11835 2010-09-30  Bruno Haible  <bruno@clisp.org>
11836
11837         More renaming from 'getdate' to 'get_date'.
11838         * doc/get_date.texi: Renamed from doc/getdate.texi.
11839         * modules/get_date (Files): Update.
11840         * MODULES.html.sh (Date and time <time.h>): Update.
11841         * DEPENDENCIES: Update.
11842         * gnulib-tool: Update comment.
11843         * m4/bison.m4 (gl_BISON): Likewise.
11844         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11845
11846 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11847
11848         bootstrap: support ACLOCAL_FLAGS during aclocal
11849         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11850         can add additional -I dir for third-party .m4 files.
11851
11852 2010-09-30  Eric Blake  <eblake@redhat.com>
11853
11854         bootstrap: use glibtoolize on MacOS
11855         * build-aux/bootstrap (check_versions): Convert libtool into
11856         libtoolize.
11857         (tool search): Move libtool check earlier, and look for
11858         glibtoolize for MacOS.
11859         (gnulib_tool_options): Auto-add --libtool when appropriate.
11860         Reported by Justin Clift.
11861
11862         poll: fix typo that broke test on MacOS
11863         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11864         Reported by Justin Clift.
11865
11866         getdate: rename to get_date
11867         Note: getdate.h is not renamed, to minimize client impact.
11868         * modules/getdate: Mark obsolete.  Move old contents...
11869         * modules/get_date: ...to new module name.
11870         * modules/getdate-tests: Move...
11871         * modules/get_date-tests: ...here.
11872         * m4/getdate.m4: Move...
11873         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11874         * lib/getdate.y: Move...
11875         * lib/get_date.y: ...here.
11876         * tests/test-getdate.c: Move...
11877         * tests/test-get_date.c: ...here.
11878         * doc/posix-functions/getdate.texi (getdate): Update name.
11879         * NEWS: Mention the change.
11880
11881 2010-09-29  Bruno Haible  <bruno@clisp.org>
11882
11883         Separate the module 'waitpid' from the module 'sys_wait'.
11884         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11885         present.
11886         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11887         gl_MODULE_INDICATOR_FOR_TESTS.
11888         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11889         * modules/sys_wait (Depends-on): Remove waitpid.
11890         (Makefile.am): Substitute GNULIB_WAITPID.
11891         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11892         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11893         signature only if the 'waitpid' module is present.
11894         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11895         * NEWS: Mention the change.
11896         * modules/grantpt (Depends-on): Add waitpid.
11897         * modules/wait-process (Depends-on): Likewise.
11898
11899 2010-09-29  Bruno Haible  <bruno@clisp.org>
11900
11901         More tests for module 'sys_wait'.
11902         * modules/sys_wait-c++-tests: New file.
11903         * tests/test-sys_wait-c++.cc: New file.
11904         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11905         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11906
11907 2010-09-29  Bruno Haible  <bruno@clisp.org>
11908
11909         New module 'waitpid'.
11910         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11911         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11912         Don't include <process.h>.
11913         (waitpid): Declare only, using modern idiom.
11914         * m4/waitpid.m4: New file.
11915         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11916         * modules/waitpid: New file.
11917         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11918         (Makefile.am): Update.
11919         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11920
11921 2010-09-28  Bruno Haible  <bruno@clisp.org>
11922
11923         poll: Assume ANSI C.
11924         * lib/poll.c (poll): Use an ANSI C declaration.
11925
11926 2010-09-28  Bruno Haible  <bruno@clisp.org>
11927
11928         poll-h: Create poll.h on all platforms.
11929         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11930         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11931         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11932         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11933         (gl_REPLACE_POLL_H): Don't set POLL_H.
11934         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11935         * modules/poll-h (Depends-on): Add include_next.
11936         (Makefile.am): Create poll.h unconditionally. Substitute also
11937         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11938
11939 2010-09-28  Bruno Haible  <bruno@clisp.org>
11940
11941         Tests for module 'poll-h'.
11942         * modules/poll-h-c++-tests: New file.
11943         * tests/test-poll-h-c++.cc: New file.
11944
11945         Tests for module 'poll-h'.
11946         * modules/poll-h-tests: New file.
11947         * tests/test-poll-h.c: New file.
11948
11949 2010-09-28  Bruno Haible  <bruno@clisp.org>
11950
11951         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11952         * modules/poll-h (Depends-on): Add 'extensions'.
11953
11954 2010-09-28  Bruno Haible  <bruno@clisp.org>
11955
11956         New module 'poll-h'.
11957         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11958         (poll): Use modern idiom.
11959         * modules/poll-h: New file.
11960         * modules/poll (Files): Remove lib/poll.in.h.
11961         (Depends-on): Add poll-h.
11962         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11963         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11964         * m4/poll_h.m4: New file.
11965         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11966         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11967         and invoke gl_REPLACE_POLL_H.
11968         * lib/poll.c: Use common idiom.
11969         * tests/test-poll.c: Likewise.
11970         * doc/posix-headers/poll.texi: Mention the poll-h module.
11971         Suggested by Eric Blake.
11972
11973 2010-09-26  Bruno Haible  <bruno@clisp.org>
11974
11975         sys_wait: Implement WSTOPSIG.
11976         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11977         Reported by Simon Josefsson.
11978
11979 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11980
11981         stdlib, sys_wait: Avoid compilation error on mingw.
11982         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11983
11984 2010-09-26  Bruno Haible  <bruno@clisp.org>
11985
11986         stdlib tests: Avoid code duplication.
11987         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11988         * modules/sys_wait-tests (Files): Likewise.
11989         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11990         * tests/test-stdlib.c: Include test-sys_wait.h.
11991         (main): Invoke test_sys_wait_macros.
11992         * tests/test-sys_wait.c: Include test-sys_wait.h.
11993         (main): Invoke test_sys_wait_macros.
11994
11995 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11996
11997         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11998         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11999         sure Windows sockets are working before calling getaddrinfo.
12000         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12001         * doc/gnulib.texi (Windows sockets): Fix typo.
12002
12003 2010-09-25  Bruno Haible  <bruno@clisp.org>
12004
12005         Tests for module 'regex-quote'.
12006         * modules/regex-quote-tests: New file.
12007         * tests/test-regex-quote.c: New file.
12008
12009         New module 'regex-quote'.
12010         * lib/regex-quote.h: New file.
12011         * lib/regex-quote.c: New file.
12012         * modules/regex-quote: New file.
12013         Suggested by Reuben Thomas <rrt@sc3d.org>.
12014
12015 2010-09-24  Bruno Haible  <bruno@clisp.org>
12016
12017         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12018         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12019
12020 2010-09-23  Bruno Haible  <bruno@clisp.org>
12021
12022         setenv: Relax license.
12023         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12024         Blake.
12025         Requested by Eric Blake.
12026
12027 2010-09-22  Bruno Haible  <bruno@clisp.org>
12028
12029         termios: Relax license.
12030         * modules/termios (License): Change to LGPLv2+.
12031         Requested by Eric Blake.
12032
12033 2010-09-22  Bruno Haible  <bruno@clisp.org>
12034
12035         threadlib: Allow the package to change the default to 'no'.
12036         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12037         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12038         Reported by Paul Eggert.
12039
12040 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12041             Bruno Haible  <bruno@clisp.org>
12042
12043         Fix endless loop in mbmemcasecoll.
12044         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12045         byte.
12046         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12047
12048 2010-09-22  Bruno Haible  <bruno@clisp.org>
12049
12050         Tests for module 'memcoll'.
12051         * modules/memcoll-tests: New file.
12052         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12053
12054         memcoll, xmemcoll: Clarify size vs. length.
12055         * modules/memcoll.c (memcoll0): Clarify specification.
12056         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12057         passed to collate_error.
12058
12059 2010-09-22  Bruno Haible  <bruno@clisp.org>
12060
12061         Tests for module 'memcasecmp'.
12062         * modules/memcasecmp-tests: New file.
12063         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12064
12065 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12066
12067         * lib/pthread.in.h: Add split double-inclusion guard, and include
12068         system <pthread.h> if there is one.  Use @@-style as in other
12069         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12070         pthread.h doesn't.
12071         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12072         (pthread_mutexattr_settype, pthread_mutex_trylock):
12073         New static inline functions, if there's no system <pthread.h>.
12074         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12075         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12076         Approximate with mutexes if the system lacks spinlocks, as in
12077         MacOS.
12078         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12079         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12080         @@-style.  Check for spinlocks separately.
12081         (gl_PTHREAD_DEFAULTS): New macro.
12082         * modules/pthread: Redo to use a more typical style for in.h files.
12083
12084 2010-09-21  Eric Blake  <eblake@redhat.com>
12085
12086         net_if: enhance tests
12087         * tests/test-net_if.c (main): Move signature checks earlier.
12088         Print failures to stderr.
12089         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12090         Document the bug that we do not yet fix.
12091
12092 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12093
12094         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12095         about gnulib, not GSS.
12096
12097 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12098
12099         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12100         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12101         for Emacs.
12102         * build-aux/pmccabe2html: Make Makefile.am example code more
12103         cut-and-paste friendly.
12104
12105 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12106
12107         * tests/test-net_if.c: New file.
12108         * modules/net_if-tests: New file.
12109
12110 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12111
12112         pthread: add pthread_spin_destroy
12113         * lib/pthread.in.h (pthread_spin_destroy): New function.
12114
12115 2010-09-19  Bruno Haible  <bruno@clisp.org>
12116
12117         gnulib-tool: Fix --help output.
12118         * gnulib-tool (func_usage): Fix help message.
12119         Reported by Reuben Thomas <rrt@sc3d.org>.
12120
12121 2010-09-18  Jim Meyering  <meyering@redhat.com>
12122
12123         maint.mk: avoid unexpanded \n in two diagnostics
12124         * top/maint.mk (sc_prohibit_always_true_header_tests):
12125         Don't use a literal \n in a halt=... assignment.  It would not be
12126         expanded, and the two \n bytes would appear in the diagnostic output
12127         rather than the desired newline.  Use halt=$$(printf ... instead.
12128         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12129
12130 2010-09-18  Bruno Haible  <bruno@clisp.org>
12131
12132         netinet_in: Doc tweak.
12133         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12134         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12135
12136 2010-09-18  Jim Meyering  <meyering@redhat.com>
12137
12138         init.sh: correct an outdated comment
12139         * tests/init.sh (create_exe_shims_):  s/function/alias/
12140
12141         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12142         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12143         a file named "*.exe" is removed between the glob expansion and the
12144         processing of that oddly named file.
12145
12146 2010-09-17  Eric Blake  <eblake@redhat.com>
12147
12148         mirbsd: add some more support
12149         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12150         in BSD family.
12151         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12152         devices as OpenBSD.
12153         * m4/host-os.m4 (mirbsd): Add MirBSD.
12154
12155         tests: fix unportable assumption on sys/wait.h
12156         * tests/test-sys_wait.c (main): Relax test.
12157         * tests/test-stdlib.c (main): Likewise.
12158
12159         init.sh: accomodate directory with no .exes
12160         * tests/init.sh: Accomodate directory containing only scripts.
12161
12162         tests: avoid compiler warning
12163         * tests/test-stdlib.c (main): Use the variable.
12164
12165         fdutimens, fdutimensat: update signature, again
12166         * lib/utimens.h (gl_futimens): Delete, and move signature...
12167         (fdutimens): ...here.
12168         (fdutimensat): Rearrange signature.
12169         (lutimensat): Rename variable for clarity.
12170         * lib/fdutimensat.c (fdutimensat): Update signature.
12171         * lib/utimens.c (fdutimens): Likewise.
12172         (gl_futimens): Delete.
12173         (utimens, lutimens): Update callers.
12174         * lib/futimens.c (futimens): Likewise.
12175         * tests/test-fdutimensat.c: Likewise.
12176         * tests/test-utimens.c: Likewise.
12177         * tests/test-futimens.h: Update comment.
12178         * NEWS: Mention this.
12179         Suggested by Paul Eggert.
12180
12181 2010-09-17  Bruno Haible  <bruno@clisp.org>
12182
12183         Take over the maintenance of some older macros from Autoconf.
12184         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12185         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12186         GNU Autoconf.
12187         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12188         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12189
12190 2010-09-17  Eric Blake  <eblake@redhat.com>
12191
12192         fdutimensat: drop atflag validation
12193         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12194         with valid fd, to close a race scenario where futimens is
12195         unsupported and FILE was replaced by a symlink.
12196         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12197         accordingly.
12198         Suggested by Paul Eggert.
12199
12200 2010-09-16  Bruno Haible  <bruno@clisp.org>
12201
12202         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12203         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12204
12205 2010-09-16  Bruno Haible  <bruno@clisp.org>
12206
12207         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12208         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12209         login_tty exists.
12210         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12211
12212 2010-09-16  Bruno Haible  <bruno@clisp.org>
12213
12214         login_tty: Make the replacement code work on BSD systems.
12215         * lib/login_tty.c: Include <sys/ioctl.h>.
12216         (login_tty): Use ioctl TIOCSCTTY when available.
12217         * modules/login_tty (Depends-on): Add sys_ioctl.
12218         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12219
12220 2010-09-16  Bruno Haible  <bruno@clisp.org>
12221
12222         login_tty: Stricter unit test.
12223         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12224         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12225         and tcgetsid() after login_tty.
12226         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12227
12228 2010-09-16  Bruno Haible  <bruno@clisp.org>
12229
12230         New module 'tcgetsid'.
12231         * lib/tcgetsid.c: New file.
12232         * m4/tcgetsid.m4: New file.
12233         * modules/tcgetsid: New file.
12234         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12235         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12236         GNULIB_TCGETSID, HAVE_TCGETSID.
12237         * lib/termios.in.h: Include <sys/types.h>.
12238         (tcgetsid): New declaration.
12239         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12240         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12241         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12242         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12243
12244 2010-09-16  Bruno Haible  <bruno@clisp.org>
12245
12246         Tests for module 'termios'.
12247         * modules/termios-c++-tests: New file.
12248         * modules/termios-tests: New file.
12249         * tests/test-termios-c++.cc: New file.
12250         * tests/test-termios.c: New file.
12251
12252         New module 'termios'.
12253         * modules/termios: New file.
12254         * lib/termios.in.h: New file.
12255         * m4/termios_h.m4: New file.
12256         * doc/posix-headers/termios.texi: Mention the new module.
12257
12258 2010-09-16  Eric Blake  <eblake@redhat.com>
12259
12260         fdutimensat: add an atflag parameter
12261         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12262         * lib/utimens.h (fdutimensat): Update prototype.
12263         * tests/test-fdutimensat.c: Adjust test to match.
12264         * NEWS: Document the change.
12265         Suggested by Paul Eggert.
12266
12267 2010-09-16  Bruno Haible  <bruno@clisp.org>
12268
12269         Fix typos in comments.
12270         * lib/striconveh.h: Fix typo in comment.
12271         * lib/login_tty.c (login_tty): Likewise.
12272
12273 2010-09-15  Bruno Haible  <bruno@clisp.org>
12274
12275         stdlib: clarify MirBSD WEXITSTATUS bug
12276         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12277         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12278
12279 2010-09-15  Eric Blake  <eblake@redhat.com>
12280
12281         stdlib: work around MirBSD WEXITSTATUS bug
12282         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12283         * modules/stdlib (Depends-on): Add sys_wait.
12284         * tests/test-sys_wait.c (main): Enhance test.
12285         * tests/test-stdlib.c (main): Likewise.
12286         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12287
12288         docs: mention MacOS issue with WEXITSTATUS(constant)
12289         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12290         issue.
12291         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12292
12293         strnlen: add tests
12294         * modules/strnlen-tests: New file.
12295         * tests/test-strnlen.c: Likewise.
12296
12297 2010-09-14  Bruno Haible  <bruno@clisp.org>
12298
12299         unistr/base: Avoid link errors when module 'libunistring' is also used.
12300         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12301         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12302         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12303         Declare also when HAVE_LIBUNISTRING is set.
12304         Reported by Pádraig Brady <P@draigbrady.com>.
12305
12306 2010-09-14  Eric Blake  <eblake@redhat.com>
12307
12308         test-rawmemchr: make more robust
12309         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12310         (Depends-on, configure.ac): Add needed prerequisites to use it.
12311         * modules/memchr-tests (Files, Depends-on, configure.ac):
12312         Likewise, to avoid implicit reliance on memchr module prereqs.
12313         * tests/test-memchr.c (main): Ensure proper masking.
12314         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12315         reads.
12316
12317         memchr: detect glibc Alpha bug
12318         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12319         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12320         Alpha.
12321         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12322         * tests/test-memchr.c (main): Enhance test.
12323         Reported by Nelson H. F. Beebe.
12324
12325 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12326
12327         fts, getcwd, glob: audit for dirfd returning -1
12328         * lib/fts.c (opendir): Remove #define; no longer used.
12329         (opendirat): New arg PDIR_FD.  All callers changed.
12330         (fts_build, _opendir2): Use new opendirat to avoid the need for
12331         dirfd, or for checking whether dirfd returns a negative value.
12332         Don't use opendir; always use openat followed by fdopendir.
12333         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12334         it.
12335         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12336         returns -1 here.
12337         * modules/fts (Depends-on): Remove dirfd.
12338         * modules/getcwd (Depends-on): Likewise.
12339
12340 2010-09-13  Eric Blake  <eblake@redhat.com>
12341
12342         float: fix broken MirBSD header
12343         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12344         * doc/posix-headers/float.texi (float.h): Document it.
12345
12346 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12347
12348         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12349         * lib/fts.c (opendirat): New arg extra_flags.
12350         (__opendir2): Use it to avoid following symlinks when opening
12351         a directory, if symlinks are not supposed to be followed.  See
12352         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12353
12354         fdopendir: preserve argument fd before returning
12355         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12356         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12357         (fdopendir): Use them, arranging for FD to be open to the same
12358         directory that it was when it started.  (It might be temporarily
12359         closed while fdopendir is running, so this not thread- or
12360         signal-safe.)  Be careful to do the right thing even when file
12361         descriptors are scarce and dup fails with errno == EMFILE.  See
12362         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12363
12364 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12365
12366         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12367         * NEWS: Document change.
12368         * m4/regex.m4: Disable test for regoff_t size.
12369
12370 2010-09-13  Jim Meyering  <meyering@redhat.com>
12371
12372         fts: don't operate on an invalid file descriptor after failed dup
12373         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12374         negative file descriptor.
12375
12376 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12377
12378         savedir: add streamsavedir, deprecate fdsavedir
12379         * NEWS: Mention deprecation of fdsavedir.
12380         * lib/savedir.c (streamsavedir): New extern function, whose name
12381         ends in "savedir" to be consistent with the others.  This differs
12382         from savedirstream in that it doesn't close its argument.  The
12383         next version of GNU tar will use this instead of fdsavedir, to
12384         avoid some race conditions and conserve file descriptors.
12385         (savedirstream): Reimplement as a wrapper around streamsavedir.
12386         (fdsavedir): Add a comment deprecating this function.  As far as
12387         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12388         * lib/savedir.h (streamsavedir): New decl.
12389         (fdsavedir): Add a comment deprecating this.
12390
12391 2010-09-10  Bruno Haible  <bruno@clisp.org>
12392
12393         langinfo: Fix last commit.
12394         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12395         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12397
12398 2010-09-10  Bruno Haible  <bruno@clisp.org>
12399
12400         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12401         * lib/progreloc.c (O_EXEC): Define fallback.
12402
12403 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12404
12405         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12406         * NEWS: Document recent changes to fcntl-h.
12407         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12408         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12409         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12410         Similarly for O_SEARCH; this last was already true, but not documented.
12411         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12412         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12413         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12414         Likewise.
12415         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12416         is zero, not whether it is defined.
12417         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12418         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12419         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12420
12421 2010-09-10  Bruno Haible  <bruno@clisp.org>
12422
12423         langinfo, nl_langinfo: Fix for IRIX 5.3.
12424         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12425         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12426         HAVE_LANGINFO_YESEXPR.
12427         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12428         HAVE_LANGINFO_YESEXPR.
12429         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12430         HAVE_LANGINFO_T_FMT_AMPM is 0.
12431         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12432         HAVE_LANGINFO_YESEXPR is 0.
12433         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12434         NOEXPR.
12435         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12436         * doc/posix-functions/nl_langinfo.texi: Likewise.
12437         Reported by Eric Blake.
12438
12439 2010-09-10  Bruno Haible  <bruno@clisp.org>
12440
12441         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12442         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12443         on FreeBSD 8.0 and OpenBSD 4.6.
12444         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12445         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12446         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12447         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12448         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12449         ac_includes_default.
12450         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12451
12452 2010-09-09  Eric Blake  <eblake@redhat.com>
12453
12454         strsignal: work around NetBSD bug
12455         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12456         * lib/string.in.h (includes): Likewise.
12457         * doc/posix-functions/strsignal.texi (strsignal): Document the
12458         bug.
12459         Reported by Nelson H. F. Beebe.
12460
12461         gnulib-tool: work with NetBSD /bin/sh
12462         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12463         (func_get_description, func_get_comment, func_get_status)
12464         (func_get_notice, func_get_applicability, func_get_filelist)
12465         (func_get_dependencies, func_get_autoconf_early_snippet)
12466         (func_get_autoconf_snippet, func_get_automake_snippet)
12467         (func_get_include_directive, func_get_link_directive)
12468         (func_get_license, func_get_maintainer, func_import): Avoid
12469         shell syntax errors from parsing syntax extensions.
12470
12471 2010-09-09  Bruno Haible  <bruno@clisp.org>
12472
12473         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12474         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12475         a reliable way to determine whether the 'alias' command works.
12476
12477 2010-09-08  Jim Meyering  <meyering@redhat.com>
12478
12479         init.sh: penalize a set-x-impaired shell; don't disqualify it
12480         * tests/init.sh: Too many shells corrupt application stderr when
12481         you set -x, so we can't afford to disqualify them, since at least
12482         on Irix-6.5, that would disqualify all bourne shells.
12483         Instead, use a two-pass approach.
12484         On the first pass, try to find a shell that meets the stricter
12485         condition that set -x does not corrupt stderr.
12486         If no shell meets the stricter condition, retest each candidate
12487         shell, but without that extra condition.  Finally, when
12488         VERBOSE=yes is requested and set -x might cause trouble, simply
12489         issue a warning and refrain from enabling debug output.
12490
12491 2010-09-08  Eric Blake  <eblake@redhat.com>
12492
12493         unsetenv: fix OpenBSD bug
12494         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12495         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12496         documentation.
12497         Reported by Jim Meyering.
12498
12499         strtod: work around IRIX 6.5 bug
12500         * lib/strtod.c (strtod): Reparse number on shorter string if
12501         exponent parse was invalid.
12502         * tests/test-strtod.c (main): Add check for "0x1p 2".
12503         Reported by Tom G. Christensen.
12504
12505         getopt: optimize previous patch
12506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12507         empty variable.  Speed up awk script.
12508         Reported by Paolo Bonzini.
12509
12510 2010-09-08  Jim Meyering  <meyering@redhat.com>
12511
12512         test.sh: disqualify shells for which set -x corrupts stderr
12513         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12514         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12515         appear in stderr output.  For example, this command:
12516             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12517         prints "P=1" on those two systems:
12518
12519 2010-09-08  Bruno Haible  <bruno@clisp.org>
12520
12521         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12522         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12523         commands, because some shells ignore redirections when there is an
12524         error in the command lookup.
12525         Reported by Eric Blake.
12526
12527 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12528
12529         * lib/regex.h: Fix a mention of `regex_compile' (should be
12530         `re_compile_pattern').
12531         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12532         (re_set_registers): Correct name of parameter in comment.
12533
12534         * doc/regex.texi: Add documentation for missing syntax flags.
12535         Remove commented-out documentation of defunct syntax option
12536         RE_NO_EMPTY_ALTS.
12537         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12538         Add documentation of re_set_registers.
12539         Document trick to re-use a pattern buffer by setting fastmap manually.
12540         Update documentation of struct re_pattern_buffer per public members.
12541         Uncomment documentation of equivalence class operators and
12542         collating symbol operators, since they are now implemented,
12543         Explain leftmost-longest matching in relation to alternatives.
12544         Tidy documentation of substring matching.
12545         Remove POSIX documentation, which is done better in
12546         glibc, and refer the reader there. Keep BSD API documentation, as
12547         that is not readily available elsewhere.
12548
12549 2010-09-07  Eric Blake  <eblake@redhat.com>
12550
12551         getopt: handle POSIXLY_CORRECT set but not exported
12552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12553         export state of POSIXLY_CORRECT, due to bash set -o posix.
12554         Reported by Dustin J. Mitchell.
12555
12556 2010-09-05  Bruno Haible  <bruno@clisp.org>
12557
12558         gnulib-tool: Highlight the changed options.
12559         * gnulib-tool (func_usage): Display the --import, --add-import,
12560         --remove-import explanations in bold font.
12561
12562 2010-09-06  Karl Berry  <karl@gnu.org>
12563
12564         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12565
12566 2010-09-05  Bruno Haible  <bruno@clisp.org>
12567
12568         uniwidth/width: Update comment.
12569         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12570         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12571
12572 2010-09-05  Bruno Haible  <bruno@clisp.org>
12573
12574         isinf, isnan: Relax license.
12575         * modules/isinf (License): Change from GPL to LGPL, with consent from
12576         Ben Pfaff.
12577         * modules/isnan (License): Likewise.
12578         Requested by Ludovic Courtès.
12579
12580 2010-09-04  Bruno Haible  <bruno@clisp.org>
12581
12582         gnulib-tool: Help migration from --import to --add-import or --update.
12583         * gnulib-tool: Emit a verbose error message when --import is used
12584         without any module name.
12585
12586 2010-09-04  Bruno Haible  <bruno@clisp.org>
12587
12588         Update doc about gnulib-tool.
12589         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12590         'gnulib-tool --update' in more detail.
12591         Reported by Eric Blake.
12592
12593 2010-09-04  Bruno Haible  <bruno@clisp.org>
12594
12595         gnulib-tool: Change --import. New options --add/remove-import.
12596         * gnulib-tool: New options --add-import, --remove-import.
12597         (func_usage): Document them.
12598         (have_associative): Define always.
12599         (func_import): In import mode, don't merge the specified settings with
12600         the cached settings. Implement remove-import mode.
12601         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12602         Explain when to use them versus --import.
12603         (Simple update): Use --add-import instead of --import.
12604         * NEWS: Mention the change.
12605
12606 2010-09-04  Bruno Haible  <bruno@clisp.org>
12607
12608         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12609         separate gnulib.mk.
12610
12611 2010-09-04  Bruno Haible  <bruno@clisp.org>
12612
12613         gnulib-tool: Don't talk about CVS any more.
12614         * gnulib-tool (func_usage, func_import): Write "version control"
12615         instead of CVS.
12616
12617 2010-09-04  Jim Meyering  <meyering@redhat.com>
12618
12619         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12620         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12621         false positives (whose names may be ill-chosen) when searching
12622         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12623         would cause a false-positive.
12624
12625         avoid coreutils "make distcheck" failure
12626         Coreutils tests with an absolute build directory name that contains
12627         a space.  Not quoting this directory name caused a failure.
12628         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12629         * tests/test-vc-list-files-cvs.sh: Likewise.
12630
12631 2010-09-04  Bruno Haible  <bruno@clisp.org>
12632
12633         gnulib-tool: Avoid error when run in a package without Makefile.am.
12634         * gnulib-tool: When collecting the m4dirs in a package that does not
12635         have a Makefile.am, eliminate those directories that contain no
12636         gnulib-cache.m4. Fix expression that counts these directories.
12637
12638 2010-09-04  Bruno Haible  <bruno@clisp.org>
12639
12640         update-copyright test: Improve output when perl is missing or too old.
12641         * tests/test-update-copyright.sh: Move test of Perl version down after
12642         the test whether Perl exists. Provide an explanation relating Perl's
12643         error message to Automake's SKIP: message.
12644
12645 2010-09-04  Bruno Haible  <bruno@clisp.org>
12646
12647         Don't augment PATH in TESTS_ENVIRONMENT.
12648         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12649         set abs_aux_dir instead of augmenting PATH.
12650         * modules/vc-list-files-tests (Makefile.am): Likewise.
12651         * tests/test-update-copyright.sh: Augment PATH here.
12652         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12653         path_prepend_.
12654         * tests/test-vc-list-files-git.sh: Likewise.
12655
12656 2010-09-04  Jim Meyering  <meyering@redhat.com>
12657
12658         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12659         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12660
12661 2010-09-04  Bruno Haible  <bruno@clisp.org>
12662
12663         strdup: Fix compilation error in C++ mode.
12664         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12665         the macro.
12666
12667 2010-09-04  Bruno Haible  <bruno@clisp.org>
12668
12669         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12670         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12671         macro into a function.
12672         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12673
12674 2010-09-04  Bruno Haible  <bruno@clisp.org>
12675
12676         Set PATH_SEPARATOR the same way autoconf does.
12677         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12678         the value of PATH_SEPARATOR the same way autoconf-generated configure
12679         scripts do.
12680         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12681         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12682
12683 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12684
12685         Set PATH_SEPARATOR the same way autoconf does.
12686         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12687         the same way autoconf-generated configure scripts do.
12688         * posix-modules: Likewise.
12689
12690 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12691
12692         hash: fix safe_hasher const typo
12693         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12694         const; otherwise, there is a type error later.
12695
12696 2010-09-02  Jim Meyering  <meyering@redhat.com>
12697
12698         test-update-copyright.sh: require perl 5.8.0
12699         * tests/test-update-copyright.sh: Require 5.8.0,
12700         which Tom G. Christensen has confirmed is adequate,
12701         while 5.6.1 is not.
12702
12703 2010-09-02  Eric Blake  <eblake@redhat.com>
12704
12705         tests: init.sh improvements for re-exec'ing with zsh
12706         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12707         -vx through shell re-exec.
12708         Reported by Tom G. Christensen.
12709
12710         wctype: fix typo in previous commit
12711         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12712         Reported by Ludovic Courtès.
12713
12714 2010-09-02  Jim Meyering  <meyering@redhat.com>
12715
12716         test-update-copyright.sh: skip test if Perl is too old
12717         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12718         Reported by Tom G. Christensen.
12719
12720 2010-09-02  Bruno Haible  <bruno@clisp.org>
12721
12722         wctype: Avoid compilation error on IRIX 6.5.30.
12723         * lib/wctype.in.h (iswblank): Declare with a replacement if
12724         REPLACE_ISWBLANK is set.
12725         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12726         declared. Set REPLACE_ISWBLANK.
12727         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12728         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12729         * doc/posix-headers/wctype.texi: Likewise.
12730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12731
12732 2010-09-01  Bruno Haible  <bruno@clisp.org>
12733
12734         New module 'socketlib'.
12735         * modules/socketlib: New file.
12736         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12737         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12738         * modules/sockets (Depends-on): Add socketlib.
12739         Suggested by Sam Steingold <sds@gnu.org>.
12740
12741 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12742
12743         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12744
12745         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12746         when one needs search access to a directory but not read access.
12747         On systems where it is available, it works in some cases where
12748         O_RDONLY does not, namely on directories that are searchable but
12749         not readable, and which need only to be searchable.  If O_SEARCH
12750         is not available, fall back to the traditional method of using
12751         O_RDONLY.
12752
12753         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12754         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12755         when opening a directory that needs only to be searchable.
12756         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12757         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12758         * lib/openat-proc.c (openat_proc_name): Likewise.
12759         * lib/openat.c (openat_needs_fchdir): Likewise.
12760         * lib/save-cwd.c (save_cwd): Likewise.
12761         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12762
12763 2010-08-28  Bruno Haible  <bruno@clisp.org>
12764
12765         New module 'host-cpu-c-abi'.
12766         * modules/host-cpu-c-abi: New file.
12767         * m4/host-cpu-c-abi.m4: New file, based on part of
12768         clisp/src/m4/general.m4.
12769         Requested by Sam Steingold <sds@gnu.org>.
12770
12771 2010-08-31  Eric Blake  <eblake@redhat.com>
12772         and Jim Meyering  <meyering@redhat.com>
12773
12774         hash: factor, and guard against misbehaving hasher function
12775         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12776         of table->hasher's return value.  Also protect against a hash value
12777         so large that adding it to table->bucket results in a NULL pointer.
12778         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12779         Use it in place of open-coded check-and-abort.
12780
12781 2010-08-30  Bruno Haible  <bruno@clisp.org>
12782
12783         hash: silence spurious clang warning
12784         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12785         Reported by Eric Blake.
12786
12787 2010-08-30  Eric Blake  <eblake@redhat.com>
12788
12789         strstr, memmem, strcasestr: avoid leaked shell message
12790         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12791         FreeBSD.
12792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12793         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12794
12795         tests: silence clang warning
12796         * tests/test-malloca.c (do_allocation): Avoid dead store.
12797
12798 2010-08-29  Bruno Haible  <bruno@clisp.org>
12799
12800         gettext: Fix recent mistake.
12801         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12802
12803 2010-08-29  Bruno Haible  <bruno@clisp.org>
12804
12805         selinux-h: Offer a --without-selinux option.
12806         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12807         --without-selinux was specified, skip all tests and define
12808         HAVE_SELINUX_SELINUX_H to 0.
12809         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12810         set LIB_SELINUX to empty.
12811         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12812         gl_LIBSELINUX. If --without-selinux was specified, replace
12813         selinux/context.h.
12814         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12815
12816 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12817             Bruno Haible  <bruno@clisp.org>
12818
12819         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12820         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12821         of HAVE_REALLOC.
12822         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12823         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12824         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12825         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12826
12827 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12828             Bruno Haible  <bruno@clisp.org>
12829
12830         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12831         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12832         HAVE_CALLOC.
12833         * lib/xmalloc.c: Update accordingly.
12834         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12835         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12836         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12837
12838 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12839             Bruno Haible  <bruno@clisp.org>
12840
12841         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12842         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12843         HAVE_MALLOC.
12844         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12845         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12846         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12847
12848 2010-08-29  Bruno Haible  <bruno@clisp.org>
12849
12850         Update modules list.
12851         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12852         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12853         (String handling <string.h>): Add astrxfrm.
12854         (File system functions): Add readlinkat.
12855
12856 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12857
12858         Tests for module 'realloc-gnu'.
12859         * modules/realloc-gnu-tests: New file.
12860         * tests/test-realloc-gnu.c: New file.
12861
12862         Tests for module 'calloc-gnu'.
12863         * modules/calloc-gnu-tests: New file.
12864         * tests/test-calloc-gnu.c: New file.
12865
12866         Tests for module 'malloc-gnu'.
12867         * modules/malloc-gnu-tests: New file.
12868         * tests/test-malloc-gnu.c: New file.
12869
12870 2010-08-28  Bruno Haible  <bruno@clisp.org>
12871
12872         Rename module 'realloc' -> 'realloc-gnu'.
12873         * modules/realloc-gnu: New file, copied from modules/realloc.
12874         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12875         obsolete.
12876         * modules/mgetgroups (Depends-on): Update.
12877         * doc/posix-functions/realloc.texi: Update.
12878         * NEWS: Mention the change.
12879
12880         Rename module 'calloc' -> 'calloc-gnu'.
12881         * modules/calloc-gnu: New file, copied from modules/calloc.
12882         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12883         obsolete.
12884         * doc/posix-functions/calloc.texi: Update.
12885         * NEWS: Mention the change.
12886
12887         Rename module 'malloc' -> 'malloc-gnu'.
12888         * modules/malloc-gnu: New file, copied from modules/malloc.
12889         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12890         obsolete.
12891         * modules/argp (Depends-on): Update.
12892         * modules/regex (Depends-on): Update.
12893         * doc/posix-functions/malloc.texi: Update.
12894         * NEWS: Mention the change.
12895
12896 2010-08-28  Eric Blake  <eblake@redhat.com>
12897
12898         pread, pwrite: add missing dependency
12899         * modules/pread (Depends-on): Add extensions.
12900         * modules/pwrite (Depends-on): Likewise.
12901
12902 2010-08-28  Bruno Haible  <bruno@clisp.org>
12903
12904         unistr/u*-strchr: Fix tests dependencies.
12905         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12906         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12907         Reported by Ian Beckwith <ianb@erislabs.net>.
12908
12909 2010-08-28  Bruno Haible  <bruno@clisp.org>
12910
12911         read-file: Don't occupy too much unused memory.
12912         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12913
12914 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12915             Eric Blake  <eblake@redhat.com>
12916             Bruno Haible  <bruno@clisp.org>
12917
12918         read-file: Avoid memory reallocations with regular files.
12919         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12920         (fread_file): With regular files, use the remaining length as the
12921         initial buffer size.  Check against overflow.
12922         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12923         sys_stat.
12924
12925 2010-08-28  Bruno Haible  <bruno@clisp.org>
12926
12927         ftello: Relax license.
12928         * modules/ftello (License): Relax to LGPLv2+.
12929         Reported by Eric Blake.
12930
12931 2010-08-28  Bruno Haible  <bruno@clisp.org>
12932
12933         Avoid relocwrapper link errors due to gnulib replacement functions.
12934         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12935         function.
12936         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12937
12938 2010-08-28  Bruno Haible  <bruno@clisp.org>
12939
12940         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12941         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12942         defined.
12943         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12944         Suggested by Eric Blake.
12945
12946 2010-08-28  Bruno Haible  <bruno@clisp.org>
12947
12948         sys_socket, netdb: Ensure socklen_t gets defined.
12949         * modules/sys_socket (Depends-on): Add socklen.
12950         * modules/netdb (Depends-on): Likewise.
12951         * modules/getaddrinfo (Depends-on): Remove socklen.
12952         * modules/getsockopt (Depends-on): Likewise.
12953         * modules/setsockopt (Depends-on): Likewise.
12954         * tests/test-sys_socket.c: Check that socklen_t is defined.
12955         * tests/test-netdb.c: Likewise.
12956         * m4/socklen.m4: Update comments.
12957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12958
12959 2010-08-27  Eric Blake  <eblake@redhat.com>
12960
12961         login_tty: add missing dependency
12962         * modules/login_tty (Depends-on): Add pty.
12963
12964 2010-08-26  Eric Blake  <eblake@redhat.com>
12965
12966         lib-symbol-versions: fix m4 quoting
12967         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12968         format for AC_LINK_IFELSE.
12969
12970         glob: fix compile test
12971         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12972
12973         btowc: fix missing file
12974         * modules/btowc (Files): Also ship locale-fr.m4.
12975
12976         lseek: fix link test
12977         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12978         AC_LINK_IFELSE.
12979
12980         include_next: silence autoconf 2.68 warning
12981         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12982         AC_COMPILE_IFELSE as special.
12983         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12984         autoconf < 2.68.
12985
12986         acl: fix compilation test
12987         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12988         AC_COMPILE_IFELSE.
12989
12990 2010-08-26  Bruno Haible  <bruno@clisp.org>
12991
12992         Modernize AC_TRY_RUN invocations.
12993         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12994         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12995         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12996         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12997         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12998         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12999         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13000         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13001         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13002         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13003         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13004         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13005         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13006         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13007         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13008         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13009         gl_MBRLEN_NUL_RETVAL): Likewise.
13010         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13011         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13012         Likewise.
13013         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13014         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13015         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13016         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13017         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13018         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13019         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13020         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13021         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13022         Likewise.
13023         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13024         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13025         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13026         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13027         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13028         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13029         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13030         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13031         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13033
13034 2010-08-26  Bruno Haible  <bruno@clisp.org>
13035
13036         Modernize AC_TRY_LINK invocations.
13037         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13038         AC_TRY_LINK.
13039         * m4/argp.m4 (gl_ARGP): Likewise.
13040         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13041         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13042         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13043         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13044         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13045         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13046         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13047         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13048         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13049         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13050         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13051         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13052         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13053         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13054         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13055         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13056         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13057         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13058         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13059         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13060         Likewise.
13061         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13062         Likewise.
13063         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13064         Likewise.
13065         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13066         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13067         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13068         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13069         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13070         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13071         * m4/servent.m4 (gl_SERVENT): Likewise.
13072         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13073         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13074         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13075         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13076         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13077         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13078         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13079         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13080         * modules/tsearch-tests (configure.ac): Likewise.
13081
13082 2010-08-26  Bruno Haible  <bruno@clisp.org>
13083
13084         Modernize AC_TRY_COMPILE invocations.
13085         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13086         AC_TRY_COMPILE.
13087         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13088         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13089         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13090         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13091         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13092         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13093         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13094         * m4/lock.m4 (gl_LOCK): Likewise.
13095         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13096         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13097         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13098         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13099         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13100         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13101         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13103         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13104         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13105         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13106         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13107         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13108         extraneous semicolon.
13109
13110 2010-08-26  Jim Meyering  <meyering@redhat.com>
13111
13112         stat-time: relax license LGPL
13113         * modules/stat-time (License): Change from GPL to LGPL,
13114         with consent from all contributors, for use in libguile.
13115         Requested by Ludovic Courtès.
13116
13117 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13118
13119         poll: return immediately on POLLHUP.
13120         * lib/poll.c (poll): Always set timeout before wait_timeout is
13121         computed.
13122
13123 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13124
13125         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13126         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13127         rmdir ("dir/.//"), unlinkat.
13128
13129 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13130
13131         stdbool: avoid spurious failure with modern xlc
13132         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13133
13134 2010-08-24  Bruno Haible  <bruno@clisp.org>
13135
13136         getloadavg: simplify code
13137         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13138         gl_have_func. Update comments.
13139
13140 2010-08-24  Eric Blake  <eblake@redhat.com>
13141
13142         getloadavg: don't define SVR4 on cygwin
13143         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13144         only define SVR4 when -lkvm is required.
13145         Reported by Yaakov Selkowitz.
13146
13147 2010-08-24  Bruno Haible  <bruno@clisp.org>
13148
13149         priv-set: fix comment
13150         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13151
13152 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13153
13154         priv-set: fix comments
13155         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13156         to match code, as suggested by David Bartley in:
13157         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13158
13159 2010-08-23  Eric Blake  <eblake@redhat.com>
13160
13161         stdbool: avoid rejecting clang
13162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13163         * tests/test-stdbool.c: Enable more tests if using the system
13164         <stdbool.h> instead of the gnulib replacement.
13165         (main): Move xlc bug test to a runtime test for all compilers.
13166         Reported by Anders Kaseorg.
13167
13168         argz: fix shell quoting issue
13169         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13170         Reported by Charles Wilson.
13171
13172 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13173             Erik Faye-Lund <kusmabite@gmail.com>
13174
13175         poll, select: handle ERROR_BROKEN_PIPE.
13176         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13177         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13178         * lib/select.c (win32_compute_revents): Do not mark a pipe
13179         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13180
13181 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13182
13183         fts: allow compilation with C++
13184         * lib/fts_.h: Specify extern "C" linkage with C++.
13185
13186 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13187
13188         Fix gnulib-tool sed script de-commentation for AIX sed.
13189         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13190         sed.
13191
13192 2010-08-17  Eric Blake  <eblake@redhat.com>
13193
13194         test-stddef: test for (some) offsetof bugs
13195         * tests/test-stddef.c: Enhance test to ensure correct type of
13196         offsetof.
13197         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13198         that we are not fixing at this time.
13199
13200 2010-08-15  Bruno Haible  <bruno@clisp.org>
13201
13202         stpncpy: Allow stpncpy to be defined as a macro.
13203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13204         if it's already correctly declared.
13205         * lib/string.in.h (stpncpy): Undefine before redefining.
13206         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13207
13208 2010-08-14  Bruno Haible  <bruno@clisp.org>
13209
13210         Rename module 'memxfrm' to 'amemxfrm'.
13211         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13212         (amemxfrm): Renamed from memxfrm.
13213         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13214         (amemxfrm): Renamed from memxfrm.
13215         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13216         * NEWS: Mention the change.
13217         * MODULES.html.sh (String handling <string.h>): Update.
13218         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13219         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13220         * lib/unicase/u16-casexfrm.c: Likewise.
13221         * lib/unicase/u32-casexfrm.c: Likewise.
13222         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13223         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13224         * lib/uninorm/u16-normxfrm.c: Likewise.
13225         * lib/uninorm/u32-normxfrm.c: Likewise.
13226         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13227         memxfrm.
13228         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13229         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13230         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13231         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13232         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13233         Suggested by Paul Eggert.
13234
13235 2010-08-14  Bruno Haible  <bruno@clisp.org>
13236
13237         Tests for module 'astrxfrm'.
13238         * modules/astrxfrm-tests: New file.
13239         * tests/test-astrxfrm.c: New file.
13240
13241         New module 'astrxfrm'.
13242         * lib/astrxfrm.h: New file.
13243         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13244         * modules/astrxfrm: New file.
13245
13246 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13247
13248         regex: Tweak doc.
13249         * doc/regex.texi (Overview): Don't mention regex.c.
13250         (GNU Regular Expression Compiling): Likewise.
13251         (Match-end-of-line Operator): Mention 'not_eol'.
13252
13253 2010-08-14  Brian Gough  <bjg@gnu.org>
13254             Bruno Haible  <bruno@clisp.org>
13255
13256         git-merge-changelog: add doc relating to use with bzr and hg.
13257         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13258
13259 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13260
13261         pthread: fix pthread.h creation for srcdir != builddir
13262         * modules/pthread (Makefile.am): Fix the rule to work also in a
13263         non-srcdir build.
13264
13265 2010-08-13  Karl Berry  <karl@gnu.org>
13266
13267         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13268         * doc/posix-*/*: force line break before @url of POSIX
13269         specifications.
13270         Suggested by Werner Lemberg.
13271
13272 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13273
13274         strtod: fix const diagnostic
13275         * lib/strtod.c (strtod): Don't assign const char * to char *,
13276         as this elicits a warning from GCC when warnings are enabled.
13277
13278 2010-08-10  Pádraig Brady <P@draigbrady.com>
13279         and Eric Blake  <eblake@redhat.com>
13280
13281         copy-acl: ignore ENOTSUP on HP-UX
13282         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13283         so that it is available for HP-UX.
13284         * lib/copy-acl.c (qcopy_acl): Use it.
13285         Reported by Patrick M. Callahan.
13286
13287 2010-08-10  Eric Blake  <eblake@redhat.com>
13288
13289         open, chown: relax license
13290         * modules/open (License): Change to LGPLv2+, with consent by all
13291         authors, for use in augeas.
13292         * modules/chown (License): Likewise.
13293         * modules/lchown (Likewise): Likewise.
13294         Requested by Adam Stokes.
13295
13296 2010-08-09  Karl Berry  <karl@gnu.org>
13297
13298         * build-aux/ar-lib: new file, import from Automake.
13299         * config/srclist.txt: autocheck for updates.
13300
13301 2010-08-09  Eric Blake  <eblake@redhat.com>
13302
13303         readlinkat: adjust client modules
13304         * modules/areadlinkat (Depends-on): Use readlinkat, not
13305         symlinkat.
13306         * modules/areadlinkat-with-size (Depends-on): Likewise.
13307
13308         mknod: be more vocal about danger of running tests as root
13309         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13310         root, since that is just asking for problems.
13311         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13312
13313         readlinkat: split into its own module
13314         * modules/symlinkat: Split readlinkat...
13315         * modules/readlinkat: ...into separate module.
13316         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13317         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13318         * lib/symlinkat.c (readlinkat): Move...
13319         * lib/readlinkat.c: ...into new file.
13320         * modules/symlinkat-tests: Split readlinkat test...
13321         * modules/readlinkat-tests: ...into separate module.
13322         * tests/test-symlinkat.c: Split...
13323         * tests/test-readlinkat.c: ...into new file.
13324         * NEWS: Document the split.
13325         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13326         * lib/unistd.in.h (readlinkat): Likewise.
13327         Suggested by Bruno Haible.
13328
13329 2010-08-08  Bruno Haible  <bruno@clisp.org>
13330
13331         memxfrm: Speed up.
13332         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13333         that usually only one call to strxfrm is necessary for each string
13334         part.
13335         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13336
13337 2010-08-07  Karl Berry  <karl@gnu.org>
13338
13339         * doc/posix-headers/limits.texi,
13340         * doc/posix-functions/malloc.texi,
13341         * doc/posix-functions/strsignal.texi: missing @item.
13342         * doc/ld-version-script.texi: spurious leading i.
13343         * doc/regex.texi (Interval Operators): no commas inside @var.
13344
13345 2010-08-01  Bruno Haible  <bruno@clisp.org>
13346
13347         Integrate the regex documentation.
13348         * doc/gnulib.texi: Define 'cn' index.
13349         (Regular expressions): New a chapter that includes regex.texi and
13350         regexprops-generic.texi.
13351         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13352         syntax.
13353
13354         Whitespace cleanup.
13355         * doc/regex.texi: Remove trailing spaces.
13356
13357         Add regex documentation.
13358         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13359         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13360         Written by Kathy A. Hargreaves and Karl Berry.
13361
13362 2010-08-01  Bruno Haible  <bruno@clisp.org>
13363
13364         link: Update documentation.
13365         * doc/posix-functions/link.texi: Update regarding Solaris.
13366
13367 2010-07-31  Bruno Haible  <bruno@clisp.org>
13368
13369         Update modules list.
13370         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13371         (String handling <string.h>): Add memcmp2, memxfrm.
13372         (Container data structures): Add xlist, xsublist, xoset.
13373         (Core language properties): Add alignof, unused-parameter.
13374         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13375         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13376         (Unibyte characters <ctype.h>): New section.
13377         (String handling <string.h>): New section.
13378         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13379         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13380         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13381         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13382         tan, tanh, tanl, y0, y1, yn.
13383         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13384         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13385         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13386         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13387         unlockpt, vdprintf, vdprintf-posix.
13388         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13389         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13390         xconcat-filename.
13391         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13392         getdtablesize, pipe2, pipe2-safer.
13393         (Security): New section.
13394         (Networking functions): Add accept4.
13395         (Signal handling): Add sigpipe.
13396         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13397         mbmemcasecoll.
13398         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13399         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13400         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13401         pipe-filter-ii.
13402         (Misc): Add argp-version-etc, login_tty, parse-duration.
13403
13404 2010-07-31  Bruno Haible  <bruno@clisp.org>
13405
13406         Improve doc in MODULES.html.
13407         * modules/linkat (Description): Add the word "function".
13408         * modules/mkfifo (Description): Likewise.
13409         * modules/mknod (Description): Likewise.
13410         * modules/remove (Description): Likewise.
13411         * modules/renameat (Description): Likewise.
13412         * modules/stat (Description): Likewise.
13413         * modules/symlink (Description): Likewise.
13414         * modules/unlink (Description): Likewise.
13415
13416 2010-07-31  Bruno Haible  <bruno@clisp.org>
13417
13418         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13419         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13420         option --enable/disable-c++ instead of --enable/disable-cxx.
13421         * NEWS: Mention the change.
13422
13423 2010-07-31  Bruno Haible  <bruno@clisp.org>
13424
13425         readlink, areadlink: Relax test a bit.
13426         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13427         alternative to ENOTDIR.
13428         * tests/test-areadlink.h (test_areadlink): Likewise.
13429         Reported by Rainer Tammer.
13430
13431 2010-07-31  Bruno Haible  <bruno@clisp.org>
13432
13433         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13434         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13435         character, perform the search using U_STRCHR.
13436         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13437         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13438         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13439         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13440         Suggested by Paolo Bonzini.
13441
13442 2010-07-31  Bruno Haible  <bruno@clisp.org>
13443
13444         unistr/u*-strstr: Fix dependencies.
13445         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13446         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13447         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13448
13449 2010-07-31  Bruno Haible  <bruno@clisp.org>
13450
13451         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13452         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13453         the beginning of the loop.
13454         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13455         cases in 'switch' statement.
13456
13457         unistr/u8-strchr: Fix several bugs.
13458         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13459         the string. When not found, return NULL, not a pointer near the end.
13460
13461         More tests for unistr/u8-strchr.
13462         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13463         that the function does not read past the first occurrence of the byte
13464         being searched.
13465         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13466         * tests/unistr/test-u16-strchr.c (main): New function.
13467         * tests/unistr/test-u32-strchr.c (main): New function.
13468
13469 2010-07-31  Bruno Haible  <bruno@clisp.org>
13470
13471         posix-modules: Ignore backup files of documentation files.
13472         * posix-modules: grep only through files named *.texi.
13473
13474 2010-07-31  Bruno Haible  <bruno@clisp.org>
13475
13476         symlinkat: Fix documentation.
13477         * doc/posix-functions/readlinkat.texi: Fix module name.
13478
13479 2010-07-31  Bruno Haible  <bruno@clisp.org>
13480
13481         fchownat: Replace also when chown has the trailing slash bug.
13482         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13483         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13484         introduced on 2010-04-10.
13485         Reported by Rainer Tammer.
13486
13487 2010-07-31  Bruno Haible  <bruno@clisp.org>
13488
13489         linkat: Work around AIX 7.1 bug.
13490         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13491         whether linkat handles trailing slash correctly. If not, replace linkat
13492         and define LINKAT_TRAILING_SLASH_BUG.
13493         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13494         check whether (fd1,file1) points to a directory if file1 or file2 ends
13495         in a slash. Code taken from lib/link.c.
13496         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13497         Reported by Rainer Tammer.
13498
13499 2010-07-31  Bruno Haible  <bruno@clisp.org>
13500
13501         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13502         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13503         This disables an xlc optimization that was causing wrong test results.
13504         Reported by Rainer Tammer.
13505
13506 2010-07-31  Bruno Haible  <bruno@clisp.org>
13507
13508         iconv: Work around AIX 6.1..7.1 bug.
13509         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13510         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13511         cross-compiling, guess no on all versions of AIX.
13512         Reported by Rainer Tammer.
13513
13514 2010-07-31  Bruno Haible  <bruno@clisp.org>
13515
13516         readlink: Relax test a bit.
13517         * tests/test-readlink.h (test_readlink): Allow different errno value
13518         when readlink is called with a file name that ends in / and refers to
13519         a file.
13520         Suggested by Eric Blake.
13521         Reported by Rainer Tammer.
13522
13523 2010-07-31  Bruno Haible  <bruno@clisp.org>
13524
13525         copysign: Does not require -lm on glibc systems.
13526         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13527         gl_COMMON_DOUBLE_MATHFUNC.
13528         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13529
13530 2010-07-31  Bruno Haible  <bruno@clisp.org>
13531
13532         duplocale: Work around AIX 7.1 bug.
13533         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13534         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13535         * lib/duplocale.c (rpl_duplocale): Update comment.
13536         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13537         Reported by Rainer Tammer.
13538
13539 2010-07-30  Bruno Haible  <bruno@clisp.org>
13540
13541         dirfd: Avoid link error on AIX 7.1.
13542         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13543         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13544         exist, set REPLACE_DIRFD.
13545         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13546         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13547         * doc/posix-functions/dirfd.texi: Update.
13548         Reported by Rainer Tammer.
13549
13550 2010-07-30  Eric Blake  <eblake@redhat.com>
13551
13552         strtod: next round of AIX fixes
13553         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13554         exponent.
13555         * tests/test-strtod.c (main): Enhance tests.
13556         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13557         Reported by Rainer Tammer.
13558
13559         futimens: fix configure check
13560         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13561         Reported by Bruno Haible.
13562
13563 2010-07-30  Bruno Haible  <bruno@clisp.org>
13564
13565         getline: Update regarding AIX.
13566         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13567         Reported by Rainer Tammer.
13568
13569 2010-07-30  Bruno Haible  <bruno@clisp.org>
13570
13571         wcwidth: Drop replacement on AIX 7.
13572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13573         AIX 7.
13574         Reported by Rainer Tammer.
13575
13576 2010-07-30  Bruno Haible  <bruno@clisp.org>
13577
13578         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13579         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13580         a 'char *'.
13581         Reported by Rainer Tammer.
13582
13583 2010-07-30  Bruno Haible  <bruno@clisp.org>
13584
13585         unlink: Update regarding AIX.
13586         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13587         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13588         Reported by Rainer Tammer.
13589
13590 2010-07-30  Bruno Haible  <bruno@clisp.org>
13591
13592         symlink: Update regarding AIX.
13593         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13594         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13595         Reported by Rainer Tammer.
13596
13597 2010-07-30  Bruno Haible  <bruno@clisp.org>
13598
13599         strndup: Update regarding AIX.
13600         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13601         AIX 7.
13602         Reported by Rainer Tammer.
13603
13604 2010-07-30  Bruno Haible  <bruno@clisp.org>
13605
13606         stat: Update regarding AIX.
13607         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13608         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13609         Reported by Rainer Tammer.
13610
13611 2010-07-30  Bruno Haible  <bruno@clisp.org>
13612
13613         truncl: Fix autoconf test.
13614         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13615         whether truncl works.
13616         Reported by Rainer Tammer.
13617
13618 2010-07-30  Bruno Haible  <bruno@clisp.org>
13619
13620         round: Update regarding AIX.
13621         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13622         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13623         Reported by Rainer Tammer.
13624
13625 2010-07-30  Bruno Haible  <bruno@clisp.org>
13626
13627         rename: Update regarding AIX.
13628         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13629         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13630         Reported by Rainer Tammer.
13631
13632 2010-07-30  Bruno Haible  <bruno@clisp.org>
13633
13634         printf.m4: Update regarding AIX.
13635         * m4/printf.m4: Update comments regarding AIX.
13636         Reported by Rainer Tammer.
13637
13638 2010-07-30  Bruno Haible  <bruno@clisp.org>
13639
13640         iconv: Update regarding AIX.
13641         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13642         AIX 7.
13643         Reported by Rainer Tammer.
13644
13645 2010-07-30  Bruno Haible  <bruno@clisp.org>
13646
13647         getopt: Update regarding AIX.
13648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13649         no on AIX.
13650         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13651         Reported by Rainer Tammer.
13652
13653 2010-07-30  Bruno Haible  <bruno@clisp.org>
13654
13655         ldexpl; Update regarding AIX.
13656         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13657         on AIX 7.
13658         Reported by Rainer Tammer.
13659
13660 2010-07-30  Bruno Haible  <bruno@clisp.org>
13661
13662         frexpl: Update regarding AIX.
13663         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13664         on AIX 7.
13665         Reported by Rainer Tammer.
13666
13667 2010-07-30  Bruno Haible  <bruno@clisp.org>
13668
13669         open, fopen: Update regarding AIX.
13670         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13671         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13672         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13673         * doc/posix-functions/fopen.texi: Likewise.
13674         Reported by Rainer Tammer.
13675
13676 2010-07-30  Bruno Haible  <bruno@clisp.org>
13677
13678         chown: Update doc regarding AIX.
13679         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13680         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13681         Reported by Rainer Tammer.
13682
13683 2010-07-30  Eric Blake  <eblake@redhat.com>
13684
13685         strtod: fix bug in replacement function on AIX
13686         * lib/strtod.c (strtod): Special case broken "0x" parse in
13687         underlying strtod.
13688         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13689         * doc/posix-functions/strtod.texi (strtod): Likewise.
13690         Reported by Rainer Tammer.
13691
13692 2010-07-30  Bruno Haible  <bruno@clisp.org>
13693
13694         mbrlen: Fix cross-compilation guess for AIX.
13695         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13696         guess. Leftover from 2008-12-22.
13697
13698 2010-07-30  Bruno Haible  <bruno@clisp.org>
13699
13700         mbrtowc: Fix cross-compilation guess for AIX.
13701         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13702         guess. Leftover from 2008-12-21.
13703
13704 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13705
13706         init.sh: work around trap limitation of some shells
13707         * tests/init.sh (setup_): Move exit trap outside of shell function.
13708
13709 2010-07-29  Eric Blake  <eblake@redhat.com>
13710
13711         strtod: aid debugging
13712         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13713         understanding why strtod is rejected.
13714
13715 2010-07-28  Bruno Haible  <bruno@clisp.org>
13716
13717         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13718         * lib/unistr/u8-chr.c: Include <string.h>.
13719         * tests/unistr/test-u8-chr.c: Likewise.
13720         * tests/unistr/test-u16-chr.c: Likewise.
13721         * tests/unistr/test-u32-chr.c: Likewise.
13722         * tests/unistr/test-u8-strchr.c: Likewise.
13723         * tests/unistr/test-u16-strchr.c: Likewise.
13724         * tests/unistr/test-u32-strchr.c: Likewise.
13725         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13726         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13727         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13728         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13729
13730 2010-07-28  Bruno Haible  <bruno@clisp.org>
13731
13732         Use spaces for indentation, not tabs.
13733         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13734
13735 2010-07-27  Bruno Haible  <bruno@clisp.org>
13736
13737         mbspcasecmp: Fix function specification.
13738         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13739         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13740         Reported by Eric Blake <eblake@redhat.com>.
13741
13742 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13743
13744         timespec: use cast and not conditional, as truncation isn't possible
13745         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13746         instead of a conditional.  Comment about the situation in more detail.
13747         This undoes most of the 2009-10-29 patch.
13748
13749 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13750
13751         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13752         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13753         * lib/unistr/u8-strchr.c: Likewise.
13754         * modules/unistr/u8-chr: Depend on memchr.
13755
13756         unistr/u*-strchr: add tests
13757         * modules/unistr/u8-strchr-tests: New file.
13758         * modules/unistr/u16-strchr-tests: New file.
13759         * modules/unistr/u32-strchr-tests: New file.
13760         * tests/unistr/test-strchr.h: New file.
13761         * tests/unistr/test-u8-strchr.c: New file.
13762         * tests/unistr/test-u16-strchr.c: New file.
13763         * tests/unistr/test-u32-strchr.c: New file.
13764
13765         unistr/u*-chr: test multibyte sequences more
13766         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13767         test vector.
13768         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13769         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13770         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13771
13772         unistr/u*-chr: test multibyte sequences
13773         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13774
13775         unistr/u*-chr: prepare for multibyte tests
13776         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13777         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13778         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13779         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13780         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13781         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13782
13783 2010-07-18  Bruno Haible  <bruno@clisp.org>
13784
13785         unistr/u8-strchr: Optimize non-ASCII argument case.
13786         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13787         because the first byte often matches anyway.
13788         Reported by Pádraig Brady <P@draigbrady.com>.
13789
13790 2010-07-15  Karl Berry  <karl@gnu.org>
13791
13792         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13793
13794 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13795
13796         getcwd: on Solaris, work better if ancestors are inaccessible
13797         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13798         buffer and size, try again with a large buffer.  This works better
13799         on Solaris, since its getcwd succeeds even if the path to the root
13800         is inaccessible, and this is helpful in common cases such as .zfs
13801         hidden directories.  Problem reported by J Chapman Flack in
13802         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13803         Use system getcwd if it's declared, not merely if it's partly
13804         working; use the partly-working test only to avoid needless effort
13805         if the system getcwd fails.
13806         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13807         comment that was already obsolete and is now even more obsolete.
13808         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13809         now might call strdup.
13810
13811 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13812
13813         pthread: Add enough so that coreutils/src/sort.c compiles.
13814         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13815         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13816         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13817         Include <sys/types.h>, in case it defines pthread_t.
13818         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13819         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13820         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13821         (pthread_rwlockattr_t, pthread_spinlock_t):
13822         New typedefs, if HAVE_PTHREAD_T is not defined.
13823         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13824         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13825         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13826         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13827         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13828         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13829         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13830         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13831         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13832         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13833         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13834         New macros.
13835         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13836         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13837         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13838         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13839         (pthread_spin_unlock): New dummy functions.
13840         (pthread_create): Return EAGAIN; don't set errno.
13841         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13842         require AC_C_INLINE.
13843         * modules/pthread (Depends-on): Add sched, time.
13844         (pthread.h): Use AM_V_GEN.
13845
13846 2010-07-13  Bruno Haible  <bruno@clisp.org>
13847
13848         striconveh: Don't malloc memory if the result buffer is sufficient.
13849         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13850         buffer if its size is sufficient.
13851         Reported by Ludovic Courtès <ludo@gnu.org>.
13852
13853 2010-07-13  Bruno Haible  <bruno@clisp.org>
13854
13855         strtod: Add safety check.
13856         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13857
13858 2010-07-12  Bruno Haible  <bruno@clisp.org>
13859
13860         Unify tests that set gl_cv_func_ldexpl_no_libm.
13861         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13862         gl_FUNC_LDEXPL.
13863         (gl_FUNC_LDEXPL): Invoke it.
13864         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13865
13866 2010-07-12  Bruno Haible  <bruno@clisp.org>
13867
13868         Unify tests that set gl_cv_func_ldexp_no_libm.
13869         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13870         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13871         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13872         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13873         * modules/strtod (Files): Add m4/ldexp.m4.
13874
13875 2010-07-12  Bruno Haible  <bruno@clisp.org>
13876
13877         Unify tests that set gl_cv_func_frexpl_no_libm.
13878         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13879         gl_FUNC_FREXPL_NO_LIBM.
13880         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13881         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13882
13883 2010-07-12  Bruno Haible  <bruno@clisp.org>
13884
13885         Unify tests that set gl_cv_func_frexp_no_libm.
13886         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13887         gl_FUNC_FREXP_NO_LIBM.
13888         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13889         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13890
13891 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13892
13893         memcoll: clarify sizes versus lengths, document better, and tweak perf
13894         * lib/memcoll.c (strcoll_loop, memcoll0):
13895         Improve quality of descriptive comments.  Name variables
13896         consistently as to whether they are lengths (which do not include
13897         terminating null) versus sizes (which do).
13898         * lib/xmemcoll.c (xmemcoll0): Likewise.
13899         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13900         returned when s1size == 0; this is easier to compile and saves
13901         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13902
13903 2010-07-12  Bruno Haible  <bruno@clisp.org>
13904
13905         Tests for module '_Exit'.
13906         * modules/_Exit-tests: New file.
13907         * tests/test-_Exit.sh: New file.
13908         * tests/test-_Exit.c: New file.
13909
13910         New module '_Exit'.
13911         * lib/stdlib.in.h (__attribute__): New macro.
13912         (_Exit): New declaration.
13913         * lib/_Exit.c: New file.
13914         * m4/_Exit.m4: New file.
13915         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13916         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13917         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13918         * modules/_Exit: New file.
13919         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13920         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13921
13922 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13923
13924         strtod: make it more-accurate typically, and don't require libm
13925         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13926         Include limits.h.  Don't include string.h.
13927         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13928         (locale_isspace): New function, so that no casts are needed to
13929         check whether *s is a space.
13930         (ldexp): Provide an unused dummy if not available.
13931         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13932         (strtod): Use them.  This implementation prefers to use the
13933         underlying strtod if available, falling back on our own code
13934         only to fix known bugs.  This is more likely to produce an
13935         accurate result.  Also, it avoids the use of libm functions.
13936         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13937         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13938         was absent, but it caused a test failure with coreutils.
13939         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13940         with libm.
13941         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13942         * modules/strtod-tests (Makefile.am): Likewise.
13943
13944 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13945             Bruno Haible  <bruno@clisp.org>
13946
13947         unistr/u8-strchr: Optimize ASCII argument case.
13948         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13949
13950 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13951
13952         (x)memcoll: minor tweaks
13953         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13954         is after the type that it qualifies.
13955         (memcoll0): Likewise.
13956         * lib/memcoll.h (memcoll0): Likewise.
13957         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13958         * lib/xmemcoll.h (xmemcoll0): Likewise.
13959         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13960         differs from memcoll in that the NUL byte is part of the argument.
13961         Omit the abort-checks, as performance is a real issue here.  Plus,
13962         the checks were wrong anyway (an off-by-one error).  Omit local
13963         variable 'diff', as it's a bit clearer that way.
13964         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13965         no longer needed.
13966
13967 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13968
13969         (x)memcoll: speedup when input is known to be NUL delimited
13970         * lib/memcoll.c: Include stdlib.
13971         (memcoll0): New function.
13972         (strcoll_loop): New function, refactored for use in both memcoll
13973         and memcoll0.
13974         * lib/memcoll.h (memcoll0): Add prototype.
13975         * lib/xmemcoll.c (xmemcoll0): New function.
13976         (collate_error): New function, refactored for use in both xmemcoll
13977         and xmemcoll0.
13978         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13979         * m4/memcoll.m4: add inline invocation.
13980
13981 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13982
13983         * build-aux/bootstrap: Remove any local translations
13984         from the translation project synchronization directory,
13985         so that local only translations are not distributed.
13986
13987 2010-07-04  Bruno Haible  <bruno@clisp.org>
13988
13989         fsusage: Clarify which code applies to which platforms.
13990         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13991         platform.
13992         * lib/fsusage.c (get_fs_usage): Likewise.
13993
13994 2010-07-04  Bruno Haible  <bruno@clisp.org>
13995
13996         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13997         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13998         Reported by Martin Lambers <marlam@marlam.de>.
13999
14000 2010-07-04  Jim Meyering  <meyering@redhat.com>
14001
14002         hash: once again explicitly disallow insertion of NULL
14003         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14004         inserting a NULL pointer cannot work with these functions.
14005         Add a comment with details.
14006         This reverts part of the 2010-07-01 commit, 5bef1a35
14007         "hash: extend module to deal with non-pointer keys".
14008
14009 2010-07-01  Bruno Haible  <bruno@clisp.org>
14010
14011         stdbool: Update doc.
14012         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14013         Info from Christian Weisgerber <naddy@mips.inka.de>.
14014
14015 2010-07-01  Jim Meyering  <meyering@redhat.com>
14016
14017         hash: extend module to deal with non-pointer keys
14018         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14019         but that allows insertion of non-pointer entries.
14020         Do not disallow an ENTRY value of NULL.
14021         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14022         * lib/hash.h (hash_insert0): Declare.
14023
14024 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14025
14026         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14027         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14028         not present (i.e. with autoconf 2.59 and when using gettextize, not
14029         gnulib), require AC_GNU_SOURCE instead.
14030
14031 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14032
14033         idpriv-drop: Fix tests.
14034         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14035         not to the test-idpriv-droptemp program.
14036
14037 2010-06-29  Bruno Haible  <bruno@clisp.org>
14038
14039         string: Fix syntax error with g++ 2.96.
14040         * lib/string.in.h (__pure__): Remove definition.
14041         (_GL_ATTRIBUTE_PURE): New macro.
14042         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14043         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14044         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14045
14046 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14047
14048         unitypes: Fix bug introduced on 2010-05-18.
14049         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14050
14051 2010-06-22  Eric Blake  <eblake@redhat.com>
14052
14053         memmem: slight optimization
14054         * lib/str-two-way.h (critical_factorization): Update comments.
14055         Reduce work during factorization phase.
14056         Reported by Carlos Bueno <carlos@bueno.org>.
14057
14058 2010-06-21  Bruno Haible  <bruno@clisp.org>
14059
14060         Fix HAVE_CALLOC_POSIX misnomer.
14061         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14062         !HAVE_CALLOC_POSIX.
14063         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14064         HAVE_CALLOC_POSIX.
14065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14066         instead of HAVE_CALLOC_POSIX.
14067         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14068         HAVE_CALLOC_POSIX.
14069
14070         Use modern idiom for calloc() replacement.
14071         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14072         AC_FUNC_CALLOC.
14073         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14074         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14075         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14076         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14077         (gl_REPLACE_CALLOC): New macro.
14078
14079 2010-06-21  Bruno Haible  <bruno@clisp.org>
14080
14081         Fix HAVE_REALLOC_POSIX misnomer.
14082         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14083         !HAVE_REALLOC_POSIX.
14084         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14085         HAVE_REALLOC_POSIX.
14086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14087         instead of HAVE_REALLOC_POSIX.
14088         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14089         HAVE_REALLOC_POSIX.
14090
14091         Use modern idiom for realloc() replacement.
14092         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14093         AC_FUNC_REALLOC.
14094         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14095         Autoconf's AC_FUNC_REALLOC.
14096         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14097         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14098         (gl_REPLACE_REALLOC): New macro.
14099         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14100
14101 2010-06-21  Bruno Haible  <bruno@clisp.org>
14102
14103         Fix HAVE_MALLOC_POSIX misnomer.
14104         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14105         !HAVE_MALLOC_POSIX.
14106         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14107         HAVE_MALLOC_POSIX.
14108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14109         instead of HAVE_MALLOC_POSIX.
14110         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14111         HAVE_MALLOC_POSIX.
14112
14113         Use modern idiom for malloc() replacement.
14114         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14115         AC_FUNC_MALLOC.
14116         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14117         Autoconf's AC_FUNC_MALLOC.
14118         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14119         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14120         (gl_REPLACE_MALLOC): New macro.
14121         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14122
14123 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14124
14125         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14126         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14127         This macro takes 3 arguments, not 4.
14128
14129 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14130
14131         ipv6: fix detection under mingw
14132         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14133         in6_addr.
14134
14135 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14136
14137         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14138         that strtod() works when cross-compiling to a glibc version known
14139         to work.
14140
14141 2010-06-15  Bruno Haible  <bruno@clisp.org>
14142
14143         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14144
14145 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14146
14147         select: Correct timeout.
14148         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14149
14150 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14151
14152         git-version-gen: init shell var to avoid env var influence
14153         * build-aux/git-version-gen (v): Init shell var to empty.
14154
14155 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14156
14157         priv-set: Don't assume that priv.h exists merely because getppriv does.
14158         See Jan Andersen's bug report about AIX 5L in
14159         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14160         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14161         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14162         * lib/priv-set.h: Likewise.
14163         * tests/test-priv-set.c: Likewise.
14164
14165 2010-06-13  Bruno Haible  <bruno@clisp.org>
14166
14167         relocatable: Make it easier to test whether to install wrappers.
14168         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14169         RELOCATABLE_VIA_WRAPPER.
14170
14171 2010-06-13  Bruno Haible  <bruno@clisp.org>
14172
14173         gnulib-tool: Display specified modules and dependencies differently.
14174         * gnulib-tool (func_show_module_list): New function.
14175         (func_import, func_create_testdir): Invoke it.
14176         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14177
14178 2010-06-13  Bruno Haible  <bruno@clisp.org>
14179
14180         gnulib-tool: Align code of func_import and func_create_testdir.
14181         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14182         specified_modules.
14183
14184 2010-06-12  Jim Meyering  <meyering@redhat.com>
14185
14186         test-inttostr: avoid spurious failure on Solaris 9
14187         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14188         to accept "%ju".  Reported by Bruno Haible.
14189
14190 2010-06-11  Jim Meyering  <meyering@redhat.com>
14191
14192         test-sys_socket: mark variables as used more readably
14193         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14194         as "used" explicitly via (void) statement casts.  This is more
14195         readable than using them in an artificial return expression.
14196         Suggestion from Bruno Haible.
14197
14198 2010-06-11  Bruno Haible  <bruno@clisp.org>
14199
14200         Avoid some more warnings from "gcc -Wwrite-strings".
14201         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14202         to 'const char *'.
14203         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14204         * tests/test-c-strcasestr.c (main): Likewise.
14205         * tests/test-mbscasestr1.c (main): Likewise.
14206         * tests/test-mbscasestr2.c (main): Likewise.
14207         * tests/test-memmem.c (main): Likewise.
14208         * tests/test-strstr.c (main): Likewise.
14209         * tests/test-strcasestr.c (main): Likewise.
14210
14211 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14212
14213         init.sh: change framework_failure_ to fail with status 99, not 1
14214         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14215         automake's parallel-tests rule that this is an unexpected failure,
14216         even if the test is listed in XFAIL_TESTS.
14217
14218 2010-06-11  Jim Meyering  <meyering@redhat.com>
14219
14220         test-inttostr: avoid warnings about 4-6KB literal strings
14221         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14222         Include "macros.h", for its definition of ASSERT.
14223         (CK): s/assert/ASSERT/
14224         * modules/inttostr-tests (Files): Add macros.h.
14225
14226         init.sh: don't use $ME_ or skip_ before they are defined
14227         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14228         their first uses.  Also hoist their companions: warn_, fail_,
14229         framework_failure_, $stderr_fileno.  Prompted by a patch from
14230         Stefano Lattarini.
14231
14232         test-sys_socket: avoid set-but-not-used warnings from gcc
14233         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14234         avoid warning about set-but-not-used variables.
14235
14236         test-xvasprintf: avoid 'const' discard warnings
14237         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14238         "const" when assigning from literal strings.
14239         (test_xasprintf): Add "void" in function argument list to placate
14240         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14241
14242         tests: avoid compilation warnings in argmatch and exclude tests...
14243         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14244         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14245         Since it always exits, declare with the "noreturn" attribute.
14246         * tests/test-argmatch.c: Likewise.
14247
14248         tests: avoid 'const' discard warnings in mbsstr tests
14249         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14250         * tests/test-mbsstr2.c (main): Likewise.
14251
14252         test-verify: avoid warning from gcc's -Wmissing-declarations
14253         * tests/test-verify.c (function): Declare to be static.
14254
14255         test-inttostr.c: include <string.h> for use of strcmp
14256         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14257
14258         test-linkat: avoid failed assertion on "other" architectures
14259         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14260         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14261         sparc: https://bugs.launchpad.net/bugs/591968
14262
14263 2010-06-11  Jim Meyering  <meyering@redhat.com>
14264
14265         printf.m4: avoid autoconf's "Expanded Before Required" warning
14266         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14267         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14268         autoconf warning.
14269
14270 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14271
14272         Replacement header templates are now named with ".in", not "_".
14273         * doc/gnulib-intro.texi: Correct.
14274
14275 2010-06-10  Jim Meyering  <meyering@redhat.com>
14276
14277         inttostr-tests: depend on snprintf, not snprintf-posix
14278         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14279         snprintf-posix, to avoid this aclocal failure:
14280           missing file gnulib-tests/vasnprintf.c
14281           configure.ac:45: error: expected source file, required through \
14282           AC_LIBSOURCES, not found
14283
14284 2010-06-10  Jim Meyering  <meyering@redhat.com>
14285
14286         inttostr: add a new function, inttostr, and tests
14287         The namesake function was not available.  The existence of the
14288         template file, inttostr.c makes its addition nontrivial.
14289         * lib/anytostr.c: Rename from inttostr.c.
14290         (anytostr): Rename from inttostr.
14291         * lib/inttostr.c: New file.
14292         * modules/inttostr (Files): Add anytostr.c.
14293         (Makefile.am): Set lib_SOURCES instead of ...
14294         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14295         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14296         * lib/offtostr.c: Likewise.
14297         * lib/uinttostr.c: Likewise.
14298         * lib/umaxtostr.c: Likewise.
14299         * modules/inttostr-tests: New file.
14300         * tests/test-inttostr.c: New file.  Test these functions.
14301
14302 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14303             Bruno Haible  <bruno@clisp.org>
14304
14305         Add "Extending Gnulib" chapter to manual.
14306         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14307         chapter.
14308         (Extending Gnulib): New chapter.
14309         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14310         chapter.
14311
14312 2010-06-09  Bruno Haible  <bruno@clisp.org>
14313
14314         Avoid relocwrapper link errors due to gnulib replacement functions.
14315         * lib/areadlink.c: Use the system's malloc, realloc functions.
14316         (areadlink): Set errno to ENOMEM explicitly.
14317         * modules/areadlink (Depends-on): Remove malloc-posix.
14318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14319
14320 2010-06-09  Bruno Haible  <bruno@clisp.org>
14321
14322         Avoid relocwrapper link errors due to gnulib replacement functions.
14323         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14324         * lib/malloca.c: Likewise.
14325         * lib/relocatable.c: Likewise.
14326         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14327         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14328         * lib/setenv.c: Use the system's malloc, realloc functions.
14329         * lib/strerror.c: Use the system's sprintf function.
14330         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14331
14332 2010-06-04  Bruno Haible  <bruno@clisp.org>
14333
14334         Prefer documented low-level autoconf macro names.
14335         * m4/lib-link.m4: Use m4_translit instead of translit.
14336         * m4/environ.m4: Likewise.
14337         * m4/mathfunc.m4: Likewise.
14338         * m4/onceonly.m4: Likewise.
14339         * m4/stdint.m4: Likewise.
14340         Suggested by Eric Blake.
14341
14342 2010-06-04  Martin Lambers  <marlam@marlam.de>
14343             Bruno Haible  <bruno@clisp.org>
14344
14345         havelib: Allow library names with '+' characters.
14346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14347         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14348
14349 2010-06-09  Bruno Haible  <bruno@clisp.org>
14350
14351         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14352         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14353         realloc failed.
14354
14355 2010-06-08  Peter Simons  <simons@cryp.to>
14356
14357         maint.mk: make the news-check rule more configurable
14358         * top/maint.mk (news-check-lines-spec): New variable.
14359         (news-check): Use "sed -n 1,10p" in place of "head".
14360
14361 2010-06-07  Jim Meyering  <meyering@redhat.com>
14362
14363         do-release-commit-and-tag: fix typo in --help
14364         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14365
14366         regex: avoid new dead-code warning with gcc-4.6.0
14367         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14368         if-block containing a while-loop.  It's been unused for at least
14369         5 years.
14370
14371 2010-06-05  Bruno Haible  <bruno@clisp.org>
14372
14373         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14374         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14375
14376 2010-06-04  Bruno Haible  <bruno@clisp.org>
14377
14378         Update to GNU gettext 0.18.1.
14379         * modules/gettext (configure.ac): Require gettext infrastructure from
14380         version 0.18.1.
14381
14382 2010-06-03  Bruno Haible  <bruno@clisp.org>
14383
14384         Don't use AC_LIBOBJ with file names in subdirectories.
14385         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14386         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14387         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14388         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14389         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14390         gl_LIBUNISTRING_LIBSOURCE.
14391         (Makefile.am): Augment lib_SOURCES here, conditionally.
14392         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14393
14394 2010-06-03  Bruno Haible  <bruno@clisp.org>
14395
14396         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14397         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14398         expansion does not end with a newline.
14399         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14400         unnecessary newline.
14401
14402 2010-06-03  Bruno Haible  <bruno@clisp.org>
14403
14404         Reduce dependencies.
14405         * tests/test-quotearg.h: New file, extracted from
14406         tests/test-quotearg.c.
14407         * tests/test-quotearg-simple.c: New file, extracted from
14408         tests/test-quotearg.c.
14409         * tests/test-quotearg.c: Don't include <ctype.h>.
14410         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14411         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14412         use_quote_double_quotes, use_quotearg_colon): Moved to
14413         tests/test-quotearg.h.
14414         (results_g, flag_results, custom_quotes, custom_results): Moved
14415         to tests/test-quotearg-simple.c.
14416         (main): Moved the part that does not depend on gettext to
14417         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14418         performed.
14419         * modules/quotearg-simple: New file.
14420         * modules/quotearg-simple-tests: New file.
14421         * modules/quotearg (Depends-on): Add quotearg-simple.
14422         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14423         (Files): Add tests/test-quotearg.h.
14424         Reported by Paolo Bonzini.
14425
14426 2010-06-03  Bruno Haible  <bruno@clisp.org>
14427
14428         Reduce dependencies.
14429         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14430
14431 2010-06-03  Bruno Haible  <bruno@clisp.org>
14432
14433         time: Undefine more broken macros.
14434         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14435         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14436         Reported by Eric Blake.
14437
14438 2010-06-03  Bruno Haible  <bruno@clisp.org>
14439
14440         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14441         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14442         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14443         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14444         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14445         Reported by Ludovic Courtès <ludo@gnu.org>.
14446
14447 2010-06-02  Eric Blake  <eblake@redhat.com>
14448
14449         time: work with mingw + pthreads-win32 library
14450         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14451         if timespec is defined only in pthread.h.
14452         * modules/time (Makefile.am): Substitute it.
14453         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14454         <pthread.h>, when needed.
14455         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14456         from the library.
14457
14458 2010-05-31  Bruno Haible  <bruno@clisp.org>
14459
14460         Avoid expanding two macros in the wrong order.
14461         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14462         gl_LIBUNISTRING if it is defined.
14463         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14464         autoconf >= 2.64.
14465         Reported by Ludovic Courtès <ludo@gnu.org>.
14466
14467 2010-05-27  Jim Meyering  <meyering@redhat.com>
14468
14469         maint.mk: also prohibit "#undef" of always-defined symbols
14470         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14471         Allow more than one space before the symbol name.
14472         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14473         the regexp uses alternation.
14474
14475 2010-05-26  Eric Blake  <eblake@redhat.com>
14476
14477         maint.mk: avoid echo -e
14478         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14479         Convert all uses of echo -* to printf.
14480         Reported by Matthias Bolte.
14481
14482 2010-05-25  Bruno Haible  <bruno@clisp.org>
14483
14484         Update to GNU gettext 0.18, part 2.
14485         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14486         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14487
14488 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14489
14490         Add missing include in test-pwrite.c.
14491         * tests/test-pwrite.c: Include string.h, for strcmp.
14492
14493 2010-05-24  Bruno Haible  <bruno@clisp.org>
14494
14495         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14496
14497 2010-05-24  Bruno Haible  <bruno@clisp.org>
14498
14499         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14500         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14501         iconveh_error argument.
14502         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14503         U_STRCONV_TO_LOCALE.
14504         * lib/unistr/u16-strcoll.c: Likewise.
14505         * lib/unistr/u32-strcoll.c: Likewise.
14506         * modules/unistr/u8-strcoll (Depends-on): Add
14507         uniconv/u8-strconv-to-enc, localcharset. Remove
14508         uniconv/u8-strconv-to-locale.
14509         (configure.ac): Bump version number.
14510         * modules/unistr/u16-strcoll (Depends-on): Add
14511         uniconv/u16-strconv-to-enc, localcharset. Remove
14512         uniconv/u16-strconv-to-locale.
14513         (configure.ac): Bump version number.
14514         * modules/unistr/u32-strcoll (Depends-on): Add
14515         uniconv/u32-strconv-to-enc, localcharset. Remove
14516         uniconv/u32-strconv-to-locale.
14517         (configure.ac): Bump version number.
14518
14519 2010-05-24  Bruno Haible  <bruno@clisp.org>
14520
14521         Avoid a test failure on NetBSD 5.0.
14522         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14523         an iconv() bug.
14524
14525 2010-05-24  Bruno Haible  <bruno@clisp.org>
14526
14527         Adjust #include directive style.
14528         * modules/regex (Includes): Recommend to write <regex.h>.
14529
14530 2010-05-24  Bruno Haible  <bruno@clisp.org>
14531
14532         regex: Don't require alloca.
14533         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14534         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14535         only inside if (0).
14536
14537 2010-05-23  Jim Meyering  <meyering@redhat.com>
14538
14539         test-renameat.c: include <sys/stat.h>
14540         * tests/test-renameat.c: Include <sys/stat.h>; required for
14541         definition of S_IS* macros.
14542
14543 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14544
14545         Update maintainer documentation for 'relocatable-prog' module.
14546         * doc/relocatable-maint.texi: Update.
14547         Comments by Bruno Haible.
14548
14549 2010-05-23  Bruno Haible  <bruno@clisp.org>
14550
14551         git-merge-changelog: Enable --split-merged-entry by default.
14552         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14553         (usage): Don't mention this option any more.
14554         Reported by Ralf Wildenhues.
14555
14556 2010-05-23  Jim Meyering  <meyering@redhat.com>
14557
14558         test-pwrite: do not leave behind a test file named "out"
14559         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14560         The trivial-looking use of init.sh is really necessary.
14561         It ensures that the temporary file, "out", is created in
14562         a temporary directory, and removed upon termination.
14563         * tests/test-pwrite.sh: Re-add file.
14564         * modules/pwrite-tests: Reference it.
14565
14566 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14567
14568         Fix output redirection buglet in init.sh.
14569         * tests/init.sh: Fix redirection of stderr.
14570
14571 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14572
14573         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14574
14575 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14576
14577         * modules/valgrind-tests: New file.
14578         * m4/valgrind-tests.m4: New file.
14579         * doc/valgrind-tests.texi: New file.
14580         * doc/gnulib.texi (Running self-tests under valgrind): New
14581         section.
14582
14583 2010-05-19  Bruno Haible  <bruno@clisp.org>
14584
14585         Clean up dead code in recent commit.
14586         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14587         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14588         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14589         Suggested by Paolo Bonzini.
14590
14591 2010-05-19  Bruno Haible  <bruno@clisp.org>
14592
14593         Avoid valgrind error reports from libunistring.
14594         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14595         * modules/libunistring (Files): Add it.
14596         * modules/libunistring-optional (Files): Likewise.
14597
14598 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14599             Bruno Haible  <bruno@clisp.org>
14600
14601         New module 'libunistring-optional'.
14602         * modules/libunistring-optional: New file.
14603         * m4/libunistring-base.m4: New file.
14604         * m4/libunistring-optional.m4: New file.
14605         * lib/unicase.in.h: Renamed from lib/unicase.h.
14606         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14607         * lib/unictype.in.h: Renamed from lib/unictype.h.
14608         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14609         * lib/uniname.in.h: Renamed from lib/uniname.h.
14610         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14611         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14612         * lib/unistr.in.h: Renamed from lib/unistr.h.
14613         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14614         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14615         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14616         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14617         gl_LIBUNISTRING. If the library was found, determine the installed
14618         version and set LIBUNISTRING_VERSION.
14619         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14620         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14621         handle a configuration option --with-included-libunistring.
14622         * modules/libunistring (Files): Add m4/absolute-header.m4.
14623         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14624         Add m4/libunistring-base.m4.
14625         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14626         (Makefile.am): Build unicase.h from unicase.in.h.
14627         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14628         Add m4/libunistring-base.m4.
14629         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14630         (Makefile.am): Build uniconv.h from uniconv.in.h.
14631         * modules/unictype/base (Files): Use unictype.in.h instead of
14632         unictype.h. Add m4/libunistring-base.m4.
14633         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14634         (Makefile.am): Build unictype.h from unictype.in.h.
14635         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14636         Add m4/libunistring-base.m4.
14637         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14638         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14639         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14640         Add m4/libunistring-base.m4.
14641         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14642         (Makefile.am): Build uniname.h from uniname.in.h.
14643         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14644         Add m4/libunistring-base.m4.
14645         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14646         (Makefile.am): Build uninorm.h from uninorm.in.h.
14647         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14648         unistdio.h. Add m4/libunistring-base.m4.
14649         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14650         (Makefile.am): Build unistdio.h from unistdio.in.h.
14651         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14652         Add m4/libunistring-base.m4.
14653         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14654         (Makefile.am): Build unistr.h from unistr.in.h.
14655         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14656         Add m4/libunistring-base.m4.
14657         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14658         (Makefile.am): Build unitypes.h from unitypes.in.h.
14659         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14660         Add m4/libunistring-base.m4.
14661         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14662         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14663         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14664         uniwidth.h. Add m4/libunistring-base.m4.
14665         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14666         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14667         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14668         instead of augmenting lib_SOURCES.
14669         * modules/unicase/empty-suffix-context: Likewise.
14670         * modules/unicase/locale-language: Likewise.
14671         * modules/unicase/tolower: Likewise.
14672         * modules/unicase/totitle: Likewise.
14673         * modules/unicase/toupper: Likewise.
14674         * modules/unicase/u8-casecmp: Likewise.
14675         * modules/unicase/u8-casecoll: Likewise.
14676         * modules/unicase/u8-casefold: Likewise.
14677         * modules/unicase/u8-casexfrm: Likewise.
14678         * modules/unicase/u8-ct-casefold: Likewise.
14679         * modules/unicase/u8-ct-tolower: Likewise.
14680         * modules/unicase/u8-ct-totitle: Likewise.
14681         * modules/unicase/u8-ct-toupper: Likewise.
14682         * modules/unicase/u8-is-cased: Likewise.
14683         * modules/unicase/u8-is-casefolded: Likewise.
14684         * modules/unicase/u8-is-lowercase: Likewise.
14685         * modules/unicase/u8-is-titlecase: Likewise.
14686         * modules/unicase/u8-is-uppercase: Likewise.
14687         * modules/unicase/u8-prefix-context: Likewise.
14688         * modules/unicase/u8-suffix-context: Likewise.
14689         * modules/unicase/u8-tolower: Likewise.
14690         * modules/unicase/u8-totitle: Likewise.
14691         * modules/unicase/u8-toupper: Likewise.
14692         * modules/unicase/u16-casecmp: Likewise.
14693         * modules/unicase/u16-casecoll: Likewise.
14694         * modules/unicase/u16-casefold: Likewise.
14695         * modules/unicase/u16-casexfrm: Likewise.
14696         * modules/unicase/u16-ct-casefold: Likewise.
14697         * modules/unicase/u16-ct-tolower: Likewise.
14698         * modules/unicase/u16-ct-totitle: Likewise.
14699         * modules/unicase/u16-ct-toupper: Likewise.
14700         * modules/unicase/u16-is-cased: Likewise.
14701         * modules/unicase/u16-is-casefolded: Likewise.
14702         * modules/unicase/u16-is-lowercase: Likewise.
14703         * modules/unicase/u16-is-titlecase: Likewise.
14704         * modules/unicase/u16-is-uppercase: Likewise.
14705         * modules/unicase/u16-prefix-context: Likewise.
14706         * modules/unicase/u16-suffix-context: Likewise.
14707         * modules/unicase/u16-tolower: Likewise.
14708         * modules/unicase/u16-totitle: Likewise.
14709         * modules/unicase/u16-toupper: Likewise.
14710         * modules/unicase/u32-casecmp: Likewise.
14711         * modules/unicase/u32-casecoll: Likewise.
14712         * modules/unicase/u32-casefold: Likewise.
14713         * modules/unicase/u32-casexfrm: Likewise.
14714         * modules/unicase/u32-ct-casefold: Likewise.
14715         * modules/unicase/u32-ct-tolower: Likewise.
14716         * modules/unicase/u32-ct-totitle: Likewise.
14717         * modules/unicase/u32-ct-toupper: Likewise.
14718         * modules/unicase/u32-is-cased: Likewise.
14719         * modules/unicase/u32-is-casefolded: Likewise.
14720         * modules/unicase/u32-is-lowercase: Likewise.
14721         * modules/unicase/u32-is-titlecase: Likewise.
14722         * modules/unicase/u32-is-uppercase: Likewise.
14723         * modules/unicase/u32-prefix-context: Likewise.
14724         * modules/unicase/u32-suffix-context: Likewise.
14725         * modules/unicase/u32-tolower: Likewise.
14726         * modules/unicase/u32-totitle: Likewise.
14727         * modules/unicase/u32-toupper: Likewise.
14728         * modules/unicase/ulc-casecmp: Likewise.
14729         * modules/unicase/ulc-casecoll: Likewise.
14730         * modules/unicase/ulc-casexfrm: Likewise.
14731         * modules/uniconv/u8-conv-from-enc: Likewise.
14732         * modules/uniconv/u8-conv-to-enc: Likewise.
14733         * modules/uniconv/u8-strconv-from-enc: Likewise.
14734         * modules/uniconv/u8-strconv-from-locale: Likewise.
14735         * modules/uniconv/u8-strconv-to-enc: Likewise.
14736         * modules/uniconv/u8-strconv-to-locale: Likewise.
14737         * modules/uniconv/u16-conv-from-enc: Likewise.
14738         * modules/uniconv/u16-conv-to-enc: Likewise.
14739         * modules/uniconv/u16-strconv-from-enc: Likewise.
14740         * modules/uniconv/u16-strconv-from-locale: Likewise.
14741         * modules/uniconv/u16-strconv-to-enc: Likewise.
14742         * modules/uniconv/u16-strconv-to-locale: Likewise.
14743         * modules/uniconv/u32-conv-from-enc: Likewise.
14744         * modules/uniconv/u32-conv-to-enc: Likewise.
14745         * modules/uniconv/u32-strconv-from-enc: Likewise.
14746         * modules/uniconv/u32-strconv-from-locale: Likewise.
14747         * modules/uniconv/u32-strconv-to-enc: Likewise.
14748         * modules/uniconv/u32-strconv-to-locale: Likewise.
14749         * modules/unictype/bidicategory-byname: Likewise.
14750         * modules/unictype/bidicategory-name: Likewise.
14751         * modules/unictype/bidicategory-of: Likewise.
14752         * modules/unictype/bidicategory-test: Likewise.
14753         * modules/unictype/block-list: Likewise.
14754         * modules/unictype/block-test: Likewise.
14755         * modules/unictype/category-C: Likewise.
14756         * modules/unictype/category-Cc: Likewise.
14757         * modules/unictype/category-Cf: Likewise.
14758         * modules/unictype/category-Cn: Likewise.
14759         * modules/unictype/category-Co: Likewise.
14760         * modules/unictype/category-Cs: Likewise.
14761         * modules/unictype/category-L: Likewise.
14762         * modules/unictype/category-Ll: Likewise.
14763         * modules/unictype/category-Lm: Likewise.
14764         * modules/unictype/category-Lo: Likewise.
14765         * modules/unictype/category-Lt: Likewise.
14766         * modules/unictype/category-Lu: Likewise.
14767         * modules/unictype/category-M: Likewise.
14768         * modules/unictype/category-Mc: Likewise.
14769         * modules/unictype/category-Me: Likewise.
14770         * modules/unictype/category-Mn: Likewise.
14771         * modules/unictype/category-N: Likewise.
14772         * modules/unictype/category-Nd: Likewise.
14773         * modules/unictype/category-Nl: Likewise.
14774         * modules/unictype/category-No: Likewise.
14775         * modules/unictype/category-P: Likewise.
14776         * modules/unictype/category-Pc: Likewise.
14777         * modules/unictype/category-Pd: Likewise.
14778         * modules/unictype/category-Pe: Likewise.
14779         * modules/unictype/category-Pf: Likewise.
14780         * modules/unictype/category-Pi: Likewise.
14781         * modules/unictype/category-Po: Likewise.
14782         * modules/unictype/category-Ps: Likewise.
14783         * modules/unictype/category-S: Likewise.
14784         * modules/unictype/category-Sc: Likewise.
14785         * modules/unictype/category-Sk: Likewise.
14786         * modules/unictype/category-Sm: Likewise.
14787         * modules/unictype/category-So: Likewise.
14788         * modules/unictype/category-Z: Likewise.
14789         * modules/unictype/category-Zl: Likewise.
14790         * modules/unictype/category-Zp: Likewise.
14791         * modules/unictype/category-Zs: Likewise.
14792         * modules/unictype/category-and: Likewise.
14793         * modules/unictype/category-and-not: Likewise.
14794         * modules/unictype/category-byname: Likewise.
14795         * modules/unictype/category-name: Likewise.
14796         * modules/unictype/category-none: Likewise.
14797         * modules/unictype/category-of: Likewise.
14798         * modules/unictype/category-or: Likewise.
14799         * modules/unictype/category-test: Likewise.
14800         * modules/unictype/combining-class: Likewise.
14801         * modules/unictype/ctype-alnum: Likewise.
14802         * modules/unictype/ctype-alpha: Likewise.
14803         * modules/unictype/ctype-blank: Likewise.
14804         * modules/unictype/ctype-cntrl: Likewise.
14805         * modules/unictype/ctype-digit: Likewise.
14806         * modules/unictype/ctype-graph: Likewise.
14807         * modules/unictype/ctype-lower: Likewise.
14808         * modules/unictype/ctype-print: Likewise.
14809         * modules/unictype/ctype-punct: Likewise.
14810         * modules/unictype/ctype-space: Likewise.
14811         * modules/unictype/ctype-upper: Likewise.
14812         * modules/unictype/ctype-xdigit: Likewise.
14813         * modules/unictype/decimal-digit: Likewise.
14814         * modules/unictype/digit: Likewise.
14815         * modules/unictype/mirror: Likewise.
14816         * modules/unictype/numeric: Likewise.
14817         * modules/unictype/property-alphabetic: Likewise.
14818         * modules/unictype/property-ascii-hex-digit: Likewise.
14819         * modules/unictype/property-bidi-arabic-digit: Likewise.
14820         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14821         * modules/unictype/property-bidi-block-separator: Likewise.
14822         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14823         * modules/unictype/property-bidi-common-separator: Likewise.
14824         * modules/unictype/property-bidi-control: Likewise.
14825         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14826         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14827         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14828         * modules/unictype/property-bidi-european-digit: Likewise.
14829         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14830         * modules/unictype/property-bidi-left-to-right: Likewise.
14831         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14832         * modules/unictype/property-bidi-other-neutral: Likewise.
14833         * modules/unictype/property-bidi-pdf: Likewise.
14834         * modules/unictype/property-bidi-segment-separator: Likewise.
14835         * modules/unictype/property-bidi-whitespace: Likewise.
14836         * modules/unictype/property-byname: Likewise.
14837         * modules/unictype/property-combining: Likewise.
14838         * modules/unictype/property-composite: Likewise.
14839         * modules/unictype/property-currency-symbol: Likewise.
14840         * modules/unictype/property-dash: Likewise.
14841         * modules/unictype/property-decimal-digit: Likewise.
14842         * modules/unictype/property-default-ignorable-code-point: Likewise.
14843         * modules/unictype/property-deprecated: Likewise.
14844         * modules/unictype/property-diacritic: Likewise.
14845         * modules/unictype/property-extender: Likewise.
14846         * modules/unictype/property-format-control: Likewise.
14847         * modules/unictype/property-grapheme-base: Likewise.
14848         * modules/unictype/property-grapheme-extend: Likewise.
14849         * modules/unictype/property-grapheme-link: Likewise.
14850         * modules/unictype/property-hex-digit: Likewise.
14851         * modules/unictype/property-hyphen: Likewise.
14852         * modules/unictype/property-id-continue: Likewise.
14853         * modules/unictype/property-id-start: Likewise.
14854         * modules/unictype/property-ideographic: Likewise.
14855         * modules/unictype/property-ids-binary-operator: Likewise.
14856         * modules/unictype/property-ids-trinary-operator: Likewise.
14857         * modules/unictype/property-ignorable-control: Likewise.
14858         * modules/unictype/property-iso-control: Likewise.
14859         * modules/unictype/property-join-control: Likewise.
14860         * modules/unictype/property-left-of-pair: Likewise.
14861         * modules/unictype/property-line-separator: Likewise.
14862         * modules/unictype/property-logical-order-exception: Likewise.
14863         * modules/unictype/property-lowercase: Likewise.
14864         * modules/unictype/property-math: Likewise.
14865         * modules/unictype/property-non-break: Likewise.
14866         * modules/unictype/property-not-a-character: Likewise.
14867         * modules/unictype/property-numeric: Likewise.
14868         * modules/unictype/property-other-alphabetic: Likewise.
14869         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14870         * modules/unictype/property-other-grapheme-extend: Likewise.
14871         * modules/unictype/property-other-id-continue: Likewise.
14872         * modules/unictype/property-other-id-start: Likewise.
14873         * modules/unictype/property-other-lowercase: Likewise.
14874         * modules/unictype/property-other-math: Likewise.
14875         * modules/unictype/property-other-uppercase: Likewise.
14876         * modules/unictype/property-paired-punctuation: Likewise.
14877         * modules/unictype/property-paragraph-separator: Likewise.
14878         * modules/unictype/property-pattern-syntax: Likewise.
14879         * modules/unictype/property-pattern-white-space: Likewise.
14880         * modules/unictype/property-private-use: Likewise.
14881         * modules/unictype/property-punctuation: Likewise.
14882         * modules/unictype/property-quotation-mark: Likewise.
14883         * modules/unictype/property-radical: Likewise.
14884         * modules/unictype/property-sentence-terminal: Likewise.
14885         * modules/unictype/property-soft-dotted: Likewise.
14886         * modules/unictype/property-space: Likewise.
14887         * modules/unictype/property-terminal-punctuation: Likewise.
14888         * modules/unictype/property-test: Likewise.
14889         * modules/unictype/property-titlecase: Likewise.
14890         * modules/unictype/property-unassigned-code-value: Likewise.
14891         * modules/unictype/property-unified-ideograph: Likewise.
14892         * modules/unictype/property-uppercase: Likewise.
14893         * modules/unictype/property-variation-selector: Likewise.
14894         * modules/unictype/property-white-space: Likewise.
14895         * modules/unictype/property-xid-continue: Likewise.
14896         * modules/unictype/property-xid-start: Likewise.
14897         * modules/unictype/property-zero-width: Likewise.
14898         * modules/unictype/scripts: Likewise.
14899         * modules/unictype/syntax-c-ident: Likewise.
14900         * modules/unictype/syntax-c-whitespace: Likewise.
14901         * modules/unictype/syntax-java-ident: Likewise.
14902         * modules/unictype/syntax-java-whitespace: Likewise.
14903         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14904         * modules/unilbrk/u8-width-linebreaks: Likewise.
14905         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14906         * modules/unilbrk/u16-width-linebreaks: Likewise.
14907         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14908         * modules/unilbrk/u32-width-linebreaks: Likewise.
14909         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14910         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14911         * modules/uniname/uniname: Likewise.
14912         * modules/uninorm/canonical-decomposition: Likewise.
14913         * modules/uninorm/composition: Likewise.
14914         * modules/uninorm/decomposing-form: Likewise.
14915         * modules/uninorm/decomposition: Likewise.
14916         * modules/uninorm/filter: Likewise.
14917         * modules/uninorm/nfc: Likewise.
14918         * modules/uninorm/nfd: Likewise.
14919         * modules/uninorm/nfkc: Likewise.
14920         * modules/uninorm/nfkd: Likewise.
14921         * modules/uninorm/u8-normalize: Likewise.
14922         * modules/uninorm/u8-normcmp: Likewise.
14923         * modules/uninorm/u8-normcoll: Likewise.
14924         * modules/uninorm/u8-normxfrm: Likewise.
14925         * modules/uninorm/u16-normalize: Likewise.
14926         * modules/uninorm/u16-normcmp: Likewise.
14927         * modules/uninorm/u16-normcoll: Likewise.
14928         * modules/uninorm/u16-normxfrm: Likewise.
14929         * modules/uninorm/u32-normalize: Likewise.
14930         * modules/uninorm/u32-normcmp: Likewise.
14931         * modules/uninorm/u32-normcoll: Likewise.
14932         * modules/uninorm/u32-normxfrm: Likewise.
14933         * modules/unistdio/u8-asnprintf: Likewise.
14934         * modules/unistdio/u8-asprintf: Likewise.
14935         * modules/unistdio/u8-snprintf: Likewise.
14936         * modules/unistdio/u8-sprintf: Likewise.
14937         * modules/unistdio/u8-u8-asnprintf: Likewise.
14938         * modules/unistdio/u8-u8-asprintf: Likewise.
14939         * modules/unistdio/u8-u8-snprintf: Likewise.
14940         * modules/unistdio/u8-u8-sprintf: Likewise.
14941         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14942         * modules/unistdio/u8-u8-vasprintf: Likewise.
14943         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14944         * modules/unistdio/u8-u8-vsprintf: Likewise.
14945         * modules/unistdio/u8-vasnprintf: Likewise.
14946         * modules/unistdio/u8-vasprintf: Likewise.
14947         * modules/unistdio/u8-vsnprintf: Likewise.
14948         * modules/unistdio/u8-vsprintf: Likewise.
14949         * modules/unistdio/u16-asnprintf: Likewise.
14950         * modules/unistdio/u16-asprintf: Likewise.
14951         * modules/unistdio/u16-snprintf: Likewise.
14952         * modules/unistdio/u16-sprintf: Likewise.
14953         * modules/unistdio/u16-u16-asnprintf: Likewise.
14954         * modules/unistdio/u16-u16-asprintf: Likewise.
14955         * modules/unistdio/u16-u16-snprintf: Likewise.
14956         * modules/unistdio/u16-u16-sprintf: Likewise.
14957         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14958         * modules/unistdio/u16-u16-vasprintf: Likewise.
14959         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14960         * modules/unistdio/u16-u16-vsprintf: Likewise.
14961         * modules/unistdio/u16-vasnprintf: Likewise.
14962         * modules/unistdio/u16-vasprintf: Likewise.
14963         * modules/unistdio/u16-vsnprintf: Likewise.
14964         * modules/unistdio/u16-vsprintf: Likewise.
14965         * modules/unistdio/u32-asnprintf: Likewise.
14966         * modules/unistdio/u32-asprintf: Likewise.
14967         * modules/unistdio/u32-snprintf: Likewise.
14968         * modules/unistdio/u32-sprintf: Likewise.
14969         * modules/unistdio/u32-u32-asnprintf: Likewise.
14970         * modules/unistdio/u32-u32-asprintf: Likewise.
14971         * modules/unistdio/u32-u32-snprintf: Likewise.
14972         * modules/unistdio/u32-u32-sprintf: Likewise.
14973         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14974         * modules/unistdio/u32-u32-vasprintf: Likewise.
14975         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14976         * modules/unistdio/u32-u32-vsprintf: Likewise.
14977         * modules/unistdio/u32-vasnprintf: Likewise.
14978         * modules/unistdio/u32-vasprintf: Likewise.
14979         * modules/unistdio/u32-vsnprintf: Likewise.
14980         * modules/unistdio/u32-vsprintf: Likewise.
14981         * modules/unistdio/ulc-asnprintf: Likewise.
14982         * modules/unistdio/ulc-asprintf: Likewise.
14983         * modules/unistdio/ulc-fprintf: Likewise.
14984         * modules/unistdio/ulc-snprintf: Likewise.
14985         * modules/unistdio/ulc-sprintf: Likewise.
14986         * modules/unistdio/ulc-vasnprintf: Likewise.
14987         * modules/unistdio/ulc-vasprintf: Likewise.
14988         * modules/unistdio/ulc-vfprintf: Likewise.
14989         * modules/unistdio/ulc-vsnprintf: Likewise.
14990         * modules/unistdio/ulc-vsprintf: Likewise.
14991         * modules/unistr/u8-check: Likewise.
14992         * modules/unistr/u8-chr: Likewise.
14993         * modules/unistr/u8-cmp: Likewise.
14994         * modules/unistr/u8-cmp2: Likewise.
14995         * modules/unistr/u8-cpy: Likewise.
14996         * modules/unistr/u8-cpy-alloc: Likewise.
14997         * modules/unistr/u8-endswith: Likewise.
14998         * modules/unistr/u8-mblen: Likewise.
14999         * modules/unistr/u8-mbsnlen: Likewise.
15000         * modules/unistr/u8-mbtouc: Likewise.
15001         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15002         * modules/unistr/u8-mbtoucr: Likewise.
15003         * modules/unistr/u8-move: Likewise.
15004         * modules/unistr/u8-next: Likewise.
15005         * modules/unistr/u8-prev: Likewise.
15006         * modules/unistr/u8-set: Likewise.
15007         * modules/unistr/u8-startswith: Likewise.
15008         * modules/unistr/u8-stpcpy: Likewise.
15009         * modules/unistr/u8-stpncpy: Likewise.
15010         * modules/unistr/u8-strcat: Likewise.
15011         * modules/unistr/u8-strchr: Likewise.
15012         * modules/unistr/u8-strcmp: Likewise.
15013         * modules/unistr/u8-strcoll: Likewise.
15014         * modules/unistr/u8-strcpy: Likewise.
15015         * modules/unistr/u8-strcspn: Likewise.
15016         * modules/unistr/u8-strdup: Likewise.
15017         * modules/unistr/u8-strlen: Likewise.
15018         * modules/unistr/u8-strmblen: Likewise.
15019         * modules/unistr/u8-strmbtouc: Likewise.
15020         * modules/unistr/u8-strncat: Likewise.
15021         * modules/unistr/u8-strncmp: Likewise.
15022         * modules/unistr/u8-strncpy: Likewise.
15023         * modules/unistr/u8-strnlen: Likewise.
15024         * modules/unistr/u8-strpbrk: Likewise.
15025         * modules/unistr/u8-strrchr: Likewise.
15026         * modules/unistr/u8-strspn: Likewise.
15027         * modules/unistr/u8-strstr: Likewise.
15028         * modules/unistr/u8-strtok: Likewise.
15029         * modules/unistr/u8-to-u16: Likewise.
15030         * modules/unistr/u8-to-u32: Likewise.
15031         * modules/unistr/u8-uctomb: Likewise.
15032         * modules/unistr/u16-check: Likewise.
15033         * modules/unistr/u16-chr: Likewise.
15034         * modules/unistr/u16-cmp: Likewise.
15035         * modules/unistr/u16-cmp2: Likewise.
15036         * modules/unistr/u16-cpy: Likewise.
15037         * modules/unistr/u16-cpy-alloc: Likewise.
15038         * modules/unistr/u16-endswith: Likewise.
15039         * modules/unistr/u16-mblen: Likewise.
15040         * modules/unistr/u16-mbsnlen: Likewise.
15041         * modules/unistr/u16-mbtouc: Likewise.
15042         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15043         * modules/unistr/u16-mbtoucr: Likewise.
15044         * modules/unistr/u16-move: Likewise.
15045         * modules/unistr/u16-next: Likewise.
15046         * modules/unistr/u16-prev: Likewise.
15047         * modules/unistr/u16-set: Likewise.
15048         * modules/unistr/u16-startswith: Likewise.
15049         * modules/unistr/u16-stpcpy: Likewise.
15050         * modules/unistr/u16-stpncpy: Likewise.
15051         * modules/unistr/u16-strcat: Likewise.
15052         * modules/unistr/u16-strchr: Likewise.
15053         * modules/unistr/u16-strcmp: Likewise.
15054         * modules/unistr/u16-strcoll: Likewise.
15055         * modules/unistr/u16-strcpy: Likewise.
15056         * modules/unistr/u16-strcspn: Likewise.
15057         * modules/unistr/u16-strdup: Likewise.
15058         * modules/unistr/u16-strlen: Likewise.
15059         * modules/unistr/u16-strmblen: Likewise.
15060         * modules/unistr/u16-strmbtouc: Likewise.
15061         * modules/unistr/u16-strncat: Likewise.
15062         * modules/unistr/u16-strncmp: Likewise.
15063         * modules/unistr/u16-strncpy: Likewise.
15064         * modules/unistr/u16-strnlen: Likewise.
15065         * modules/unistr/u16-strpbrk: Likewise.
15066         * modules/unistr/u16-strrchr: Likewise.
15067         * modules/unistr/u16-strspn: Likewise.
15068         * modules/unistr/u16-strstr: Likewise.
15069         * modules/unistr/u16-strtok: Likewise.
15070         * modules/unistr/u16-to-u32: Likewise.
15071         * modules/unistr/u16-to-u8: Likewise.
15072         * modules/unistr/u16-uctomb: Likewise.
15073         * modules/unistr/u32-check: Likewise.
15074         * modules/unistr/u32-chr: Likewise.
15075         * modules/unistr/u32-cmp: Likewise.
15076         * modules/unistr/u32-cmp2: Likewise.
15077         * modules/unistr/u32-cpy: Likewise.
15078         * modules/unistr/u32-cpy-alloc: Likewise.
15079         * modules/unistr/u32-endswith: Likewise.
15080         * modules/unistr/u32-mblen: Likewise.
15081         * modules/unistr/u32-mbsnlen: Likewise.
15082         * modules/unistr/u32-mbtouc: Likewise.
15083         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15084         * modules/unistr/u32-mbtoucr: Likewise.
15085         * modules/unistr/u32-move: Likewise.
15086         * modules/unistr/u32-next: Likewise.
15087         * modules/unistr/u32-prev: Likewise.
15088         * modules/unistr/u32-set: Likewise.
15089         * modules/unistr/u32-startswith: Likewise.
15090         * modules/unistr/u32-stpcpy: Likewise.
15091         * modules/unistr/u32-stpncpy: Likewise.
15092         * modules/unistr/u32-strcat: Likewise.
15093         * modules/unistr/u32-strchr: Likewise.
15094         * modules/unistr/u32-strcmp: Likewise.
15095         * modules/unistr/u32-strcoll: Likewise.
15096         * modules/unistr/u32-strcpy: Likewise.
15097         * modules/unistr/u32-strcspn: Likewise.
15098         * modules/unistr/u32-strdup: Likewise.
15099         * modules/unistr/u32-strlen: Likewise.
15100         * modules/unistr/u32-strmblen: Likewise.
15101         * modules/unistr/u32-strmbtouc: Likewise.
15102         * modules/unistr/u32-strncat: Likewise.
15103         * modules/unistr/u32-strncmp: Likewise.
15104         * modules/unistr/u32-strncpy: Likewise.
15105         * modules/unistr/u32-strnlen: Likewise.
15106         * modules/unistr/u32-strpbrk: Likewise.
15107         * modules/unistr/u32-strrchr: Likewise.
15108         * modules/unistr/u32-strspn: Likewise.
15109         * modules/unistr/u32-strstr: Likewise.
15110         * modules/unistr/u32-strtok: Likewise.
15111         * modules/unistr/u32-to-u16: Likewise.
15112         * modules/unistr/u32-to-u8: Likewise.
15113         * modules/unistr/u32-uctomb: Likewise.
15114         * modules/uniwbrk/u8-wordbreaks: Likewise.
15115         * modules/uniwbrk/u16-wordbreaks: Likewise.
15116         * modules/uniwbrk/u32-wordbreaks: Likewise.
15117         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15118         * modules/uniwbrk/wordbreak-property: Likewise.
15119         * modules/uniwidth/u8-strwidth: Likewise.
15120         * modules/uniwidth/u8-width: Likewise.
15121         * modules/uniwidth/u16-strwidth: Likewise.
15122         * modules/uniwidth/u16-width: Likewise.
15123         * modules/uniwidth/u32-strwidth: Likewise.
15124         * modules/uniwidth/u32-width: Likewise.
15125         * modules/uniwidth/width: Likewise.
15126         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15127         with $(LIBUNISTRING).
15128         * modules/unicase/ignorable-tests: Likewise.
15129         * modules/unicase/locale-language-tests: Likewise.
15130         * modules/unicase/tolower-tests: Likewise.
15131         * modules/unicase/totitle-tests: Likewise.
15132         * modules/unicase/toupper-tests: Likewise.
15133         * modules/unicase/u8-casecmp-tests: Likewise.
15134         * modules/unicase/u8-casecoll-tests: Likewise.
15135         * modules/unicase/u8-casefold-tests: Likewise.
15136         * modules/unicase/u8-is-cased-tests: Likewise.
15137         * modules/unicase/u8-is-casefolded-tests: Likewise.
15138         * modules/unicase/u8-is-lowercase-tests: Likewise.
15139         * modules/unicase/u8-is-titlecase-tests: Likewise.
15140         * modules/unicase/u8-is-uppercase-tests: Likewise.
15141         * modules/unicase/u8-tolower-tests: Likewise.
15142         * modules/unicase/u8-totitle-tests: Likewise.
15143         * modules/unicase/u8-toupper-tests: Likewise.
15144         * modules/unicase/u16-casecmp-tests: Likewise.
15145         * modules/unicase/u16-casecoll-tests: Likewise.
15146         * modules/unicase/u16-casefold-tests: Likewise.
15147         * modules/unicase/u16-is-cased-tests: Likewise.
15148         * modules/unicase/u16-is-casefolded-tests: Likewise.
15149         * modules/unicase/u16-is-lowercase-tests: Likewise.
15150         * modules/unicase/u16-is-titlecase-tests: Likewise.
15151         * modules/unicase/u16-is-uppercase-tests: Likewise.
15152         * modules/unicase/u16-tolower-tests: Likewise.
15153         * modules/unicase/u16-totitle-tests: Likewise.
15154         * modules/unicase/u16-toupper-tests: Likewise.
15155         * modules/unicase/u32-casecmp-tests: Likewise.
15156         * modules/unicase/u32-casecoll-tests: Likewise.
15157         * modules/unicase/u32-casefold-tests: Likewise.
15158         * modules/unicase/u32-is-cased-tests: Likewise.
15159         * modules/unicase/u32-is-casefolded-tests: Likewise.
15160         * modules/unicase/u32-is-lowercase-tests: Likewise.
15161         * modules/unicase/u32-is-titlecase-tests: Likewise.
15162         * modules/unicase/u32-is-uppercase-tests: Likewise.
15163         * modules/unicase/u32-tolower-tests: Likewise.
15164         * modules/unicase/u32-totitle-tests: Likewise.
15165         * modules/unicase/u32-toupper-tests: Likewise.
15166         * modules/unicase/ulc-casecmp-tests: Likewise.
15167         * modules/unicase/ulc-casecoll-tests: Likewise.
15168         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15169         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15170         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15171         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15172         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15173         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15174         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15175         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15176         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15177         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15178         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15179         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15180         * modules/unictype/bidicategory-byname-tests: Likewise.
15181         * modules/unictype/bidicategory-name-tests: Likewise.
15182         * modules/unictype/bidicategory-of-tests: Likewise.
15183         * modules/unictype/bidicategory-test-tests: Likewise.
15184         * modules/unictype/block-list-tests: Likewise.
15185         * modules/unictype/block-of-tests: Likewise.
15186         * modules/unictype/block-test-tests: Likewise.
15187         * modules/unictype/category-C-tests: Likewise.
15188         * modules/unictype/category-Cc-tests: Likewise.
15189         * modules/unictype/category-Cf-tests: Likewise.
15190         * modules/unictype/category-Cn-tests: Likewise.
15191         * modules/unictype/category-Co-tests: Likewise.
15192         * modules/unictype/category-Cs-tests: Likewise.
15193         * modules/unictype/category-L-tests: Likewise.
15194         * modules/unictype/category-Ll-tests: Likewise.
15195         * modules/unictype/category-Lm-tests: Likewise.
15196         * modules/unictype/category-Lo-tests: Likewise.
15197         * modules/unictype/category-Lt-tests: Likewise.
15198         * modules/unictype/category-Lu-tests: Likewise.
15199         * modules/unictype/category-M-tests: Likewise.
15200         * modules/unictype/category-Mc-tests: Likewise.
15201         * modules/unictype/category-Me-tests: Likewise.
15202         * modules/unictype/category-Mn-tests: Likewise.
15203         * modules/unictype/category-N-tests: Likewise.
15204         * modules/unictype/category-Nd-tests: Likewise.
15205         * modules/unictype/category-Nl-tests: Likewise.
15206         * modules/unictype/category-No-tests: Likewise.
15207         * modules/unictype/category-P-tests: Likewise.
15208         * modules/unictype/category-Pc-tests: Likewise.
15209         * modules/unictype/category-Pd-tests: Likewise.
15210         * modules/unictype/category-Pe-tests: Likewise.
15211         * modules/unictype/category-Pf-tests: Likewise.
15212         * modules/unictype/category-Pi-tests: Likewise.
15213         * modules/unictype/category-Po-tests: Likewise.
15214         * modules/unictype/category-Ps-tests: Likewise.
15215         * modules/unictype/category-S-tests: Likewise.
15216         * modules/unictype/category-Sc-tests: Likewise.
15217         * modules/unictype/category-Sk-tests: Likewise.
15218         * modules/unictype/category-Sm-tests: Likewise.
15219         * modules/unictype/category-So-tests: Likewise.
15220         * modules/unictype/category-Z-tests: Likewise.
15221         * modules/unictype/category-Zl-tests: Likewise.
15222         * modules/unictype/category-Zp-tests: Likewise.
15223         * modules/unictype/category-Zs-tests: Likewise.
15224         * modules/unictype/category-and-not-tests: Likewise.
15225         * modules/unictype/category-and-tests: Likewise.
15226         * modules/unictype/category-byname-tests: Likewise.
15227         * modules/unictype/category-name-tests: Likewise.
15228         * modules/unictype/category-none-tests: Likewise.
15229         * modules/unictype/category-of-tests: Likewise.
15230         * modules/unictype/category-or-tests: Likewise.
15231         * modules/unictype/category-test-withtable-tests: Likewise.
15232         * modules/unictype/combining-class-tests: Likewise.
15233         * modules/unictype/ctype-alnum-tests: Likewise.
15234         * modules/unictype/ctype-alpha-tests: Likewise.
15235         * modules/unictype/ctype-blank-tests: Likewise.
15236         * modules/unictype/ctype-cntrl-tests: Likewise.
15237         * modules/unictype/ctype-digit-tests: Likewise.
15238         * modules/unictype/ctype-graph-tests: Likewise.
15239         * modules/unictype/ctype-lower-tests: Likewise.
15240         * modules/unictype/ctype-print-tests: Likewise.
15241         * modules/unictype/ctype-punct-tests: Likewise.
15242         * modules/unictype/ctype-space-tests: Likewise.
15243         * modules/unictype/ctype-upper-tests: Likewise.
15244         * modules/unictype/ctype-xdigit-tests: Likewise.
15245         * modules/unictype/decimal-digit-tests: Likewise.
15246         * modules/unictype/digit-tests: Likewise.
15247         * modules/unictype/mirror-tests: Likewise.
15248         * modules/unictype/numeric-tests: Likewise.
15249         * modules/unictype/property-alphabetic-tests: Likewise.
15250         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15251         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15252         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15253         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15254         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15255         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15256         * modules/unictype/property-bidi-control-tests: Likewise.
15257         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15258         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15259         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15260         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15261         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15262         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15263         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15264         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15265         * modules/unictype/property-bidi-pdf-tests: Likewise.
15266         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15267         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15268         * modules/unictype/property-byname-tests: Likewise.
15269         * modules/unictype/property-combining-tests: Likewise.
15270         * modules/unictype/property-composite-tests: Likewise.
15271         * modules/unictype/property-currency-symbol-tests: Likewise.
15272         * modules/unictype/property-dash-tests: Likewise.
15273         * modules/unictype/property-decimal-digit-tests: Likewise.
15274         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15275         * modules/unictype/property-deprecated-tests: Likewise.
15276         * modules/unictype/property-diacritic-tests: Likewise.
15277         * modules/unictype/property-extender-tests: Likewise.
15278         * modules/unictype/property-format-control-tests: Likewise.
15279         * modules/unictype/property-grapheme-base-tests: Likewise.
15280         * modules/unictype/property-grapheme-extend-tests: Likewise.
15281         * modules/unictype/property-grapheme-link-tests: Likewise.
15282         * modules/unictype/property-hex-digit-tests: Likewise.
15283         * modules/unictype/property-hyphen-tests: Likewise.
15284         * modules/unictype/property-id-continue-tests: Likewise.
15285         * modules/unictype/property-id-start-tests: Likewise.
15286         * modules/unictype/property-ideographic-tests: Likewise.
15287         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15288         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15289         * modules/unictype/property-ignorable-control-tests: Likewise.
15290         * modules/unictype/property-iso-control-tests: Likewise.
15291         * modules/unictype/property-join-control-tests: Likewise.
15292         * modules/unictype/property-left-of-pair-tests: Likewise.
15293         * modules/unictype/property-line-separator-tests: Likewise.
15294         * modules/unictype/property-logical-order-exception-tests: Likewise.
15295         * modules/unictype/property-lowercase-tests: Likewise.
15296         * modules/unictype/property-math-tests: Likewise.
15297         * modules/unictype/property-non-break-tests: Likewise.
15298         * modules/unictype/property-not-a-character-tests: Likewise.
15299         * modules/unictype/property-numeric-tests: Likewise.
15300         * modules/unictype/property-other-alphabetic-tests: Likewise.
15301         * modules/unictype/property-other-default-ignorable-code-point-tests:
15302         Likewise.
15303         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15304         * modules/unictype/property-other-id-continue-tests: Likewise.
15305         * modules/unictype/property-other-id-start-tests: Likewise.
15306         * modules/unictype/property-other-lowercase-tests: Likewise.
15307         * modules/unictype/property-other-math-tests: Likewise.
15308         * modules/unictype/property-other-uppercase-tests: Likewise.
15309         * modules/unictype/property-paired-punctuation-tests: Likewise.
15310         * modules/unictype/property-paragraph-separator-tests: Likewise.
15311         * modules/unictype/property-pattern-syntax-tests: Likewise.
15312         * modules/unictype/property-pattern-white-space-tests: Likewise.
15313         * modules/unictype/property-private-use-tests: Likewise.
15314         * modules/unictype/property-punctuation-tests: Likewise.
15315         * modules/unictype/property-quotation-mark-tests: Likewise.
15316         * modules/unictype/property-radical-tests: Likewise.
15317         * modules/unictype/property-sentence-terminal-tests: Likewise.
15318         * modules/unictype/property-soft-dotted-tests: Likewise.
15319         * modules/unictype/property-space-tests: Likewise.
15320         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15321         * modules/unictype/property-test-tests: Likewise.
15322         * modules/unictype/property-titlecase-tests: Likewise.
15323         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15324         * modules/unictype/property-unified-ideograph-tests: Likewise.
15325         * modules/unictype/property-uppercase-tests: Likewise.
15326         * modules/unictype/property-variation-selector-tests: Likewise.
15327         * modules/unictype/property-white-space-tests: Likewise.
15328         * modules/unictype/property-xid-continue-tests: Likewise.
15329         * modules/unictype/property-xid-start-tests: Likewise.
15330         * modules/unictype/property-zero-width-tests: Likewise.
15331         * modules/unictype/scripts-tests: Likewise.
15332         * modules/unictype/syntax-c-ident-tests: Likewise.
15333         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15334         * modules/unictype/syntax-java-ident-tests: Likewise.
15335         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15336         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15337         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15338         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15339         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15340         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15341         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15342         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15343         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15344         * modules/uniname/uniname-tests: Likewise.
15345         * modules/uninorm/canonical-decomposition-tests: Likewise.
15346         * modules/uninorm/compat-decomposition-tests: Likewise.
15347         * modules/uninorm/composition-tests: Likewise.
15348         * modules/uninorm/decomposing-form-tests: Likewise.
15349         * modules/uninorm/decomposition-tests: Likewise.
15350         * modules/uninorm/filter-tests: Likewise.
15351         * modules/uninorm/nfc-tests: Likewise.
15352         * modules/uninorm/nfd-tests: Likewise.
15353         * modules/uninorm/nfkc-tests: Likewise.
15354         * modules/uninorm/nfkd-tests: Likewise.
15355         * modules/uninorm/u8-normcmp-tests: Likewise.
15356         * modules/uninorm/u8-normcoll-tests: Likewise.
15357         * modules/uninorm/u16-normcmp-tests: Likewise.
15358         * modules/uninorm/u16-normcoll-tests: Likewise.
15359         * modules/uninorm/u32-normcmp-tests: Likewise.
15360         * modules/uninorm/u32-normcoll-tests: Likewise.
15361         * modules/unistdio/u8-asnprintf-tests: Likewise.
15362         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15363         * modules/unistdio/u8-vasprintf-tests: Likewise.
15364         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15365         * modules/unistdio/u8-vsprintf-tests: Likewise.
15366         * modules/unistdio/u16-asnprintf-tests: Likewise.
15367         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15368         * modules/unistdio/u16-vasprintf-tests: Likewise.
15369         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15370         * modules/unistdio/u16-vsprintf-tests: Likewise.
15371         * modules/unistdio/u32-asnprintf-tests: Likewise.
15372         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15373         * modules/unistdio/u32-vasprintf-tests: Likewise.
15374         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15375         * modules/unistdio/u32-vsprintf-tests: Likewise.
15376         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15377         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15378         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15379         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15380         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15381         * modules/unistr/u8-check-tests: Likewise.
15382         * modules/unistr/u8-chr-tests: Likewise.
15383         * modules/unistr/u8-cmp-tests: Likewise.
15384         * modules/unistr/u8-cmp2-tests: Likewise.
15385         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15386         * modules/unistr/u8-cpy-tests: Likewise.
15387         * modules/unistr/u8-mblen-tests: Likewise.
15388         * modules/unistr/u8-mbsnlen-tests: Likewise.
15389         * modules/unistr/u8-mbtouc-tests: Likewise.
15390         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15391         * modules/unistr/u8-mbtoucr-tests: Likewise.
15392         * modules/unistr/u8-move-tests: Likewise.
15393         * modules/unistr/u8-next-tests: Likewise.
15394         * modules/unistr/u8-prev-tests: Likewise.
15395         * modules/unistr/u8-set-tests: Likewise.
15396         * modules/unistr/u8-stpcpy-tests: Likewise.
15397         * modules/unistr/u8-stpncpy-tests: Likewise.
15398         * modules/unistr/u8-strcat-tests: Likewise.
15399         * modules/unistr/u8-strcmp-tests: Likewise.
15400         * modules/unistr/u8-strcoll-tests: Likewise.
15401         * modules/unistr/u8-strcpy-tests: Likewise.
15402         * modules/unistr/u8-strdup-tests: Likewise.
15403         * modules/unistr/u8-strlen-tests: Likewise.
15404         * modules/unistr/u8-strmblen-tests: Likewise.
15405         * modules/unistr/u8-strmbtouc-tests: Likewise.
15406         * modules/unistr/u8-strncat-tests: Likewise.
15407         * modules/unistr/u8-strncmp-tests: Likewise.
15408         * modules/unistr/u8-strncpy-tests: Likewise.
15409         * modules/unistr/u8-strnlen-tests: Likewise.
15410         * modules/unistr/u8-to-u16-tests: Likewise.
15411         * modules/unistr/u8-to-u32-tests: Likewise.
15412         * modules/unistr/u8-uctomb-tests: Likewise.
15413         * modules/unistr/u16-check-tests: Likewise.
15414         * modules/unistr/u16-chr-tests: Likewise.
15415         * modules/unistr/u16-cmp-tests: Likewise.
15416         * modules/unistr/u16-cmp2-tests: Likewise.
15417         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15418         * modules/unistr/u16-cpy-tests: Likewise.
15419         * modules/unistr/u16-mblen-tests: Likewise.
15420         * modules/unistr/u16-mbsnlen-tests: Likewise.
15421         * modules/unistr/u16-mbtouc-tests: Likewise.
15422         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15423         * modules/unistr/u16-mbtoucr-tests: Likewise.
15424         * modules/unistr/u16-move-tests: Likewise.
15425         * modules/unistr/u16-next-tests: Likewise.
15426         * modules/unistr/u16-prev-tests: Likewise.
15427         * modules/unistr/u16-set-tests: Likewise.
15428         * modules/unistr/u16-stpcpy-tests: Likewise.
15429         * modules/unistr/u16-stpncpy-tests: Likewise.
15430         * modules/unistr/u16-strcat-tests: Likewise.
15431         * modules/unistr/u16-strcmp-tests: Likewise.
15432         * modules/unistr/u16-strcoll-tests: Likewise.
15433         * modules/unistr/u16-strcpy-tests: Likewise.
15434         * modules/unistr/u16-strdup-tests: Likewise.
15435         * modules/unistr/u16-strlen-tests: Likewise.
15436         * modules/unistr/u16-strmblen-tests: Likewise.
15437         * modules/unistr/u16-strmbtouc-tests: Likewise.
15438         * modules/unistr/u16-strncat-tests: Likewise.
15439         * modules/unistr/u16-strncmp-tests: Likewise.
15440         * modules/unistr/u16-strncpy-tests: Likewise.
15441         * modules/unistr/u16-strnlen-tests: Likewise.
15442         * modules/unistr/u16-to-u32-tests: Likewise.
15443         * modules/unistr/u16-to-u8-tests: Likewise.
15444         * modules/unistr/u16-uctomb-tests: Likewise.
15445         * modules/unistr/u32-check-tests: Likewise.
15446         * modules/unistr/u32-chr-tests: Likewise.
15447         * modules/unistr/u32-cmp-tests: Likewise.
15448         * modules/unistr/u32-cmp2-tests: Likewise.
15449         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15450         * modules/unistr/u32-cpy-tests: Likewise.
15451         * modules/unistr/u32-mblen-tests: Likewise.
15452         * modules/unistr/u32-mbsnlen-tests: Likewise.
15453         * modules/unistr/u32-mbtouc-tests: Likewise.
15454         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15455         * modules/unistr/u32-mbtoucr-tests: Likewise.
15456         * modules/unistr/u32-move-tests: Likewise.
15457         * modules/unistr/u32-next-tests: Likewise.
15458         * modules/unistr/u32-prev-tests: Likewise.
15459         * modules/unistr/u32-set-tests: Likewise.
15460         * modules/unistr/u32-stpcpy-tests: Likewise.
15461         * modules/unistr/u32-stpncpy-tests: Likewise.
15462         * modules/unistr/u32-strcat-tests: Likewise.
15463         * modules/unistr/u32-strcmp-tests: Likewise.
15464         * modules/unistr/u32-strcoll-tests: Likewise.
15465         * modules/unistr/u32-strcpy-tests: Likewise.
15466         * modules/unistr/u32-strdup-tests: Likewise.
15467         * modules/unistr/u32-strlen-tests: Likewise.
15468         * modules/unistr/u32-strmblen-tests: Likewise.
15469         * modules/unistr/u32-strmbtouc-tests: Likewise.
15470         * modules/unistr/u32-strncat-tests: Likewise.
15471         * modules/unistr/u32-strncmp-tests: Likewise.
15472         * modules/unistr/u32-strncpy-tests: Likewise.
15473         * modules/unistr/u32-strnlen-tests: Likewise.
15474         * modules/unistr/u32-to-u16-tests: Likewise.
15475         * modules/unistr/u32-to-u8-tests: Likewise.
15476         * modules/unistr/u32-uctomb-tests: Likewise.
15477         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15478         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15479         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15480         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15481         * modules/uniwidth/u8-strwidth-tests: Likewise.
15482         * modules/uniwidth/u8-width-tests: Likewise.
15483         * modules/uniwidth/u16-strwidth-tests: Likewise.
15484         * modules/uniwidth/u16-width-tests: Likewise.
15485         * modules/uniwidth/u32-strwidth-tests: Likewise.
15486         * modules/uniwidth/u32-width-tests: Likewise.
15487         * modules/uniwidth/width-tests: Likewise.
15488
15489 2010-05-18  Richard Jones  <rjones@redhat.com>
15490
15491         doc: users.txt: list hivex
15492         * users.txt: Add hivex.
15493
15494 2010-05-18  Richard Jones  <rjones@redhat.com>
15495
15496         doc: users.txt: list febootstrap
15497         * users.txt: Add febootstrap.
15498
15499 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15500
15501         bootstrap: fix an error when gnulib is not used as a git submodule
15502         * build-aux/bootstrap (gnulib_path): If its length is zero then
15503         assign "gnulib" to it.
15504         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15505
15506 2010-05-16  Bruno Haible  <bruno@clisp.org>
15507
15508         Avoid autoconf warnings about AM_ICONV.
15509         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15510         2.64.
15511
15512 2010-05-16  Bruno Haible  <bruno@clisp.org>
15513
15514         absolute-header: Make the macro usable in more situations.
15515         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15516         from gl_ABSOLUTE_HEADER.
15517         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15518
15519 2010-05-16  James Youngman  <jay@gnu.org>
15520
15521         doc: update users.txt
15522         * users.txt: Add CSSC.
15523
15524 2010-05-16  Jim Meyering  <meyering@redhat.com>
15525
15526         init.sh: fix an error in the previous change; add more comments
15527         * tests/init.sh: Compare exit code in loop against 9, not 2.
15528         Patch by Bruno Haible.
15529         Make the two tests more similar by adding an empty "then" clause.
15530         Add comments.
15531
15532         init.sh: avoid unnecessary shell re-exec
15533         * tests/init.sh: Improve the re-exec-required check to first test the
15534         current shell.  If it passes the test, do not search for a shell that
15535         does pass, and do not re-exec.  This test is particularly contorted to
15536         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15537         of $(...) evokes a syntax error and causes immediate shell exit with
15538         status 2.  Bruno Haible reported that the re-exec made it impossible
15539         to single-step through any init.sh-using script.
15540
15541 2010-05-16  Bruno Haible  <bruno@clisp.org>
15542
15543         Fix collision between gnulib's and libintl's printf replacements.
15544         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15545         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15546         (printf): When using GNU C, map the __printf__ function to rpl_printf
15547         via __asm__. When not using GNU C, define rpl_printf instead of
15548         __printf__.
15549         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15550         commit.
15551         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15552         commit.
15553         * m4/asm-underscore.m4: New file.
15554         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15555         * modules/stdio (Files): Add m4/asm-underscore.m4.
15556         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15557         Reported by Ben Pfaff.
15558
15559 2010-05-16  Bruno Haible  <bruno@clisp.org>
15560
15561         verify: Avoid skipping the test on openSUSE 11.0.
15562         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15563
15564 2010-05-13  Bruno Haible  <bruno@clisp.org>
15565
15566         Avoid useless warnings from G++.
15567         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15568         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15569         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15570
15571 2010-05-11  Jim Meyering  <meyering@redhat.com>
15572
15573         maint.mk: tweak preceding change
15574         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15575         regexps tighter by anchoring at EOL, and make the new group "shy"
15576         for slightly decreased overhead.
15577
15578 2010-05-11  Eric Blake  <eblake@redhat.com>
15579
15580         maint.mk: gnulib doesn't guarantee NSIG
15581         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15582
15583 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15584
15585         test-pwrite.c: Remove unused variable declaration.
15586         * tests/test-pwrite.c (main): Remove read_buf declaration.
15587
15588         Remove useless test-pwrite.sh file.
15589         * tests/test-pwrite.sh: Delete file.
15590         * modules/pwrite-tests: Remove references.
15591         Reported by Bruno Haible.
15592
15593 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15594
15595         init.sh: fix a typo
15596         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15597
15598 2010-05-10  Jim Meyering  <meyering@redhat.com>
15599
15600         maint.mk: avoid using a temporary file in the always-defined-macros check
15601         * top/maint.mk (.re-defmac): Remove rule.
15602         (gl_trap_): Remove definition.
15603         (sc_prohibit_always-defined_macros): Rewrite not to create and
15604         depend on a temporary file.  Instead, depend on GNU grep's ability
15605         to read a list of regular expressions from stdin when given "-f -".
15606
15607 2010-05-09  Bruno Haible  <bruno@clisp.org>
15608
15609         Update to GNU gettext 0.18, part 1.
15610         * m4/gettext.m4: Update to GNU gettext 0.18.
15611         * m4/intl.m4: Likewise.
15612         * m4/po.m4: Likewise.
15613         * modules/gettext (Files): Add m4/fcntl-o.m4.
15614         (configure.ac): Require gettext infrastructure from version 0.18.
15615
15616 2010-05-09  Jim Meyering  <meyering@redhat.com>
15617
15618         init.sh: enable MALLOC_PERTURB_
15619         * tests/init.sh: Enable glibc's malloc-perturbing option.
15620
15621         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15622         With my recent change in init.sh from the two-line form:
15623             -#   : ${srcdir=.}
15624             -#   . "$srcdir/init.sh"; path_prepend_ .
15625             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15626         I noticed that using the one-line form would cause this test
15627         to fail with a false-positive, or to stop working altogether,
15628         depending on whether help-version changed or all the tests did.
15629         * top/maint.mk (_hv_regex): Remove this definition.
15630         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15631         (_hv_regex_strong): Use a stronger regex to check for conformance.
15632         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15633         Give a separate diagnostic for lack of conforming use.
15634
15635         maint.mk: prohibit definition of symbols defined by gnulib
15636         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15637         definition of symbols defined by gnulib.
15638
15639 2010-05-09  Bruno Haible  <bruno@clisp.org>
15640
15641         acl: Avoid test failure on Cygwin-hosted mingw.
15642         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15643
15644 2010-05-09  Bruno Haible  <bruno@clisp.org>
15645
15646         error: Use system's fcntl function.
15647         * lib/error.c (fcntl): Undefine.
15648
15649 2010-05-09  Jim Meyering  <meyering@redhat.com>
15650
15651         verify: adjust formatting to be more consistent
15652         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15653         argument-list '('s, and after one comma.
15654
15655 2010-05-09  Bruno Haible  <bruno@clisp.org>
15656
15657         error: More reliable output on mingw.
15658         * lib/error.c: Include <windows.h>.
15659         (is_open): New function.
15660         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15661         defined.
15662
15663 2010-05-09  Bruno Haible  <bruno@clisp.org>
15664
15665         vasnprintf: Fix syntax errors in libintl build on mingw.
15666         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15667         pad_ourselves and prec_ourselves after use.
15668
15669 2010-05-08  Bruno Haible  <bruno@clisp.org>
15670
15671         * lib/config.charset: Update comments for Cygwin 1.7.
15672         * lib/localcharset.c: Likewise.
15673
15674 2010-05-07  Jim Meyering  <meyering@redhat.com>
15675
15676         init.sh: improve comments
15677         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15678         . "${srcdir=.}/init.sh"; path_prepend_ .
15679         Add a note about path_prepend_ and the alternative of using
15680         TESTS_ENVIRONMENT.
15681
15682 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15683
15684         exclude: Unescape hashed patterns in wildcard mode.
15685         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15686         to the hash list.
15687         * tests/test-exclude8.sh: New test case.
15688         * modules/exclude-tests: Add new test.
15689
15690 2010-05-05  Eric Blake  <eblake@redhat.com>
15691
15692         verify: automate tests
15693         * modules/verify-tests: New module.
15694         * tests/test-verify.sh: New file.
15695         * tests/test-verify.c: Guard each negative test with a unique id.
15696         Also avoid warning about unused left hand of comma expressions.
15697
15698 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15699
15700         Further improvements to verify.h, suggested by Eric Blake.
15701         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15702         the GL_* versions, to avoid collision with OpenGL.
15703         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15704         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15705         than testing merely whether it's defined.
15706
15707         Modify verify.h to pacify gcc -Wredundant_decls.
15708         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15709         These use the prefix "GL_" since they're likely to be useful elsewhere.
15710         We may need to break them out into a different .h file.
15711         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15712         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15713         of verify_function__.
15714
15715 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15716
15717         Tests for module pwrite.
15718         * modules/pwrite-tests: New file.
15719         * tests/test-pwrite.sh: New file.
15720         * tests/test-pwrite.c: New file.
15721
15722         New module pwrite.
15723         * lib/unistd.in.h (pwrite): New declaration.
15724         * lib/pwrite.c: New file, from glibc with modifications.
15725         * m4/pwrite.m4: New file.
15726         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15727         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15728         REPLACE_PWRITE.
15729         * modules/pwrite: New file.
15730         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15731         REPLACE_PWRITE.
15732         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15733         * doc/posix-functions/pwrite.texi: Mention the new module.
15734
15735 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15736
15737         pread: Update documentation.
15738         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15739
15740 2010-05-04  Eric Blake  <eblake@redhat.com>
15741
15742         docs: update cygwin progress
15743         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15744         this bug.
15745         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15746         Added in cygwin 1.7.2.
15747         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15748         Likewise.
15749         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15750         Likewise.
15751         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15752         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15753         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15754         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15755         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15756         Mention nproc module.
15757         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15758         bug in cygwin 1.7.5 addition.
15759         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15760         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15761         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15762         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15763         1.7.5.
15764         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15765         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15766         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15767         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15768         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15769         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15770         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15771         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15772         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15773         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15774         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15775         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15776         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15777         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15778         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15779         Likewise.
15780         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15781         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15782         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15783         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15784         Likewise.
15785         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15786         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15787         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15788         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15789         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15790         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15791         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15792         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15793         Likewise.
15794         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15795         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15796         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15797         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15798         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15799         Likewise.
15800         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15801         Likewise.
15802         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15803         Likewise.
15804         * doc/glibc-functions/xdrrec_endofrecord.texi
15805         (xdrrec_endofrecord): Likewise.
15806         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15807         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15808         Likewise.
15809         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15810         Likewise.
15811
15812 2010-05-04  Jim Meyering  <meyering@redhat.com>
15813
15814         gendocs.sh: make its "-s FILE" option more useful
15815         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15816         $PACKAGE to reflect the probably-different basename of "FILE".
15817
15818 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15819
15820         bootstrap: don't ignore download_po_files failure
15821         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15822         failure.
15823
15824 2010-05-03  Jim Meyering  <meyering@redhat.com>
15825
15826         maint.mk: allow to pass options to gendocs.sh
15827         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15828         (gendocs_options_): New overridable variable.
15829
15830         gnu-web-doc-update: don't ignore configure or build failure
15831         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15832
15833         announce-gen: backslash-escape '@'s in --help output
15834         * build-aux/announce-gen: Fix syntax errors.
15835
15836         maint.mk, announce-gen: allow project-specific announcement mail headers
15837         * top/maint.mk (translation_project_): Define default.
15838         (announcement_Cc_, announcement_mail_headers_): Likewise.
15839         (announcement): Invoke announce-gen with new --mail-headers option.
15840         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15841
15842         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15843         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15844         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15845         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15846         line in the "err2" output file when running "make check" in verbose
15847         mode (i.e., with set -x enabled).
15848
15849 2010-05-03  Bruno Haible  <bruno@clisp.org>
15850
15851         wctob: Fix for weird platforms.
15852         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15853         argument value.
15854
15855 2010-05-03  Jim Meyering  <meyering@redhat.com>
15856
15857         maint.mk: prohibit unwarranted use of <strings.h>
15858         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15859         strings.h in a file that does not also use strcasecmp, strncasecmp,
15860         ffs or ffsll.
15861
15862         maint.mk: remove obsolete comments
15863         * top/maint.mk: Remove stale, commented-out rules.
15864
15865 2010-05-02  Bruno Haible  <bruno@clisp.org>
15866
15867         wcwidth: Declare also when it's aliased.
15868         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15869         macro.
15870
15871 2010-05-02  Bruno Haible  <bruno@clisp.org>
15872
15873         Fix regression from 2010-04-25.
15874         * gnulib-tool (func_modules_transitive_closure): Check the status of
15875         all modules, not only of the tests that are of the form foo-tests where
15876         foo is a module.
15877
15878 2010-05-02  Bruno Haible  <bruno@clisp.org>
15879
15880         wctob: Work around nasty Cygwin 1.7.2 bug.
15881         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15882         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15883
15884 2010-05-01  Bruno Haible  <bruno@clisp.org>
15885
15886         fpurge: Sharper test.
15887         * tests/test-fpurge.c (main): Add one more ftell check.
15888         * modules/fpurge-tests (Depends-on): Add ftell.
15889         Suggested by Eric Blake.
15890
15891 2010-05-01  Bruno Haible  <bruno@clisp.org>
15892
15893         ftello: Another test.
15894         * tests/test-ftello3.c: New file.
15895         * modules/ftello-tests (Files): Add it.
15896         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15897         MOSTLYCLEANFILES.
15898
15899         ftell: Another test.
15900         * tests/test-ftell3.c: New file.
15901         * modules/ftell-tests (Files): Add it.
15902         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15903         MOSTLYCLEANFILES.
15904
15905 2010-05-01  Bruno Haible  <bruno@clisp.org>
15906
15907         ftell, ftello: Work around Solaris bug.
15908         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15909         * lib/ftello.c: Include stdio-impl.h.
15910         (ftello): On Solaris, when _IOWRT is set, compute the result without
15911         looking at _IOREAD.
15912         * modules/ftello (Files): Add lib/stdio-impl.h.
15913         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15914         * doc/posix-functions/ftello.texi: Likewise.
15915         Reported by Eric Blake.
15916
15917 2010-05-01  Bruno Haible  <bruno@clisp.org>
15918
15919         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15920         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15921         the _IOWRT flag is also set.
15922
15923 2010-05-01  Bruno Haible  <bruno@clisp.org>
15924
15925         Fix doc about a HP-UX stdio bug.
15926         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15927         * doc/posix-functions/ftello.texi: Likewise.
15928
15929 2010-05-01  Bruno Haible  <bruno@clisp.org>
15930
15931         lseek test: Fix failure on Solaris.
15932         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15933         output.
15934
15935 2010-04-30  Jim Meyering  <meyering@redhat.com>
15936
15937         bootstrap: don't ignore failure to generate po*/Makevars
15938         * build-aux/bootstrap (with_gettext): Don't ignore failure
15939         to create po/Makevars or runtime-po/Makevars.
15940
15941 2010-04-29  Eric Blake  <eblake@redhat.com>
15942
15943         headers: relax license to LGPLv2+
15944         * modules/fcntl-h (License): Relax license.
15945         * modules/getopt-posix (License): Likewise.
15946         * modules/locale (License): Likewise.
15947         * modules/math (License): Likewise.
15948         * modules/pty (License): Likewise.
15949         * modules/sched (License): Likewise.
15950         * modules/search (License): Likewise.
15951         * modules/spawn (License): Likewise.
15952         * modules/stdarg (License): Likewise.
15953         * modules/sysexits (License): Likewise.
15954
15955 2010-04-29  Jim Meyering  <meyering@redhat.com>
15956
15957         inttypes: relax license to LGPLv2+
15958         * modules/inttypes (License): Relax license.
15959
15960 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15961
15962         * top/maint.mk (indent): Run twice to produce idempotent results.
15963
15964 2010-04-28  Bruno Haible  <bruno@clisp.org>
15965
15966         getdate: Generate getdate.c in the source directory.
15967         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15968         MOSTLYCLEANFILES.
15969         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15970
15971 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15972
15973         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15974         is not declared as a const *; avoid warnings in that case.
15975
15976 2010-04-28  Eric Blake  <eblake@redhat.com>
15977
15978         canonicalize-lgpl: avoid compiler warning
15979         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15980         declaration' / 'extraneous semicolon' warning with some compilers.
15981         Reported by Andreas Gruenbacher.
15982
15983 2010-04-28  Jim Meyering  <meyering@redhat.com>
15984
15985         init.sh: ensure a more reliable exit status when exiting via trap
15986         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15987         Inspired by patches from Dmitry V. Levin.
15988         Also trap on signal 3 (SIGQUIT).
15989
15990 2010-04-27  Bruno Haible  <bruno@clisp.org>
15991
15992         Update doc about utimes().
15993         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15994         'utimens' module.
15995         Reported by Andreas Gruenbacher <agruen@suse.de>.
15996
15997 2010-04-27  Eric Blake  <eblake@redhat.com>
15998
15999         full-read, full-write: relax license
16000         * modules/full-read (License): Drop to LGPLv2+.
16001         * modules/full-write (License): Likewise.
16002         * modules/safe-read (License): Likewise.
16003         * modules/safe-write (License): Likewise.
16004
16005         pthread: mention library for linking
16006         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16007
16008 2010-04-27  Jim Meyering  <meyering@redhat.com>
16009
16010         maint.mk: fix a bug introduced in last change
16011         * top/maint.mk (gl_assured_headers_): Now that all names are on
16012         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16013         is not anchored to end of word, it should be adequate.
16014
16015         maint.mk: avoid side-effect in latest syntax-check
16016         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16017         to run commands via $(shell...), and hence to incur cost only when
16018         the new rule is actually run.
16019
16020         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16021         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16022         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16023         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16024         (gl_assured_headers_, az_, AZ_): Define.
16025         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16026
16027 2010-04-26  Jim Meyering  <jim@meyering.net>
16028             Bruno Haible  <bruno@clisp.org>
16029
16030         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16031         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16032         Prompted by an exchange with Gilles Espinasse.
16033
16034 2010-04-26  Jim Meyering  <meyering@redhat.com>
16035
16036         git-version-gen: aesthetic tweak
16037         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16038         so that the command remains on a single line.
16039
16040 2010-04-26  Eric Blake  <eblake@redhat.com>
16041
16042         git-version-gen: allow use on EBCDIC hosts
16043         * build-aux/git-version-gen (dirty): Use literal rather than tying
16044         ourselves to ascii.
16045         Reported by Steve Goetze.
16046
16047 2010-04-25  Bruno Haible  <bruno@clisp.org>
16048
16049         netdb: Add support for GNULIB_POSIXCHECK.
16050         * lib/netdb.in.h: Include warn-on-use.h.
16051         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16052         functions are used when GNULIB_POSIXCHECK is defined and the
16053         getaddrinfo module is not in use.
16054         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16055         freeaddrinfo, gai_strerror, getnameinfo are declared.
16056         * modules/netdb (Depends-on): Add warn-on-use.
16057         (Makefile.am): Include warn-on-use.h in netdb.h.
16058
16059 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16060
16061         build: avoid "make check" failure without .git/ directory
16062         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16063         there is no .git/ directory.
16064
16065 2010-04-25  Bruno Haible  <bruno@clisp.org>
16066
16067         ptsname: Fix misuse of ttyname_r.
16068         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16069         of errno.
16070
16071 2010-04-25  Bruno Haible  <bruno@clisp.org>
16072
16073         ttyname_r: Make it work on Solaris 10.
16074         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16075         if the system function has the POSIX declaration. Test whether the
16076         function fails if the buffer is less than 128 bytes large.
16077         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16078         system's ttyname_r function. Provide a reasonably large buffer.
16079         * modules/ttyname_r (Depends-on): Add extensions.
16080         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16081
16082 2010-04-25  Bruno Haible  <bruno@clisp.org>
16083
16084         Use the 'extensions' module for some more functions on Solaris.
16085         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16086         module.
16087         * doc/posix-functions/ctime_r.texi: Likewise.
16088         * doc/posix-functions/getgrgid_r.texi: Likewise.
16089         * doc/posix-functions/getgrnam_r.texi: Likewise.
16090         * doc/posix-functions/getpwnam_r.texi: Likewise.
16091         * doc/posix-functions/getpwuid_r.texi: Likewise.
16092         * doc/posix-functions/readdir_r.texi: Likewise.
16093         * doc/posix-functions/sigwait.texi: Likewise.
16094         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16095         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16096
16097 2010-04-25  Bruno Haible  <bruno@clisp.org>
16098
16099         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16100         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16101         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16102         * lib/ttyname_r.c: Include <limits.h>.
16103         (ttyname_r): Define using the system's ttyname_r function, if it exists
16104         and not on Solaris.
16105         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16106         set.
16107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16108         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16109         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16110         Reported by Simon Josefsson.
16111
16112 2010-04-25  Bruno Haible  <bruno@clisp.org>
16113
16114         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16115         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16116         * doc/posix-functions/ctime_r.texi: Likewise.
16117         * doc/posix-functions/getgrgid_r.texi: Likewise.
16118         * doc/posix-functions/getgrnam_r.texi: Likewise.
16119         * doc/posix-functions/getlogin_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         * doc/posix-functions/ttyname_r.texi: Likewise.
16125         Reported by Simon Josefsson.
16126
16127 2010-04-25  Bruno Haible  <bruno@clisp.org>
16128
16129         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16130         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16131         also to --create-testdir.
16132         (func_acceptable): Don't consider the status of *-tests modules here.
16133         (func_modules_transitive_closure): Consider it here, before including a
16134         test module.
16135         (func_import, func_create_testdir): Set inc_all_direct_tests,
16136         inc_all_indirect_tests.
16137         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16138         --create-testdir and --create-megatestdir.
16139
16140 2010-04-25  Bruno Haible  <bruno@clisp.org>
16141
16142         gnulib-tool: Add --without-*-tests options.
16143         * gnulib-tool (func_usage): Document the --without-*-tests options.
16144         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16145         excl_unportable_tests): New variables.
16146         Fail if they are specified with --import or --update.
16147         (func_acceptable): Respect the excl_*_tests variables.
16148         (func_import): Set the excl_*_tests variables to empty.
16149
16150 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16151             Bruno Haible  <bruno@clisp.org>
16152
16153         Work around a MacOS X 10.4 bug with openpty.
16154         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16155         * tests/test-openpty.c (main): Close the master side explicitly.
16156
16157 2010-04-25  Bruno Haible  <bruno@clisp.org>
16158
16159         strnlen: Fix a C++ test error on MacOS X and Solaris.
16160         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16161         the function is not declared.
16162         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16163         Simon Josefsson.
16164
16165 2010-04-24  Bruno Haible  <bruno@clisp.org>
16166
16167         Avoid a gcc warning.
16168         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16169         of correct type for %08lx directive.
16170         Reported by Eric Blake.
16171
16172 2010-04-24  Bruno Haible  <bruno@clisp.org>
16173
16174         vasnprintf: Correct errno value in case of out-of-memory.
16175         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16176         or sprintf. Use the errno value from SNPRINTF or sprintf.
16177         Reported by Ian Beckwith <ianb@erislabs.net>.
16178
16179 2010-04-24  Bruno Haible  <bruno@clisp.org>
16180
16181         ansi-c++-opt: Find correct compiler when cross-compiling.
16182         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16183         AC_CHECK_PROGS.
16184         Reported by Simon Josefsson.
16185
16186 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16187
16188         vc-list-files: Add support for subversion
16189         * build-aux/vc-list-files: Use "svn list" to generate the list of
16190         files controlled by subversion.
16191
16192 2010-04-23  Jim Meyering  <meyering@redhat.com>
16193
16194         vc-list-files tests: convert to use init.sh
16195         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16196         path_prepend_.
16197         Use Exit, not exit.
16198         Use skip_ rather than open coding it.
16199         Remove trap set-up and compare definitions.
16200         * tests/test-vc-list-files-git.sh: Likewise.
16201         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16202
16203 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16204
16205         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16206         backup files.
16207
16208 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16209
16210         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16211
16212 2010-04-20  Eric Blake  <eblake@redhat.com>
16213
16214         tests: be robust to ignored SIGPIPE
16215         * tests/test-select-in.sh: Consume all output.
16216         * tests/test-lseek.sh: Check correct exit status, while avoiding
16217         EPIPE.
16218
16219 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16220             Bruno Haible  <bruno@clisp.org>
16221
16222         visibility: Don't use -fvisibility if it leads to a warning.
16223         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16224         yes, don't pretend that visibility works if it leads to a warning.
16225         Reported by Mike Gran <spk121@yahoo.com>.
16226
16227 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16228
16229         * build-aux/bootstrap: Use "git -h" for testing for supported options
16230         instead of "git --help".  The short-form option only shows a summary,
16231         and doesn't layout the full man page.  Grep for the full option name
16232         in the summary, too.
16233
16234 2010-04-19  Bruno Haible  <bruno@clisp.org>
16235
16236         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16237         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16238         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16239         mention of RELOCATABLE_STRIP.
16240         Reported by Sylvain Beucler <beuc@beuc.net>.
16241
16242 2010-04-19  Bruno Haible  <bruno@clisp.org>
16243
16244         * lib/diffseq.h: Fix typo in comment.
16245         Reported by Eric Blake.
16246
16247 2010-04-19  Bruno Haible  <bruno@clisp.org>
16248
16249         ioctl: Move autoconf macro to a .m4 file.
16250         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16251         * modules/ioctl (Files): Add it.
16252         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16253         Reported by Ian Beckwith <ianb@erislabs.net>.
16254
16255 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16256             Bruno Haible  <bruno@clisp.org>
16257
16258         diffseq: Accommodate use-case with abstract arrays.
16259         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16260         is not defined.
16261         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16262         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16263
16264 2010-04-18  Bruno Haible  <bruno@clisp.org>
16265
16266         * doc/posix-headers/stdbool.texi: More precise wording.
16267
16268 2010-04-17  Jim Meyering  <meyering@redhat.com>
16269
16270         maint.mk: use gnu-style indentation in an embedded perl script
16271         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16272         Rename variable: s/two/last_two_bytes/
16273
16274 2010-04-16  Eric Blake  <eblake@redhat.com>
16275
16276         test-stdbool: skip test that fails with Solaris CC
16277         * tests/test-stdbool.c (f): Skip test that causes compilation
16278         error under buggy C++ compiler.
16279         * lib/stdbool.in.h: Document the limitation.
16280         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16281
16282         setenv: allow compilation with C++
16283         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16284         register keyword.
16285
16286         stdint: allow test to pass with C++
16287         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16288
16289         getopt: allow compilation with C++
16290         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16291         struct.
16292         * lib/getopt.c (_getopt_internal_r): Use correct type.
16293         Reported by Dagobert Michelson, via Joel E. Denny.
16294
16295 2010-04-16  Bruno Haible  <bruno@clisp.org>
16296
16297         Override netdb.h always.
16298         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16299         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16300         Reported by Ludovic Courtès <ludo@gnu.org>.
16301
16302 2010-04-15  Bruno Haible  <bruno@clisp.org>
16303
16304         openpty: Fix mistake from 2010-03-21.
16305         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16306         Reported by Simon Josefsson.
16307
16308 2010-04-15  Eric Blake  <eblake@redhat.com>
16309
16310         test-forkpty: fix expected signature
16311         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16312         Reported by Simon Josefsson.
16313
16314 2010-04-15  Jim Meyering  <meyering@redhat.com>
16315
16316         maint.mk: texinfo_suffix_re_: correct the default regexp
16317         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16318
16319         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16320         make it configurable via texinfo_suffix_re_.
16321
16322 2010-04-14  Eric Blake  <eblake@redhat.com>
16323
16324         strtok_r: relax license to LGPLv2+
16325         * modules/strtok_r (License): Relax license.
16326         Reported by Matthias Bolte.
16327
16328 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16329
16330         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16331         version 1.4.4 by default instead of requiring the libgcrypt
16332         version used during build.  This makes it possible to use the
16333         application with older but still binary compatible libgcrypt
16334         versions.
16335
16336 2010-04-13  Eric Blake  <eblake@redhat.com>
16337
16338         getopt-gnu: match recent glibc fixes and posix ruling
16339         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16340         '+' handling, when requesting extensions.
16341         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16342         'W;' handling.
16343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16344         * doc/posix-functions/getopt.texi (getopt): Document this.
16345         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16346         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16347         Likewise.
16348
16349         getopt: merge bug fixes from glibc
16350         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16351         diagnostics.  Honor '+:' correctly.  Reject ';'.
16352
16353         getopt-posix: detect MacOS bug
16354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16355         optind when missing a required argument.
16356         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16357         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16358         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16359         Likewise.
16360
16361         getopt-posix: avoid spurious failure on Solaris
16362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16363         an indicator that setting optind=1 is sufficient for reset.
16364
16365         getopt-posix: avoid spurious failure on FreeBSD
16366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16367         in POSIX mode, since the m4 test uses it.
16368
16369         gnulib-tool: silence warning on BSD sh
16370         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16371
16372 2010-04-13  Jim Meyering  <meyering@redhat.com>
16373
16374         doc: users.txt: GNU patch now uses gnulib
16375         * users.txt: Add patch.
16376
16377 2010-04-12  Jim Meyering  <meyering@redhat.com>
16378
16379         maint.mk: generate more concise timing data for syntax-check rules
16380         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16381         " done" from each line that reports a syntax-check test duration.
16382
16383 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16384
16385         git-version-gen: use "git update-index..." rather than "git status"
16386         * build-aux/git-version-gen: Use git update-index --refresh, not
16387         "git status".  With some versions of git, "git status" would fail
16388         to update the index and result in an unwarranted "-dirty" suffix.
16389
16390 2010-04-11  Jim Meyering  <meyering@redhat.com>
16391
16392         openat: correct formatting (no semantic change)
16393         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16394         Suggested by Bruno Haible.
16395
16396 2010-04-11  Bruno Haible  <bruno@clisp.org>
16397
16398         Stricter declaration checking in testdirs.
16399         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16400         If for_tests is true, augment AM_CPPFLAGS to define
16401         GNULIB_STRICT_CHECKING.
16402         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16403         GNULIB_STRICT_CHECKING is defined, verify that the function is
16404         declared.
16405
16406 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16407             Bruno Haible  <bruno@clisp.org>
16408
16409         libunistring: Improve configure output.
16410         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16411         Don't say "consider installing GNU libunistring" when checking again
16412         with libiconv.
16413
16414 2010-04-11  Bruno Haible  <bruno@clisp.org>
16415
16416         libunistring: Correct value of $LTLIBUNISTRING.
16417         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16418         correct the value of $LTLIBUNISTRING.
16419
16420 2010-04-11  Bruno Haible  <bruno@clisp.org>
16421
16422         havelib: Add static libraries to LIBS in the right order.
16423         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16424         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16425
16426 2010-04-11  Bruno Haible  <bruno@clisp.org>
16427
16428         libunistring: Detect libunistring also when it depends on libiconv.
16429         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16430         the second AC_LIB_HAVE_LINKFLAGS invocation.
16431
16432 2010-04-11  James Youngman  <jay@gnu.org>
16433
16434         close-stream: declare local scalars to be "const"
16435         * lib/close-stream.c (close_stream): Make boolean variables const
16436         to document the fact that we set but do not change them.
16437
16438 2010-04-11  Bruno Haible  <bruno@clisp.org>
16439
16440         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16441
16442 2010-04-11  Jim Meyering  <meyering@redhat.com>
16443
16444         maint.mk: don't include dist-check.mk
16445         * top/maint.mk: Remove bogus include directive.
16446
16447         maint.mk: improve empty-line-at-EOF check
16448         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16449         solution, rather than tail+Perl-based one.  The latter would read
16450         a few kilobytes from the end of each file, and did not handle empty
16451         files properly.
16452
16453         maint.mk: print the elapsed time for each syntax-check rule
16454         * top/maint.mk (sc_m_rules_): Save start time in a file.
16455         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16456         (local-check): Interpose the .z rules
16457
16458 2010-04-11  Jim Meyering  <meyering@redhat.com>
16459
16460         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16461         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16462         empty file with one that ends in an empty line.
16463
16464 2010-04-10  Bruno Haible  <bruno@clisp.org>
16465
16466         mkdir: Make it work on mingw64.
16467         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16468         * lib/mkdir.c: Update comment.
16469         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16470
16471 2010-04-10  Bruno Haible  <bruno@clisp.org>
16472
16473         Don't override improved macro from newer autoconf.
16474         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16475         autoconf >= 2.62.
16476         Reported by Joel E. Denny <jdenny@clemson.edu>.
16477
16478 2010-04-10  Jim Meyering  <meyering@redhat.com>
16479
16480         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16481         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16482
16483         maint.mk: correct a diagnostic
16484         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16485         in diagnostic; now use $prohibit.
16486
16487 2010-04-10  Bruno Haible  <address@hidden>
16488
16489         fchownat: Fix a C++ test error on Solaris 8.
16490         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16491         the function does not exist.
16492
16493 2010-04-10  Bruno Haible  <bruno@clisp.org>
16494
16495         vasnprintf: Add more tests.
16496         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16497         (test_function): Test converting an invalid wide string.
16498
16499         vasnprintf: Correct handling of unconvertible wide string arguments.
16500         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16501         VASNPRINTF.
16502         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16503         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16504         smaller than the expected maximum need for the directive. Set errno to
16505         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16506         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16508         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16509         * modules/vasnprintf (Files): Add m4/printf.m4.
16510         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16511
16512 2010-04-10  Bruno Haible  <bruno@clisp.org>
16513
16514         vasnprintf: Fix crash in %ls directive.
16515         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16516         string is passed as argument to %ls, with no precision and no width.
16517         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16518
16519 2010-04-10  Bruno Haible  <bruno@clisp.org>
16520
16521         vasnprintf: Fix multiple test failures on mingw.
16522         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16523         _snprintf, or snwprintf, not _snwprintf.
16524
16525 2010-04-10  Bruno Haible  <bruno@clisp.org>
16526
16527         write: Fix a C++ test error on mingw.
16528         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16529
16530 2010-04-10  Bruno Haible  <bruno@clisp.org>
16531
16532         vasnprintf test: Reduce code duplication.
16533         * tests/test-vasnprintf.c (test_function): New function, extracted from
16534         test_vasnprintf.
16535         (test_vasnprintf, test_asnprintf): Invoke it.
16536
16537 2010-04-10  Bruno Haible  <bruno@clisp.org>
16538
16539         strnlen: Fix warning in C++ mode on MacOS X.
16540         * lib/string.in.h (strnlen): Use the modern idiom.
16541         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16542         defining strnlen as a macro already in <config.h>.
16543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16544         REPLACE_STRNLEN.
16545         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16546         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16547
16548 2010-04-08  James Youngman  <jay@gnu.org>
16549
16550         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16551         the example.
16552
16553 2010-04-09  Jim Meyering  <meyering@redhat.com>
16554
16555         maint.mk: print better diagnostic when there is no $(_hv_file)
16556         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16557         announce that when $(_hv_file) (aka help-version) does not exist.
16558
16559         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16560         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16561         not try to interpret its random input bytes.  Jarno Rajahalme reported
16562         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16563         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16564         (mktempd_): Likewise, just in case.
16565
16566         ftruncate: add two years to projected module removal date: 2012
16567         * m4/ftruncate.m4: Adjust comments.
16568
16569         ftruncate: mark module as obsolete; even MinGW provides it, now
16570         * modules/ftruncate (Status): Obsolete.
16571         (Notice): Say that.
16572         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16573         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16574
16575 2010-04-08  Bruno Haible  <bruno@clisp.org>
16576
16577         Fix side effects from tests-related modules.
16578         * modules/dprintf-posix (Comment): New section.
16579         * modules/fprintf-posix (Comment): Likewise.
16580         * modules/obstack-printf-posix (Comment): Likewise.
16581         * modules/printf-posix (Comment): Likewise.
16582         * modules/snprintf-posix (Comment): Likewise.
16583         * modules/sprintf-posix (Comment): Likewise.
16584         * modules/vasnprintf-posix (Comment): Likewise.
16585         * modules/vasprintf-posix (Comment): Likewise.
16586         * modules/vdprintf-posix (Comment): Likewise.
16587         * modules/vfprintf-posix (Comment): Likewise.
16588         * modules/vprintf-posix (Comment): Likewise.
16589         * modules/vsnprintf-posix (Comment): Likewise.
16590         * modules/vsprintf-posix (Comment): Likewise.
16591         * modules/xprintf-posix (Comment): Likewise.
16592         * modules/xvasprintf-posix (Comment): Likewise.
16593         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16594         * modules/floorf-tests (Depends-on): Likewise.
16595         * modules/round-tests (Depends-on): Likewise.
16596         * modules/roundf-tests (Depends-on): Likewise.
16597         * modules/trunc-tests (Depends-on): Likewise.
16598         * modules/truncf-tests (Depends-on): Likewise.
16599         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16600         'fprintf-posix' module is not present.
16601         * tests/test-floorf2.c (check): Likewise.
16602         * tests/test-trunc2.c (check): Likewise.
16603         * tests/test-truncf2.c (check): Likewise.
16604         * tests/test-round2.c (equal): Likewise.
16605         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16606
16607 2010-04-07  Karl Berry  <karl@gnu.org>
16608
16609         * config/srclist.txt,
16610         * config/srclistvars.sh,
16611         * config/srclist-update: doc fixes.
16612
16613 2010-04-07  Jim Meyering  <meyering@redhat.com>
16614
16615         maint.mk: add a PATH crosschecking syntax-check rule
16616         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16617         Useful if you use a test like the one in help-version (coreutils,
16618         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16619         printed by prog --version.
16620
16621 2010-04-06  Bruno Haible  <bruno@clisp.org>
16622
16623         Fix link error on mingw.
16624         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16625         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16626
16627 2010-04-06  Bruno Haible  <bruno@clisp.org>
16628
16629         Assume rmdir exists.
16630         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16631
16632 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16633
16634         doc: update users.txt
16635         * users.txt: Add gcal.
16636
16637 2010-04-06  Jim Meyering  <meyering@redhat.com>
16638
16639         init.sh: simply unset TMPDIR rather than risking env -i
16640         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16641         although it probably works fine on all Unix-based systems, some
16642         systems (Cygwin?) cannot tolerate a totally cleared environment.
16643         Suggestion from Eric Blake.
16644
16645 2010-04-06  Jim Meyering  <meyering@redhat.com>
16646
16647         init.sh: portability fix: use env's POSIX-specified -i option not -u
16648         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16649         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16650
16651 2010-04-05  Bruno Haible  <bruno@clisp.org>
16652
16653         btowc: Work around Cygwin 1.7.2 bug.
16654         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16655         does not map NUL to 0.
16656         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16657
16658 2010-04-05  Bruno Haible  <bruno@clisp.org>
16659
16660         Make the multithread modules work on Cygwin 1.7.2.
16661         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16662         imported symbols can be declared weak, so that it returns "no" on
16663         Cygwin 1.7.2.
16664
16665 2010-04-05  Bruno Haible  <bruno@clisp.org>
16666
16667         Use the module 'strncat'.
16668         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16669
16670         Tests for module 'strncat'.
16671         * modules/strncat-tests: New file.
16672         * tests/test-strncat.c: New file.
16673
16674         New module 'strncat'.
16675         * lib/string.in.h (strncat): New declaration.
16676         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16677         * m4/strncat.m4: New file, based on m4/memchr.m4.
16678         * modules/strncat: New file.
16679         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16680         is declared.
16681         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16682         REPLACE_STRNCAT.
16683         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16684         REPLACE_STRNCAT.
16685         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16686         module.
16687         * tests/test-string-c++.cc: Check signature of strncat.
16688
16689 2010-04-05  Jim Meyering  <meyering@redhat.com>
16690
16691         xstrtoumax-tests: convert to use init.sh
16692         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16693         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16694         Use Exit, not exit.
16695         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16696
16697         xstrtoimax-tests: convert to use init.sh
16698         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16699         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16700         Use Exit, not exit.
16701         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16702
16703 2010-04-05  Bruno Haible  <bruno@clisp.org>
16704
16705         sys_socket: Avoid #define replacements in C++ mode.
16706         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16707         warning to the function if possible, rather than #defining the symbol
16708         to a dysfunctional alias.
16709
16710 2010-04-05  Bruno Haible  <bruno@clisp.org>
16711
16712         fseeko: Fix C++ test error on mingw.
16713         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16714         gl_FUNC_FSEEKO.
16715         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16716         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16717         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16718         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16719
16720 2010-04-05  Bruno Haible  <bruno@clisp.org>
16721
16722         duplocale: Improve test output.
16723         * tests/test-duplocale.c (main): Print reason for skipped test.
16724
16725 2010-04-05  Bruno Haible  <bruno@clisp.org>
16726
16727         Assume rmdir exists.
16728         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16729         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16730
16731 2010-04-05  Bruno Haible  <bruno@clisp.org>
16732
16733         Fix link error on Solaris 8 with cc.
16734         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16735
16736 2010-04-05  Bruno Haible  <bruno@clisp.org>
16737
16738         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16739         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16740
16741 2010-04-05  Bruno Haible  <bruno@clisp.org>
16742
16743         vasprintf: Update documentation.
16744         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16745
16746 2010-04-05  Bruno Haible  <bruno@clisp.org>
16747
16748         ptsname: Improve test.
16749         * tests/test-ptsname.c (main): Also try the various master names of BSD
16750         systems.
16751
16752 2010-04-05  Bruno Haible  <bruno@clisp.org>
16753
16754         memchr: Avoid a possible C++ test error.
16755         * lib/string.in.h (memchr): Provide declaration if function is missing.
16756         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16757         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16759         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16760
16761 2010-04-05  Bruno Haible  <bruno@clisp.org>
16762
16763         strtok_r: Improve idiom.
16764         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16765         AC_LIBOBJ is used.
16766
16767 2010-04-05  Bruno Haible  <bruno@clisp.org>
16768
16769         strdup: Improve idiom.
16770         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16771         AC_LIBOBJ is used.
16772         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16773         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16774         when AC_LIBOBJ is used.
16775
16776 2010-04-05  Bruno Haible  <bruno@clisp.org>
16777
16778         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16779         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16780         don't set REPLACE_MBSINIT to 1.
16781         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16782         don't set REPLACE_MBRTOWC to 1.
16783         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16784         exist, don't set REPLACE_MBSRTOWCS to 1.
16785         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16786         exist, don't set REPLACE_MBSNRTOWCS to 1.
16787         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16788         don't set REPLACE_WCRTOMB to 1.
16789         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16790         exist, don't set REPLACE_WCSRTOMBS to 1.
16791         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16792         exist, don't set REPLACE_WCSNRTOMBS to 1.
16793
16794 2010-04-05  Bruno Haible  <bruno@clisp.org>
16795
16796         ldexpl: Improve idiom.
16797         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16798         make sure to set HAVE_DECL_LDEXPL to 0.
16799
16800 2010-04-05  Jim Meyering  <meyering@redhat.com>
16801
16802         xstrtol-tests: convert to use init.sh
16803         * modules/xstrtol-tests (Files): Add tests/init.sh.
16804         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16805         Use Exit, not exit.
16806         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16807
16808         atexit-tests: convert to use init.sh
16809         * modules/atexit-tests (Files): Add tests/init.sh.
16810         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16811         Use Exit, not exit.
16812         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16813
16814         init.sh: fix typo
16815         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16816
16817         init.sh: make it easier for a test script to write to the tty, ...
16818         when using automake's parallel-tests mode.
16819         * tests/init.sh (stderr_fileno_): Define overridable variable.
16820         (warn_): New function, to use it.
16821         (fail_, skip_, framework_failure_): Use warn_.
16822
16823 2010-04-04  Bruno Haible  <bruno@clisp.org>
16824
16825         btowc: Avoid warning.
16826         * lib/btowc.c: Include <stdlib.h>.
16827         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16828
16829 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16830             Bruno Haible  <bruno@clisp.org>
16831
16832         wchar: Port to NetBSD 1.5.
16833         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16834         * lib/wctype.in.h (WEOF): Likewise.
16835
16836 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16837             Bruno Haible  <bruno@clisp.org>
16838
16839         Port extended stdio to NetBSD 1.5.
16840         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16841         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16842         older.
16843
16844 2010-04-04  Bruno Haible  <bruno@clisp.org>
16845
16846         string: Remove unused substitution.
16847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16848         HAVE_DECL_STRERROR.
16849         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16850
16851 2010-04-04  Bruno Haible  <bruno@clisp.org>
16852
16853         strtod: Avoid a possible C++ test error.
16854         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16855         set REPLACE_STRTOD.
16856
16857 2010-04-04  Bruno Haible  <bruno@clisp.org>
16858
16859         strerror: Update documentation.
16860         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16861
16862 2010-04-04  Bruno Haible  <bruno@clisp.org>
16863
16864         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16865         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16866         _GL_CXXALIAS_SYS_CAST.
16867
16868 2010-04-04  Bruno Haible  <bruno@clisp.org>
16869
16870         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16871         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16872         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16873         REPLACE_FREXPL to 1.
16874         * doc/posix-functions/frexpl.texi: Update documentation.
16875
16876 2010-04-04  Bruno Haible  <bruno@clisp.org>
16877
16878         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16879         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16880
16881 2010-04-04  Bruno Haible  <bruno@clisp.org>
16882
16883         Implement nanosleep for native Windows.
16884         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16885
16886 2010-04-04  Bruno Haible  <bruno@clisp.org>
16887
16888         math: Fix some C++ test errors on Solaris 8.
16889         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16890
16891 2010-04-04  Bruno Haible  <bruno@clisp.org>
16892
16893         math: Fix some C++ test errors on Cygwin.
16894         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16895         truncl): Provide declaration if the system does not have it.
16896         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16897         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16898         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16899         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16900         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16901         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16902         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16903         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16904         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16905         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16906         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16907         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16908         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16909         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16910         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16911         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16913         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16914         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16915         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16916         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16917         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16918
16919 2010-04-04  Bruno Haible  <bruno@clisp.org>
16920
16921         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16922         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16923         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16924         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16925         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16926         * m4/isinf.m4 (gl_ISINF): Likewise.
16927         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16928
16929 2010-04-04  Bruno Haible  <bruno@clisp.org>
16930
16931         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16932         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16933
16934 2010-04-04  Bruno Haible  <bruno@clisp.org>
16935
16936         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16937         * modules/tmpfile (configure.ac): Update.
16938
16939         tmpfile: Fix C++ test error on mingw.
16940         * lib/stdio.in.h (tmpfile): New declaration.
16941         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16942         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16943         * modules/tmpfile (Depends-on): Add stdio.
16944         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16945         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16946         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16947         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16948         REPLACE_TMPFILE.
16949         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16950
16951 2010-04-04  Bruno Haible  <bruno@clisp.org>
16952
16953         ioctl: Fix C++ test error on mingw.
16954         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16955         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16956         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16957
16958 2010-04-03  Bruno Haible  <bruno@clisp.org>
16959
16960         wcwidth: Fix C++ test error on mingw.
16961         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16962         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16963         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16964
16965 2010-04-03  Bruno Haible  <bruno@clisp.org>
16966
16967         nanosleep: Fix C++ test error on mingw.
16968         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16969         * lib/time.in.h (nanosleep): Use modern idiom.
16970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16971         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16972         REPLACE_NANOSLEEP to 1.
16973         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16974         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16975
16976 2010-04-03  Bruno Haible  <bruno@clisp.org>
16977
16978         strptime: Fix C++ test error on mingw.
16979         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16980         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16981         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16982         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16983         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16984         not REPLACE_STRPTIME.
16985         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16986         REPLACE_STRPTIME.
16987
16988 2010-04-03  Bruno Haible  <bruno@clisp.org>
16989
16990         timegm: Fix C++ test error on mingw.
16991         * lib/time.in.h (timegm): Use modern idiom.
16992         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16993         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16994         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16995         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16996
16997 2010-04-03  Bruno Haible  <bruno@clisp.org>
16998
16999         timegm: Assume declaration if function exists.
17000         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17001         if it exists. Don't clobber ac_cv_func_timegm.
17002
17003 2010-04-03  Bruno Haible  <bruno@clisp.org>
17004
17005         time_r: Fix C++ test error on mingw.
17006         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17007         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17008         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17009         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17010         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17011
17012 2010-04-03  Bruno Haible  <bruno@clisp.org>
17013
17014         time_r: Minor updates.
17015         * modules/time_r (Description): Mention the provided functions.
17016         * lib/time_r.c: Don't include <string.h>.
17017         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17018         * doc/posix-functions/localtime_r.texi: Likewise.
17019
17020 2010-04-03  Bruno Haible  <bruno@clisp.org>
17021
17022         time: Fix regression introduced on 2010-03-08.
17023         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17024         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17025
17026 2010-04-03  Jim Meyering  <meyering@redhat.com>
17027
17028         maint.mk: don't silently disable project-specific syntax-check rules
17029         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17030         that they need to convert their project-specific syntax-check rules
17031         to use the new _sc_search_regexp.
17032
17033 2010-04-03  Bruno Haible  <bruno@clisp.org>
17034
17035         fchdir: Fix regression introduced on 2010-03-08.
17036         * lib/unistd.in.h (fchdir): Fix declaration.
17037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17039         REPLACE_FCHDIR.
17040         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17041         REPLACE_FCHDIR.
17042
17043 2010-04-03  Bruno Haible  <bruno@clisp.org>
17044
17045         getpagesize: Fix C++ test error on mingw.
17046         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17047         system does not declare the function.
17048         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17049         declared.
17050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17051         HAVE_DECL_GETPAGESIZE.
17052         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17053
17054 2010-04-03  Bruno Haible  <bruno@clisp.org>
17055
17056         stdio: Make C++ tests work on mingw.
17057         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17058         does not declare the function.
17059
17060 2010-04-03  Bruno Haible  <bruno@clisp.org>
17061
17062         ftello: Fix C++ test error on mingw.
17063         * lib/stdio.in.h (ftello): Use modern idiom.
17064         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17065         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17066         is missing and that it needs to be replaced.
17067         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17069         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17070
17071 2010-04-03  Bruno Haible  <bruno@clisp.org>
17072
17073         fseeko: Fix C++ test error on mingw.
17074         * lib/stdio.in.h (fseeko): Use modern idiom.
17075         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17076         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17077         is missing and that it needs to be replaced.
17078         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17080         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17081
17082 2010-04-03  Bruno Haible  <bruno@clisp.org>
17083
17084         mkstemp: Fix C++ test error on mingw.
17085         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17086         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17087         function is missing and that it needs to be replaced.
17088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17089         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17090
17091 2010-04-03  Bruno Haible  <bruno@clisp.org>
17092
17093         stpncpy: Fix C++ test error on mingw.
17094         * lib/string.in.h (stpncpy): Use modern idiom.
17095         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17096         function is missing and that it needs to be replaced.
17097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17098         REPLACE_STPNCPY.
17099         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17100
17101 2010-04-03  Bruno Haible  <bruno@clisp.org>
17102
17103         sys_stat: Fix C++ test error on mingw.
17104         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17105         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17106
17107 2010-04-03  Bruno Haible  <bruno@clisp.org>
17108
17109         pty: Update doc.
17110         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17111
17112 2010-04-03  Bruno Haible  <bruno@clisp.org>
17113
17114         unistd: Fix C++ test error on mingw.
17115         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17116
17117 2010-04-03  Bruno Haible  <bruno@clisp.org>
17118
17119         Update doc regarding mingw.
17120         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17121         * doc/glibc-functions/login_tty.texi: Likewise.
17122         * doc/glibc-functions/forkpty.texi: Likewise.
17123
17124 2010-04-03  Bruno Haible  <bruno@clisp.org>
17125
17126         stdlib: Avoid compilation failure of c-strtold on mingw.
17127         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17128
17129 2010-04-03  Bruno Haible  <bruno@clisp.org>
17130
17131         locale: Make C++ tests work on Cygwin and mingw.
17132         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17133         cannot provide the function.
17134         Reported by Simon Josefsson.
17135
17136 2010-04-03  Bruno Haible  <bruno@clisp.org>
17137
17138         localename: Port to MacOS X 10.6.
17139         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17140         memory layout of the locales in MacOS X 10.6 as well.
17141         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17142
17143 2010-04-02  Bruno Haible  <bruno@clisp.org>
17144
17145         gnulib-tool: Ensure that long-running tests are executed last.
17146         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17147         running tests after the one for the other tests.
17148
17149 2010-04-02  Bruno Haible  <bruno@clisp.org>
17150
17151         gnulib-tool: Ensure the tests in the main directory are executed first.
17152         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17153         start with the current directory.
17154
17155 2010-04-02  Bruno Haible  <bruno@clisp.org>
17156
17157         Tests for module 'havelib', moved here from GNU gettext.
17158         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17159         modifications.
17160         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17161         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17162         with modifications.
17163         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17164         modifications.
17165         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17166         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17167         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17168         with modifications.
17169         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17170         with modifications.
17171         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17172         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17173         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17174         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17175         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17176         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17177         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17178         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17179         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17180         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17181         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17182         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17183         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17184         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17185         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17186         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17187         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17188         with modifications.
17189         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17190         with modifications.
17191         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17192         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17193         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17194         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17195         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17196         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17197         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17198         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17199         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17200         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17201         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17202         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17203         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17204         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17205         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17206         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17207         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17208         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17209         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17210         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17211         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17212         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17213         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17214         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17215         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17216         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17217         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17218         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17219         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17220         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17221         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17222         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17223         * tests/havelib/rpathx/rpathx.c: New file, from
17224         gettext/autoconf-lib-link.
17225         * tests/havelib/rpathx/Makefile.am: New file, from
17226         gettext/autoconf-lib-link.
17227         * tests/havelib/rpathx/configure.ac: New file, from
17228         gettext/autoconf-lib-link with modifications.
17229         * tests/havelib/rpathy/rpathy.c: New file, from
17230         gettext/autoconf-lib-link.
17231         * tests/havelib/rpathy/Makefile.am: New file, from
17232         gettext/autoconf-lib-link.
17233         * tests/havelib/rpathy/configure.ac: New file, from
17234         gettext/autoconf-lib-link with modifications.
17235         * tests/havelib/rpathz/rpathz.c: New file, from
17236         gettext/autoconf-lib-link.
17237         * tests/havelib/rpathz/Makefile.am: New file, from
17238         gettext/autoconf-lib-link.
17239         * tests/havelib/rpathz/configure.ac: New file, from
17240         gettext/autoconf-lib-link with modifications.
17241         * tests/havelib/rpathlx/usex.c: New file, from
17242         gettext/autoconf-lib-link.
17243         * tests/havelib/rpathlx/Makefile.am: New file, from
17244         gettext/autoconf-lib-link.
17245         * tests/havelib/rpathlx/configure.ac: New file, from
17246         gettext/autoconf-lib-link with modifications.
17247         * tests/havelib/rpathly/usey.c: New file, from
17248         gettext/autoconf-lib-link.
17249         * tests/havelib/rpathly/Makefile.am: New file, from
17250         gettext/autoconf-lib-link.
17251         * tests/havelib/rpathly/configure.ac: New file, from
17252         gettext/autoconf-lib-link with modifications.
17253         * tests/havelib/rpathlz/usez.c: New file, from
17254         gettext/autoconf-lib-link.
17255         * tests/havelib/rpathlz/Makefile.am: New file, from
17256         gettext/autoconf-lib-link.
17257         * tests/havelib/rpathlz/configure.ac: New file, from
17258         gettext/autoconf-lib-link with modifications.
17259         * tests/havelib/rpathlyx/usey.c: New file, from
17260         gettext/autoconf-lib-link.
17261         * tests/havelib/rpathlyx/Makefile.am: New file, from
17262         gettext/autoconf-lib-link.
17263         * tests/havelib/rpathlyx/configure.ac: New file, from
17264         gettext/autoconf-lib-link with modifications.
17265         * tests/havelib/rpathlzyx/usez.c: New file, from
17266         gettext/autoconf-lib-link.
17267         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17268         gettext/autoconf-lib-link.
17269         * tests/havelib/rpathlzyx/configure.ac: New file, from
17270         gettext/autoconf-lib-link with modifications.
17271         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17272         with modifications.
17273
17274 2010-04-02  Bruno Haible  <bruno@clisp.org>
17275
17276         gnulib-tool: Create distributed built sources also for the tests.
17277         * gnulib-tool (func_create_testdir): Also generate distributed built
17278         sources in the tests directory.
17279
17280 2010-04-02  Bruno Haible  <bruno@clisp.org>
17281
17282         gnulib-tool: Obey user's environment variables.
17283         * gnulib-tool (func_create_testdir): When creating built sources,
17284         respect the environment variables for autoconf, automake, etc. given by
17285         the user.
17286
17287 2010-04-02  Bruno Haible  <bruno@clisp.org>
17288
17289         gnulib-tool: Provide the value of --m4-base to modules.
17290         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17291         of gl_m4_base.
17292
17293 2010-04-02  Eric Blake  <eblake@redhat.com>
17294
17295         maint.mk: fix some fallout
17296         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17297         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17298
17299 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17300
17301         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17302         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17303         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17304         (sc_cast_of_x_alloc_return_value): Likewise.
17305         (sc_cast_of_alloca_return_value): Likewise.
17306         (sc_space_tab): Likewise.
17307         (sc_prohibit_atoi_atof): Likewise.
17308         (sc_prohibit_magic_number_exit): Likewise.
17309         (sc_error_exit_success): Likewise.
17310         (sc_file_system): Likewise.
17311         (sc_prohibit_have_config_h): Likewise.
17312         (sc_require_config_h): Likewise.
17313         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17314         (sc_obsolete_symbols): Likewise.
17315         (sc_changelog): Likewise.
17316         (sc_program_name): Likewise.
17317         (sc_the_the): Likewise.
17318         (sc_trailing_blank): Likewise.
17319         (sc_two_space_separator_in_usage): Likewise.
17320         (sc_useless_cpp_parens): Likewise.
17321         (sc_GPL_version): Likewise.
17322         (sc_GFDL_version): Likewise.
17323         (sc_texinfo_acronym): Likewise.
17324         (sc_prohibit_cvs_keyword): Likewise.
17325         (sc_prohibit_stat_st_blocks): Likewise.
17326         (sc_prohibit_S_IS_definition): Likewise.
17327         (sc_redundant_const): Likewise.
17328         (sc_makefile_TAB_only_indentation): Likewise.
17329         (sc_m4_quote_check): Likewise.
17330         (sc_makefile_path_separator_check): Likewise.
17331         (sc_copyright_check): Likewise.
17332         (sc_Wundef_boolean): Likewise.
17333         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17334
17335         maint.mk: match 0 or more whitespace-before-function-call '('
17336         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17337         that have zero or two-and-more spaces between the function name
17338         and the open parenthesis.
17339         (sc_error_message_warn_fatal): Likewise.
17340         (sc_error_message_uppercase): Likewise.
17341         (sc_error_message_period): Likewise.
17342
17343 2010-03-31  Eric Blake  <eblake@redhat.com>
17344
17345         maint.mk: check for [ as well as test
17346         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17347         Based on a libvirt report by Matthias Bolte.
17348
17349         gnumakefile: don't squelch _version output
17350         * top/GNUmakefile (_version): Create one-shot dependency rather
17351         than using $(shell) when version must be regenerated.
17352         (_autoreconf): Run verbosely, by default.
17353
17354         sys_time: avoid compiler warnings
17355         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17356         unconditional, fixing regression from 2010-03-29.
17357         Reported by Simon Josefsson.
17358
17359 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17360
17361         maint.mk: s/_header_without_use/_sc_header_without_use/
17362         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17363         (sc_prohibit_assert_without_use): Use the new name.
17364         (sc_prohibit_close_stream_without_use): Likewise.
17365         (sc_prohibit_getopt_without_use): Likewise.
17366         (sc_prohibit_quotearg_without_use): Likewise.
17367         (sc_prohibit_quote_without_use): Likewise.
17368         (sc_prohibit_long_options_without_use): Likewise.
17369         (sc_prohibit_inttostr_without_use): Likewise.
17370         (sc_prohibit_ignore_value_without_use): Likewise.
17371         (sc_prohibit_error_without_use): Likewise.
17372         (sc_prohibit_xalloc_without_use): Likewise.
17373         (sc_prohibit_hash_without_use): Likewise.
17374         (sc_prohibit_hash_pjw_without_use): Likewise.
17375         (sc_prohibit_safe_read_without_use): Likewise.
17376         (sc_prohibit_argmatch_without_use): Likewise.
17377         (sc_prohibit_canonicalize_without_use): Likewise.
17378         (sc_prohibit_root_dev_ino_without_use): Likewise.
17379         (sc_prohibit_openat_without_use): Likewise.
17380         (sc_prohibit_c_ctype_without_use): Likewise.
17381         (sc_prohibit_signal_without_use): Likewise.
17382         (sc_prohibit_intprops_without_use): Likewise.
17383
17384 2010-03-30  Eric Blake  <eblake@redhat.com>
17385
17386         maint: improve module indicators
17387         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17388         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17389         columns, and avoid extra macro expansion.
17390
17391         fdopendir: work around FreeBSD bug
17392         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17393         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17394         * modules/dirent (Makefile.am): Substitute it.
17395         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17396         declaration.
17397         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17398         fix.
17399         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17400
17401 2010-03-29  Bruno Haible  <bruno@clisp.org>
17402
17403         Emit #pragma system_header after the inclusion guard, not before.
17404         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17405         guard that spans the entire file, not before. This enables an
17406         optimization in GCC's preprocessor.
17407         * lib/ctype.in.h: Likewise.
17408         * lib/dirent.in.h: Likewise.
17409         * lib/errno.in.h: Likewise.
17410         * lib/float.in.h: Likewise.
17411         * lib/getopt.in.h: Likewise.
17412         * lib/iconv.in.h: Likewise.
17413         * lib/langinfo.in.h: Likewise.
17414         * lib/locale.in.h: Likewise.
17415         * lib/math.in.h: Likewise.
17416         * lib/netdb.in.h: Likewise.
17417         * lib/netinet_in.in.h: Likewise.
17418         * lib/pty.in.h: Likewise.
17419         * lib/sched.in.h: Likewise.
17420         * lib/se-selinux.in.h: Likewise.
17421         * lib/search.in.h: Likewise.
17422         * lib/spawn.in.h: Likewise.
17423         * lib/stdarg.in.h: Likewise.
17424         * lib/stdint.in.h: Likewise.
17425         * lib/string.in.h: Likewise.
17426         * lib/strings.in.h: Likewise.
17427         * lib/sys_file.in.h: Likewise.
17428         * lib/sys_ioctl.in.h: Likewise.
17429         * lib/sys_time.in.h: Likewise.
17430         * lib/sys_times.in.h: Likewise.
17431         * lib/sys_utsname.in.h: Likewise.
17432         * lib/sys_wait.in.h: Likewise.
17433         * lib/sysexits.in.h: Likewise.
17434         * lib/wctype.in.h: Likewise.
17435
17436 2010-03-28  James Youngman  <jay@gnu.org>
17437
17438         save-cwd: don't leak a file descriptor when the caller execs.
17439         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17440         saved file descriptor.
17441         * modules/save-cwd (Depends-on): Depend on cloexec.
17442
17443 2010-03-29  Bruno Haible  <bruno@clisp.org>
17444
17445         Remove vestiges of fts-lgpl module.
17446         * lib/fts_.h: Assume GNULIB_FTS is 1.
17447         * lib/fts.c: Likewise.
17448         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17449
17450 2010-03-28  Bruno Haible  <bruno@clisp.org>
17451
17452         Fix definition of tests witness macro.
17453         * gnulib-tool (func_import): Fix definition of witness macro.
17454
17455 2010-03-28  Bruno Haible  <bruno@clisp.org>
17456
17457         Fix ioctl's protoype on glibc systems.
17458         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17459         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17460         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17461         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17462         signature. If not, arrange to replace the ioctl function.
17463         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17464         REPLACE_IOCTL.
17465         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17466         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17467         Reported by Ludovic Courtès <ludo@gnu.org>.
17468
17469 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17470
17471         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17472         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17473         made it so grep -r --include=GLOB* ... did not work.
17474
17475 2010-03-26  Jim Meyering  <meyering@redhat.com>
17476             Eric Blake  <eblake@redhat.com>
17477
17478         maint.mk: prohibit use of test's -o and -a operators
17479         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17480
17481 2010-03-28  Bruno Haible  <bruno@clisp.org>
17482
17483         Remove unused GNULIB_XYZ macro definitions.
17484         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17485         invocation.
17486
17487 2010-03-28  Bruno Haible  <bruno@clisp.org>
17488
17489         Mark privileged tests modules.
17490         * modules/idpriv-drop-tests (Status): New section.
17491         * modules/idpriv-droptemp-tests (Status): New section.
17492
17493 2010-03-28  Bruno Haible  <bruno@clisp.org>
17494
17495         Split C++ tests into separate tests modules.
17496         * modules/dirent-c++-tests: New file, extracted from
17497         modules/dirent-tests.
17498         * modules/dirent-tests: Depend on it.
17499         * modules/fcntl-h-c++-tests: New file, extracted from
17500         modules/fcntl-h-tests.
17501         * modules/fcntl-h-tests: Depend on it.
17502         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17503         * modules/glob-tests: Depend on it.
17504         * modules/iconv-h-c++-tests: New file, extracted from
17505         modules/iconv-h-tests.
17506         * modules/iconv-h-tests: Depend on it.
17507         * modules/langinfo-c++-tests: New file, extracted from
17508         modules/langinfo-tests.
17509         * modules/langinfo-tests: Depend on it.
17510         * modules/locale-c++-tests: New file, extracted from
17511         modules/locale-tests.
17512         * modules/locale-tests: Depend on it.
17513         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17514         * modules/math-tests: Depend on it.
17515         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17516         * modules/pty-tests: Depend on it.
17517         * modules/search-c++-tests: New file, extracted from
17518         modules/search-tests.
17519         * modules/search-tests: Depend on it.
17520         * modules/signal-c++-tests: New file, extracted from
17521         modules/signal-tests.
17522         * modules/signal-tests: Depend on it.
17523         * modules/spawn-c++-tests: New file, extracted from
17524         modules/spawn-tests.
17525         * modules/spawn-tests: Depend on it.
17526         * modules/stdio-c++-tests: New file, extracted from
17527         modules/stdio-tests.
17528         * modules/stdio-tests: Depend on it.
17529         * modules/stdlib-c++-tests: New file, extracted from
17530         modules/stdlib-tests.
17531         * modules/stdlib-tests: Depend on it.
17532         * modules/string-c++-tests: New file, extracted from
17533         modules/string-tests.
17534         * modules/string-tests: Depend on it.
17535         * modules/sys_ioctl-c++-tests: New file, extracted from
17536         modules/sys_ioctl-tests.
17537         * modules/sys_ioctl-tests: Depend on it.
17538         * modules/sys_select-c++-tests: New file, extracted from
17539         modules/sys_select-tests.
17540         * modules/sys_select-tests: Depend on it.
17541         * modules/sys_socket-c++-tests: New file, extracted from
17542         modules/sys_socket-tests.
17543         * modules/sys_socket-tests: Depend on it.
17544         * modules/sys_stat-c++-tests: New file, extracted from
17545         modules/sys_stat-tests.
17546         * modules/sys_stat-tests: Depend on it.
17547         * modules/sys_time-c++-tests: New file, extracted from
17548         modules/sys_time-tests.
17549         * modules/sys_time-tests: Depend on it.
17550         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17551         * modules/time-tests: Depend on it.
17552         * modules/unistd-c++-tests: New file, extracted from
17553         modules/unistd-tests.
17554         * modules/unistd-tests: Depend on it.
17555         * modules/wchar-c++-tests: New file, extracted from
17556         modules/wchar-tests.
17557         * modules/wchar-tests: Depend on it.
17558         * modules/wctype-c++-tests: New file, extracted from
17559         modules/wctype-tests.
17560         * modules/wctype-tests: Depend on it.
17561         Reported by Simon Josefsson.
17562
17563 2010-03-28  Bruno Haible  <bruno@clisp.org>
17564
17565         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17566         * gnulib-tool (func_exists_module): New function, extracted from
17567         func_verify_module.
17568         (func_verify_module): Use it.
17569         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17570         'foo' only if 'foo' exists.
17571         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17572         module.
17573
17574 2010-03-28  Bruno Haible  <bruno@clisp.org>
17575
17576         gnulib-tool: Add support for special categories of tests.
17577         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17578         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17579         (func_usage): Document them.
17580         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17581         inc_unportable_tests, inc_all_tests): New variables.
17582         (func_acceptable): Consider these variables.
17583         (func_modules_transitive_closure): Make it work when the 'Status' field
17584         consists of multiple words.
17585         (func_import): Store and restore the values of inc_cxx_tests,
17586         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17587         inc_all_tests in gnulib-comp.m4.
17588         (func_create_testdir): Set inc_all_tests to true.
17589         * doc/gnulib.texi (Extra tests modules): New section.
17590         Suggested by Jim Meyering.
17591
17592 2010-03-28  Bruno Haible  <bruno@clisp.org>
17593
17594         ansi-c++-opt: Allow turning off the C++ build by default.
17595         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17596         gl_CXX_CHOICE_DEFAULT_NO is defined.
17597         Requested by Eric Blake.
17598
17599 2010-03-28  Bruno Haible  <bruno@clisp.org>
17600
17601         unistd: Avoid #define replacements in C++ mode.
17602         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17603         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17604         setsockopt, shutdown, select): In C++, attach a warning to the function
17605         if possible, rather than #defining the symbol to a dysfunctional alias.
17606         Reported by John W. Eaton <jwe@gnu.org>.
17607
17608 2010-03-28  Bruno Haible  <bruno@clisp.org>
17609
17610         Fix link errors on mingw.
17611         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17612         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17613         $(LIBSOCKET).
17614         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17615         $(LIBSOCKET).
17616
17617 2010-03-28  Bruno Haible  <bruno@clisp.org>
17618             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17619
17620         lib-ignore: Determine different options for different compilers.
17621         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17622         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17623         Add comments.
17624         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17625         * NEWS: Mention the change.
17626
17627 2010-03-27  Bruno Haible  <bruno@clisp.org>
17628
17629         Remove unused GNULIB_XYZ macro definitions.
17630         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17631         * modules/fseek (configure.ac): Likewise.
17632         * modules/ioctl (configure.ac): Likewise.
17633         * modules/open (configure.ac): Likewise.
17634         * modules/stdlib-safer (configure.ac): Likewise.
17635
17636 2010-03-27  Bruno Haible  <bruno@clisp.org>
17637
17638         Add a remark about certain modules.
17639         * modules/malloc (Comment): New section.
17640         * modules/realloc (Comment): Likewise.
17641         * modules/sigpipe (Comment): Likewise.
17642
17643 2010-03-27  Bruno Haible  <bruno@clisp.org>
17644
17645         Resolve conflict between the two kinds of module indicators.
17646         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17647         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17648         * modules/canonicalize (configure.ac): Invoke
17649         gl_MODULE_INDICATOR_FOR_TESTS.
17650         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17651         GNULIB_XYZ.
17652         * tests/test-dirent-c++.cc: Likewise.
17653         * tests/test-dirent-safer.c: Likewise.
17654         * tests/test-dup2.c: Likewise.
17655         * tests/test-fchdir.c: Likewise.
17656         * tests/test-fcntl-h-c++.cc: Likewise.
17657         * tests/test-getopt.c: Likewise.
17658         * tests/test-getopt.h: Likewise.
17659         * tests/test-langinfo-c++.cc: Likewise.
17660         * tests/test-locale-c++.cc: Likewise.
17661         * tests/test-math-c++.cc: Likewise.
17662         * tests/test-pty-c++.cc: Likewise.
17663         * tests/test-search-c++.cc: Likewise.
17664         * tests/test-signal-c++.cc: Likewise.
17665         * tests/test-spawn-c++.cc: Likewise.
17666         * tests/test-stdio-c++.cc: Likewise.
17667         * tests/test-stdlib-c++.cc: Likewise.
17668         * tests/test-string-c++.cc: Likewise.
17669         * tests/test-sys_ioctl-c++.cc: Likewise.
17670         * tests/test-sys_select-c++.cc: Likewise.
17671         * tests/test-sys_socket-c++.cc: Likewise.
17672         * tests/test-sys_stat-c++.cc: Likewise.
17673         * tests/test-sys_time-c++.cc: Likewise.
17674         * tests/test-time-c++.cc: Likewise.
17675         * tests/test-unistd-c++.cc: Likewise.
17676         * tests/test-wchar-c++.cc: Likewise.
17677         * tests/uninorm/test-u8-nfc.c: Likewise.
17678         * tests/uninorm/test-u8-nfd.c: Likewise.
17679         * tests/uninorm/test-u8-nfkc.c: Likewise.
17680         * tests/uninorm/test-u8-nfkd.c: Likewise.
17681         * tests/uninorm/test-u16-nfc.c: Likewise.
17682         * tests/uninorm/test-u16-nfd.c: Likewise.
17683         * tests/uninorm/test-u16-nfkc.c: Likewise.
17684         * tests/uninorm/test-u16-nfkd.c: Likewise.
17685         * tests/uninorm/test-u32-nfc.c: Likewise.
17686         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17687         * tests/uninorm/test-u32-nfd.c: Likewise.
17688         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17689         * tests/uninorm/test-u32-nfkc.c: Likewise.
17690         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17691         * tests/uninorm/test-u32-nfkd.c: Likewise.
17692         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17693         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17694
17695 2010-03-27  Bruno Haible  <bruno@clisp.org>
17696
17697         Distinguish two kinds of module indicators.
17698         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17699         gl_MODULE_INDICATOR.
17700         (gl_MODULE_INDICATOR): New macro.
17701         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17702         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17703         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17704         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17705         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17706         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17707         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17708         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17709         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17710         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17711         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17712         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17714         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17715         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17716         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17717         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17718         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17719         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17720         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17721         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17722         * modules/cloexec (configure.ac): Likewise.
17723         * modules/getopt-gnu (configure.ac): Likewise.
17724         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17725         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17726         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17727         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17728
17729 2010-03-27  Bruno Haible  <bruno@clisp.org>
17730
17731         New module description field 'Comment'.
17732         * gnulib-tool: New option --extract-comment.
17733         (func_usage): Document it.
17734         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17735         (func_get_comment): New function.
17736         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17737
17738 2010-03-27  Bruno Haible  <bruno@clisp.org>
17739
17740         Addendum to 2010-02-07 commit.
17741         * gnulib-tool (func_usage): Document --extract-applicability option.
17742
17743 2010-03-27  Bruno Haible  <bruno@clisp.org>
17744
17745         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17746         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17747         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17748         rather than link errors.
17749
17750 2010-03-27  Bruno Haible  <bruno@clisp.org>
17751
17752         Avoid side effects from tests-related modules on the compilation of lib.
17753         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17754         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17755         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17756         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17757         macro.
17758         (func_import): Define a witness macro. Assign it a value that depends
17759         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17760         tests-related modules.
17761         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17762         Reported by Jim Meyering.
17763
17764 2010-03-27  Bruno Haible  <bruno@clisp.org>
17765
17766         Factorize common .m4 code.
17767         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17768         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17769         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17770         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17771         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17772         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17773         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17774         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17775         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17776         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17777         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17778         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17779         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17780         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17781         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17782         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17783         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17784         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17786         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17787         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17789         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17790         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17791         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17792         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17793         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17794         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17795         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17796         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17797         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17798         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17799
17800 2010-03-27  Bruno Haible  <bruno@clisp.org>
17801
17802         Fix a compilation error on Cygwin with g++ >= 4.3.
17803         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17804         if it is undefined or if we alias it to chmod.
17805         (lstat): Don't warn about the use of this function if it is undefined
17806         or if we alias it to stat.
17807         Reported by Simon Josefsson.
17808
17809 2010-03-27  Bruno Haible  <bruno@clisp.org>
17810
17811         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17812         * modules/getlogin (configure.ac): Update.
17813
17814         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17815         * modules/getlogin_r (configure.ac): Update.
17816
17817         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17819         * modules/inet_ntop (configure.ac): Update.
17820
17821         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17822         * modules/inet_pton (configure.ac): Update.
17823
17824         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17825         * modules/mbslen (configure.ac): Update.
17826
17827         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17828         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17829         * modules/forkpty (configure.ac): Update.
17830         * modules/openpty (configure.ac): Update.
17831
17832 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17833
17834         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17835         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17836
17837 2010-03-25  Eric Blake  <eblake@redhat.com>
17838
17839         maint: use pragma consistently across replacement headers
17840         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17841         * lib/dirent.in.h (system_header): Likewise.
17842         * lib/errno.in.h (system_header): Likewise.
17843         * lib/float.in.h (system_header): Likewise.
17844         * lib/getopt.in.h (system_header): Likewise.
17845         * lib/iconv.in.h (system_header): Likewise.
17846         * lib/inttypes.in.h (system_header): Likewise.
17847         * lib/langinfo.in.h (system_header): Likewise.
17848         * lib/locale.in.h (system_header): Likewise.
17849         * lib/math.in.h (system_header): Likewise.
17850         * lib/netdb.in.h (system_header): Likewise.
17851         * lib/netinet_in.in.h (system_header): Likewise.
17852         * lib/pty.in.h (system_header): Likewise.
17853         * lib/sched.in.h (system_header): Likewise.
17854         * lib/se-selinux.in.h (system_header): Likewise.
17855         * lib/search.in.h (system_header): Likewise.
17856         * lib/spawn.in.h (system_header): Likewise.
17857         * lib/stdarg.in.h (system_header): Likewise.
17858         * lib/stdint.in.h (system_header): Likewise.
17859         * lib/string.in.h (system_header): Likewise.
17860         * lib/strings.in.h (system_header): Likewise.
17861         * lib/sys_file.in.h (system_header): Likewise.
17862         * lib/sys_ioctl.in.h (system_header): Likewise.
17863         * lib/sys_socket.in.h (system_header): Likewise.
17864         * lib/sys_times.in.h (system_header): Likewise.
17865         * lib/sys_utsname.in.h (system_header): Likewise.
17866         * lib/sys_wait.in.h (system_header): Likewise.
17867         * lib/sysexits.in.h (system_header): Likewise.
17868         * lib/unistd.in.h (system_header): Likewise.
17869         * lib/wctype.in.h (system_header): Likewise.
17870
17871         arpa/inet: fix mingw compilation warning
17872         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17873         Reported by Matthew Bolte.
17874
17875 2010-03-25  Bruno Haible  <bruno@clisp.org>
17876
17877         Avoid collision between gnulib wrapper and libintl wrapper.
17878         * lib/printf.c (printf): Don't define if a printf wrapper is already
17879         defined in intl/printf.c.
17880         Reported by Michel Boaventura <michel@michelboaventura.com>.
17881
17882 2010-03-25  Bruno Haible  <bruno@clisp.org>
17883
17884         Use ANSI C.
17885         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17886
17887 2010-03-25  Bruno Haible  <bruno@clisp.org>
17888
17889         Minor formatting changes.
17890         * lib/acosl.c: Insert space before function argument list.
17891         * lib/argz.c: Likewise.
17892         * lib/asinl.c: Likewise.
17893         * lib/expl.c: Likewise.
17894         * lib/gen-uni-tables.c: Likewise.
17895         * lib/gettext.h: Likewise.
17896         * lib/glthread/lock.h: Likewise.
17897         * lib/tanl.c: Likewise.
17898         * lib/uniname/uniname.c: Likewise.
17899         * tests/test-idpriv-drop.c: Likewise.
17900         * tests/test-idpriv-droptemp.c: Likewise.
17901         * tests/test-lock.c: Likewise.
17902         * tests/test-tls.c: Likewise.
17903         * lib/argp-help.c: Insert space before function-like macro argument
17904         list.
17905         * lib/memcmp.c: Likewise.
17906         * tests/test-base64.c: Likewise.
17907         * lib/localename.c: Insert space before sizeof's argument list.
17908         * lib/safe-alloc.h: Likewise.
17909         * lib/file-set.h: Insert space before macro argument list.
17910         * tests/test-argp.c: Likewise.
17911         * lib/argp-namefrob.h: Insert space before function parameter list.
17912         * lib/getaddrinfo.c: Likewise.
17913         * lib/netdb.in.h: Likewise.
17914         * lib/parse-duration.h: Likewise.
17915         * lib/parse-duration.c: Likewise.
17916         * lib/poll.c: Likewise.
17917         * lib/select.c: Likewise.
17918         * lib/trim.h: Likewise.
17919         * tests/test-usleep.c: Likewise.
17920         * lib/ldexpl.c: Insert space before function parameter list and before
17921         function argument list.
17922         * lib/logl.c: Likewise.
17923         * lib/sqrtl.c: Likewise.
17924         * lib/trim.c: Likewise.
17925         * lib/cosl.c: Use GNU style indentation. Insert space before function
17926         argument list.
17927         * lib/sinl.c: Likewise.
17928         * lib/tsearch.c: Insert space after 'for'.
17929         Reported by Jim Meyering.
17930
17931 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17932
17933         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17934         config header before grepping, as it's not present before
17935         autoreconf/configure are run.  Reported by Simon Josefsson.
17936
17937 2010-03-23  Bruno Haible  <bruno@clisp.org>
17938
17939         pt_chown: Make it work with automake < 1.11.
17940         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17941         Reported by Simon Josefsson.
17942
17943 2010-03-23  Bruno Haible  <bruno@clisp.org>
17944
17945         pt_chown: Don't depend on GPLed modules.
17946         * lib/pt_chown.c: Don't include idpriv.h.
17947         (main): Don't drop privileges.
17948         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17949         Reported by Simon Josefsson.
17950
17951 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17952
17953         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17954         suggestions from karl@freefriends.org (Karl Berry).
17955
17956 2010-03-22  Eric Blake  <eblake@redhat.com>
17957
17958         gethostname: further tweaks
17959         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17960         are overriding gethostname.
17961         Suggested by Bruno Haible.
17962
17963 2010-03-21  Bruno Haible  <bruno@clisp.org>
17964
17965         Fix comments.
17966         * lib/forkpty.c (rpl_forkpty): Fix comment.
17967         * lib/openpty.c (rpl_openpty): Likewise.
17968         Reported by Eric Blake.
17969
17970 2010-03-22  Eric Blake  <eblake@redhat.com>
17971
17972         gethostname: fix build on mingw
17973         * lib/unistd.in.h (includes): Work around fact that mingw
17974         <winsock2.h> re-includes <unistd.h>, by avoiding any
17975         redeclarations if we are being included by <winsock2.h>.
17976         Reported by Matthias Bolte.
17977
17978 2010-03-21  Bruno Haible  <bruno@clisp.org>
17979
17980         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17981         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17982         modifications.
17983         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17984         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17985         provide the replacement.
17986         * modules/forkpty (Depends-on): Add openpty, login_tty.
17987         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17988         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17989         * doc/glibc-functions/forkpty.texi: More supported platforms.
17990         * config/srclist.txt: Add forkpty.c (commented).
17991
17992 2010-03-21  Bruno Haible  <bruno@clisp.org>
17993
17994         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17995         (Makefile.am): Verify that PTY_LIB is defined.
17996
17997         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17998
17999 2010-03-21  Bruno Haible  <bruno@clisp.org>
18000
18001         Tests for module 'login_tty'.
18002         * modules/login_tty-tests: New file.
18003         * tests/test-login_tty.c: New file.
18004
18005         New module 'login_tty'.
18006         * lib/login_tty.c: New file.
18007         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18008         * modules/login_tty: New file.
18009         * doc/glibc-functions/login_tty.texi: Mention the new module.
18010
18011 2010-03-21  Bruno Haible  <bruno@clisp.org>
18012
18013         login_tty: Documentation.
18014         * doc/glibc-functions/login_tty.texi: New file.
18015         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18016
18017 2010-03-21  Bruno Haible  <bruno@clisp.org>
18018
18019         pty: Consistent macro naming.
18020         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18021         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18022         * modules/pty (configure.ac): Update.
18023
18024 2010-03-21  Bruno Haible  <bruno@clisp.org>
18025
18026         Tests for openpty: Make stricter.
18027         * tests/test-openpty.c (main): Add test of canonical processing and
18028         erase.
18029         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18030
18031         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18032         * lib/openpty.c (openpty): New replacement function.
18033         * lib/pty.in.h: Include <termios.h>.
18034         (openpty): Update declaration. Add comments.
18035         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18036         is not declared, arrange to provide the replacement. Check for _getpty
18037         and posix_openpt.
18038         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18039         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18040         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18041         * modules/pty-tests (test_pty_c___LDADD): New variable.
18042         * doc/glibc-functions/openpty.texi: More supported platforms.
18043
18044 2010-03-21  Bruno Haible  <bruno@clisp.org>
18045
18046         setenv: Tweaks.
18047         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18048         the test program.
18049         * doc/posix-functions/setenv.texi: Update platforms list.
18050
18051 2010-03-21  Bruno Haible  <bruno@clisp.org>
18052
18053         New module 'unlockpt'.
18054         * lib/unlockpt.c: New file, from glibc with modifications.
18055         * m4/unlockpt.m4: New file.
18056         * modules/unlockpt: New file.
18057         * lib/stdlib.in.h (unlockpt): New declaration.
18058         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18059         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18060         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18061         HAVE_UNLOCKPT.
18062         * doc/posix-functions/unlockpt.texi: Mention the new module.
18063         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18064         * config/srclist.txt: Add unlockpt.c (commented).
18065
18066 2010-03-21  Jim Meyering  <meyering@redhat.com>
18067
18068         maint.mk: prohibit inclusion of "intprops.h" without use
18069         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18070
18071 2010-03-21  Bruno Haible  <bruno@clisp.org>
18072
18073         New module 'grantpt'.
18074         * lib/grantpt.c: New file, from glibc with modifications.
18075         * m4/grantpt.m4: New file.
18076         * modules/grantpt: New file.
18077         * lib/stdlib.in.h (grantpt): New declaration.
18078         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18079         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18080         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18081         HAVE_GRANTPT.
18082         * doc/posix-functions/grantpt.texi: Mention the new module.
18083         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18084         * config/srclist.txt: Add grantpt.c (commented).
18085
18086 2010-03-21  Bruno Haible  <bruno@clisp.org>
18087
18088         New module 'pt_chown'.
18089         * lib/pt_chown.c: New file, from glibc with modifications.
18090         * lib/pty-private.h: New file, from glibc with modifications.
18091         * modules/pt_chown: New file.
18092         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18093
18094 2010-03-21  Bruno Haible  <bruno@clisp.org>
18095
18096         Tests for module 'ptsname'.
18097         * modules/ptsname-tests: New file.
18098         * tests/test-ptsname.c: New file.
18099
18100         New module 'ptsname'.
18101         * lib/ptsname.c: New file, from glibc with modifications.
18102         * m4/ptsname.m4: New file.
18103         * modules/ptsname: New file.
18104         * lib/stdlib.in.h (ptsname): New declaration.
18105         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18106         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18107         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18108         HAVE_PTSNAME.
18109         * doc/posix-functions/ptsname.texi: Mention the new module.
18110         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18111         * config/srclist.txt: Add ptsname.c (commented).
18112
18113 2010-03-21  Bruno Haible  <bruno@clisp.org>
18114
18115         Tests for module 'ttyname_r'.
18116         * modules/ttyname_r-tests: New file.
18117         * tests/test-ttyname_r.c: New file.
18118
18119         New module 'ttyname_r'.
18120         * lib/ttyname_r.c: New file.
18121         * m4/ttyname_r.m4: New file.
18122         * modules/ttyname_r: New file.
18123         * lib/unistd.in.h (ttyname_r): New declaration.
18124         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18125         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18126         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18127         HAVE_TTYNAME_R.
18128         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18129         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18130
18131 2010-03-20  Bruno Haible  <bruno@clisp.org>
18132
18133         signal: Undefine macro definitions in C++ mode.
18134         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18135         sigfillset): Undefine macro definitions from the system header in C++
18136         mode.
18137         Reported by John W. Eaton <jwe@gnu.org>.
18138
18139 2010-03-20  Bruno Haible  <bruno@clisp.org>
18140
18141         Ensure no #include statements inside extern "C" { ... }.
18142         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18143         contain #include statements.
18144         * lib/time.in.h: Likewise.
18145
18146 2010-03-20  Bruno Haible  <bruno@clisp.org>
18147
18148         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18149         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18150         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18151         Reported by John W. Eaton <jwe@gnu.org>.
18152
18153 2010-03-20  Bruno Haible  <bruno@clisp.org>
18154
18155         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18156         Reported by Jim Meyering.
18157
18158 2010-03-20  Bruno Haible  <bruno@clisp.org>
18159
18160         pipe: Set errno upon failure.
18161         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18162         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18163         errno value in error message.
18164
18165 2010-03-20  Bruno Haible  <bruno@clisp.org>
18166             Jim Meyering  <meyering@redhat.com>
18167
18168         lchown: Avoid "unused variable" warning.
18169         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18170
18171 2010-03-20  Bruno Haible  <bruno@clisp.org>
18172
18173         Work around unlink() bug on MacOS X 10.5.6.
18174         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18175         attempting to unlink a parent directory.
18176         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18177         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18178         activate for the replacement function.
18179         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18180
18181 2010-03-20  Bruno Haible  <bruno@clisp.org>
18182
18183         Fix link errors on Solaris 8.
18184         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18185         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18186
18187 2010-03-19  Jim Meyering  <meyering@redhat.com>
18188
18189         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18190         The _LIBC implementation of build_range_exp correctly honors the
18191         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18192         However, the non-_LIBC implementation would ignore that syntax-bit
18193         flag and return REG_ERANGE unconditionally.
18194         This change makes it honor that flag.
18195         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18196         Make two pointer parameters "const".
18197         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18198         (parse_bracket_exp): Update caller.
18199
18200         regex.m4: correct the reversed range endpoint ([b-a]) test
18201         * m4/regex.m4: When requiring that [b-a] evoke failure,
18202         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18203         test pass once again for x86-based systems.
18204
18205 2010-03-19  Bruno Haible  <bruno@clisp.org>
18206
18207         scandir: Fix link error on Solaris 8.
18208         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18209         macros.
18210
18211 2010-03-19  Bruno Haible  <bruno@clisp.org>
18212
18213         getusershell: Fix documentation.
18214         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18215         module.
18216         * doc/glibc-functions/setusershell.texi: Likewise.
18217
18218         getusershell: Provide declaration, missing on Solaris 9.
18219         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18220         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18221         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18222         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18224         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18225         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18226         HAVE_GETUSERSHELL.
18227         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18228
18229 2010-03-19  Bruno Haible  <bruno@clisp.org>
18230
18231         wctype: Provide iswblank function.
18232         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18233         exists and is fine.
18234         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18235         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18236         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18237         * doc/posix-functions/iswblank.texi: Update.
18238
18239 2010-03-19  Bruno Haible  <bruno@clisp.org>
18240
18241         Tests of module 'pty' in C++ mode.
18242         * modules/pty-tests: New file.
18243         * tests/test-pty-c++.cc: New file.
18244         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18245
18246 2010-03-19  Eric Blake  <eblake@redhat.com>
18247
18248         logb: fix documentation
18249         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18250         1.5 declaration bug.
18251
18252         forkpty, openpty: prefer glibc's const-safe prototype
18253         * lib/forkpty.c (rpl_forkpty): New file.
18254         * lib/openpty.c (rpl_openpty): Likewise.
18255         * modules/forkpty (Files): Distribute it.
18256         * modules/openpty (Files): Likewise.
18257         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18258         check...
18259         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18260         replacement for for non-const BSD signature.
18261         * modules/pty (Makefile.am): Substitute witnesses.
18262         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18263         * tests/test-forkpty.c: Update signature check.
18264         * tests/test-openpty.c: Likewise.
18265         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18266         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18267
18268         forkpty, openpty: split functions into new modules
18269         * modules/pty (Makefile.am): Substitute new witnesses.
18270         (Libraries): Move library detection...
18271         * modules/forkpty: ...into new module.
18272         * modules/openpty: Another new module.
18273         * modules/pty-tests: Rename and split...
18274         * modules/forkpty-tests: ...to this...
18275         * modules/openpty-tests: ...and this.
18276         * tests/test-pty.c: Rename and split...
18277         * tests/test-forkpty.c: ...to this...
18278         * tests/test-openpty.c: ...and this.
18279         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18280         (gl_PTY): Split library searching...
18281         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18282         (gl_FORKPTY, gl_OPENPTY): New macros.
18283         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18284         * NEWS: Mention the split.
18285         * MODULES.html.sh (Misc): Document the modules.
18286         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18287         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18288
18289         pty: improve replacement header
18290         * lib/pty.in.h: New file.
18291         * modules/pty (Files): Ship it.
18292         (Makefile.am): Always build replacement.
18293         * m4/pty.m4: Rename...
18294         * m4/pty_h.m4: ...to this.
18295         (gl_PTY): Modernize setting of witness macros; update check of
18296         forkpty to take proper advantage of cache.
18297         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18298
18299         getopt: avoid compiler warning
18300         * lib/getopt.c (attribute_hidden): Remove unused macro.
18301
18302 2010-03-18  Bruno Haible  <bruno@clisp.org>
18303
18304         Fix link errors on Solaris 8.
18305         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18306         * modules/search-tests (test_search_c___LDADD): Likewise.
18307         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18308         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18309         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18310         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18311         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18312         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18313         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18314
18315 2010-03-18  Bruno Haible  <bruno@clisp.org>
18316
18317         Fix bug introduced on 2010-03-14.
18318         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18319         (gl_SPAWN_H): Require it.
18320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18321         Reported by Simon Josefsson.
18322
18323 2010-03-18  Bruno Haible  <bruno@clisp.org>
18324
18325         Fix typo introduced on 2009-12-31.
18326         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18327         posix_spawn_file_actions_adddup2.
18328
18329 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18330         and Eric Blake  <eblake@redhat.com>
18331
18332         test-vc-list-files-git: make more robust
18333         * tests/test-vc-list-files-git.sh: Unset problematic environment
18334         variables.  Chain commands together.
18335
18336 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18337
18338         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18339         `AC_CHECK_DECL' invocation.
18340
18341 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18342
18343         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18344         appears before executable statements. Suggested by Petr Sumbera
18345         <Petr.Sumbera@Sun.COM>.
18346
18347 2010-03-14  Bruno Haible  <bruno@clisp.org>
18348
18349         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18350         portability problems. Instead use a simpler test.
18351         (main): Check that invalid arguments are rejected only on Linux.
18352
18353 2010-03-14  Bruno Haible  <bruno@clisp.org>
18354
18355         Fix bug introduced on 2009-12-31.
18356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18357         gl_PREREQ_SYS_H_WINSOCK2 always.
18358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18359         SYS_SOCKET_H variable.
18360         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18361         Update comments.
18362         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18363         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18364         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18365         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18366         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18367
18368 2010-03-14  Bruno Haible  <bruno@clisp.org>
18369
18370         Fix values returned by sinl, cosl.
18371         * lib/trigl.h: Add specification comments.
18372         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18373         that combines the values from the precomputed table with the values of
18374         the Chebyshev polynomials.
18375
18376 2010-03-14  Bruno Haible  <bruno@clisp.org>
18377
18378         Fix compilation error when modules 'posix_spawn[p]' are not used.
18379         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18381
18382 2010-03-14  Bruno Haible  <bruno@clisp.org>
18383
18384         Fix compilation error on mingw when module 'time_r' is not used.
18385         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18386         is 1.
18387         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18388         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18389         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18390         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18391
18392 2010-03-14  Bruno Haible  <bruno@clisp.org>
18393
18394         Fix compilation error with Sun C.
18395         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18396         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18397         instead of GCC specific ULONG_LONG_MAX.
18398         * lib/xstrtoll.c: Likewise.
18399         * lib/xstrtoull.c: Likewise.
18400
18401 2010-03-13  Bruno Haible  <bruno@clisp.org>
18402
18403         Allow the user to disable C++ code and tests.
18404         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18405         (gl_PROG_ANSI_CXX): Require it.
18406
18407 2010-03-13  Bruno Haible  <bruno@clisp.org>
18408
18409         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18410         cases.
18411
18412 2010-03-13  Bruno Haible  <bruno@clisp.org>
18413
18414         Test that gnulib does not break the standard C++ headers.
18415         * tests/test-locale-c++2.cc: New file.
18416         * modules/locale-tests (Files): Add it.
18417         (Makefile.am): Compile it for test-locale-c++.
18418         * tests/test-math-c++2.cc: New file.
18419         * modules/math-tests (Files): Add it.
18420         (Makefile.am): Compile it for test-math-c++.
18421         * tests/test-signal-c++2.cc: New file.
18422         * modules/signal-tests (Files): Add it.
18423         (Makefile.am): Compile it for test-signal-c++.
18424         * tests/test-stdio-c++2.cc: New file.
18425         * modules/stdio-tests (Files): Add it.
18426         (Makefile.am): Compile it for test-stdio-c++.
18427         * tests/test-stdlib-c++2.cc: New file.
18428         * modules/stdlib-tests (Files): Add it.
18429         (Makefile.am): Compile it for test-stdlib-c++.
18430         * tests/test-string-c++2.cc: New file.
18431         * modules/string-tests (Files): Add it.
18432         (Makefile.am): Compile it for test-string-c++.
18433         * tests/test-time-c++2.cc: New file.
18434         * modules/time-tests (Files): Add it.
18435         (Makefile.am): Compile it for test-time-c++.
18436         Reported by John W. Eaton <jwe@gnu.org>.
18437
18438 2010-03-13  Bruno Haible  <bruno@clisp.org>
18439
18440         * gnulib-tool (func_usage): Clarify which options are available for
18441         --create-testdir and --create-megatestdir.
18442
18443 2010-03-13  Bruno Haible  <bruno@clisp.org>
18444
18445         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18446         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18447         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18448         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18449         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18450         when appropriate.
18451         Reported by Jim Meyering.
18452
18453 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18454
18455         * gnulib-tool (func_import): Explain origin of code.
18456
18457 2010-03-12  Bruno Haible  <bruno@clisp.org>
18458
18459         Fix problem with automake's definition of CXXLINK.
18460         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18461         Reported by Simon Josefsson and Ludovic Courtès.
18462
18463 2010-03-12  Bruno Haible  <bruno@clisp.org>
18464
18465         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18466         stable releases.
18467
18468 2010-03-11  Bruno Haible  <bruno@clisp.org>
18469
18470         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18471         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18472         whether the system provides one variant or multiple variants of the
18473         function.
18474         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18475         C++ compilers.
18476         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18477         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18478         Reported by Jim Meyering.
18479
18480 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18481
18482         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18483
18484 2010-03-08  Bruno Haible  <bruno@clisp.org>
18485
18486         gnulib-tool: Add support for --libtool in --create-testdir.
18487         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18488         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18489
18490 2010-03-08  Eric Blake  <eblake@redhat.com>
18491
18492         gnulib-tool.texi: mention possibility of git submodule
18493         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18494         submodules.
18495         * doc/.gitignore: Ignore another generated file.
18496
18497 2010-03-08  Karl Berry  <karl@gnu.org>
18498
18499         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18500         of committing gnulib files while skipping others.
18501
18502 2010-03-07  Bruno Haible  <bruno@clisp.org>
18503
18504         Tests of module 'wctype' in C++ mode.
18505         * tests/test-wctype-c++.cc: New file.
18506         * modules/wctype-tests (Files): Add it and tests/signature.h.
18507         (Depends-on): Add ansi-c++-opt.
18508         (Makefile.am): Arrange to compile and run test-wctype-c++.
18509
18510         Tests of module 'wchar' in C++ mode.
18511         * tests/test-wchar-c++.cc: New file.
18512         * modules/wchar-tests (Files): Add it and tests/signature.h.
18513         (Depends-on): Add ansi-c++-opt.
18514         (Makefile.am): Arrange to compile and run test-wchar-c++.
18515         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18516         gl_MODULE_INDICATOR.
18517
18518         Tests of module 'unistd' in C++ mode.
18519         * tests/test-unistd-c++.cc: New file.
18520         * modules/unistd-tests (Files): Add it and tests/signature.h.
18521         (Depends-on): Add ansi-c++-opt.
18522         (Makefile.am): Arrange to compile and run test-unistd-c++.
18523         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18524         gl_MODULE_INDICATOR.
18525
18526         Tests of module 'time' in C++ mode.
18527         * tests/test-time-c++.cc: New file.
18528         * modules/time-tests (Files): Add it and tests/signature.h.
18529         (Depends-on): Add ansi-c++-opt.
18530         (Makefile.am): Arrange to compile and run test-time-c++.
18531         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18532
18533         Tests of module 'sys_time' in C++ mode.
18534         * tests/test-sys_time-c++.cc: New file.
18535         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18536         (Depends-on): Add ansi-c++-opt.
18537         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18538         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18539         gl_MODULE_INDICATOR.
18540
18541         Tests of module 'sys_stat' in C++ mode.
18542         * tests/test-sys_stat-c++.cc: New file.
18543         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18544         (Depends-on): Add ansi-c++-opt.
18545         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18546         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18547         gl_MODULE_INDICATOR.
18548
18549         Tests of module 'sys_socket' in C++ mode.
18550         * tests/test-sys_socket-c++.cc: New file.
18551         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18552         (Depends-on): Add ansi-c++-opt.
18553         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18554         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18555         gl_MODULE_INDICATOR.
18556
18557         Tests of module 'sys_select' in C++ mode.
18558         * tests/test-sys_select-c++.cc: New file.
18559         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18560         (Depends-on): Add ansi-c++-opt.
18561         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18562         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18563         gl_MODULE_INDICATOR.
18564
18565         Tests of module 'sys_ioctl' in C++ mode.
18566         * tests/test-sys_ioctl-c++.cc: New file.
18567         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18568         (Depends-on): Add ansi-c++-opt.
18569         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18570         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18571         gl_MODULE_INDICATOR.
18572
18573         Tests of module 'string' in C++ mode.
18574         * tests/test-string-c++.cc: New file.
18575         * modules/string-tests (Files): Add it and tests/signature.h.
18576         (Depends-on): Add ansi-c++-opt.
18577         (Makefile.am): Arrange to compile and run test-string-c++.
18578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18579         gl_MODULE_INDICATOR.
18580
18581         Tests of module 'stdlib' in C++ mode.
18582         * tests/test-stdlib-c++.cc: New file.
18583         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18584         (Depends-on): Add ansi-c++-opt.
18585         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18586         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18587         gl_MODULE_INDICATOR.
18588
18589         Tests of module 'stdio' in C++ mode.
18590         * tests/test-stdio-c++.cc: New file.
18591         * modules/stdio-tests (Files): Add it and tests/signature.h.
18592         (Depends-on): Add ansi-c++-opt.
18593         (Makefile.am): Arrange to compile and run test-stdio-c++.
18594         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18595         gl_MODULE_INDICATOR.
18596
18597         Tests of module 'spawn' in C++ mode.
18598         * tests/test-spawn-c++.cc: New file.
18599         * modules/spawn-tests (Files): Add it and tests/signature.h.
18600         (Depends-on): Add ansi-c++-opt.
18601         (Makefile.am): Arrange to compile and run test-spawn-c++.
18602         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18603         gl_MODULE_INDICATOR.
18604
18605         Tests of module 'signal' in C++ mode.
18606         * tests/test-signal-c++.cc: New file.
18607         * modules/signal-tests (Files): Add it and tests/signature.h.
18608         (Depends-on): Add ansi-c++-opt.
18609         (Makefile.am): Arrange to compile and run test-signal-c++.
18610         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18611         gl_MODULE_INDICATOR.
18612
18613         Tests of module 'search' in C++ mode.
18614         * tests/test-search-c++.cc: New file.
18615         * modules/search-tests (Files): Add it and tests/signature.h.
18616         (Depends-on): Add ansi-c++-opt.
18617         (Makefile.am): Arrange to compile and run test-search-c++.
18618         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18619         gl_MODULE_INDICATOR.
18620
18621         Tests of module 'math' in C++ mode.
18622         * tests/test-math-c++.cc: New file.
18623         * modules/math-tests (Files): Add it and tests/signature.h.
18624         (Depends-on): Add ansi-c++-opt.
18625         (Makefile.am): Arrange to compile and run test-math-c++.
18626         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18627
18628         Tests of module 'locale' in C++ mode.
18629         * tests/test-locale-c++.cc: New file.
18630         * modules/locale-tests (Files): Add it and tests/signature.h.
18631         (Depends-on): Add ansi-c++-opt.
18632         (Makefile.am): Arrange to compile and run test-locale-c++.
18633         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18634         gl_MODULE_INDICATOR.
18635
18636         Tests of module 'langinfo' in C++ mode.
18637         * tests/test-langinfo-c++.cc: New file.
18638         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18639         (Depends-on): Add ansi-c++-opt.
18640         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18641         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18642         gl_MODULE_INDICATOR.
18643
18644         Tests of module 'iconv-h' in C++ mode.
18645         * tests/test-iconv-h-c++.cc: New file.
18646         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18647         (Depends-on): Add ansi-c++-opt.
18648         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18649
18650         Tests of module 'glob' in C++ mode.
18651         * tests/test-glob-c++.cc: New file.
18652         * modules/glob-tests (Files): Add it.
18653         (Depends-on): Add ansi-c++-opt.
18654         (Makefile.am): Arrange to compile and run test-glob-c++.
18655
18656         Tests of module 'fcntl-h' in C++ mode.
18657         * tests/test-fcntl-h-c++.cc: New file.
18658         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18659         (Depends-on): Add ansi-c++-opt.
18660         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18661         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18662         gl_MODULE_INDICATOR.
18663
18664         Tests of module 'dirent' in C++ mode.
18665         * tests/test-dirent-c++.cc: New file.
18666         * modules/dirent-tests (Files): Add it and tests/signature.h.
18667         (Depends-on): Add ansi-c++-opt.
18668         (Makefile.am): Arrange to compile and run test-dirent-c++.
18669         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18670         gl_MODULE_INDICATOR.
18671
18672         New module 'ansi-c++-opt'.
18673         * modules/ansi-c++-opt: New file.
18674         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18675
18676         Document C++ namespace mode.
18677         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18678
18679         wctype: Avoid #define replacements in C++ mode.
18680         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18681         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18682         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18683         In C++, define a namespaced alias symbol.
18684         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18685         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18686         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18687         rule.
18688
18689         wchar: Avoid #define replacements in C++ mode.
18690         * lib/wchar.in.h: Include c++defs.h.
18691         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18692         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18693         symbol.
18694         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18695         * modules/wchar (Depends-on): Add c++defs.
18696         (Makefile.am): Update wchar.h rule.
18697
18698         unistd: Avoid #define replacements in C++ mode.
18699         * lib/unistd.in.h: Include c++defs.h.
18700         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18701         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18702         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18703         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18704         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18705         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18706         symbol.
18707         (environ): Update.
18708         * modules/unistd (Depends-on): Add c++defs.
18709         (Makefile.am): Update unistd.h rule.
18710
18711         time: Avoid #define replacements in C++ mode.
18712         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18713         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18714         define a namespaced alias symbol.
18715         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18716         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18717         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18718         * modules/time (Depends-on): Add c++defs, warn-on-use.
18719         (Makefile.am): Update time.h rule.
18720         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18721         * modules/nanosleep (configure.ac): Likewise.
18722         * modules/strptime (configure.ac): Likewise.
18723         * modules/timegm (configure.ac): Likewise.
18724
18725         sys_time: Avoid #define replacements in C++ mode.
18726         * lib/sys_time.in.h: Include c++defs.h.
18727         (gettimeofday): In C++, define a namespaced alias symbol.
18728         * modules/sys_time (Depends-on): Add c++defs.
18729         (Makefile.am): Update sys/time.h rule.
18730
18731         sys_stat: Avoid #define replacements in C++ mode.
18732         * lib/sys_stat.in.h: Include c++defs.h.
18733         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18734         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18735         namespaced alias symbol.
18736         In C++, define a namespaced alias symbol.
18737         * modules/sys_stat (Depends-on): Add c++defs.
18738         (Makefile.am): Update sys/stat.h rule.
18739
18740         sys_socket: Avoid #define replacements in C++ mode.
18741         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18742         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18743         definitions also when the system has a <sys/socket.h>.
18744         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18745         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18746         In C++, define a namespaced alias symbol.
18747         * modules/sys_socket (Depends-on): Add c++defs.
18748         (Makefile.am): Update sys/socket.h rule.
18749
18750         sys_select: Avoid #define replacements in C++ mode.
18751         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18752         definitions also when the system has a <sys/select.h>.
18753         (select): In C++, define a namespaced alias symbol.
18754         * modules/sys_select (Depends-on): Add c++defs.
18755         (Makefile.am): Update sys/select.h rule.
18756
18757         sys_ioctl: Avoid #define replacements in C++ mode.
18758         * lib/sys_ioctl.in.h: Include c++defs.h.
18759         (ioctl): In C++, define a namespaced alias symbol.
18760         * modules/sys_ioctl (Depends-on): Add c++defs.
18761         (Makefile.am): Update sys/ioctl.h rule.
18762
18763         string: Avoid #define replacements in C++ mode.
18764         * lib/string.in.h: Include c++defs.h.
18765         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18766         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18767         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18768         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18769         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18770         * modules/string (Depends-on): Add c++defs.
18771         (Makefile.am): Update string.h rule.
18772
18773         stdlib: Avoid #define replacements in C++ mode.
18774         * lib/stdlib.in.h: Include c++defs.h.
18775         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18776         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18777         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18778         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18779         symbol.
18780         * modules/stdlib (Depends-on): Add c++defs.
18781         (Makefile.am): Update stdlib.h rule.
18782
18783         stdio: Avoid #define replacements in C++ mode.
18784         * lib/stdio.in.h: Include c++defs.h.
18785         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18786         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18787         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18788         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18789         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18790         namespaced alias symbol.
18791         * modules/stdio (Depends-on): Add c++defs.
18792         (Makefile.am): Update stdio.h rule.
18793
18794         spawn: Avoid #define replacements in C++ mode.
18795         * lib/spawn.in.h: Include c++defs.h.
18796         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18797         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18798         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18799         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18800         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18801         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18802         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18803         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18804         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18805         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18806         In C++, define a namespaced alias symbol.
18807         * modules/spawn (Depends-on): Add c++defs.
18808         (Makefile.am): Update spawn.h rule.
18809
18810         signal: Avoid #define replacements in C++ mode.
18811         * lib/signal.in.h: Include c++defs.h.
18812         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18813         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18814         namespaced alias symbol.
18815         * modules/signal (Depends-on): Add c++defs.
18816         (Makefile.am): Update signal.h rule.
18817
18818         search: Avoid #define replacements in C++ mode.
18819         * lib/search.in.h: Include c++defs.h.
18820         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18821         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18822         symbol.
18823         * modules/search (Depends-on): Add c++defs.
18824         (Makefile.am): Update search.h rule.
18825
18826         math: Avoid #define replacements in C++ mode.
18827         * lib/math.in.h: Include c++defs.h.
18828         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18829         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18830         trunc, truncl): In C++, define a namespaced alias symbol.
18831         * modules/math (Depends-on): Add c++defs.
18832         (Makefile.am): Update math.h rule.
18833
18834         locale: Avoid #define replacements in C++ mode.
18835         * lib/locale.in.h: Include c++defs.h.
18836         (duplocale): In C++, define a namespaced alias symbol.
18837         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18838         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18839         * modules/locale (Depends-on): Add c++defs.
18840         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18841
18842         langinfo: Avoid #define replacements in C++ mode.
18843         * lib/langinfo.in.h: Include c++defs.h.
18844         (nl_langinfo): In C++, define a namespaced alias symbol.
18845         * modules/langinfo (Depends-on): Add c++defs.
18846         (Makefile.am): Update langinfo.h rule.
18847
18848         iconv-h: Avoid #define replacements in C++ mode.
18849         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18850         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18851         symbol.
18852         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18853         whenever iconv is present.
18854         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18855         (Makefile.am): Update iconv.h rule.
18856
18857         glob: Avoid #define replacements in C++ mode.
18858         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18859         (_gl_glob_errfunc_fn): New type.
18860         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18861         symbol.
18862         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18863         (Makefile.am): Update glob.h rule.
18864
18865         fcntl-h: Avoid #define replacements in C++ mode.
18866         * lib/fcntl.in.h: Include c++defs.h.
18867         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18868         * modules/fcntl-h (Depends-on): Add c++defs.
18869         (Makefile.am): Update fcntl.h rule.
18870
18871         dirent: Avoid #define replacements in C++ mode.
18872         * lib/dirent.in.h: Include c++defs.h.
18873         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18874         namespaced alias symbol.
18875         (dirfd): Update declaration.
18876         * modules/dirent (Depends-on): Add c++defs.
18877         (Makefile.am): Update dirent.h rule.
18878
18879         ctype: Make it usable in C++ code.
18880         * lib/ctype.in.h: Include c++defs.h.
18881         (isblank): Declare as extern "C".
18882         * modules/ctype (Depends-on): Add c++defs.
18883         (Makefile.am): Update ctype.h rule.
18884
18885         New module 'c++defs'.
18886         * modules/c++defs: New file.
18887         * build-aux/c++defs.h: New file.
18888         Reported by John W. Eaton <jwe@gnu.org>.
18889
18890 2010-03-07  Bruno Haible  <bruno@clisp.org>
18891
18892         logb: Provide missing declaration for Cygwin.
18893         * lib/math.in.h (logb): New declaration.
18894         * m4/logb.m4: New file.
18895         * modules/logb (Files): Add m4/logb.m4.
18896         (Depends-on): Add math.
18897         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18898         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18900         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18901         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18902
18903 2010-03-07  Bruno Haible  <bruno@clisp.org>
18904
18905         Fix test-cond link error.
18906         * tests/test-cond.c: Include <stdio.h>.
18907
18908 2010-03-07  Bruno Haible  <bruno@clisp.org>
18909
18910         Fix test-dirent-safer link error.
18911         * modules/dirent-safer-tests (Makefile.am): Define
18912         test_dirent_safer_LDADD.
18913
18914 2010-03-07  Bruno Haible  <bruno@clisp.org>
18915
18916         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18917         among default module list.
18918
18919 2010-03-07  Bruno Haible  <bruno@clisp.org>
18920
18921         Fix link error on platforms with GNU libiconv.
18922         * modules/unistr/u8-strcoll-tests (Makefile): Define
18923         test_u8_strcoll_LDADD.
18924         * modules/unistr/u16-strcoll-tests (Makefile): Define
18925         test_u16_strcoll_LDADD.
18926         * modules/unistr/u32-strcoll-tests (Makefile): Define
18927         test_u32_strcoll_LDADD.
18928
18929 2010-03-07  Bruno Haible  <bruno@clisp.org>
18930
18931         Use POSIX declarations for socket functions.
18932         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18933         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18934         rpl_sendto): Change declaration to match POSIX.
18935         * lib/connect.c (rpl_connect): Likewise.
18936         * lib/accept.c (rpl_accept): Likewise.
18937         * lib/bind.c (rpl_bind): Likewise.
18938         * lib/getpeername.c (rpl_getpeername): Likewise.
18939         * lib/getsockname.c (rpl_getsockname): Likewise.
18940         * lib/recv.c (rpl_recv): Likewise.
18941         * lib/send.c (rpl_send): Likewise.
18942         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18943         * lib/sendto.c (rpl_sendto): Likewise.
18944
18945 2010-03-06  Bruno Haible  <bruno@clisp.org>
18946
18947         Clarify access, euidaccess, faccessat.
18948         * doc/posix-functions/faccessat.texi: Mention security problem under
18949         "Other problems", not "Portability problems".
18950         * doc/posix-functions/access.texi: Likewise. Mention a related security
18951         problem.
18952         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18953         * lib/euidaccess.c: Add comments about platforms.
18954         * lib/unistd.in.h (access, euidaccess): Add warnings.
18955
18956 2010-03-07  Bruno Haible  <bruno@clisp.org>
18957
18958         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18959         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18960         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18961         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18962         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18963         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18964         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18965         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18966         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18968         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18969         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18970         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18971         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18972         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18973         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18974         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18975         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18976         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18977         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18978         Likewise.
18979         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18980         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18981         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18982         Likewise.
18983         * tests/test-spawn.c (main): Make it work when
18984         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18985
18986 2010-03-07  Bruno Haible  <bruno@clisp.org>
18987
18988         Fix incorrect Makefile.am generation in German locale.
18989         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18990         Execute sed command with character range in C locale.
18991
18992 2010-03-06  Bruno Haible  <bruno@clisp.org>
18993
18994         Tests for module 'iconv-h'.
18995         * modules/iconv-h-tests: New file.
18996         * tests/test-iconv-h.c: New file.
18997
18998         New module 'iconv-h'.
18999         * modules/iconv-h: New file.
19000         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19001         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19002         (configure.ac): Remove gl_ICONV_H.
19003         (Makefile.am): Remove rule for iconv.h.
19004
19005 2010-03-06  Bruno Haible  <bruno@clisp.org>
19006
19007         More consistent naming of *.m4 files.
19008         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19009         * modules/wctype (Files): Update.
19010
19011         More consistent naming of *.m4 files.
19012         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19013         * modules/wchar (Files): Update.
19014
19015 2010-03-06  Jim Meyering  <meyering@redhat.com>
19016
19017         euidaccess: relax license to LGPLv2+
19018         * modules/euidaccess (License): Relax to LGPLv2+.
19019
19020 2010-03-06  Bruno Haible  <bruno@clisp.org>
19021
19022         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19023         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19024         (Makefile.am): Augment lib_SOURCES instead.
19025
19026 2010-03-04  Jim Meyering  <meyering@redhat.com>
19027
19028         utime: remove obsolete module
19029         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19030         unnecessary for years, and has been marked as obsolete for 10 months.
19031         * modules/utime: Remove file.
19032         * lib/utime.c: Remove file.
19033         * m4/utime.m4: Remove file.
19034         * m4/utimes-null.m4: Remove file.
19035         * doc/posix-functions/utime.texi (utime): Remove reference to
19036         the module.  Move the sole "fixed by gnulib" item into the
19037         "problems not fixed by Gnulib" list.
19038         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19039
19040 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19041
19042         * modules/exit (License): Relax license to LGPLv2+.
19043         (Status): Mark as obsolete.
19044         * NEWS: Mention deprecated 'exit' module.
19045         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19046         of now obsolete 'exit'.
19047
19048 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19049
19050         fts-lgpl: remove unused module
19051         * modules/fts-lgpl: Remove.
19052         * MODULES.html.sh (func_all_modules): Adjust.
19053         * check-module (find_included_lib_files): Adjust.
19054         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19055
19056 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19057
19058         copy-acl: enhance Solaris ACL error handling
19059         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19060         * lib/set-mode-acl.c (qset_acl): Likewise.
19061
19062 2010-03-02  Bruno Haible  <bruno@clisp.org>
19063
19064         spawn: Don't override the system defined values on FreeBSD 8.
19065         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19066         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19067         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19068         if HAVE_POSIX_SPAWN is 1.
19069         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19070
19071 2010-03-01  Bruno Haible  <bruno@clisp.org>
19072
19073         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19074         regarding Automake.
19075
19076 2010-02-25  Bruno Haible  <bruno@clisp.org>
19077
19078         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19079         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19080         setting, not afterwards.
19081         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19082
19083 2010-02-24  Eric Blake  <eblake@redhat.com>
19084
19085         bootstrap, git-version-gen: use timestamp
19086         * build-aux/git-version-gen (scriptversion): Force UTC.
19087         * build-aux/bootstrap (scriptversion): New variable.
19088
19089         bootstrap: allow older git
19090         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19091         older than 1.6.4.  Requested by the libvirt project.
19092
19093 2010-02-23  Eric Blake  <eblake@redhat.com>
19094
19095         warn-on-use: work with old autoconf
19096         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19097         AS_VAR semantics of autoconf 2.60.
19098         Reported by Bruno Haible.
19099
19100         bootstrap: improve some comments
19101         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19102         clarification comments.
19103
19104         gettimeofday: provide correct function
19105         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19106         when replacement is declared, otherwise provide gettimeofday.
19107         Reported by Michael Goffioul.
19108
19109 2010-02-23  Jim Meyering  <meyering@redhat.com>
19110
19111         lib-ignore: relax license to "unlimited", not LGPLv2+
19112         * modules/lib-ignore (License): Relax to "unlimited".
19113
19114 2010-02-23  Jim Meyering  <meyering@redhat.com>
19115
19116         lib-ignore: relax license to LGPLv2+
19117         * modules/lib-ignore (License): Relax to LGPLv2+.
19118
19119 2010-02-22  Eric Blake  <eblake@redhat.com>
19120
19121         lseek: avoid bash 3.2 broken pipe bug
19122         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19123         warning from bash 3.2.
19124         Reported by Ben Pfaff, with analysis from Bruno Haible.
19125
19126         bootstrap: support non-FSF copyright holder
19127         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19128         bootstrap.conf override of COPYRIGHT_HOLDER.
19129         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19130
19131         bootstrap: interoperate with gettext 0.14.1
19132         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19133
19134         bootstrap: allow for alternate submodule location
19135         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19136         hardcoding submodule location.
19137         (gnulib_mk): Allow direct use of Makefile.am.
19138
19139         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19140         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19141         rather than reconfiguring where the submodule points.
19142
19143         gettimeofday: restore support for platforms that lack function
19144         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19145         replacement if function is missing.
19146         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19147         * modules/sys_time (Makefile.am): Substitute it.
19148         * lib/sys_time.in.h (gettimeofday): Check it.
19149         Reported by Michael Goffioul.
19150
19151 2010-02-21  Bruno Haible  <bruno@clisp.org>
19152
19153         * lib/stdio.in.h (obstack_printf): Fix typo.
19154
19155 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19156
19157         vc-list-files: use bzr ls's -R option
19158         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19159         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19160
19161 2010-02-21  Jim Meyering  <meyering@redhat.com>
19162
19163         init.sh: fix EXEEXT shims to work also for names like test-prog
19164         * tests/init.sh: Re-exec a better shell, when needed.
19165         If the current shell lacks support for posix $(...), an init.sh-using
19166         test will now try to find a shell that supports that.  If EXEEXT is
19167         nonempty, we also require support for hyphen-in-alias-name and shell
19168         substitutions like ${var#glob}.  Failure to find such a shell results
19169         in a skipped test.
19170
19171 2010-02-21  Bruno Haible  <bruno@clisp.org>
19172
19173         Really work around around "broken pipe" error message from bash 3.2.
19174         * gnulib-tool (func_reset_sigpipe): Remove function.
19175         (echo): In bash 3.2, define to a function that uses printf.
19176         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19177
19178 2010-02-20  Bruno Haible  <bruno@clisp.org>
19179
19180         Restore support for automake 1.9.6 with autoconf 2.61.
19181         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19182         Reported by James Youngman <jay@gnu.org>.
19183
19184 2010-02-20  Bruno Haible  <bruno@clisp.org>
19185
19186         Improve *printf warning condition.
19187         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19188         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19189         and the function is overridden due to SIGPIPE emulation.
19190
19191 2010-02-20  Bruno Haible  <bruno@clisp.org>
19192
19193         * lib/stdio.in.h: Tweak comments.
19194
19195 2010-02-19  Bruno Haible  <bruno@clisp.org>
19196
19197         Make it easier to find modules. New gnulib-tool option '--find'.
19198         * gnulib-tool: New option --find.
19199         (func_usage): Document it.
19200         (func_sanitize_modulelist): New function, extracted from
19201         func_all_modules.
19202         (func_all_modules): Invoke it.
19203         * doc/gnulib-tool.texi (Which modules?): New node.
19204
19205 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19206
19207         * lib/sys_select.in.h: Provide select replacement even if
19208         sys/select.h exists on a system, for Interix.
19209
19210 2010-02-18  Jim Meyering  <meyering@redhat.com>
19211
19212         init.sh: don't use $(...) just yet
19213         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19214         to accommodate e.g., Solaris' /bin/sh.
19215
19216 2010-02-17  Bruno Haible  <bruno@clisp.org>
19217
19218         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19219         Reported by Ludovic Courtès <ludo@gnu.org>.
19220
19221 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19222
19223         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19224         linking with -lintl.
19225
19226 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19227
19228         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19229         if not provided by the system's netdb.h.  Reported by
19230         ludo@gnu.org (Ludovic Courtès).
19231
19232 2010-02-15  Jim Meyering  <meyering@redhat.com>
19233
19234         init.sh: improve portability and efficiency
19235         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19236         "dummy" in a for loop.
19237         Use '!', not '^' to select the complement of a character set used
19238         in a "case" statement.
19239         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19240         Suggestions from Eric Blake.
19241
19242         init.sh: automatically accommodate programs with the .exe suffix
19243         Automatically arrange for an invocation of "prog" to execute the
19244         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19245         may use the simpler "prog", yet still work when built on a system
19246         that requires specifying the added suffix.
19247         Do this by constructing a function named "prog" that invokes
19248         "prog.exe" for each .exe file in selected directories.
19249         * tests/init.sh (find_exe_basenames_): New function.
19250         (create_exe_shim_functions_): New function.
19251         (path_prepend_): Use it.
19252
19253         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19254         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19255         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19256
19257 2010-02-14  Jim Meyering  <meyering@redhat.com>
19258
19259         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19260         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19261         (sc_prohibit_hash_pjw_without_use): New rule.
19262
19263         maint.mk: allow the default upload destination dir to be overridden
19264         * top/maint.mk (upload_dest_dir_): Define with a default that
19265         preserves the status quo.
19266         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19267         Reported by Peter Simons.
19268
19269         maint.mk: prohibit inclusion of "hash.h" without_use
19270         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19271
19272 2010-02-10  Jim Meyering  <meyering@redhat.com>
19273
19274         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19275         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19276
19277 2010-02-09  Eric Blake  <ebb9@byu.net>
19278         and Bruno Haible  <bruno@clisp.org>
19279
19280         obstack-printf-posix: ensure declaration
19281         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19282         extracted from gl_FUNC_OBSTACK_PRINTF.
19283         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19284         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19285         Likewise.
19286         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19287         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19288         0.
19289
19290 2010-02-08  Bruno Haible  <bruno@clisp.org>
19291
19292         gnulib-tool: Fix typo in 2010-02-07 commit.
19293         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19294         Reported by Eric Blake.
19295
19296 2010-02-07  Bruno Haible  <bruno@clisp.org>
19297
19298         gnulib-tool: Fix up caching patches.
19299         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19300         option --no-cache. Use associative arrays when supported by the shell.
19301         (sed_comments): New variable.
19302         (modcache): Renamed from do_cache.
19303         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19304         abbreviate unnecessarily.
19305         (have_associative): New variable.
19306         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19307         way also for ksh and zsh.
19308         (func_init_sed_convert_to_cache_statements): New function, extracted
19309         from func_cache_lookup_module. Add support for associative arrays.
19310         Don't set the c_MODULE_cached variable here. Ignore all lines before
19311         the first field header. Remove only the final newline, not all trailing
19312         newlines. Support empty fields correctly. Limit the use of 'eval' to
19313         assignments.
19314         (func_get_description, func_get_status, func_get_notice,
19315         func_get_applicability, func_get_filelist, func_get_dependencies,
19316         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19317         func_get_automake_snippet, func_get_include_directive,
19318         func_get_link_directive, func_get_license, func_get_maintainer):
19319         Update documentation. List the unoptimized code first. Add support for
19320         associative arrays. Limit the use of 'eval' to assignments.
19321         (func_get_applicability): Undo stylistic pessimisations.
19322         (func_get_automake_snippet, func_get_include_directive): Reduce code
19323         duplication.
19324         (func_modules_transitive_closure, func_modules_add_dummy,
19325         func_modules_notice, func_modules_to_filelist, func_add_file,
19326         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19327         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19328         func_create_testdir, func_create_megatestdir): Update documentation.
19329
19330 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19331
19332         * gnulib-tool (func_cache_lookup_module): Store the module name
19333         belonging to the cache variable; error out if two different
19334         module names map to the same cache variable name.
19335
19336 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19337
19338         gnulib-tool: Make caching optional.
19339         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19340         Update matching short versions of --no-changelog.
19341         (func_usage): Update.
19342         (sed_extract_cache_prog): Renamed from ...
19343         (sed_extract_prog): ... this; revert to old extraction script.
19344         (func_get_description, func_get_status)
19345         (func_get_notice, func_get_applicability, func_get_filelist)
19346         (func_get_dependencies, func_get_autoconf_early_snippet)
19347         (func_get_autoconf_snippet, func_get_automake_snippet)
19348         (func_get_include_directive, func_get_link_directive)
19349         (func_get_license, func_get_maintainer): If $do_cache is false,
19350         use old, non-caching extraction scripts.
19351         Suggestion by Bruno Haible.
19352
19353 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19354
19355         gnulib-tool: cache module metainformation.
19356         * gnulib-tool (sed_extract_prog): Match newline before each
19357         header, and rewrite header to a shell variable suffix.
19358         (func_cache_var, func_cache_lookup_module): New functions,
19359         to turn a module name into a cache variable prefix, and to
19360         look up and cache module metainformation.
19361         (func_get_description, func_get_status)
19362         (func_get_notice, func_get_applicability, func_get_filelist)
19363         (func_get_dependencies, func_get_autoconf_early_snippet)
19364         (func_get_autoconf_snippet, func_get_automake_snippet)
19365         (func_get_include_directive, func_get_link_directive)
19366         (func_get_license, func_get_maintainer): Use
19367         func_cache_lookup_module.
19368
19369 2010-02-07  Bruno Haible  <bruno@clisp.org>
19370
19371         fnctl: Fix missing dependency.
19372         * modules/fcntl (Depends-on): Add getdtablesize.
19373         Reported by John W. Eaton <jwe@gnu.org>.
19374
19375 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19376
19377         Argp: fix recognition of short alias options.
19378
19379         * lib/argp-parse.c (convert_options): Fix improper use of
19380         `|' between character values.
19381         * tests/test-argp.c (group1_option): New alias option
19382         --read (-r).
19383         (group1_parser): Special handling for 'r'.
19384         (test15): New test case.
19385         (test_fun): Add test15.
19386         * tests/test-argp-2.sh: Update expected --help and --usage
19387         outputs.
19388
19389 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19390
19391         * tests/test-argp.c: Fix indentation.
19392
19393 2010-02-04  Eric Blake  <ebb9@byu.net>
19394
19395         gettimeofday: expose type of second argument
19396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19397         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19398         * tests/test-gettimeofday.c: Use it to silence warning.
19399         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19400         the issue.
19401
19402 2010-02-03  Jim Meyering  <meyering@redhat.com>
19403
19404         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19405         * lib/regcomp.c (TYPE_SIGNED): Define.
19406         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19407
19408         regcomp.c: avoid a new -Wshadow warning
19409         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19410
19411 2010-02-01  Jim Meyering  <meyering@redhat.com>
19412
19413         removing useless parentheses in cpp #define directives
19414         For motivation, see commit c0221df4, "define STREQ(a,b)
19415         consistently, removing useless parentheses"
19416         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19417         * lib/mountlist.c (MNT_IGNORE): Likewise.
19418         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19419
19420 2010-02-01  Eric Blake  <ebb9@byu.net>
19421
19422         sys_time: use link-warning
19423         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19424         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19425         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19426         * modules/sys_time (Depends-on): Add warn-on-use.
19427         (Makefile.am): Always build replacement.
19428         (configure.ac): Update substitutions.
19429         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19430         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19431         bother with SYS_TIME_H.
19432         * modules/gettimeofday (configure.ac): Declare indicator.
19433         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19434         in use.
19435
19436         closein-tests: silence compiler warning
19437         * tests/test-closein.c (main): Ignore fread result.
19438         * modules/closein-tests (Depends-on): Add ignore-value.
19439
19440         tests: silence warning about system return
19441         * tests/test-areadlink-with-size.c (main): Ignore system result.
19442         * tests/test-areadlink.c (main): Likewise.
19443         * tests/test-areadlinkat-with-size.c (main): Likewise.
19444         * tests/test-areadlinkat.c (main): Likewise.
19445         * tests/test-canonicalize-lgpl.c (main): Likewise.
19446         * tests/test-canonicalize.c (main): Likewise.
19447         * tests/test-chown.c (main): Likewise.
19448         * tests/test-fchownat.c (main): Likewise.
19449         * tests/test-fdutimensat.c (main): Likewise.
19450         * tests/test-fstatat.c (main): Likewise.
19451         * tests/test-futimens.c (main): Likewise.
19452         * tests/test-lchown.c (main): Likewise.
19453         * tests/test-link.c (main): Likewise.
19454         * tests/test-linkat.c (main): Likewise.
19455         * tests/test-lstat.c (main): Likewise.
19456         * tests/test-mkdir.c (main): Likewise.
19457         * tests/test-mkdirat.c (main): Likewise.
19458         * tests/test-mkfifo.c (main): Likewise.
19459         * tests/test-mkfifoat.c (main): Likewise.
19460         * tests/test-mknod.c (main): Likewise.
19461         * tests/test-readlink.c (main): Likewise.
19462         * tests/test-remove.c (main): Likewise.
19463         * tests/test-rename.c (main): Likewise.
19464         * tests/test-renameat.c (main): Likewise.
19465         * tests/test-rmdir.c (main): Likewise.
19466         * tests/test-symlink.c (main): Likewise.
19467         * tests/test-symlinkat.c (main): Likewise.
19468         * tests/test-unlink.c (main): Likewise.
19469         * tests/test-unlinkat.c (main): Likewise.
19470         * tests/test-utimens.c (main): Likewise.
19471         * tests/test-utimensat.c (main): Likewise.
19472         * modules/areadlink-tests (Depends-on): Add ignore-value.
19473         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19474         * modules/areadlinkat-tests (Depends-on): Likewise.
19475         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19476         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19477         * modules/canonicalize-tests (Depends-on): Likewise.
19478         * modules/chown-tests (Depends-on): Likewise.
19479         * modules/fdutimensat-tests (Depends-on): Likewise.
19480         * modules/futimens-tests (Depends-on): Likewise.
19481         * modules/lchown-tests (Depends-on): Likewise.
19482         * modules/link-tests (Depends-on): Likewise.
19483         * modules/linkat-tests (Depends-on): Likewise.
19484         * modules/lstat-tests (Depends-on): Likewise.
19485         * modules/mkdir-tests (Depends-on): Likewise.
19486         * modules/mkfifo-tests (Depends-on): Likewise.
19487         * modules/mkfifoat-tests (Depends-on): Likewise.
19488         * modules/mknod-tests (Depends-on): Likewise.
19489         * modules/openat-tests (Depends-on): Likewise.
19490         * modules/readlink-tests (Depends-on): Likewise.
19491         * modules/remove-tests (Depends-on): Likewise.
19492         * modules/rename-tests (Depends-on): Likewise.
19493         * modules/renameat-tests (Depends-on): Likewise.
19494         * modules/rmdir-tests (Depends-on): Likewise.
19495         * modules/symlink-tests (Depends-on): Likewise.
19496         * modules/symlinkat-tests (Depends-on): Likewise.
19497         * modules/unlink-tests (Depends-on): Likewise.
19498         * modules/utimens-tests (Depends-on): Likewise.
19499         * modules/utimensat-tests (Depends-on): Likewise.
19500
19501 2010-01-31  Bruno Haible  <bruno@clisp.org>
19502
19503         Perform the same test for many <math.h> functions.
19504         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19505         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19506         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19507         of gl_MATHFUNC.
19508         * modules/acos (configure.ac): Likewise.
19509         * modules/asin (configure.ac): Likewise.
19510         * modules/atan (configure.ac): Likewise.
19511         * modules/atan2 (configure.ac): Likewise.
19512         * modules/cbrt (configure.ac): Likewise.
19513         * modules/copysign (configure.ac): Likewise.
19514         * modules/cos (configure.ac): Likewise.
19515         * modules/cosh (configure.ac): Likewise.
19516         * modules/erf (configure.ac): Likewise.
19517         * modules/erfc (configure.ac): Likewise.
19518         * modules/exp (configure.ac): Likewise.
19519         * modules/fmod (configure.ac): Likewise.
19520         * modules/hypot (configure.ac): Likewise.
19521         * modules/j0 (configure.ac): Likewise.
19522         * modules/j1 (configure.ac): Likewise.
19523         * modules/jn (configure.ac): Likewise.
19524         * modules/lgamma (configure.ac): Likewise.
19525         * modules/log (configure.ac): Likewise.
19526         * modules/log10 (configure.ac): Likewise.
19527         * modules/log1p (configure.ac): Likewise.
19528         * modules/pow (configure.ac): Likewise.
19529         * modules/remainder (configure.ac): Likewise.
19530         * modules/sin (configure.ac): Likewise.
19531         * modules/sinh (configure.ac): Likewise.
19532         * modules/tan (configure.ac): Likewise.
19533         * modules/tanh (configure.ac): Likewise.
19534         * modules/y0 (configure.ac): Likewise.
19535         * modules/y1 (configure.ac): Likewise.
19536         * modules/yn (configure.ac): Likewise.
19537         Suggested by Paolo Bonzini.
19538
19539 2010-01-31  Bruno Haible  <bruno@clisp.org>
19540
19541         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19542
19543 2010-01-31  Bruno Haible  <bruno@clisp.org>
19544
19545         Work around getdelim() bug on FreeBSD 8.0.
19546         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19547         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19548         not work.
19549         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19550         is 1.
19551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19552         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19553         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19554         a non-zero size.
19555         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19556
19557 2010-01-31  Bruno Haible  <bruno@clisp.org>
19558
19559         Work around getline() bug on FreeBSD 8.0.
19560         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19561         and a non-zero size.
19562         * tests/test-getline.c (main): Likewise.
19563         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19564         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19565
19566 2010-01-28  Eric Blake  <ebb9@byu.net>
19567
19568         regex: fix build failure
19569         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19570         platforms.
19571
19572 2010-01-28  Jim Meyering  <meyering@redhat.com>
19573
19574         regex: do not ignore memory allocation failure
19575         * lib/regex_internal.c (create_cd_newstate): Detect
19576         re_node_set_init_copy failure.   Extracted from glibc commit
19577         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19578
19579         regex: sync more white-space changes from libc
19580         * lib/regex_internal.c: White-space only changes.
19581         * lib/regexec.c: Likewise.
19582
19583         regex: add many uses of __attribute_warn_unused_result__
19584         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19585         * lib/regexec.c: Likewise.
19586         Extracted from a messy glibc commit.
19587
19588         regcomp.c: spelling and merge-artifact from glibc
19589         * lib/regcomp.c: Merge remainder of glibc's
19590         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19591
19592         regcomp.c: sync white-space changes from glibc
19593         * lib/regcomp.c: Merge to accommodate white space
19594         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19595
19596         regcomp.c: do not ignore internal return values
19597         * lib/regcomp.c: Do not ignore internal return values.
19598         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19599         but without its white-space changes and spelling fixes.
19600
19601         regex_internal.h: define __attribute_warn_unused_result__
19602         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19603
19604         maint: add a syntax-check rule to check for vulnerable Makefile.in
19605         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19606
19607 2010-01-27  Jim Meyering  <meyering@redhat.com>
19608
19609         ncftpput-ftp: clean up spaces
19610         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19611         Remove trailing blanks.
19612
19613 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19614
19615         * build-aux/git-version-gen: Fix copyright statement.
19616         * build-aux/gnupload: Likewise.
19617         * tests/test-arcfour.c: Likewise.
19618         * tests/test-arctwo.c: Likewise.
19619         * tests/test-count-one-bits.c: Likewise.
19620         * tests/test-crc.c: Likewise.
19621         * tests/test-des.c: Likewise.
19622         * tests/test-gc-arcfour.c: Likewise.
19623         * tests/test-gc-arctwo.c: Likewise.
19624         * tests/test-gc-des.c: Likewise.
19625         * tests/test-gc-hmac-md5.c: Likewise.
19626         * tests/test-gc-hmac-sha1.c: Likewise.
19627         * tests/test-gc-md2.c: Likewise.
19628         * tests/test-gc-md4.c: Likewise.
19629         * tests/test-gc-md5.c: Likewise.
19630         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19631         * tests/test-gc-rijndael.c: Likewise.
19632         * tests/test-gc-sha1.c: Likewise.
19633         * tests/test-gc.c: Likewise.
19634         * tests/test-gethostname.c: Likewise.
19635         * tests/test-gettimeofday.c: Likewise.
19636         * tests/test-hash.c: Likewise.
19637         * tests/test-hmac-md5.c: Likewise.
19638         * tests/test-hmac-sha1.c: Likewise.
19639         * tests/test-md2.c: Likewise.
19640         * tests/test-md4.c: Likewise.
19641         * tests/test-md5.c: Likewise.
19642         * tests/test-memchr.c: Likewise.
19643         * tests/test-memchr2.c: Likewise.
19644         * tests/test-memcmp.c: Likewise.
19645         * tests/test-memmem.c: Likewise.
19646         * tests/test-memrchr.c: Likewise.
19647         * tests/test-rawmemchr.c: Likewise.
19648         * tests/test-read-file.c: Likewise.
19649         * tests/test-rijndael.c: Likewise.
19650         * tests/test-sockets.c: Likewise.
19651         * tests/test-strchrnul.c: Likewise.
19652         * tests/test-strstr.c: Likewise.
19653         * tests/test-strtod.c: Likewise.
19654         * build-aux/ncftpput-ftp: Likewise.
19655
19656 2010-01-26  Eric Blake  <ebb9@byu.net>
19657
19658         ignore-value: update recommended header name
19659         * modules/ignore-value (Include): Only use <> for headers that
19660         exist in glibc.
19661
19662 2010-01-26  Jim Meyering  <meyering@redhat.com>
19663
19664         test-userspec.c: avoid compiler warnings
19665         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19666         and "initialization discards qualifiers..." warnings.
19667         Put the first "uid" in its own scope, and make char* members "const".
19668
19669 2010-01-25  Bruno Haible  <bruno@clisp.org>
19670
19671         gnulib-tool: Make warning diagnostics consistent.
19672         * gnulib-tool (func_warning): New function.
19673         Use it everywhere where gnulib-tool produces output to stderr and it is
19674         not a fatal error.
19675
19676 2010-01-25  Bruno Haible  <bruno@clisp.org>
19677
19678         Fix test dependencies.
19679         * modules/xstrtol-tests (Depends-on): Add inttypes.
19680         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19681
19682 2010-01-25 Pádraig Brady <P@draigBrady.com>
19683
19684         syntax-check: detect incorrect boolean macro values in config.h
19685         * modules/maintainer-makefile (configure.ac): Parameterize the location
19686         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19687         The logic is from Eric Blake and the location indicated by Jim Meyering.
19688         Note the more natural CONFIG_HEADER name is prohibited by automake
19689         for backwards compatibility reasons.
19690         * top/maint.mk (sc_Wundef_boolean): New rule.
19691
19692 2010-01-25  Jim Meyering  <meyering@redhat.com>
19693
19694         bootstrap: detect MacOS 10.6's shasum, too
19695         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19696         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19697
19698 2010-01-23  Jim Meyering  <meyering@redhat.com>
19699
19700         xstrtoll: new module
19701         * modules/xstrtoll: New file.
19702         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19703         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19704         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19705         ./configure fails if you use this module and lack "long long".
19706         * modules/xstrtoll-tests: New module.
19707         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19708         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19709         new init.sh-based test framework.
19710
19711 2010-01-24  Bruno Haible  <bruno@clisp.org>
19712
19713         Tests for module 'yn'.
19714         * modules/yn-tests: New file.
19715         * tests/test-yn.c: New file.
19716
19717         Tests for module 'y1'.
19718         * modules/y1-tests: New file.
19719         * tests/test-y1.c: New file.
19720
19721         Tests for module 'y0'.
19722         * modules/y0-tests: New file.
19723         * tests/test-y0.c: New file.
19724
19725         Tests for module 'tanh'.
19726         * modules/tanh-tests: New file.
19727         * tests/test-tanh.c: New file.
19728
19729         Tests for module 'tan'.
19730         * modules/tan-tests: New file.
19731         * tests/test-tan.c: New file.
19732
19733         Tests for module 'sqrt'.
19734         * modules/sqrt-tests: New file.
19735         * tests/test-sqrt.c: New file.
19736
19737         Tests for module 'sinh'.
19738         * modules/sinh-tests: New file.
19739         * tests/test-sinh.c: New file.
19740
19741         Tests for module 'sin'.
19742         * modules/sin-tests: New file.
19743         * tests/test-sin.c: New file.
19744
19745         Tests for module 'rint'.
19746         * modules/rint-tests: New file.
19747         * tests/test-rint.c: New file.
19748
19749         Tests for module 'remainder'.
19750         * modules/remainder-tests: New file.
19751         * tests/test-remainder.c: New file.
19752
19753         Tests for module 'pow'.
19754         * modules/pow-tests: New file.
19755         * tests/test-pow.c: New file.
19756
19757         Tests for module 'nextafter'.
19758         * modules/nextafter-tests: New file.
19759         * tests/test-nextafter.c: New file.
19760
19761         Tests for module 'modf'.
19762         * modules/modf-tests: New file.
19763         * tests/test-modf.c: New file.
19764
19765         Tests for module 'logb'.
19766         * modules/logb-tests: New file.
19767         * tests/test-logb.c: New file.
19768
19769         Tests for module 'log1p'.
19770         * modules/log1p-tests: New file.
19771         * tests/test-log1p.c: New file.
19772
19773         Tests for module 'log10'.
19774         * modules/log10-tests: New file.
19775         * tests/test-log10.c: New file.
19776
19777         Tests for module 'log'.
19778         * modules/log-tests: New file.
19779         * tests/test-log.c: New file.
19780
19781         Tests for module 'lgamma'.
19782         * modules/lgamma-tests: New file.
19783         * tests/test-lgamma.c: New file.
19784
19785         Tests for module 'ldexp'.
19786         * modules/ldexp-tests: New file.
19787         * tests/test-ldexp.c: New file.
19788
19789         Tests for module 'jn'.
19790         * modules/jn-tests: New file.
19791         * tests/test-jn.c: New file.
19792
19793         Tests for module 'j1'.
19794         * modules/j1-tests: New file.
19795         * tests/test-j1.c: New file.
19796
19797         Tests for module 'j0'.
19798         * modules/j0-tests: New file.
19799         * tests/test-j0.c: New file.
19800
19801         Tests for module 'hypot'.
19802         * modules/hypot-tests: New file.
19803         * tests/test-hypot.c: New file.
19804
19805         Tests for module 'fmod'.
19806         * modules/fmod-tests: New file.
19807         * tests/test-fmod.c: New file.
19808
19809         Tests for module 'fabs'.
19810         * modules/fabs-tests: New file.
19811         * tests/test-fabs.c: New file.
19812
19813         Tests for module 'exp'.
19814         * modules/exp-tests: New file.
19815         * tests/test-exp.c: New file.
19816
19817         Tests for module 'erfc'.
19818         * modules/erfc-tests: New file.
19819         * tests/test-erfc.c: New file.
19820
19821         Tests for module 'erf'.
19822         * modules/erf-tests: New file.
19823         * tests/test-erf.c: New file.
19824
19825         Tests for module 'cosh'.
19826         * modules/cosh-tests: New file.
19827         * tests/test-cosh.c: New file.
19828
19829         Tests for module 'cos'.
19830         * modules/cos-tests: New file.
19831         * tests/test-cos.c: New file.
19832
19833         Tests for module 'copysign'.
19834         * modules/copysign-tests: New file.
19835         * tests/test-copysign.c: New file.
19836
19837         Tests for module 'cbrt'.
19838         * modules/cbrt-tests: New file.
19839         * tests/test-cbrt.c: New file.
19840
19841         Tests for module 'atan2'.
19842         * modules/atan2-tests: New file.
19843         * tests/test-atan2.c: New file.
19844
19845         Tests for module 'atan'.
19846         * modules/atan-tests: New file.
19847         * tests/test-atan.c: New file.
19848
19849         Tests for module 'asin'.
19850         * modules/asin-tests: New file.
19851         * tests/test-asin.c: New file.
19852
19853         Tests for module 'acos'.
19854         * modules/acos-tests: New file.
19855         * tests/test-acos.c: New file.
19856
19857 2010-01-24  Bruno Haible  <bruno@clisp.org>
19858
19859         Fix tests for common <math.h> functions.
19860         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19861         code snippet that references the function pointer, rather than merely
19862         calling the function. Substitute the FUNC_LIBM variable.
19863         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19864         * modules/acos (configure.ac): Likewise.
19865         * modules/asin (configure.ac): Likewise.
19866         * modules/atan (configure.ac): Likewise.
19867         * modules/atan2 (configure.ac): Likewise.
19868         * modules/cbrt (configure.ac): Likewise.
19869         * modules/copysign (configure.ac): Likewise.
19870         * modules/cos (configure.ac): Likewise.
19871         * modules/cosh (configure.ac): Likewise.
19872         * modules/erf (configure.ac): Likewise.
19873         * modules/erfc (configure.ac): Likewise.
19874         * modules/exp (configure.ac): Likewise.
19875         * modules/fabs (configure.ac): Likewise.
19876         * modules/fmod (configure.ac): Likewise.
19877         * modules/hypot (configure.ac): Likewise.
19878         * modules/j0 (configure.ac): Likewise.
19879         * modules/j1 (configure.ac): Likewise.
19880         * modules/jn (configure.ac): Likewise.
19881         * modules/ldexp (configure.ac): Likewise.
19882         * modules/lgamma (configure.ac): Likewise.
19883         * modules/log (configure.ac): Likewise.
19884         * modules/log10 (configure.ac): Likewise.
19885         * modules/log1p (configure.ac): Likewise.
19886         * modules/logb (configure.ac): Likewise.
19887         * modules/modf (configure.ac): Likewise.
19888         * modules/nextafter (configure.ac): Likewise.
19889         * modules/pow (configure.ac): Likewise.
19890         * modules/remainder (configure.ac): Likewise.
19891         * modules/rint (configure.ac): Likewise.
19892         * modules/sin (configure.ac): Likewise.
19893         * modules/sinh (configure.ac): Likewise.
19894         * modules/tan (configure.ac): Likewise.
19895         * modules/tanh (configure.ac): Likewise.
19896         * modules/y0 (configure.ac): Likewise.
19897         * modules/y1 (configure.ac): Likewise.
19898         * modules/yn (configure.ac): Likewise.
19899
19900 2010-01-24  Bruno Haible  <bruno@clisp.org>
19901
19902         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19903         * tests/test-acosl.c (x): New variable.
19904         (main): Store argument in x and fetch it from x.
19905         * tests/test-asinl.c (x): New variable.
19906         (main): Store argument in x and fetch it from x.
19907         * tests/test-atanl.c (x): New variable.
19908         (main): Store argument in x and fetch it from x.
19909         * tests/test-cosl.c (x): New variable.
19910         (main): Store argument in x and fetch it from x.
19911         * tests/test-expl.c (x): New variable.
19912         (main): Store argument in x and fetch it from x.
19913         * tests/test-logl.c (x): New variable.
19914         (main): Store argument in x and fetch it from x.
19915         * tests/test-sinl.c (x): New variable.
19916         (main): Store argument in x and fetch it from x.
19917         * tests/test-sqrtl.c (x): New variable.
19918         (main): Store argument in x and fetch it from x.
19919         * tests/test-tanl.c (x): New variable.
19920         (main): Store argument in x and fetch it from x.
19921
19922 2010-01-24  Bruno Haible  <bruno@clisp.org>
19923
19924         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19925         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19926         assignments to the initial TESTS_ENVIRONMENT.
19927         * doc/gnulib.texi (Unit test modules): Document it.
19928         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19929         TESTS_ENVIRONMENT.
19930         * modules/btowc-tests (Makefile.am): Likewise.
19931         * modules/c-stack-tests (Makefile.am): Likewise.
19932         * modules/c-strcase-tests (Makefile.am): Likewise.
19933         * modules/copy-file-tests (Makefile.am): Likewise.
19934         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19935         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19936         * modules/mbrtowc-tests (Makefile.am): Likewise.
19937         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19938         * modules/mbscasestr-tests (Makefile.am): Likewise.
19939         * modules/mbschr-tests (Makefile.am): Likewise.
19940         * modules/mbscspn-tests (Makefile.am): Likewise.
19941         * modules/mbsinit-tests (Makefile.am): Likewise.
19942         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19943         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19944         * modules/mbspbrk-tests (Makefile.am): Likewise.
19945         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19946         * modules/mbsrchr-tests (Makefile.am): Likewise.
19947         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19948         * modules/mbsspn-tests (Makefile.am): Likewise.
19949         * modules/mbsstr-tests (Makefile.am): Likewise.
19950         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19951         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19952         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19953         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19954         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19955         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19956         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19957         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19958         * modules/wcrtomb-tests (Makefile.am): Likewise.
19959         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19960         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19961         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19962         assignments from TESTS_ENVIRONMENT.
19963         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19964         augmentation.
19965         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19966         * modules/atexit-tests (Makefile.am): Likewise.
19967         * modules/binary-io-tests (Makefile.am): Likewise.
19968         * modules/closein-tests (Makefile.am): Likewise.
19969         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19970         * modules/exclude-tests (Makefile.am): Likewise.
19971         * modules/fflush-tests (Makefile.am): Likewise.
19972         * modules/fpending-tests (Makefile.am): Likewise.
19973         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19974         * modules/freadahead-tests (Makefile.am): Likewise.
19975         * modules/freadptr-tests (Makefile.am): Likewise.
19976         * modules/freadseek-tests (Makefile.am): Likewise.
19977         * modules/fseek-tests (Makefile.am): Likewise.
19978         * modules/fseeko-tests (Makefile.am): Likewise.
19979         * modules/ftell-tests (Makefile.am): Likewise.
19980         * modules/ftello-tests (Makefile.am): Likewise.
19981         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19982         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19983         * modules/lseek-tests (Makefile.am): Likewise.
19984         * modules/parse-duration-tests (Makefile.am): Likewise.
19985         * modules/perror-tests (Makefile.am): Likewise.
19986         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19987         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19988         * modules/pipe-tests (Makefile.am): Likewise.
19989         * modules/pread-tests (Makefile.am): Likewise.
19990         * modules/printf-posix-tests (Makefile.am): Likewise.
19991         * modules/select-tests (Makefile.am): Likewise.
19992         * modules/sigpipe-tests (Makefile.am): Likewise.
19993         * modules/tsearch-tests (Makefile.am): Likewise.
19994         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19995         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19996         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19997         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19998         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19999         * modules/version-etc-tests (Makefile.am): Likewise.
20000         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20001         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20002         * modules/xalloc-die-tests (Makefile.am): Likewise.
20003         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20004         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20005         * modules/xstrtol-tests (Makefile.am): Likewise.
20006         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20007         * modules/yesno-tests (Makefile.am): Likewise.
20008         Suggested by Jim Meyering.
20009
20010 2010-01-24  Bruno Haible  <bruno@clisp.org>
20011
20012         More documentation.
20013         * doc/gnulib.texi (Writing modules): New chapter.
20014         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20015         the new chapter.
20016
20017 2010-01-24  Jim Meyering  <meyering@redhat.com>
20018
20019         maint.mk: do not prepend "./" after filtering
20020         * top/maint.mk (_prepend_srcdir_prefix): New variable
20021         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20022         "./" when $(srcdir) is ".".
20023
20024         define STREQ(a,b) consistently, removing useless parentheses
20025         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20026         since the only risk is that "a" or "b" contains an unparenthesized
20027         comma, but if either did that, STREQ would have 3 or more arguments.
20028         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20029         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20030         * lib/hash-triple.c (STREQ): Likewise.
20031         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20032         * lib/getugroups.c (STREQ): Likewise.
20033
20034 2010-01-23  Jim Meyering  <meyering@redhat.com>
20035
20036         maint.mk: fix syntax-check in a non-srcdir build directory
20037         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20038         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20039
20040 2010-01-22  Jim Meyering  <meyering@redhat.com>
20041
20042         userspec: add unit tests
20043         * tests/test-userspec.c: New file.
20044         * modules/userspec-tests: Likewise.
20045
20046 2010-01-21  Jim Meyering  <meyering@redhat.com>
20047
20048         maint.mk: handle source file names containing "." robustly
20049         * top/maint.mk (_dot_escaped_srcdir): Define.
20050         (VC_LIST): Use it in LHS of sed substitution.
20051
20052 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20053
20054         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20055         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20056         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20057         from a non-srcdir build.
20058
20059 2010-01-20  Eric Blake  <ebb9@byu.net>
20060
20061         warn-on-use: use instead of link-warning
20062         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20063         * modules/unistd (Depends-on, Makefile.am): Likewise.
20064         * modules/arpa_inet (Depends-on): Replace link-warning with
20065         warn-on-use.
20066         (Makefile.am): Update rules accordingly.
20067         * modules/ctype (Depends-on, Makefile.am): Likewise.
20068         * modules/dirent (Depends-on, Makefile.am): Likewise.
20069         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20070         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20071         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20072         * modules/locale (Depends-on, Makefile.am): Likewise.
20073         * modules/math (Depends-on, Makefile.am): Likewise.
20074         * modules/search (Depends-on, Makefile.am): Likewise.
20075         * modules/signal (Depends-on, Makefile.am): Likewise.
20076         * modules/spawn (Depends-on, Makefile.am): Likewise.
20077         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20078         * modules/string (Depends-on, Makefile.am): Likewise.
20079         * modules/strings (Depends-on, Makefile.am): Likewise.
20080         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20081         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20082         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20083         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20084         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20085         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20086         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20087         * modules/wchar (Depends-on, Makefile.am): Likewise.
20088         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20089         should be poisoned.
20090         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20091         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20092         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20093         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20094         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20095         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20096         * m4/math_h.m4 (gl_MATH_H): Likewise.
20097         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20098         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20099         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20100         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20101         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20102         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20103         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20104         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20105         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20108         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20109         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20111         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20112         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20113         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20114         GL_LINK_WARNING.
20115         * lib/ctype.in.h: Likewise.
20116         * lib/dirent.in.h: Likewise.
20117         * lib/fcntl.in.h: Likewise.
20118         * lib/inttypes.in.h: Likewise.
20119         * lib/langinfo.in.h: Likewise.
20120         * lib/locale.in.h: Likewise.
20121         * lib/math.in.h: Likewise.
20122         * lib/search.in.h: Likewise.
20123         * lib/signal.in.h: Likewise.
20124         * lib/spawn.in.h: Likewise.
20125         * lib/stdio.in.h: Likewise.
20126         * lib/stdlib.in.h: Likewise.
20127         * lib/string.in.h: Likewise.
20128         * lib/strings.in.h: Likewise.
20129         * lib/sys_file.in.h: Likewise.
20130         * lib/sys_ioctl.in.h: Likewise.
20131         * lib/sys_select.in.h: Likewise.
20132         * lib/sys_socket.in.h: Likewise.
20133         * lib/sys_stat.in.h: Likewise.
20134         * lib/sys_times.in.h: Likewise.
20135         * lib/sys_utsname.in.h: Likewise.
20136         * lib/unistd.in.h: Likewise.
20137         * lib/wchar.in.h: Likewise.
20138
20139 2010-01-20  Bruno Haible  <bruno@clisp.org>
20140
20141         Avoid duplicate -lm.
20142         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20143         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20144         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20145         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20146         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20147         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20148         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20149         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20150         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20151         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20152         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20153         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20154         Reported by Paolo Bonzini.
20155
20156 2010-01-19  Bruno Haible  <bruno@clisp.org>
20157
20158         langinfo, nl_langinfo: Relicense under LGPLv2+.
20159         * modules/langinfo (License): Change to LGPLv2+.
20160         * modules/nl_langinfo (License): Likewise.
20161         Patch by David Lutterkort <lutter@redhat.com>.
20162
20163 2010-01-19  Bruno Haible  <bruno@clisp.org>
20164
20165         Avoid compilation error with cc on OSF/1 5.1.
20166         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20167         statement, not before.
20168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20169
20170 2010-01-18  Bruno Haible  <bruno@clisp.org>
20171
20172         Avoid a link error due to the __printf__ symbol.
20173         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20174         and 2.6.x.
20175         (__format__, __printf__): Remove definitions.
20176         * lib/argp-fmtstream.h: Likewise.
20177         * lib/argp.h: Likewise.
20178         * lib/error.h: Likewise.
20179         * lib/vasnprintf.h: Likewise.
20180         * lib/xprintf.h: Likewise.
20181         * lib/xvasprintf.h: Likewise.
20182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20183
20184 2010-01-18  Bruno Haible  <bruno@clisp.org>
20185
20186         Tests for module 'tanl'.
20187         * modules/tanl-tests: New file.
20188         * tests/test-tanl.c: New file.
20189
20190         Tests for module 'sqrtl'.
20191         * modules/sqrtl-tests: New file.
20192         * tests/test-sqrtl.c: New file.
20193
20194         Tests for module 'sinl'.
20195         * modules/sinl-tests: New file.
20196         * tests/test-sinl.c: New file.
20197
20198         Tests for module 'logl'.
20199         * modules/logl-tests: New file.
20200         * tests/test-logl.c: New file.
20201
20202         Tests for module 'expl'.
20203         * modules/expl-tests: New file.
20204         * tests/test-expl.c: New file.
20205
20206         Tests for module 'cosl'.
20207         * modules/cosl-tests: New file.
20208         * tests/test-cosl.c: New file.
20209
20210         Tests for module 'atanl'.
20211         * modules/atanl-tests: New file.
20212         * tests/test-atanl.c: New file.
20213
20214         Tests for module 'asinl'.
20215         * modules/asinl-tests: New file.
20216         * tests/test-asinl.c: New file.
20217
20218         Tests for module 'acosl'.
20219         * modules/acosl-tests: New file.
20220         * tests/test-acosl.c: New file.
20221
20222         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20223         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20224         tanl): Use the standard gnulib idiom.
20225         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20226         * lib/sinl.c: Likewise.
20227         * lib/tanl.c: Don't include trigl.c.
20228         (kernel_tanl): Make static.
20229         * lib/sincosl.c: Include trigl.h first.
20230         * lib/trigl.c: Likewise.
20231         * m4/acosl.m4: New file.
20232         * m4/asinl.m4: New file.
20233         * m4/atanl.m4: New file.
20234         * m4/cosl.m4: New file.
20235         * m4/expl.m4: New file.
20236         * m4/logl.m4: New file.
20237         * m4/sinl.m4: New file.
20238         * m4/sqrtl.m4: New file.
20239         * m4/tanl.m4: New file.
20240         * m4/mathl.m4: Remove file.
20241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20242         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20243         Don't initialize GNULIB_MATHL.
20244         * modules/acosl: New file.
20245         * modules/asinl: New file.
20246         * modules/atanl: New file.
20247         * modules/cosl: New file.
20248         * modules/expl: New file.
20249         * modules/logl: New file.
20250         * modules/sinl: New file.
20251         * modules/sqrtl: New file.
20252         * modules/tanl: New file.
20253         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20254         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20255         substitute GNULIB_MATHL.
20256         * modules/mathl: Rewritten.
20257         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20258         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20259         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20260         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20261         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20262         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20263         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20264         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20265         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20266
20267 2010-01-18  Bruno Haible  <bruno@clisp.org>
20268
20269         sqrt: Make gl_FUNC_SQRT requirable.
20270         * m4/sqrt.m4: New file.
20271         * modules/sqrt (Files): Add it.
20272         (configure.ac): Invoke gl_FUNC_SQRT.
20273
20274 2010-01-18  Bruno Haible  <bruno@clisp.org>
20275
20276         New modules for common <math.h> functions.
20277         * m4/mathfunc.m4: New file.
20278         * modules/acos: New file.
20279         * modules/asin: New file.
20280         * modules/atan: New file.
20281         * modules/atan2: New file.
20282         * modules/cbrt: New file.
20283         * modules/copysign: New file.
20284         * modules/cos: New file.
20285         * modules/cosh: New file.
20286         * modules/erf: New file.
20287         * modules/erfc: New file.
20288         * modules/exp: New file.
20289         * modules/fabs: New file.
20290         * modules/fmod: New file.
20291         * modules/hypot: New file.
20292         * modules/j0: New file.
20293         * modules/j1: New file.
20294         * modules/jn: New file.
20295         * modules/ldexp: New file.
20296         * modules/lgamma: New file.
20297         * modules/log: New file.
20298         * modules/log10: New file.
20299         * modules/log1p: New file.
20300         * modules/logb: New file.
20301         * modules/modf: New file.
20302         * modules/nextafter: New file.
20303         * modules/pow: New file.
20304         * modules/remainder: New file.
20305         * modules/rint: New file.
20306         * modules/sin: New file.
20307         * modules/sinh: New file.
20308         * modules/sqrt: New file.
20309         * modules/tan: New file.
20310         * modules/tanh: New file.
20311         * modules/y0: New file.
20312         * modules/y1: New file.
20313         * modules/yn: New file.
20314         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20315         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20316         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20317         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20318         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20319         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20320         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20321         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20322         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20323         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20324         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20325         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20326         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20327         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20328         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20329         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20330         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20331         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20332         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20333         * doc/posix-functions/log.texi: Mention the 'log' module.
20334         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20335         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20336         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20337         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20338         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20339         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20340         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20341         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20342         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20343         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20344         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20345         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20346         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20347         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20348         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20349         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20350
20351 2010-01-18  Jim Meyering  <meyering@redhat.com>
20352
20353         ignore-value: relax license to LGPLv2+
20354         * modules/ignore-value (License): Relax to LGPLv2+.
20355
20356         getdate: don't leak when TZ contains two or more '"'s
20357         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20358         double quote in TZ after the first one.
20359
20360         readtokens: do not leak internal token_lengths buffer
20361         * lib/readtokens.c (readtokens): Free the local, lengths,
20362         when the supplied "token_lengths" parameter is NULL.
20363
20364 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20365
20366         Fix a couple of missing LIBTHREAD link failures on AIX.
20367         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20368         $(LIBTHREAD).
20369         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20370
20371         Link test-poll against INET_PTON_LIB.
20372         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20373         for inet_pton on Solaris 10.
20374
20375 2010-01-17  Bruno Haible  <bruno@clisp.org>
20376
20377         unistdio/*-sprintf: Fix typo in module description.
20378         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20379         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20380         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20381         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20382         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20383         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20384         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20386
20387 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20388
20389         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20390         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20391         variables in shell case patterns, for AIX and HP-UX ksh.
20392
20393         Split large sed scripts, for HP-UX sed.
20394         * modules/stdio: Split sed scripts around 50 sed commands,
20395         to avoid HP-UX limit of 99 commands, in the near future.
20396         * modules/string: Likewise.
20397         * modules/unistd: Likewise.
20398
20399         gnulib-tool: avoid writing in the current directory.
20400         * gnulib-tool (func_emit_lib_Makefile_am)
20401         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20402         not in the current directory, so concurrent gnulib-tool
20403         instances do not interfere.
20404
20405 2010-01-16  Jim Meyering  <meyering@redhat.com>
20406
20407         doc: update users.txt
20408         * users.txt: Add grep.
20409         (diffutils, gzip): Update URLs.
20410
20411 2010-01-12  Bruno Haible  <bruno@clisp.org>
20412
20413         posix_spawn: Avoid test failure on Cygwin.
20414         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20415         characters.
20416         Reported by Simon Josefsson.
20417
20418 2010-01-12  Bruno Haible  <bruno@clisp.org>
20419
20420         * tests/test-cond.c (main): When skipping the test, show the reason.
20421
20422 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20423
20424         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20425
20426 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20427
20428         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20429         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20430
20431 2010-01-12  Eric Blake  <ebb9@byu.net>
20432
20433         build: guarantee AS_VAR_IF
20434         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20435         (gl_AS_VAR_IF): Move...
20436         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20437         Reported by Simon Josefsson.
20438
20439 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20440
20441         * lib/stdio.in.h: Fix typo.
20442
20443 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20444
20445         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20446         libgpg-error.
20447
20448 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20449
20450         * tests/test-xalloc-die.sh: Use $EXEEXT.
20451
20452 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20453             Bruno Haible  <bruno@clisp.org>
20454
20455         getlogin, getlogin_r: Avoid test failure.
20456         * tests/test-getlogin.c: Include <stdio.h>.
20457         (main): Skip the test when the function fails because stdin is not a
20458         tty.
20459         * tests/test-getlogin_r.c: Include <stdio.h>.
20460         (main): Skip the test when the function fails because stdin is not a
20461         tty.
20462
20463 2010-01-11  Eric Blake  <ebb9@byu.net>
20464
20465         tests: avoid more large file warnings
20466         * tests/test-fflush.c: Avoid warning about ftell use.
20467         * tests/test-fseek.c: Avoid warning about fseek use.
20468
20469 2010-01-10  Bruno Haible  <bruno@clisp.org>
20470
20471         nproc: Work better on Linux when /proc and /sys are not mounted.
20472         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20473         as lower bound when, on glibc/Linux systems,
20474         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20475         Suggested by Pádraig Brady <P@draigbrady.com>.
20476         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20477
20478         nproc: Refactor.
20479         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20480         extracted from num_processors.
20481         (num_processors): Call it.
20482
20483 2010-01-11  Jim Meyering  <meyering@redhat.com>
20484
20485         utimecmp: avoid new warning from upcoming gcc-4.5.0
20486         * lib/utimecmp.c (BILLION): Define using #define rather than an
20487         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20488
20489 2010-01-11  Eric Blake  <ebb9@byu.net>
20490
20491         math: add portability warnings for classification macros
20492         * modules/math (Depends-on): Add warn-on-use.
20493         (Makefile.am): Provide new substitutions.
20494         * m4/math_h.m4 (gl_MATH_H): Require inline.
20495         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20496         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20497         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20498         implement warnings.
20499
20500         unistd: warn on use of environ without module
20501         * modules/unistd (Depends-on): Add warn-on-use.
20502         (Makefile.am): Provide new substitutions.
20503         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20504         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20505
20506         stdio: warn on suspicious uses
20507         * modules/stdio (Depends-on): Add warn-on-use.
20508         (Makefile.am): Provide new substitutions.
20509         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20510         fseeko.
20511         * lib/stdio.in.h (gets): Always warn on use.
20512         (fseek, ftell): Adjust when warnings are issued, and honor
20513         _GL_NO_LARGE_FILES as a way to silence the warning.
20514         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20515         any warning about large file offsets.
20516         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20517         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20518         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20519         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20520         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20521         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20522         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20523         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20524
20525         warn-on-use: new module
20526         * modules/warn-on-use: New file.
20527         * build-aux/warn-on-use.h: Likewise.
20528         * m4/warn-on-use.m4: Likewise.
20529         * MODULES.html.sh (Support for building): Mention it.
20530
20531 2010-01-10  Bruno Haible  <bruno@clisp.org>
20532
20533         Tests for module 'unistr/u32-strdup'.
20534         * modules/unistr/u32-strdup-tests: New file.
20535         * tests/unistr/test-u32-strdup.c: New file.
20536
20537         Tests for module 'unistr/u16-strdup'.
20538         * modules/unistr/u16-strdup-tests: New file.
20539         * tests/unistr/test-u16-strdup.c: New file.
20540
20541         Tests for module 'unistr/u8-strdup'.
20542         * modules/unistr/u8-strdup-tests: New file.
20543         * tests/unistr/test-u8-strdup.c: New file.
20544         * tests/unistr/test-strdup.h: New file.
20545
20546         Tests for module 'unistr/u32-strncmp'.
20547         * modules/unistr/u32-strncmp-tests: New file.
20548         * tests/unistr/test-u32-strncmp.c: New file.
20549
20550         Tests for module 'unistr/u16-strncmp'.
20551         * modules/unistr/u16-strncmp-tests: New file.
20552         * tests/unistr/test-u16-strncmp.c: New file.
20553
20554         Tests for module 'unistr/u8-strncmp'.
20555         * modules/unistr/u8-strncmp-tests: New file.
20556         * tests/unistr/test-u8-strncmp.c: New file.
20557         * tests/unistr/test-strncmp.h: New file.
20558
20559         Tests for module 'unistr/u32-strcoll'.
20560         * modules/unistr/u32-strcoll-tests: New file.
20561         * tests/unistr/test-u32-strcoll.c: New file.
20562
20563         Tests for module 'unistr/u16-strcoll'.
20564         * modules/unistr/u16-strcoll-tests: New file.
20565         * tests/unistr/test-u16-strcoll.c: New file.
20566
20567         Tests for module 'unistr/u8-strcoll'.
20568         * modules/unistr/u8-strcoll-tests: New file.
20569         * tests/unistr/test-u8-strcoll.c: New file.
20570
20571         Tests for module 'unistr/u32-strcmp'.
20572         * modules/unistr/u32-strcmp-tests: New file.
20573         * tests/unistr/test-u32-strcmp.c: New file.
20574         * tests/unistr/test-u32-strcmp.h: New file.
20575
20576         Tests for module 'unistr/u16-strcmp'.
20577         * modules/unistr/u16-strcmp-tests: New file.
20578         * tests/unistr/test-u16-strcmp.c: New file.
20579         * tests/unistr/test-u16-strcmp.h: New file.
20580
20581         Tests for module 'unistr/u8-strcmp'.
20582         * modules/unistr/u8-strcmp-tests: New file.
20583         * tests/unistr/test-u8-strcmp.c: New file.
20584         * tests/unistr/test-u8-strcmp.h: New file.
20585         * tests/unistr/test-strcmp.h: New file.
20586
20587         Tests for module 'unistr/u32-strncat'.
20588         * modules/unistr/u32-strncat-tests: New file.
20589         * tests/unistr/test-u32-strncat.c: New file.
20590
20591         Tests for module 'unistr/u16-strncat'.
20592         * modules/unistr/u16-strncat-tests: New file.
20593         * tests/unistr/test-u16-strncat.c: New file.
20594
20595         Tests for module 'unistr/u8-strncat'.
20596         * modules/unistr/u8-strncat-tests: New file.
20597         * tests/unistr/test-u8-strncat.c: New file.
20598         * tests/unistr/test-strncat.h: New file.
20599
20600         Tests for module 'unistr/u32-strcat'.
20601         * modules/unistr/u32-strcat-tests: New file.
20602         * tests/unistr/test-u32-strcat.c: New file.
20603
20604         Tests for module 'unistr/u16-strcat'.
20605         * modules/unistr/u16-strcat-tests: New file.
20606         * tests/unistr/test-u16-strcat.c: New file.
20607
20608         Tests for module 'unistr/u8-strcat'.
20609         * modules/unistr/u8-strcat-tests: New file.
20610         * tests/unistr/test-u8-strcat.c: New file.
20611         * tests/unistr/test-strcat.h: New file.
20612
20613         Tests for module 'unistr/u32-stpncpy'.
20614         * modules/unistr/u32-stpncpy-tests: New file.
20615         * tests/unistr/test-u32-stpncpy.c: New file.
20616
20617         Tests for module 'unistr/u16-stpncpy'.
20618         * modules/unistr/u16-stpncpy-tests: New file.
20619         * tests/unistr/test-u16-stpncpy.c: New file.
20620
20621         Tests for module 'unistr/u8-stpncpy'.
20622         * modules/unistr/u8-stpncpy-tests: New file.
20623         * tests/unistr/test-u8-stpncpy.c: New file.
20624         * tests/unistr/test-stpncpy.h: New file.
20625
20626         Tests for module 'unistr/u32-strncpy'.
20627         * modules/unistr/u32-strncpy-tests: New file.
20628         * tests/unistr/test-u32-strncpy.c: New file.
20629
20630         Tests for module 'unistr/u16-strncpy'.
20631         * modules/unistr/u16-strncpy-tests: New file.
20632         * tests/unistr/test-u16-strncpy.c: New file.
20633
20634         Tests for module 'unistr/u8-strncpy'.
20635         * modules/unistr/u8-strncpy-tests: New file.
20636         * tests/unistr/test-u8-strncpy.c: New file.
20637         * tests/unistr/test-strncpy.h: New file.
20638
20639         Tests for module 'unistr/u32-stpcpy'.
20640         * modules/unistr/u32-stpcpy-tests: New file.
20641         * tests/unistr/test-u32-stpcpy.c: New file.
20642
20643         Tests for module 'unistr/u16-stpcpy'.
20644         * modules/unistr/u16-stpcpy-tests: New file.
20645         * tests/unistr/test-u16-stpcpy.c: New file.
20646
20647         Tests for module 'unistr/u8-stpcpy'.
20648         * modules/unistr/u8-stpcpy-tests: New file.
20649         * tests/unistr/test-u8-stpcpy.c: New file.
20650         * tests/unistr/test-stpcpy.h: New file.
20651
20652         Tests for module 'unistr/u32-strcpy'.
20653         * modules/unistr/u32-strcpy-tests: New file.
20654         * tests/unistr/test-u32-strcpy.c: New file.
20655
20656         Tests for module 'unistr/u16-strcpy'.
20657         * modules/unistr/u16-strcpy-tests: New file.
20658         * tests/unistr/test-u16-strcpy.c: New file.
20659
20660         Tests for module 'unistr/u8-strcpy'.
20661         * modules/unistr/u8-strcpy-tests: New file.
20662         * tests/unistr/test-u8-strcpy.c: New file.
20663         * tests/unistr/test-strcpy.h: New file.
20664
20665         Tests for module 'unistr/u32-strnlen'.
20666         * modules/unistr/u32-strnlen-tests: New file.
20667         * tests/unistr/test-u32-strnlen.c: New file.
20668
20669         Tests for module 'unistr/u16-strnlen'.
20670         * modules/unistr/u16-strnlen-tests: New file.
20671         * tests/unistr/test-u16-strnlen.c: New file.
20672
20673         Tests for module 'unistr/u8-strnlen'.
20674         * modules/unistr/u8-strnlen-tests: New file.
20675         * tests/unistr/test-u8-strnlen.c: New file.
20676         * tests/unistr/test-strnlen.h: New file.
20677
20678         Tests for module 'unistr/u32-strlen'.
20679         * modules/unistr/u32-strlen-tests: New file.
20680         * tests/unistr/test-u32-strlen.c: New file.
20681
20682         Tests for module 'unistr/u16-strlen'.
20683         * modules/unistr/u16-strlen-tests: New file.
20684         * tests/unistr/test-u16-strlen.c: New file.
20685
20686         Tests for module 'unistr/u8-strlen'.
20687         * modules/unistr/u8-strlen-tests: New file.
20688         * tests/unistr/test-u8-strlen.c: New file.
20689
20690         Tests for module 'unistr/u32-prev'.
20691         * modules/unistr/u32-prev-tests: New file.
20692         * tests/unistr/test-u32-prev.c: New file.
20693
20694         Tests for module 'unistr/u16-prev'.
20695         * modules/unistr/u16-prev-tests: New file.
20696         * tests/unistr/test-u16-prev.c: New file.
20697
20698         Tests for module 'unistr/u8-prev'.
20699         * modules/unistr/u8-prev-tests: New file.
20700         * tests/unistr/test-u8-prev.c: New file.
20701
20702         Tests for module 'unistr/u32-next'.
20703         * modules/unistr/u32-next-tests: New file.
20704         * tests/unistr/test-u32-next.c: New file.
20705
20706         Tests for module 'unistr/u16-next'.
20707         * modules/unistr/u16-next-tests: New file.
20708         * tests/unistr/test-u16-next.c: New file.
20709
20710         Tests for module 'unistr/u8-next'.
20711         * modules/unistr/u8-next-tests: New file.
20712         * tests/unistr/test-u8-next.c: New file.
20713
20714         Tests for module 'unistr/u32-strmbtouc'.
20715         * modules/unistr/u32-strmbtouc-tests: New file.
20716         * tests/unistr/test-u32-strmbtouc.c: New file.
20717
20718         Tests for module 'unistr/u16-strmbtouc'.
20719         * modules/unistr/u16-strmbtouc-tests: New file.
20720         * tests/unistr/test-u16-strmbtouc.c: New file.
20721
20722         Tests for module 'unistr/u8-strmbtouc'.
20723         * modules/unistr/u8-strmbtouc-tests: New file.
20724         * tests/unistr/test-u8-strmbtouc.c: New file.
20725
20726         Tests for module 'unistr/u32-strmblen'.
20727         * modules/unistr/u32-strmblen-tests: New file.
20728         * tests/unistr/test-u32-strmblen.c: New file.
20729
20730         Tests for module 'unistr/u16-strmblen'.
20731         * modules/unistr/u16-strmblen-tests: New file.
20732         * tests/unistr/test-u16-strmblen.c: New file.
20733
20734         Tests for module 'unistr/u8-strmblen'.
20735         * modules/unistr/u8-strmblen-tests: New file.
20736         * tests/unistr/test-u8-strmblen.c: New file.
20737
20738         Tests for module 'unistr/u32-cpy-alloc'.
20739         * modules/unistr/u32-cpy-alloc-tests: New file.
20740         * tests/unistr/test-u32-cpy-alloc.c: New file.
20741
20742         Tests for module 'unistr/u16-cpy-alloc'.
20743         * modules/unistr/u16-cpy-alloc-tests: New file.
20744         * tests/unistr/test-u16-cpy-alloc.c: New file.
20745
20746         Tests for module 'unistr/u8-cpy-alloc'.
20747         * modules/unistr/u8-cpy-alloc-tests: New file.
20748         * tests/unistr/test-u8-cpy-alloc.c: New file.
20749         * tests/unistr/test-cpy-alloc.h: New file.
20750
20751         Tests for module 'unistr/u32-mbsnlen'.
20752         * modules/unistr/u32-mbsnlen-tests: New file.
20753         * tests/unistr/test-u32-mbsnlen.c: New file.
20754
20755         Tests for module 'unistr/u16-mbsnlen'.
20756         * modules/unistr/u16-mbsnlen-tests: New file.
20757         * tests/unistr/test-u16-mbsnlen.c: New file.
20758
20759         Tests for module 'unistr/u8-mbsnlen'.
20760         * modules/unistr/u8-mbsnlen-tests: New file.
20761         * tests/unistr/test-u8-mbsnlen.c: New file.
20762
20763         Tests for module 'unistr/u32-chr'.
20764         * modules/unistr/u32-chr-tests: New file.
20765         * tests/unistr/test-u32-chr.c: New file.
20766
20767         Tests for module 'unistr/u16-chr'.
20768         * modules/unistr/u16-chr-tests: New file.
20769         * tests/unistr/test-u16-chr.c: New file.
20770
20771         Tests for module 'unistr/u8-chr'.
20772         * modules/unistr/u8-chr-tests: New file.
20773         * tests/unistr/test-u8-chr.c: New file.
20774         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20775
20776         Tests for module 'unistr/u32-cmp2'.
20777         * modules/unistr/u32-cmp2-tests: New file.
20778         * tests/unistr/test-u32-cmp2.c: New file.
20779
20780         Tests for module 'unistr/u16-cmp2'.
20781         * modules/unistr/u16-cmp2-tests: New file.
20782         * tests/unistr/test-u16-cmp2.c: New file.
20783
20784         Tests for module 'unistr/u8-cmp2'.
20785         * modules/unistr/u8-cmp2-tests: New file.
20786         * tests/unistr/test-u8-cmp2.c: New file.
20787         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20788
20789         Tests for module 'unistr/u32-cmp'.
20790         * modules/unistr/u32-cmp-tests: New file.
20791         * tests/unistr/test-u32-cmp.c: New file.
20792
20793         Tests for module 'unistr/u16-cmp'.
20794         * modules/unistr/u16-cmp-tests: New file.
20795         * tests/unistr/test-u16-cmp.c: New file.
20796
20797         Tests for module 'unistr/u8-cmp'.
20798         * modules/unistr/u8-cmp-tests: New file.
20799         * tests/unistr/test-u8-cmp.c: New file.
20800         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20801
20802         Tests for module 'unistr/u32-set'.
20803         * modules/unistr/u32-set-tests: New file.
20804         * tests/unistr/test-u32-set.c: New file.
20805
20806         Tests for module 'unistr/u16-set'.
20807         * modules/unistr/u16-set-tests: New file.
20808         * tests/unistr/test-u16-set.c: New file.
20809
20810         Tests for module 'unistr/u8-set'.
20811         * modules/unistr/u8-set-tests: New file.
20812         * tests/unistr/test-u8-set.c: New file.
20813         * tests/unistr/test-set.h: New file.
20814
20815         Tests for module 'unistr/u32-move'.
20816         * modules/unistr/u32-move-tests: New file.
20817         * tests/unistr/test-u32-move.c: New file.
20818
20819         Tests for module 'unistr/u16-move'.
20820         * modules/unistr/u16-move-tests: New file.
20821         * tests/unistr/test-u16-move.c: New file.
20822
20823         Tests for module 'unistr/u8-move'.
20824         * modules/unistr/u8-move-tests: New file.
20825         * tests/unistr/test-u8-move.c: New file.
20826         * tests/unistr/test-move.h: New file.
20827
20828         Tests for module 'unistr/u32-cpy'.
20829         * modules/unistr/u32-cpy-tests: New file.
20830         * tests/unistr/test-u32-cpy.c: New file.
20831
20832         Tests for module 'unistr/u16-cpy'.
20833         * modules/unistr/u16-cpy-tests: New file.
20834         * tests/unistr/test-u16-cpy.c: New file.
20835
20836         Tests for module 'unistr/u8-cpy'.
20837         * modules/unistr/u8-cpy-tests: New file.
20838         * tests/unistr/test-u8-cpy.c: New file.
20839         * tests/unistr/test-cpy.h: New file.
20840
20841 2010-01-09  Bruno Haible  <bruno@clisp.org>
20842
20843         Tests for module 'unistr/u32-uctomb'.
20844         * modules/unistr/u32-uctomb-tests: New file.
20845         * tests/unistr/test-u32-uctomb.c: New file.
20846
20847         Tests for module 'unistr/u16-uctomb'.
20848         * modules/unistr/u16-uctomb-tests: New file.
20849         * tests/unistr/test-u16-uctomb.c: New file.
20850
20851         Tests for module 'unistr/u8-uctomb'.
20852         * modules/unistr/u8-uctomb-tests: New file.
20853         * tests/unistr/test-u8-uctomb.c: New file.
20854
20855         Tests for module 'unistr/u32-mbtoucr'.
20856         * modules/unistr/u32-mbtoucr-tests: New file.
20857         * tests/unistr/test-u32-mbtoucr.c: New file.
20858
20859         Tests for module 'unistr/u16-mbtoucr'.
20860         * modules/unistr/u16-mbtoucr-tests: New file.
20861         * tests/unistr/test-u16-mbtoucr.c: New file.
20862
20863         Tests for module 'unistr/u8-mbtoucr'.
20864         * modules/unistr/u8-mbtoucr-tests: New file.
20865         * tests/unistr/test-u8-mbtoucr.c: New file.
20866
20867         Tests for module 'unistr/u32-mbtouc'.
20868         * modules/unistr/u32-mbtouc-tests: New file.
20869         * tests/unistr/test-u32-mbtouc.c: New file.
20870
20871         Tests for module 'unistr/u16-mbtouc'.
20872         * modules/unistr/u16-mbtouc-tests: New file.
20873         * tests/unistr/test-u16-mbtouc.c: New file.
20874
20875         Tests for module 'unistr/u8-mbtouc'.
20876         * modules/unistr/u8-mbtouc-tests: New file.
20877         * tests/unistr/test-u8-mbtouc.c: New file.
20878
20879         Tests for module 'unistr/u32-mbtouc-unsafe'.
20880         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20881         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20882         * tests/unistr/test-u32-mbtouc.h: New file.
20883
20884         Tests for module 'unistr/u16-mbtouc-unsafe'.
20885         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20886         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20887         * tests/unistr/test-u16-mbtouc.h: New file.
20888
20889         Tests for module 'unistr/u8-mbtouc-unsafe'.
20890         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20891         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20892         * tests/unistr/test-u8-mbtouc.h: New file.
20893
20894         Tests for module 'unistr/u32-mblen'.
20895         * modules/unistr/u32-mblen-tests: New file.
20896         * tests/unistr/test-u32-mblen.c: New file.
20897
20898         Tests for module 'unistr/u16-mblen'.
20899         * modules/unistr/u16-mblen-tests: New file.
20900         * tests/unistr/test-u16-mblen.c: New file.
20901
20902         Tests for module 'unistr/u8-mblen'.
20903         * modules/unistr/u8-mblen-tests: New file.
20904         * tests/unistr/test-u8-mblen.c: New file.
20905
20906         Tests for module 'unistr/u32-to-u16'.
20907         * modules/unistr/u32-to-u16-tests: New file.
20908         * tests/unistr/test-u32-to-u16.c: New file.
20909
20910         Tests for module 'unistr/u32-to-u8'.
20911         * modules/unistr/u32-to-u8-tests: New file.
20912         * tests/unistr/test-u32-to-u8.c: New file.
20913
20914         Tests for module 'unistr/u16-to-u32'.
20915         * modules/unistr/u16-to-u32-tests: New file.
20916         * tests/unistr/test-u16-to-u32.c: New file.
20917
20918         Tests for module 'unistr/u16-to-u8'.
20919         * modules/unistr/u16-to-u8-tests: New file.
20920         * tests/unistr/test-u16-to-u8.c: New file.
20921
20922         Tests for module 'unistr/u8-to-u32'.
20923         * modules/unistr/u8-to-u32-tests: New file.
20924         * tests/unistr/test-u8-to-u32.c: New file.
20925
20926         Tests for module 'unistr/u8-to-u16'.
20927         * modules/unistr/u8-to-u16-tests: New file.
20928         * tests/unistr/test-u8-to-u16.c: New file.
20929
20930         Tests for module 'unistr/u32-check'.
20931         * modules/unistr/u32-check-tests: New file.
20932         * tests/unistr/test-u32-check.c: New file.
20933
20934         Tests for module 'unistr/u16-check'.
20935         * modules/unistr/u16-check-tests: New file.
20936         * tests/unistr/test-u16-check.c: New file.
20937
20938         Tests for module 'unistr/u8-check'.
20939         * modules/unistr/u8-check-tests: New file.
20940         * tests/unistr/test-u8-check.c: New file.
20941
20942         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20943         (category_equals): New function.
20944         (main): Add more tests.
20945         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20946
20947         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20948
20949 2010-01-10  Bruno Haible  <bruno@clisp.org>
20950
20951         unistr/u*-strcoll: Try harder to distinguish different strings.
20952         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20953         compare s1 and s2 to see if they are different.
20954
20955 2010-01-10  Bruno Haible  <bruno@clisp.org>
20956
20957         unistr/u*-stpncpy: Fix the return value.
20958         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20959         description of the return value consistent with stpncpy in glibc.
20960         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20961         written non-NUL unit.
20962
20963 2010-01-10  Bruno Haible  <bruno@clisp.org>
20964
20965         unistr/u*-next: Add missing dependencies.
20966         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20967         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20968         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20969
20970 2010-01-10  Bruno Haible  <bruno@clisp.org>
20971
20972         unistr/u8-mbsnlen: Fix return value for incomplete character.
20973         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20974         u8_mblen.
20975         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20976         Remove unistr/u8-mblen.
20977         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20978         u16_mblen.
20979         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20980         Remove unistr/u16-mblen.
20981
20982 2010-01-10  Bruno Haible  <bruno@clisp.org>
20983
20984         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20985         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20986         Reported by Brian Gough <bjg@gnu.org> and
20987         Chris Clayton <chris2553@googlemail.com> via
20988         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20989
20990 2010-01-09  Bruno Haible  <bruno@clisp.org>
20991
20992         unistr/u16-to-u32: Reject invalid input.
20993         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20994         u16_mbtouc.
20995         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20996         Remove unistr/u16-mbtouc.
20997
20998         unistr/u16-to-u8: Reject invalid input.
20999         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21000         u16_mbtouc.
21001         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21002         Remove unistr/u16-mbtouc.
21003
21004         unistr/u8-to-u32: Reject invalid input.
21005         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21006         u8_mbtouc.
21007         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21008         Remove unistr/u8-mbtouc.
21009
21010         unistr/u8-to-u16: Reject invalid input.
21011         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21012         u8_mbtouc.
21013         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21014         Remove unistr/u8-mbtouc.
21015
21016 2010-01-09  Bruno Haible  <bruno@clisp.org>
21017
21018         Tests for module 'getlogin'.
21019         * modules/getlogin-tests: New file.
21020         * tests/test-getlogin.c: New file.
21021
21022         New module 'getlogin'.
21023         * lib/unistd.in.h (getlogin): New declaration.
21024         * lib/getlogin.c: New file.
21025         * m4/getlogin.m4: New file.
21026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21027         HAVE_GETLOGIN.
21028         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21029         HAVE_GETLOGIN.
21030         * modules/getlogin: New file.
21031         * doc/posix-functions/getlogin.texi: Mention the new module.
21032         Reported by John W. Eaton <jwe@gnu.org>.
21033
21034 2010-01-09  Bruno Haible  <bruno@clisp.org>
21035
21036         getlogin_r: Support for native Windows.
21037         * lib/getlogin_r.c: Include <windows.h>
21038         (getlogin_r): Implement for native Windows.
21039         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21040         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21041         via John W. Eaton <jwe@gnu.org>.
21042
21043 2010-01-09  Bruno Haible  <bruno@clisp.org>
21044
21045         getlogin_r: Small fixes.
21046         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21047         succeeds.
21048         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21049         before testing whether getlogin_r is declared. No need to set
21050         HAVE_DECL_GETLOGIN_R to 1.
21051         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21052
21053 2010-01-09  Bruno Haible  <bruno@clisp.org>
21054
21055         * lib/unistd.in.h (getlogin_r): Add comment.
21056
21057 2010-01-09  Bruno Haible  <bruno@clisp.org>
21058
21059         Tests for module 'getlogin_r'.
21060         * modules/getlogin_r-tests: New file.
21061         * tests/test-getlogin_r.c: New file.
21062
21063 2010-01-09  Jim Meyering  <meyering@redhat.com>
21064
21065         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21066         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21067         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21068
21069 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21070
21071         * lib/dup2.c (rpl_dup2): Improve comment.
21072
21073 2010-01-08  Eric Blake  <ebb9@byu.net>
21074
21075         maint.mk: allow packages to add makefile @@ exceptions
21076         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21077         (sc_makefile_check): Rename...
21078         (sc_makefile_at_at_check): ...to this, and use hook.
21079
21080         dup2: work around mingw bug
21081         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21082         Reported by Simon Josefsson.
21083
21084 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21085
21086         glob: Fix C++ compilation.
21087         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21088         C++.
21089
21090 2010-01-07  Bruno Haible  <bruno@clisp.org>
21091
21092         Fix indentation of wctype.in.h, broken since 2007-01-06.
21093         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21094
21095 2010-01-07  Bruno Haible  <bruno@clisp.org>
21096
21097         mbslen: Avoid collision with system function.
21098         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21099         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21100         * m4/mbslen.m4: New file.
21101         * modules/mbslen (Files): Add it.
21102         (configure.ac): Invoke gl_MBSLEN.
21103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21104         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21105         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21106         via Ian Beckwith <ianb@erislabs.net>.
21107
21108 2010-01-07  Bruno Haible  <bruno@clisp.org>
21109
21110         dirent: Document the last fix.
21111         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21112
21113 2010-01-07  Bruno Haible  <bruno@clisp.org>
21114
21115         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21116         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21117         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21118         va_list are defined.
21119         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21120         Reported by Eric Blake.
21121
21122 2010-01-07  Bruno Haible  <bruno@clisp.org>
21123
21124         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21125         * modules/xlist (Depends-on): Add 'list',
21126         * modules/xoset (Depends-on): Add 'oset'.
21127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21128
21129 2010-01-07  Bruno Haible  <bruno@clisp.org>
21130
21131         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21132         * doc/posix-functions/strncasecmp.texi: Likewise.
21133
21134 2010-01-07  Bruno Haible  <bruno@clisp.org>
21135
21136         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21137
21138 2010-01-07  John W. Eaton  <jwe@octave.org>
21139
21140         wctype: allow C++ use
21141         * lib/wctype.in.h: Add extern "C" block for C++.
21142
21143 2010-01-06  Eric Blake  <ebb9@byu.net>
21144
21145         maint.mk: detect incorrect GFDL usage
21146         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21147
21148 2010-01-06  Jim Meyering  <meyering@redhat.com>
21149         and Eric Blake  <ebb9@byu.net>
21150
21151         maint.mk: ignore multi-line copyright in NEWS
21152         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21153
21154 2010-01-06  Eric Blake  <ebb9@byu.net>
21155
21156         select: add missing dependency
21157         * modules/select-tests (Depends-on): Move sockets dependency...
21158         * modules/select (Depends-on): ...here.
21159         Reported by Ian Beckwith.
21160
21161         doc: regenerate INSTALL
21162         * doc/INSTALL: Reflect recent autoconf update.
21163         * doc/INSTALL.ISO: Likewise.
21164         * doc/INSTALL.UTF-8: Likewise.
21165
21166         pread: fix compilation on glibc
21167         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21168         Reported by Ralf Wildenhues.
21169
21170         dirent: fix test failure
21171         * lib/dirent.in.h (includes): Guarantee ino_t.
21172         Reported by Ralf Wildenhues.
21173
21174 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21175
21176         linkat, renameat: avoid bad free
21177         * lib/at-func2.c (at_func2): Fix typo.
21178         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21179
21180 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21181
21182         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21183         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21184         to avoid failure of symlink test later.
21185
21186 2010-01-06  Eric Blake  <ebb9@byu.net>
21187
21188         stdio, unistd: guarantee ssize_t
21189         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21190         2008 are exposed when needed.
21191         * lib/stdio.in.h (includes): Likewise.
21192         Reported by Ralf Wildenhues.
21193
21194 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21195
21196         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21197         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21198         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21199
21200 2010-01-06  Jim Meyering  <meyering@redhat.com>
21201
21202         readtokens: this module *does* require xalloc.h
21203         It uses only functions that were omitted by the old syntax-check rule.
21204         * lib/readtokens.c: Include "xalloc.h" once again.
21205         * modules/readtokens (Depends-on): Add xalloc.
21206         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21207
21208 2010-01-05  Eric Blake  <ebb9@byu.net>
21209
21210         maint: support 'make announcement' from a VPATH build
21211         * top/maint.mk (announcement): Look for correct NEWS file.
21212
21213 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21214
21215         utimens (fdutimens): ignore a negative FD, per contract
21216         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21217         when we have a valid file descriptor.  Otherwise, using a brand
21218         new glibc (with just-patched futimens that now fails with EBADF)
21219         would cause this function to fail with ENOSYS.
21220         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21221         See also http://bugzilla.redhat.com/552320.
21222
21223 2010-01-05  Eric Blake  <ebb9@byu.net>
21224
21225         strcase: document what it provides
21226         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21227         gnulib module.
21228         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21229         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21230
21231 2010-01-05  Jim Meyering  <meyering@redhat.com>
21232
21233         maint: remove useless inclusions of "xalloc.h"
21234         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21235         * lib/readtokens.c: Likewise.
21236         * lib/same.c: Likewise.
21237         * modules/getloadavg (Depends-on): Remove xalloc.
21238         * modules/readtokens: Likewise.
21239         * modules/same: Likewise.
21240
21241         maint.mk: include 4 more function names in alloca.h-checking regexp
21242         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21243         regexp.  Before, we would give a false-positive (saying alloca.h
21244         is included unnecessarily) when the only uses involved omitted symbols.
21245
21246         xalloc.h: use consistent formatting
21247         * lib/xalloc.h: Move declarations to start in the first column.
21248
21249 2010-01-05  Eric Blake  <ebb9@byu.net>
21250
21251         mkdir: avoid xalloc
21252         * lib/mkdir.c (includes): Drop unused header.
21253         Reported by John W. Eaton.
21254
21255 2010-01-04  Jim Meyering  <meyering@redhat.com>
21256
21257         nl_langinfo: avoid configure-time syntax error
21258         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21259         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21260         the empty string.  Don't let that provoke a shell syntax error.
21261
21262         regcomp, regexec, fnmatch: avoid array bounds read error
21263         * lib/regcomp.c (build_equiv_class): From glibc:
21264         Use only the low 24 bits of a findidx return value as an index
21265         into the weights array.  Patch by Ulrich Drepper:
21266         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21267         * lib/regexec.c (check_node_accept_bytes): Likewise.
21268         * lib/fnmatch_loop.c (FCT): Likewise.
21269
21270         regcomp: skip collseq lookup when there are no rules
21271         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21272         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21273
21274         regcomp: recognize ill-formed { } expressions
21275         * lib/regcomp.c (parse_dup_op): From glibc:
21276         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21277
21278         regcomp: fix typo in comment
21279         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21280         s/satisfy/satisfies/.
21281
21282         regcomp: sync from glibc: remove dead store
21283         * lib/regcomp.c (duplicate_node_closure): Remove useless
21284         search_duplicated_node call and dead store.
21285
21286         regcomp: sync from glibc; always use nl_langinfo
21287         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21288         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21289         * modules/regex (Depends-on): Add nl_langinfo.
21290
21291 2010-01-04  Eric Blake  <ebb9@byu.net>
21292
21293         fdopendir: fix configure test
21294         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21295
21296 2010-01-01  Bruno Haible  <bruno@clisp.org>
21297
21298         wchar: Remove unused configure check.
21299         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21300
21301 2010-01-01  Eric Blake  <ebb9@byu.net>
21302
21303         headers: make check of system header explicit
21304         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21305         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21306         ourselves.
21307         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21309         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21310         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21311         internals.
21312         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21313         missing.
21314         Suggested by Bruno Haible.
21315
21316 2010-01-01  Jim Meyering  <meyering@redhat.com>
21317
21318         ChangeLog: tweak to eliminate unnecessary copyright line
21319         * ChangeLog: Remove a copyright line that was mistakenly updated
21320         by today's update-copyright run.  Reported by Eric Blake.
21321
21322         test-update-copyright: don't let envvar setting cause test failure
21323         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21324
21325 2010-01-01  Bruno Haible  <bruno@clisp.org>
21326
21327         localename: Avoid gcc warning.
21328         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21329         function if it is not used.
21330
21331 2010-01-01  Jim Meyering  <meyering@redhat.com>
21332
21333         update nearly all FSF copyright year lists to include 2010
21334         Use the same procedure as for 2009, outlined in
21335         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21336
21337         version-etc: set COPYRIGHT_YEAR to 2010
21338         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21339
21340 2009-12-31  Eric Blake  <ebb9@byu.net>
21341
21342         doc: correct availability of cygwin 1.5.x getopt
21343         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21344         variables.
21345         * doc/posix-functions/opterr.texi (opterr): Likewise.
21346         * doc/posix-functions/optind.texi (optind): Likewise.
21347         * doc/posix-functions/optopt.texi (optopt): Likewise.
21348         * doc/posix-functions/tzname.texi (tzname): Likewise.
21349
21350         openat: update maintainer
21351         * modules/openat (Maintainer): Add myself.
21352
21353         utimens: avoid shadowing warning
21354         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21355         buffers into one, to avoid shadowing, as well as avoiding a
21356         redundant stat.
21357         Reported by Jim Meyering.
21358
21359         test-dup2: avoid compiler warning
21360         * tests/test-dup2.c (is_inheritable): Only define if used.
21361
21362 2010-01-01  Bruno Haible  <bruno@clisp.org>
21363
21364         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21365         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21366         defined, use wctomb instead of wcrtomb.
21367
21368 2010-01-01  Bruno Haible  <bruno@clisp.org>
21369
21370         iconv: Reject native Solaris iconv.
21371         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21372         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21373
21374 2009-12-31  Bruno Haible  <bruno@clisp.org>
21375
21376         * tests/test-signal.c (main): Remove test of 'SIG'.
21377
21378 2009-12-31  Bruno Haible  <bruno@clisp.org>
21379
21380         spawn: Fix incomplete fix.
21381         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21382         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21383         warnings for GNULIB_POSIXCHECK again.
21384         Reported by Eric Blake.
21385
21386 2009-12-31  Bruno Haible  <bruno@clisp.org>
21387
21388         Avoid namespace pollution on glibc systems.
21389         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21390         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21391         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21392         glibc systems.
21393
21394 2009-12-31  Bruno Haible  <bruno@clisp.org>
21395
21396         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21397         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21398         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21399         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21400         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21401         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21402         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21403
21404 2009-12-31  Bruno Haible  <bruno@clisp.org>
21405
21406         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21407         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21408         afterwards.
21409
21410 2009-12-31  Bruno Haible  <bruno@clisp.org>
21411
21412         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21413         SYS_UTSNAME_H.
21414
21415 2009-12-31  Bruno Haible  <bruno@clisp.org>
21416
21417         spawn: Fix misapplied patch.
21418         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21419         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21420         warnings for GNULIB_POSIXCHECK.
21421
21422 2009-12-31  Bruno Haible  <bruno@clisp.org>
21423
21424         times: Update after sys_times changed.
21425         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21426         * modules/times (Files): Add it.
21427         (configure.ac): Invoke gl_FUNC_TIMES.
21428
21429 2009-12-31  Bruno Haible  <bruno@clisp.org>
21430
21431         Use AC_C_INLINE where necessary.
21432         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21433         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21434         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21435         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21436         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21437         * m4/mbiter.m4 (gl_MBITER): Likewise.
21438         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21439         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21440         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21441         * modules/u64 (configure.ac): Likewise.
21442
21443 2009-12-31  Bruno Haible  <bruno@clisp.org>
21444
21445         Use AC_C_INLINE instead of module 'inline' where possible.
21446         * modules/inline (Description): Clarify purpose.
21447         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21448         * modules/count-one-bits (Depends-on): Remove inline.
21449         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21450         * modules/openat (Depends-on): Remove inline.
21451         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21452         instead of depending on module 'inline'.
21453         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21454         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21455         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21456         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21457         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21458         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21459         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21460         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21461         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21462         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21463         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21464         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21465         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21466         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21467         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21468         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21469         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21470         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21471         Likewise.
21472         * modules/unictype/property-ascii-hex-digit (Depends-on,
21473         configure.ac): Likewise.
21474         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21475         configure.ac): Likewise.
21476         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21477         configure.ac): Likewise.
21478         * modules/unictype/property-bidi-block-separator (Depends-on,
21479         configure.ac): Likewise.
21480         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21481         configure.ac): Likewise.
21482         * modules/unictype/property-bidi-common-separator (Depends-on,
21483         configure.ac): Likewise.
21484         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21485         Likewise.
21486         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21487         configure.ac): Likewise.
21488         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21489         configure.ac): Likewise.
21490         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21491         configure.ac): Likewise.
21492         * modules/unictype/property-bidi-european-digit (Depends-on,
21493         configure.ac): Likewise.
21494         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21495         configure.ac): Likewise.
21496         * modules/unictype/property-bidi-left-to-right (Depends-on,
21497         configure.ac): Likewise.
21498         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21499         configure.ac): Likewise.
21500         * modules/unictype/property-bidi-other-neutral (Depends-on,
21501         configure.ac): Likewise.
21502         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21503         Likewise.
21504         * modules/unictype/property-bidi-segment-separator (Depends-on,
21505         configure.ac): Likewise.
21506         * modules/unictype/property-bidi-whitespace (Depends-on,
21507         configure.ac): Likewise.
21508         * modules/unictype/property-combining (Depends-on, configure.ac):
21509         Likewise.
21510         * modules/unictype/property-composite (Depends-on, configure.ac):
21511         Likewise.
21512         * modules/unictype/property-currency-symbol (Depends-on,
21513         configure.ac): Likewise.
21514         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21515         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21516         Likewise.
21517         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21518         configure.ac): Likewise.
21519         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21520         Likewise.
21521         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21522         Likewise.
21523         * modules/unictype/property-extender (Depends-on, configure.ac):
21524         Likewise.
21525         * modules/unictype/property-format-control (Depends-on, configure.ac):
21526         Likewise.
21527         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21528         Likewise.
21529         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21530         Likewise.
21531         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21532         Likewise.
21533         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21534         Likewise.
21535         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21536         Likewise.
21537         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21538         Likewise.
21539         * modules/unictype/property-id-start (Depends-on, configure.ac):
21540         Likewise.
21541         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21542         Likewise.
21543         * modules/unictype/property-ids-binary-operator (Depends-on,
21544         configure.ac): Likewise.
21545         * modules/unictype/property-ids-trinary-operator (Depends-on,
21546         configure.ac): Likewise.
21547         * modules/unictype/property-ignorable-control (Depends-on,
21548         configure.ac): Likewise.
21549         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21550         Likewise.
21551         * modules/unictype/property-join-control (Depends-on, configure.ac):
21552         Likewise.
21553         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21554         Likewise.
21555         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21556         Likewise.
21557         * modules/unictype/property-logical-order-exception (Depends-on,
21558         configure.ac): Likewise.
21559         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21560         Likewise.
21561         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21562         * modules/unictype/property-non-break (Depends-on, configure.ac):
21563         Likewise.
21564         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21565         Likewise.
21566         * modules/unictype/property-numeric (Depends-on, configure.ac):
21567         Likewise.
21568         * modules/unictype/property-other-alphabetic (Depends-on,
21569         configure.ac): Likewise.
21570         * modules/unictype/property-other-default-ignorable-code-point
21571         (Depends-on, configure.ac): Likewise.
21572         * modules/unictype/property-other-grapheme-extend (Depends-on,
21573         configure.ac): Likewise.
21574         * modules/unictype/property-other-id-continue (Depends-on,
21575         configure.ac): Likewise.
21576         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21577         Likewise.
21578         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21579         Likewise.
21580         * modules/unictype/property-other-math (Depends-on, configure.ac):
21581         Likewise.
21582         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21583         Likewise.
21584         * modules/unictype/property-paired-punctuation (Depends-on,
21585         configure.ac): Likewise.
21586         * modules/unictype/property-paragraph-separator (Depends-on,
21587         configure.ac): Likewise.
21588         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21589         Likewise.
21590         * modules/unictype/property-pattern-white-space (Depends-on,
21591         configure.ac): Likewise.
21592         * modules/unictype/property-private-use (Depends-on, configure.ac):
21593         Likewise.
21594         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21595         Likewise.
21596         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21597         Likewise.
21598         * modules/unictype/property-radical (Depends-on, configure.ac):
21599         Likewise.
21600         * modules/unictype/property-sentence-terminal (Depends-on,
21601         configure.ac): Likewise.
21602         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21603         Likewise.
21604         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21605         * modules/unictype/property-terminal-punctuation (Depends-on,
21606         configure.ac): Likewise.
21607         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21608         Likewise.
21609         * modules/unictype/property-unassigned-code-value (Depends-on,
21610         configure.ac): Likewise.
21611         * modules/unictype/property-unified-ideograph (Depends-on,
21612         configure.ac): Likewise.
21613         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21614         Likewise.
21615         * modules/unictype/property-variation-selector (Depends-on,
21616         configure.ac): Likewise.
21617         * modules/unictype/property-white-space (Depends-on, configure.ac):
21618         Likewise.
21619         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21620         Likewise.
21621         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21622         Likewise.
21623         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21624         Likewise.
21625         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21626         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21627         Likewise.
21628
21629 2009-12-31  Bruno Haible  <bruno@clisp.org>
21630
21631         Remove unnecessary AC_C_INLINE invocation.
21632         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21633         since 2009-08-21.
21634
21635 2009-12-31  Jim Meyering  <meyering@redhat.com>
21636
21637         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21638         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21639         With this change, we can all remove the gpg_key_ID = ... definition
21640         from our respective cfg.mk files.
21641
21642         maint.mk: create announcement template in ~/, not in /tmp
21643         * top/maint.mk (emit_upload_commands): Adjust.
21644         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21645         Remove temporary file, .ci-msg.
21646
21647 2009-12-31  Eric Blake  <ebb9@byu.net>
21648
21649         link-warning: always build headers with link warnings
21650         * modules/arpa_inet (Makefile.am): Always build replacement
21651         header.
21652         * modules/ctype (Makefile.am): Likewise.
21653         * modules/dirent (Makefile.am): Likewise.
21654         * modules/inttypes (Makefile.am): Likewise.
21655         * modules/langinfo (Makefile.am): Likewise.
21656         * modules/locale (Makefile.am): Likewise.
21657         * modules/spawn (Makefile.am): Likewise.
21658         * modules/sys_file (Makefile.am): Likewise.
21659         * modules/sys_ioctl (Makefile.am): Likewise.
21660         * modules/sys_select (Makefile.am): Likewise.
21661         * modules/sys_socket (Makefile.am): Likewise.
21662         * modules/sys_times (Makefile.am): Likewise.
21663         * modules/sys_utsname (Makefile.am): Likewise.
21664         * modules/sys_wait (Makefile.am): Likewise.
21665         * modules/wchar (Makefile.am): Likewise.
21666         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21667         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21668         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21669         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21670         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21671         Likewise.
21672         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21673         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21674         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21675         Likewise.
21676         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21677         Likewise.
21678         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21679         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21680         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21682         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21683         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21684         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21685         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21686         (gl_WCHAR_H_DEFAULTS): Likewise.
21687
21688 2009-12-31  Eric Blake  <ebb9@byu.net>
21689
21690         signal, spawn: use link warnings
21691         * lib/signal.in.h (sigset_t): Make unconditional.
21692         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21693         (sigpending, sigprocmask, sigaction): Add link warnings.
21694         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21695         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21696         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21697         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21698         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21699         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21700         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21701         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21702         (posix_spawn_file_actions_destroy)
21703         (posix_spawn_file_actions_addopen)
21704         (posix_spawn_file_actions_addclose)
21705         (posix_spawn_file_actions_adddup2): Likewise.
21706         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21707         * tests/test-signal.c (main): Enhance test.
21708
21709         spawn: improve wrapper support
21710         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21711         (gl_SPAWN_H_DEFAULTS): New defaults.
21712         * modules/spawn (Makefile.am): Substitute them.
21713         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21714         Only declare if missing or broken.
21715
21716         sys_times, sys_utsname: use include_next
21717         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21718         header.
21719         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21720         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21721         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21722         * modules/sys_times (Depends-on): Add include_next.
21723         (Makefile.am): Substitute additional values.
21724         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21725         * lib/sys_times.in.h (includes): Include native header, if
21726         available.
21727         * lib/sys_utsname.in.h (includes): Likewise.
21728         * tests/test-sys_times.c (main): Enhance test.
21729
21730         fdutimensat: revert prior patch
21731         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21732         utimens.h.
21733         Reported by Bruno Haible.
21734
21735 2009-12-30  Eric Blake  <ebb9@byu.net>
21736
21737         sys_wait: drop link-warning dependency
21738         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21739         link-warning efforts.
21740         * lib/sys_wait.in.h: Likewise.
21741
21742         fdutimensat: remove bogus dependency
21743         * modules/fdutimensat (Depends-on): Drop inline.
21744
21745         unistd: fix typo
21746         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21747
21748 2009-12-30  Bruno Haible  <bruno@clisp.org>
21749
21750         Fix compilation error with Solaris cc.
21751         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21752         * lib/unicase/u16-is-invariant.c: Likewise.
21753         * lib/unicase/u32-is-invariant.c: Likewise.
21754         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21755
21756 2009-12-30  Bruno Haible  <bruno@clisp.org>
21757
21758         Fix test crash.
21759         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21760         locales.
21761         Reported by Simon Josefsson <simon@josefsson.org>.
21762
21763 2009-12-30  Bruno Haible  <bruno@clisp.org>
21764
21765         Fix compilation error on most platforms.
21766         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21767         Reported by Simon Josefsson <simon@josefsson.org>
21768         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21769
21770 2009-12-30  Eric Blake  <ebb9@byu.net>
21771
21772         futimens, utimensat: work around ntfs-3g bug
21773         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21774         a ctime bug is present, and expand workaround to cover ntfs-3g.
21775         * lib/utimens.c (fdutimens, lutimens): Likewise.
21776         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21777         (validate_timespec): Adjust return value.
21778         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21779         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21780         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21781
21782 2009-12-29  Eric Blake  <ebb9@byu.net>
21783
21784         link-warning: make usage consistent
21785         * modules/ctype (Depends-on): Add link-warning.
21786         (Makefile.am): Update rules accordingly.
21787         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21788         * modules/locale (Depends-on, Makefile.am): Likewise.
21789         * modules/sys_file (Makefile.am): Likewise.
21790         * modules/getopt-posix (Makefile.am): Delete unused link warning
21791         efforts.
21792         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21793         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21794         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21795         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21796
21797         stdio: remove unused variables
21798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21799         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21800         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21801
21802         tests: test more substitute headers
21803         * modules/ctype-tests: New file.
21804         * modules/dirent-tests: Likewise.
21805         * modules/spawn-tests: Likewise.
21806         * modules/sys_file-tests: Likewise.
21807         * modules/sys_ioctl-tests: Likewise.
21808         * modules/sys_wait-tests: Likewise.
21809         * tests/test-ctype.c: Likewise.
21810         * tests/test-dirent.c: Likewise.
21811         * tests/test-spawn.c: Likewise.
21812         * tests/test-sys_file.c: Likewise.
21813         * tests/test-sys_ioctl.c: Likewise.
21814         * tests/test-sys_wait.c: Likewise.
21815         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21816         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21817         whether or not flock is in use.
21818
21819         tests: remove License section from module
21820         * modules/arpa_inet-tests: Remove unneeded section.
21821         * modules/byteswap-tests: Likewise.
21822         * modules/ceilf-tests: Likewise.
21823         * modules/ceill-tests: Likewise.
21824         * modules/crypto/des-tests: Likewise.
21825         * modules/crypto/gc-arcfour-tests: Likewise.
21826         * modules/crypto/gc-arctwo-tests: Likewise.
21827         * modules/crypto/gc-des-tests: Likewise.
21828         * modules/crypto/gc-hmac-md5-tests: Likewise.
21829         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21830         * modules/crypto/gc-md2-tests: Likewise.
21831         * modules/crypto/gc-md4-tests: Likewise.
21832         * modules/crypto/gc-md5-tests: Likewise.
21833         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21834         * modules/crypto/gc-rijndael-tests: Likewise.
21835         * modules/crypto/gc-sha1-tests: Likewise.
21836         * modules/crypto/gc-tests: Likewise.
21837         * modules/crypto/md2-tests: Likewise.
21838         * modules/crypto/md4-tests: Likewise.
21839         * modules/fcntl-h-tests: Likewise.
21840         * modules/floorf-tests: Likewise.
21841         * modules/floorl-tests: Likewise.
21842         * modules/frexp-nolibm-tests: Likewise.
21843         * modules/frexp-tests: Likewise.
21844         * modules/frexpl-nolibm-tests: Likewise.
21845         * modules/frexpl-tests: Likewise.
21846         * modules/getaddrinfo-tests: Likewise.
21847         * modules/inttypes-tests: Likewise.
21848         * modules/isfinite-tests: Likewise.
21849         * modules/isinf-tests: Likewise.
21850         * modules/ldexpl-tests: Likewise.
21851         * modules/locale-tests: Likewise.
21852         * modules/math-tests: Likewise.
21853         * modules/netdb-tests: Likewise.
21854         * modules/netinet_in-tests: Likewise.
21855         * modules/printf-frexp-tests: Likewise.
21856         * modules/printf-frexpl-tests: Likewise.
21857         * modules/priv-set-tests: Likewise.
21858         * modules/random_r-tests: Likewise.
21859         * modules/round-tests: Likewise.
21860         * modules/roundf-tests: Likewise.
21861         * modules/roundl-tests: Likewise.
21862         * modules/search-tests: Likewise.
21863         * modules/select-tests: Likewise.
21864         * modules/signal-tests: Likewise.
21865         * modules/stdbool-tests: Likewise.
21866         * modules/stddef-tests: Likewise.
21867         * modules/stdint-tests: Likewise.
21868         * modules/stdio-tests: Likewise.
21869         * modules/stdlib-tests: Likewise.
21870         * modules/string-tests: Likewise.
21871         * modules/strings-tests: Likewise.
21872         * modules/sys_select-tests: Likewise.
21873         * modules/sys_socket-tests: Likewise.
21874         * modules/sys_stat-tests: Likewise.
21875         * modules/sys_time-tests: Likewise.
21876         * modules/sys_utsname-tests: Likewise.
21877         * modules/sysexits-tests: Likewise.
21878         * modules/time-tests: Likewise.
21879         * modules/trunc-tests: Likewise.
21880         * modules/truncf-tests: Likewise.
21881         * modules/truncl-tests: Likewise.
21882         * modules/tsearch-tests: Likewise.
21883         * modules/unistd-tests: Likewise.
21884         * modules/wchar-tests: Likewise.
21885         * modules/wctype-tests: Likewise.
21886
21887         tests: fix license on several tests
21888         * tests/test-des.c: Update to GPLv3+.
21889         * tests/test-flock.c: Likewise.
21890         * tests/test-fsync.c: Likewise.
21891         * tests/test-futimens.h: Likewise.
21892         * tests/test-gc-arcfour.c: Likewise.
21893         * tests/test-gc-arctwo.c: Likewise.
21894         * tests/test-gc-des.c: Likewise.
21895         * tests/test-gc-hmac-md5.c: Likewise.
21896         * tests/test-gc-hmac-sha1.c: Likewise.
21897         * tests/test-gc-md2.c: Likewise.
21898         * tests/test-gc-md4.c: Likewise.
21899         * tests/test-gc-md5.c: Likewise.
21900         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21901         * tests/test-gc-rijndael.c: Likewise.
21902         * tests/test-gc-sha1.c: Likewise.
21903         * tests/test-gc.c: Likewise.
21904         * tests/test-getcwd.c: Likewise.
21905         * tests/test-link.c: Likewise.
21906         * tests/test-link.h: Likewise.
21907         * tests/test-lutimens.h: Likewise.
21908         * tests/test-md2.c: Likewise.
21909         * tests/test-md4.c: Likewise.
21910         * tests/test-mkdir.h: Likewise.
21911         * tests/test-rename.c: Likewise.
21912         * tests/test-rename.h: Likewise.
21913         * tests/test-safe-alloc.c: Likewise.
21914         * tests/test-utimens-common.h: Likewise.
21915         * tests/test-utimens.h: Likewise.
21916
21917         maint: sync license texts
21918         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21919         * doc/gpl-3.0.texi: Revert copyright year update.
21920         * doc/lgpl-3.0.texi: Likewise.
21921
21922 2009-12-29  Jim Meyering  <meyering@redhat.com>
21923
21924         update nearly all FSF copyright year lists to include 2009
21925         The files named by the following are exempted:
21926             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21927               test -f "$dst" && { echo "$dst"; continue; }
21928               test -d "$dst" || continue
21929               echo "$dst"/$(basename "$src")
21930             done > exempt
21931             git ls-files tests/unictype >> exempt
21932         In the remaining files, convert to all-interval notation if
21933         - there is already at least one year interval like 2000-2003
21934         - the file is maintained by me
21935         - the file is in lib/uni*/, where that style already prevails
21936         Otherwise, use update-copyright's default.
21937
21938 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21939         and Eric Blake  <ebb9@byu.net>
21940
21941         tests: don't require debug system() to pass
21942         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21943         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21944         * tests/test-unlink.h (test_unlink_func): Likewise.
21945         * tests/test-fstatat.c (main): ...into callers.
21946         * tests/test-lstat.c (main): Likewise.
21947         * tests/test-rmdir.c (main): Likewise.
21948         * tests/test-unlink.c (main): Likewise.
21949         * tests/test-unlinkat.c (main): Likewise.
21950         * tests/test-areadlink-with-size.c (main): Don't require a
21951         debug-only system call to pass, aiding cross-testing to mingw.
21952         * tests/test-areadlink.c (main): Likewise.
21953         * tests/test-areadlinkat-with-size.c (main): Likewise.
21954         * tests/test-areadlinkat.c (main): Likewise.
21955         * tests/test-canonicalize-lgpl.c (main): Likewise.
21956         * tests/test-canonicalize.c (main): Likewise.
21957         * tests/test-chown.c (main): Likewise.
21958         * tests/test-fchownat.c (main): Likewise.
21959         * tests/test-lchown.c (main): Likewise.
21960         * tests/test-fdutimensat.c (main): Likewise.
21961         * tests/test-futimens.c (main): Likewise.
21962         * tests/test-link.c (main): Likewise.
21963         * tests/test-linkat.c (main): Likewise.
21964         * tests/test-mkdir.c (main): Likewise.
21965         * tests/test-mkdirat.c (main): Likewise.
21966         * tests/test-mkfifo.c (main): Likewise.
21967         * tests/test-mkfifoat.c (main): Likewise.
21968         * tests/test-mknod.c (main): Likewise.
21969         * tests/test-readlink.c (main): Likewise.
21970         * tests/test-remove.c (main): Likewise.
21971         * tests/test-rename.c (main): Likewise.
21972         * tests/test-renameat.c (main): Likewise.
21973         * tests/test-symlink.c (main): Likewise.
21974         * tests/test-symlinkat.c (main): Likewise.
21975         * tests/test-utimens.c (main): Likewise.
21976         * tests/test-utimensat.c (main): Likewise.
21977
21978 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21979
21980         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21981         on $(UNUSED_PARAMETER_H) to avoid build failure.
21982
21983 2009-12-28  Jim Meyering  <meyering@redhat.com>
21984
21985         update-copyright: you may specify a max. line length other than 72
21986         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21987
21988         maint: use consistent FSF copyright line syntax
21989         * lib/posixtm.c: Add missing comma in FSF copyright line.
21990         * lib/posixtm.h: Likewise.
21991         * lib/getugroups.c: Add missing ", Inc.".
21992
21993         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21994         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21995         FSF copyright line.  Remove trailing blanks.
21996
21997 2009-12-28  Eric Blake  <ebb9@byu.net>
21998
21999         test-dup2: reduce dependencies
22000         * modules/cloexec (Configure.ac): Set witness.
22001         * modules/dup2-tests (Depends-on): Drop cloexec.
22002         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22003         not present.
22004         Suggested by Bruno Haible.
22005
22006 2009-12-26  Bruno Haible  <bruno@clisp.org>
22007
22008         Remove an unneeded dependency.
22009         * modules/fseterr (Depends-on): Remove dup2.
22010
22011 2009-12-26  Eric Blake  <ebb9@byu.net>
22012
22013         tests: use macros.h in more places
22014         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22015         (ASSERT_STREAM): Provide default of stderr.
22016         * tests/test-dirent-safer.c: Include macros.h, using alternate
22017         stream for assertions.
22018         * tests/test-dup-safer.c: Likewise.
22019         * tests/test-freopen-safer.c: Likewise.
22020         * tests/test-getopt.c: Likewise.
22021         * tests/test-openat-safer.c: Likewise.
22022         * tests/test-pipe.c: Likewise.
22023         * tests/test-popen-safer.c: Likewise.
22024         * modules/dirent-safer-tests (Files): Include macros.h.
22025         * modules/unistd-safer-tests (Files): Likewise.
22026         * modules/freopen-safer-tests (Files): Likewise.
22027         * modules/getopt-posix-tests (Files): Likewise.
22028         * modules/openat-safer-tests (Files): Likewise.
22029         * modules/pipe-tests (Files): Likewise.
22030
22031 2009-12-26  Bruno Haible  <bruno@clisp.org>
22032
22033         javacomp: Portability fix.
22034         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22035         that it also works on Solaris.
22036
22037 2009-12-26  Bruno Haible  <bruno@clisp.org>
22038
22039         localename: Fix storage allocation of gl_locale_name_thread's result.
22040         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22041         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22042         all platforms that have 'uselocale'.
22043         (gl_locale_name_thread_unsafe): New function, extracted from
22044         gl_locale_name_thread.
22045         (gl_locale_name_thread): Call struniq on all platforms that have
22046         'uselocale'.
22047         * tests/test-localename.c (test_locale_name_thread): Check that the
22048         resulting strings are permanently allocated.
22049         * modules/localename-tests (Depends-on): Add strdup.
22050
22051 2009-12-26  Bruno Haible  <bruno@clisp.org>
22052
22053         * tests/test-localename.c (categories): Fill in the strings.
22054
22055 2009-12-26  Jim Meyering  <meyering@redhat.com>
22056
22057         isdir: complete the removal of m4/isdir.m4
22058         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22059
22060         isdir: clean up, since at least grep still uses it
22061         * lib/isdir.c: Include "isdir.h".
22062         (S_ISDIR): Remove now-unneeded definition.
22063         * modules/isdir (Files): Add lib/isdir.h.
22064         * lib/isdir.h: New file, with declaration.
22065         * m4/isdir.m4: Remove file -- unneeded.
22066
22067 2009-12-25  Bruno Haible  <bruno@clisp.org>
22068
22069         selinux-h: Make generated .h files standalone.
22070         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22071         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22072         * lib/se-selinux.in.h: Likewise.
22073         * modules/selinux-h (Depends-on): Add unused-parameter.
22074         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22075         selinux/selinux.h and selinux/context.h.
22076         Suggested by Eric Blake.
22077
22078 2009-12-25  Bruno Haible  <bruno@clisp.org>
22079
22080         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22081         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22082         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22083         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22084         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22085
22086 2009-12-24  Bruno Haible  <bruno@clisp.org>
22087
22088         openat: Fix warning.
22089         * lib/openat-proc.c: Include <unistd.h>.
22090
22091 2009-12-24  Bruno Haible  <bruno@clisp.org>
22092
22093         New module 'unused-parameter'.
22094         * build-aux/unused-parameter.h: New file, extracted from earlier
22095         gnulib-common.m4.
22096         * modules/unused-parameter: New file.
22097         * lib/unistr.h: Include unused-parameter.h.
22098         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22099         _GL_UNUSED.
22100         * modules/unistr/base (Depends-on): Add unused-parameter.
22101
22102 2009-12-24  Bruno Haible  <bruno@clisp.org>
22103
22104         Add missing dependencies to 'extensions' module.
22105         * m4/extensions.m4: Add comment.
22106         * modules/accept4 (Depends-on): Add extensions.
22107         * modules/dup3 (Depends-on): Likewise.
22108         * modules/fcntl (Depends-on): Likewise.
22109         * modules/futimens (Depends-on): Likewise.
22110         * modules/mknod (Depends-on): Likewise.
22111         * modules/pipe2 (Depends-on): Likewise.
22112         * modules/stat-time (Depends-on): Likewise.
22113         * modules/strcasestr-simple (Depends-on): Likewise.
22114         * modules/strsignal (Depends-on): Likewise.
22115         * modules/utimensat (Depends-on): Likewise.
22116         * modules/localcharset (Depends-on): Likewise. Needed because of
22117         gl_FCNTL_O_FLAGS.
22118         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22119         AC_TYPE_MBSTATE_T.
22120         * modules/wcsnrtombs (Depends-on): Likewise.
22121         * modules/wcsrtombs (Depends-on): Likewise.
22122
22123 2009-12-24  Bruno Haible  <bruno@clisp.org>
22124
22125         binary-io: Avoid gcc warning due to SET_BINARY.
22126         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22127         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22128
22129 2009-12-24  Bruno Haible  <bruno@clisp.org>
22130
22131         Avoid future namespace pollution on glibc systems.
22132         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22133         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22134         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22135         glibc systems.
22136
22137 2009-12-24  Bruno Haible  <bruno@clisp.org>
22138
22139         Refactor common macros used in tests.
22140         * tests/macros.h: New file.
22141         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22142         and/or <stdlib.h>, if appropriate.
22143         (ASSERT, SIZEOF): Remove macros.
22144         * tests/test-areadlink-with-size.c: Likewise.
22145         * tests/test-areadlinkat.c: Likewise.
22146         * tests/test-areadlinkat-with-size.c: Likewise.
22147         * tests/test-argmatch.c: Likewise.
22148         * tests/test-argv-iter.c: Likewise.
22149         * tests/test-array-mergesort.c: Likewise.
22150         * tests/test-array_list.c: Likewise.
22151         * tests/test-array_oset.c: Likewise.
22152         * tests/test-avltree_list.c: Likewise.
22153         * tests/test-avltree_oset.c: Likewise.
22154         * tests/test-avltreehash_list.c: Likewise.
22155         * tests/test-base64.c: Likewise.
22156         * tests/test-binary-io.c: Likewise.
22157         * tests/test-bitrotate.c: Likewise.
22158         * tests/test-btowc.c: Likewise.
22159         * tests/test-byteswap.c: Likewise.
22160         * tests/test-c-ctype.c: Likewise.
22161         * tests/test-c-stack.c: Likewise.
22162         * tests/test-c-strcasecmp.c: Likewise.
22163         * tests/test-c-strcasestr.c: Likewise.
22164         * tests/test-c-strncasecmp.c: Likewise.
22165         * tests/test-c-strstr.c: Likewise.
22166         * tests/test-canonicalize-lgpl.c: Likewise.
22167         * tests/test-canonicalize.c: Likewise.
22168         * tests/test-carray_list.c: Likewise.
22169         * tests/test-ceilf1.c: Likewise.
22170         * tests/test-ceilf2.c: Likewise.
22171         * tests/test-ceill.c: Likewise.
22172         * tests/test-chown.c: Likewise.
22173         * tests/test-cloexec.c: Likewise.
22174         * tests/test-copy-acl.c: Likewise.
22175         * tests/test-copy-file.c: Likewise.
22176         * tests/test-count-one-bits.c: Likewise.
22177         * tests/test-dprintf-posix.c: Likewise.
22178         * tests/test-dup2.c: Likewise.
22179         * tests/test-dup3.c: Likewise.
22180         * tests/test-duplocale.c: Likewise.
22181         * tests/test-fbufmode.c: Likewise.
22182         * tests/test-fchdir.c: Likewise.
22183         * tests/test-fchownat.c: Likewise.
22184         * tests/test-fcntl-safer.c: Likewise.
22185         * tests/test-fcntl.c: Likewise.
22186         * tests/test-fdopendir.c: Likewise.
22187         * tests/test-fdutimensat.c: Likewise.
22188         * tests/test-fflush2.c: Likewise.
22189         * tests/test-file-has-acl.c: Likewise.
22190         * tests/test-filevercmp.c: Likewise.
22191         * tests/test-flock.c: Likewise.
22192         * tests/test-floorf1.c: Likewise.
22193         * tests/test-floorf2.c: Likewise.
22194         * tests/test-floorl.c: Likewise.
22195         * tests/test-fnmatch.c: Likewise.
22196         * tests/test-fopen.h: Likewise.
22197         * tests/test-fpending.c: Likewise.
22198         * tests/test-fprintf-posix.c: Likewise.
22199         * tests/test-fpurge.c: Likewise.
22200         * tests/test-freadable.c: Likewise.
22201         * tests/test-freadahead.c: Likewise.
22202         * tests/test-freading.c: Likewise.
22203         * tests/test-freadptr.c: Likewise.
22204         * tests/test-freadptr2.c: Likewise.
22205         * tests/test-freadseek.c: Likewise.
22206         * tests/test-freopen.c: Likewise.
22207         * tests/test-frexp.c: Likewise.
22208         * tests/test-frexpl.c: Likewise.
22209         * tests/test-fseek.c: Likewise.
22210         * tests/test-fseeko.c: Likewise.
22211         * tests/test-fstatat.c: Likewise.
22212         * tests/test-fstrcmp.c: Likewise.
22213         * tests/test-fsync.c: Likewise.
22214         * tests/test-ftell.c: Likewise.
22215         * tests/test-ftello.c: Likewise.
22216         * tests/test-func.c: Likewise.
22217         * tests/test-futimens.c: Likewise.
22218         * tests/test-fwritable.c: Likewise.
22219         * tests/test-fwriting.c: Likewise.
22220         * tests/test-getcwd.c: Likewise.
22221         * tests/test-getdate.c: Likewise.
22222         * tests/test-getdelim.c: Likewise.
22223         * tests/test-getdtablesize.c: Likewise.
22224         * tests/test-getgroups.c: Likewise.
22225         * tests/test-getline.c: Likewise.
22226         * tests/test-getndelim2.c: Likewise.
22227         * tests/test-glob.c: Likewise.
22228         * tests/test-hash.c: Likewise.
22229         * tests/test-i-ring.c: Likewise.
22230         * tests/test-iconv-utf.c: Likewise.
22231         * tests/test-iconv.c: Likewise.
22232         * tests/test-idpriv-drop.c: Likewise.
22233         * tests/test-idpriv-droptemp.c: Likewise.
22234         * tests/test-inet_ntop.c: Likewise.
22235         * tests/test-inet_pton.c: Likewise.
22236         * tests/test-isblank.c: Likewise.
22237         * tests/test-isfinite.c: Likewise.
22238         * tests/test-isinf.c: Likewise.
22239         * tests/test-isnan.c: Likewise.
22240         * tests/test-isnand.h: Likewise.
22241         * tests/test-isnanf.h: Likewise.
22242         * tests/test-isnanl.h: Likewise.
22243         * tests/test-lchown.c: Likewise.
22244         * tests/test-ldexpl.c: Likewise.
22245         * tests/test-link.c: Likewise.
22246         * tests/test-linkat.c: Likewise.
22247         * tests/test-linked_list.c: Likewise.
22248         * tests/test-linkedhash_list.c: Likewise.
22249         * tests/test-localename.c: Likewise.
22250         * tests/test-lseek.c: Likewise.
22251         * tests/test-lstat.c: Likewise.
22252         * tests/test-mbmemcasecmp.c: Likewise.
22253         * tests/test-mbmemcasecoll.c: Likewise.
22254         * tests/test-mbrtowc.c: Likewise.
22255         * tests/test-mbscasecmp.c: Likewise.
22256         * tests/test-mbscasestr1.c: Likewise.
22257         * tests/test-mbscasestr2.c: Likewise.
22258         * tests/test-mbscasestr3.c: Likewise.
22259         * tests/test-mbscasestr4.c: Likewise.
22260         * tests/test-mbschr.c: Likewise.
22261         * tests/test-mbscspn.c: Likewise.
22262         * tests/test-mbsinit.c: Likewise.
22263         * tests/test-mbsncasecmp.c: Likewise.
22264         * tests/test-mbsnrtowcs.c: Likewise.
22265         * tests/test-mbspbrk.c: Likewise.
22266         * tests/test-mbspcasecmp.c: Likewise.
22267         * tests/test-mbsrchr.c: Likewise.
22268         * tests/test-mbsrtowcs.c: Likewise.
22269         * tests/test-mbsspn.c: Likewise.
22270         * tests/test-mbsstr1.c: Likewise.
22271         * tests/test-mbsstr2.c: Likewise.
22272         * tests/test-mbsstr3.c: Likewise.
22273         * tests/test-memchr.c: Likewise.
22274         * tests/test-memchr2.c: Likewise.
22275         * tests/test-memcmp.c: Likewise.
22276         * tests/test-memmem.c: Likewise.
22277         * tests/test-memrchr.c: Likewise.
22278         * tests/test-mkdir.c: Likewise.
22279         * tests/test-mkdirat.c: Likewise.
22280         * tests/test-mkfifo.c: Likewise.
22281         * tests/test-mkfifoat.c: Likewise.
22282         * tests/test-mknod.c: Likewise.
22283         * tests/test-nanosleep.c: Likewise.
22284         * tests/test-nl_langinfo.c: Likewise.
22285         * tests/test-obstack-printf.c: Likewise.
22286         * tests/test-open.c: Likewise.
22287         * tests/test-openat.c: Likewise.
22288         * tests/test-pipe-filter-gi1.c: Likewise.
22289         * tests/test-pipe-filter-gi2-main.c: Likewise.
22290         * tests/test-pipe-filter-ii1.c: Likewise.
22291         * tests/test-pipe-filter-ii2-main.c: Likewise.
22292         * tests/test-pipe2.c: Likewise.
22293         * tests/test-popen.h: Likewise.
22294         * tests/test-posixtm.c: Likewise.
22295         * tests/test-pread.c: Likewise.
22296         * tests/test-printf-frexp.c: Likewise.
22297         * tests/test-printf-frexpl.c: Likewise.
22298         * tests/test-printf-posix.c: Likewise.
22299         * tests/test-priv-set.c: Likewise.
22300         * tests/test-quotearg.c: Likewise.
22301         * tests/test-random_r.c: Likewise.
22302         * tests/test-rawmemchr.c: Likewise.
22303         * tests/test-rbtree_list.c: Likewise.
22304         * tests/test-rbtree_oset.c: Likewise.
22305         * tests/test-rbtreehash_list.c: Likewise.
22306         * tests/test-readlink.c: Likewise.
22307         * tests/test-remove.c: Likewise.
22308         * tests/test-rename.c: Likewise.
22309         * tests/test-renameat.c: Likewise.
22310         * tests/test-rmdir.c: Likewise.
22311         * tests/test-round1.c: Likewise.
22312         * tests/test-roundf1.c: Likewise.
22313         * tests/test-roundl.c: Likewise.
22314         * tests/test-safe-alloc.c: Likewise.
22315         * tests/test-sameacls.c: Likewise.
22316         * tests/test-set-mode-acl.c: Likewise.
22317         * tests/test-setenv.c: Likewise.
22318         * tests/test-sigaction.c: Likewise.
22319         * tests/test-signbit.c: Likewise.
22320         * tests/test-sleep.c: Likewise.
22321         * tests/test-snprintf-posix.c: Likewise.
22322         * tests/test-snprintf.c: Likewise.
22323         * tests/test-sprintf-posix.c: Likewise.
22324         * tests/test-stat-time.c: Likewise.
22325         * tests/test-stat.c: Likewise.
22326         * tests/test-strcasestr.c: Likewise.
22327         * tests/test-strchrnul.c: Likewise.
22328         * tests/test-strerror.c: Likewise.
22329         * tests/test-striconv.c: Likewise.
22330         * tests/test-striconveh.c: Likewise.
22331         * tests/test-striconveha.c: Likewise.
22332         * tests/test-strsignal.c: Likewise.
22333         * tests/test-strstr.c: Likewise.
22334         * tests/test-strtod.c: Likewise.
22335         * tests/test-strverscmp.c: Likewise.
22336         * tests/test-symlink.c: Likewise.
22337         * tests/test-symlinkat.c: Likewise.
22338         * tests/test-trunc1.c: Likewise.
22339         * tests/test-trunc2.c: Likewise.
22340         * tests/test-truncf1.c: Likewise.
22341         * tests/test-truncf2.c: Likewise.
22342         * tests/test-truncl.c: Likewise.
22343         * tests/test-uname.c: Likewise.
22344         * tests/test-unlink.c: Likewise.
22345         * tests/test-unlinkat.c: Likewise.
22346         * tests/test-unsetenv.c: Likewise.
22347         * tests/test-usleep.c: Likewise.
22348         * tests/test-utimens.c: Likewise.
22349         * tests/test-utimensat.c: Likewise.
22350         * tests/test-vasnprintf-posix.c: Likewise.
22351         * tests/test-vasnprintf-posix2.c: Likewise.
22352         * tests/test-vasnprintf.c: Likewise.
22353         * tests/test-vasprintf-posix.c: Likewise.
22354         * tests/test-vasprintf.c: Likewise.
22355         * tests/test-vdprintf-posix.c: Likewise.
22356         * tests/test-vfprintf-posix.c: Likewise.
22357         * tests/test-vprintf-posix.c: Likewise.
22358         * tests/test-vsnprintf-posix.c: Likewise.
22359         * tests/test-vsnprintf.c: Likewise.
22360         * tests/test-vsprintf-posix.c: Likewise.
22361         * tests/test-wcrtomb.c: Likewise.
22362         * tests/test-wcsnrtombs.c: Likewise.
22363         * tests/test-wcsrtombs.c: Likewise.
22364         * tests/test-wctype.c: Likewise.
22365         * tests/test-wcwidth.c: Likewise.
22366         * tests/test-xfprintf-posix.c: Likewise.
22367         * tests/test-xmemdup0.c: Likewise.
22368         * tests/test-xprintf-posix.c: Likewise.
22369         * tests/test-xvasprintf.c: Likewise.
22370         * tests/unicase/test-locale-language.c: Likewise.
22371         * tests/unicase/test-mapping-part1.h: Likewise.
22372         * tests/unicase/test-predicate-part1.h: Likewise.
22373         * tests/unicase/test-u8-casecmp.c: Likewise.
22374         * tests/unicase/test-u8-casecoll.c: Likewise.
22375         * tests/unicase/test-u8-casefold.c: Likewise.
22376         * tests/unicase/test-u8-is-cased.c: Likewise.
22377         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22378         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22379         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22380         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22381         * tests/unicase/test-u8-tolower.c: Likewise.
22382         * tests/unicase/test-u8-totitle.c: Likewise.
22383         * tests/unicase/test-u8-toupper.c: Likewise.
22384         * tests/unicase/test-u16-casecmp.c: Likewise.
22385         * tests/unicase/test-u16-casecoll.c: Likewise.
22386         * tests/unicase/test-u16-casefold.c: Likewise.
22387         * tests/unicase/test-u16-is-cased.c: Likewise.
22388         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22389         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22390         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22391         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22392         * tests/unicase/test-u16-tolower.c: Likewise.
22393         * tests/unicase/test-u16-totitle.c: Likewise.
22394         * tests/unicase/test-u16-toupper.c: Likewise.
22395         * tests/unicase/test-u32-casecmp.c: Likewise.
22396         * tests/unicase/test-u32-casecoll.c: Likewise.
22397         * tests/unicase/test-u32-casefold.c: Likewise.
22398         * tests/unicase/test-u32-is-cased.c: Likewise.
22399         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22400         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22401         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22402         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22403         * tests/unicase/test-u32-tolower.c: Likewise.
22404         * tests/unicase/test-u32-totitle.c: Likewise.
22405         * tests/unicase/test-u32-toupper.c: Likewise.
22406         * tests/unicase/test-ulc-casecmp.c: Likewise.
22407         * tests/unicase/test-ulc-casecoll.c: Likewise.
22408         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22409         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22410         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22411         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22412         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22413         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22414         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22415         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22416         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22417         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22418         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22419         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22420         * tests/unictype/test-bidi_byname.c: Likewise.
22421         * tests/unictype/test-bidi_name.c: Likewise.
22422         * tests/unictype/test-bidi_of.c: Likewise.
22423         * tests/unictype/test-bidi_test.c: Likewise.
22424         * tests/unictype/test-block_list.c: Likewise.
22425         * tests/unictype/test-block_of.c: Likewise.
22426         * tests/unictype/test-block_test.c: Likewise.
22427         * tests/unictype/test-categ_and.c: Likewise.
22428         * tests/unictype/test-categ_and_not.c: Likewise.
22429         * tests/unictype/test-categ_byname.c: Likewise.
22430         * tests/unictype/test-categ_name.c: Likewise.
22431         * tests/unictype/test-categ_none.c: Likewise.
22432         * tests/unictype/test-categ_of.c: Likewise.
22433         * tests/unictype/test-categ_or.c: Likewise.
22434         * tests/unictype/test-categ_test_withtable.c: Likewise.
22435         * tests/unictype/test-combining.c: Likewise.
22436         * tests/unictype/test-decdigit.c: Likewise.
22437         * tests/unictype/test-digit.c: Likewise.
22438         * tests/unictype/test-mirror.c: Likewise.
22439         * tests/unictype/test-numeric.c: Likewise.
22440         * tests/unictype/test-pr_byname.c: Likewise.
22441         * tests/unictype/test-pr_test.c: Likewise.
22442         * tests/unictype/test-predicate-part1.h: Likewise.
22443         * tests/unictype/test-scripts.c: Likewise.
22444         * tests/unictype/test-sy_c_ident.c: Likewise.
22445         * tests/unictype/test-sy_java_ident.c: Likewise.
22446         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22447         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22448         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22449         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22450         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22451         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22452         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22453         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22454         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22455         * tests/uninorm/test-compat-decomposition.c: Likewise.
22456         * tests/uninorm/test-composition.c: Likewise.
22457         * tests/uninorm/test-decomposing-form.c: Likewise.
22458         * tests/uninorm/test-decomposition.c: Likewise.
22459         * tests/uninorm/test-u8-nfc.c: Likewise.
22460         * tests/uninorm/test-u8-nfd.c: Likewise.
22461         * tests/uninorm/test-u8-nfkc.c: Likewise.
22462         * tests/uninorm/test-u8-nfkd.c: Likewise.
22463         * tests/uninorm/test-u8-normcmp.c: Likewise.
22464         * tests/uninorm/test-u8-normcoll.c: Likewise.
22465         * tests/uninorm/test-u16-nfc.c: Likewise.
22466         * tests/uninorm/test-u16-nfd.c: Likewise.
22467         * tests/uninorm/test-u16-nfkc.c: Likewise.
22468         * tests/uninorm/test-u16-nfkd.c: Likewise.
22469         * tests/uninorm/test-u16-normcmp.c: Likewise.
22470         * tests/uninorm/test-u16-normcoll.c: Likewise.
22471         * tests/uninorm/test-u32-nfc.c: Likewise.
22472         * tests/uninorm/test-u32-nfd.c: Likewise.
22473         * tests/uninorm/test-u32-nfkc.c: Likewise.
22474         * tests/uninorm/test-u32-nfkd.c: Likewise.
22475         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22476         * tests/uninorm/test-u32-normcmp.c: Likewise.
22477         * tests/uninorm/test-u32-normcoll.c: Likewise.
22478         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22479         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22480         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22481         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22482         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22483         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22484         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22485         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22486         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22487         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22488         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22489         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22490         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22491         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22492         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22493         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22494         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22495         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22496         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22497         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22498         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22499         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22500         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22501         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22502         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22503         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22504         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22505         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22506         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22507         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22508         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22509         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22510         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22511         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22512         * tests/uniwidth/test-u8-width.c: Likewise.
22513         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22514         * tests/uniwidth/test-u16-width.c: Likewise.
22515         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22516         * tests/uniwidth/test-u32-width.c: Likewise.
22517         * tests/uniwidth/test-uc_width.c: Likewise.
22518         * tests/uniwidth/test-uc_width2.c: Likewise.
22519         * modules/acl-tests (Files): Add tests/macros.h.
22520         * modules/areadlink-tests (Files): Likewise.
22521         * modules/areadlink-with-size-tests (Files): Likewise.
22522         * modules/areadlinkat-tests (Files): Likewise.
22523         * modules/areadlinkat-with-size-tests (Files): Likewise.
22524         * modules/argmatch-tests (Files): Likewise.
22525         * modules/argv-iter-tests (Files): Likewise.
22526         * modules/array-list-tests (Files): Likewise.
22527         * modules/array-mergesort-tests (Files): Likewise.
22528         * modules/array-oset-tests (Files): Likewise.
22529         * modules/avltree-list-tests (Files): Likewise.
22530         * modules/avltree-oset-tests (Files): Likewise.
22531         * modules/avltreehash-list-tests (Files): Likewise.
22532         * modules/base64-tests (Files): Likewise.
22533         * modules/binary-io-tests (Files): Likewise.
22534         * modules/bitrotate-tests (Files): Likewise.
22535         * modules/btowc-tests (Files): Likewise.
22536         * modules/byteswap-tests (Files): Likewise.
22537         * modules/c-ctype-tests (Files): Likewise.
22538         * modules/c-stack-tests (Files): Likewise.
22539         * modules/c-strcase-tests (Files): Likewise.
22540         * modules/c-strcasestr-tests (Files): Likewise.
22541         * modules/c-strstr-tests (Files): Likewise.
22542         * modules/canonicalize-lgpl-tests (Files): Likewise.
22543         * modules/canonicalize-tests (Files): Likewise.
22544         * modules/carray-list-tests (Files): Likewise.
22545         * modules/ceilf-tests (Files): Likewise.
22546         * modules/ceill-tests (Files): Likewise.
22547         * modules/chown-tests (Files): Likewise.
22548         * modules/cloexec-tests (Files): Likewise.
22549         * modules/copy-file-tests (Files): Likewise.
22550         * modules/count-one-bits-tests (Files): Likewise.
22551         * modules/dprintf-posix-tests (Files): Likewise.
22552         * modules/dup2-tests (Files): Likewise.
22553         * modules/dup3-tests (Files): Likewise.
22554         * modules/duplocale-tests (Files): Likewise.
22555         * modules/fbufmode-tests (Files): Likewise.
22556         * modules/fchdir-tests (Files): Likewise.
22557         * modules/fcntl-safer-tests (Files): Likewise.
22558         * modules/fcntl-tests (Files): Likewise.
22559         * modules/fdopendir-tests (Files): Likewise.
22560         * modules/fdutimensat-tests (Files): Likewise.
22561         * modules/fflush-tests (Files): Likewise.
22562         * modules/filevercmp-tests (Files): Likewise.
22563         * modules/flock-tests (Files): Likewise.
22564         * modules/floorf-tests (Files): Likewise.
22565         * modules/floorl-tests (Files): Likewise.
22566         * modules/fnmatch-tests (Files): Likewise.
22567         * modules/fopen-safer-tests (Files): Likewise.
22568         * modules/fopen-tests (Files): Likewise.
22569         * modules/fpending-tests (Files): Likewise.
22570         * modules/fprintf-posix-tests (Files): Likewise.
22571         * modules/fpurge-tests (Files): Likewise.
22572         * modules/freadable-tests (Files): Likewise.
22573         * modules/freadahead-tests (Files): Likewise.
22574         * modules/freading-tests (Files): Likewise.
22575         * modules/freadptr-tests (Files): Likewise.
22576         * modules/freadseek-tests (Files): Likewise.
22577         * modules/freopen-tests (Files): Likewise.
22578         * modules/frexp-nolibm-tests (Files): Likewise.
22579         * modules/frexp-tests (Files): Likewise.
22580         * modules/frexpl-nolibm-tests (Files): Likewise.
22581         * modules/frexpl-tests (Files): Likewise.
22582         * modules/fseek-tests (Files): Likewise.
22583         * modules/fseeko-tests (Files): Likewise.
22584         * modules/fstrcmp-tests (Files): Likewise.
22585         * modules/fsync-tests (Files): Likewise.
22586         * modules/ftell-tests (Files): Likewise.
22587         * modules/ftello-tests (Files): Likewise.
22588         * modules/func-tests (Files): Likewise.
22589         * modules/futimens-tests (Files): Likewise.
22590         * modules/fwritable-tests (Files): Likewise.
22591         * modules/fwriting-tests (Files): Likewise.
22592         * modules/getcwd-tests (Files): Likewise.
22593         * modules/getdate-tests (Files): Likewise.
22594         * modules/getdelim-tests (Files): Likewise.
22595         * modules/getdtablesize-tests (Files): Likewise.
22596         * modules/getgroups-tests (Files): Likewise.
22597         * modules/getline-tests (Files): Likewise.
22598         * modules/getndelim2-tests (Files): Likewise.
22599         * modules/glob-tests (Files): Likewise.
22600         * modules/hash-tests (Files): Likewise.
22601         * modules/i-ring-tests (Files): Likewise.
22602         * modules/iconv-tests (Files): Likewise.
22603         * modules/iconv_open-utf-tests (Files): Likewise.
22604         * modules/idpriv-drop-tests (Files): Likewise.
22605         * modules/idpriv-droptemp-tests (Files): Likewise.
22606         * modules/inet_ntop-tests (Files): Likewise.
22607         * modules/inet_pton-tests (Files): Likewise.
22608         * modules/isblank-tests (Files): Likewise.
22609         * modules/isfinite-tests (Files): Likewise.
22610         * modules/isinf-tests (Files): Likewise.
22611         * modules/isnan-tests (Files): Likewise.
22612         * modules/isnand-nolibm-tests (Files): Likewise.
22613         * modules/isnand-tests (Files): Likewise.
22614         * modules/isnanf-nolibm-tests (Files): Likewise.
22615         * modules/isnanf-tests (Files): Likewise.
22616         * modules/isnanl-nolibm-tests (Files): Likewise.
22617         * modules/isnanl-tests (Files): Likewise.
22618         * modules/lchown-tests (Files): Likewise.
22619         * modules/ldexpl-tests (Files): Likewise.
22620         * modules/link-tests (Files): Likewise.
22621         * modules/linkat-tests (Files): Likewise.
22622         * modules/linked-list-tests (Files): Likewise.
22623         * modules/linkedhash-list-tests (Files): Likewise.
22624         * modules/localename-tests (Files): Likewise.
22625         * modules/lseek-tests (Files): Likewise.
22626         * modules/lstat-tests (Files): Likewise.
22627         * modules/mbmemcasecmp-tests (Files): Likewise.
22628         * modules/mbmemcasecoll-tests (Files): Likewise.
22629         * modules/mbrtowc-tests (Files): Likewise.
22630         * modules/mbscasecmp-tests (Files): Likewise.
22631         * modules/mbscasestr-tests (Files): Likewise.
22632         * modules/mbschr-tests (Files): Likewise.
22633         * modules/mbscspn-tests (Files): Likewise.
22634         * modules/mbsinit-tests (Files): Likewise.
22635         * modules/mbsncasecmp-tests (Files): Likewise.
22636         * modules/mbsnrtowcs-tests (Files): Likewise.
22637         * modules/mbspbrk-tests (Files): Likewise.
22638         * modules/mbspcasecmp-tests (Files): Likewise.
22639         * modules/mbsrchr-tests (Files): Likewise.
22640         * modules/mbsrtowcs-tests (Files): Likewise.
22641         * modules/mbsspn-tests (Files): Likewise.
22642         * modules/mbsstr-tests (Files): Likewise.
22643         * modules/memchr-tests (Files): Likewise.
22644         * modules/memchr2-tests (Files): Likewise.
22645         * modules/memcmp-tests (Files): Likewise.
22646         * modules/memmem-tests (Files): Likewise.
22647         * modules/memrchr-tests (Files): Likewise.
22648         * modules/mkdir-tests (Files): Likewise.
22649         * modules/mkfifo-tests (Files): Likewise.
22650         * modules/mkfifoat-tests (Files): Likewise.
22651         * modules/mknod-tests (Files): Likewise.
22652         * modules/nanosleep-tests (Files): Likewise.
22653         * modules/nl_langinfo-tests (Files): Likewise.
22654         * modules/obstack-printf-tests (Files): Likewise.
22655         * modules/open-tests (Files): Likewise.
22656         * modules/openat-tests (Files): Likewise.
22657         * modules/pipe-filter-gi-tests (Files): Likewise.
22658         * modules/pipe-filter-ii-tests (Files): Likewise.
22659         * modules/pipe2-tests (Files): Likewise.
22660         * modules/popen-safer-tests (Files): Likewise.
22661         * modules/popen-tests (Files): Likewise.
22662         * modules/posixtm-tests (Files): Likewise.
22663         * modules/pread-tests (Files): Likewise.
22664         * modules/printf-frexp-tests (Files): Likewise.
22665         * modules/printf-frexpl-tests (Files): Likewise.
22666         * modules/printf-posix-tests (Files): Likewise.
22667         * modules/priv-set-tests (Files): Likewise.
22668         * modules/quotearg-tests (Files): Likewise.
22669         * modules/random_r-tests (Files): Likewise.
22670         * modules/rawmemchr-tests (Files): Likewise.
22671         * modules/rbtree-list-tests (Files): Likewise.
22672         * modules/rbtree-oset-tests (Files): Likewise.
22673         * modules/rbtreehash-list-tests (Files): Likewise.
22674         * modules/readlink-tests (Files): Likewise.
22675         * modules/remove-tests (Files): Likewise.
22676         * modules/rename-tests (Files): Likewise.
22677         * modules/renameat-tests (Files): Likewise.
22678         * modules/rmdir-tests (Files): Likewise.
22679         * modules/round-tests (Files): Likewise.
22680         * modules/roundf-tests (Files): Likewise.
22681         * modules/roundl-tests (Files): Likewise.
22682         * modules/safe-alloc-tests (Files): Likewise.
22683         * modules/setenv-tests (Files): Likewise.
22684         * modules/sigaction-tests (Files): Likewise.
22685         * modules/signbit-tests (Files): Likewise.
22686         * modules/sleep-tests (Files): Likewise.
22687         * modules/snprintf-posix-tests (Files): Likewise.
22688         * modules/snprintf-tests (Files): Likewise.
22689         * modules/sprintf-posix-tests (Files): Likewise.
22690         * modules/stat-tests (Files): Likewise.
22691         * modules/stat-time-tests (Files): Likewise.
22692         * modules/strcasestr-tests (Files): Likewise.
22693         * modules/strchrnul-tests (Files): Likewise.
22694         * modules/strerror-tests (Files): Likewise.
22695         * modules/striconv-tests (Files): Likewise.
22696         * modules/striconveh-tests (Files): Likewise.
22697         * modules/striconveha-tests (Files): Likewise.
22698         * modules/strsignal-tests (Files): Likewise.
22699         * modules/strstr-tests (Files): Likewise.
22700         * modules/strtod-tests (Files): Likewise.
22701         * modules/strverscmp-tests (Files): Likewise.
22702         * modules/symlink-tests (Files): Likewise.
22703         * modules/symlinkat-tests (Files): Likewise.
22704         * modules/trunc-tests (Files): Likewise.
22705         * modules/truncf-tests (Files): Likewise.
22706         * modules/truncl-tests (Files): Likewise.
22707         * modules/uname-tests (Files): Likewise.
22708         * modules/unicase/cased-tests (Files): Likewise.
22709         * modules/unicase/ignorable-tests (Files): Likewise.
22710         * modules/unicase/locale-language-tests (Files): Likewise.
22711         * modules/unicase/tolower-tests (Files): Likewise.
22712         * modules/unicase/totitle-tests (Files): Likewise.
22713         * modules/unicase/toupper-tests (Files): Likewise.
22714         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22715         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22716         * modules/unicase/u8-casefold-tests (Files): Likewise.
22717         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22718         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22719         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22720         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22721         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22722         * modules/unicase/u8-tolower-tests (Files): Likewise.
22723         * modules/unicase/u8-totitle-tests (Files): Likewise.
22724         * modules/unicase/u8-toupper-tests (Files): Likewise.
22725         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22726         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22727         * modules/unicase/u16-casefold-tests (Files): Likewise.
22728         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22729         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22730         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22731         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22732         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22733         * modules/unicase/u16-tolower-tests (Files): Likewise.
22734         * modules/unicase/u16-totitle-tests (Files): Likewise.
22735         * modules/unicase/u16-toupper-tests (Files): Likewise.
22736         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22737         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22738         * modules/unicase/u32-casefold-tests (Files): Likewise.
22739         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22740         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22741         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22742         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22743         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22744         * modules/unicase/u32-tolower-tests (Files): Likewise.
22745         * modules/unicase/u32-totitle-tests (Files): Likewise.
22746         * modules/unicase/u32-toupper-tests (Files): Likewise.
22747         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22748         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22749         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22750         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22751         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22752         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22753         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22754         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22755         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22756         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22757         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22758         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22759         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22760         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22761         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22762         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22763         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22764         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22765         * modules/unictype/block-list-tests (Files): Likewise.
22766         * modules/unictype/block-of-tests (Files): Likewise.
22767         * modules/unictype/block-test-tests (Files): Likewise.
22768         * modules/unictype/category-C-tests (Files): Likewise.
22769         * modules/unictype/category-Cc-tests (Files): Likewise.
22770         * modules/unictype/category-Cf-tests (Files): Likewise.
22771         * modules/unictype/category-Cn-tests (Files): Likewise.
22772         * modules/unictype/category-Co-tests (Files): Likewise.
22773         * modules/unictype/category-Cs-tests (Files): Likewise.
22774         * modules/unictype/category-L-tests (Files): Likewise.
22775         * modules/unictype/category-Ll-tests (Files): Likewise.
22776         * modules/unictype/category-Lm-tests (Files): Likewise.
22777         * modules/unictype/category-Lo-tests (Files): Likewise.
22778         * modules/unictype/category-Lt-tests (Files): Likewise.
22779         * modules/unictype/category-Lu-tests (Files): Likewise.
22780         * modules/unictype/category-M-tests (Files): Likewise.
22781         * modules/unictype/category-Mc-tests (Files): Likewise.
22782         * modules/unictype/category-Me-tests (Files): Likewise.
22783         * modules/unictype/category-Mn-tests (Files): Likewise.
22784         * modules/unictype/category-N-tests (Files): Likewise.
22785         * modules/unictype/category-Nd-tests (Files): Likewise.
22786         * modules/unictype/category-Nl-tests (Files): Likewise.
22787         * modules/unictype/category-No-tests (Files): Likewise.
22788         * modules/unictype/category-P-tests (Files): Likewise.
22789         * modules/unictype/category-Pc-tests (Files): Likewise.
22790         * modules/unictype/category-Pd-tests (Files): Likewise.
22791         * modules/unictype/category-Pe-tests (Files): Likewise.
22792         * modules/unictype/category-Pf-tests (Files): Likewise.
22793         * modules/unictype/category-Pi-tests (Files): Likewise.
22794         * modules/unictype/category-Po-tests (Files): Likewise.
22795         * modules/unictype/category-Ps-tests (Files): Likewise.
22796         * modules/unictype/category-S-tests (Files): Likewise.
22797         * modules/unictype/category-Sc-tests (Files): Likewise.
22798         * modules/unictype/category-Sk-tests (Files): Likewise.
22799         * modules/unictype/category-Sm-tests (Files): Likewise.
22800         * modules/unictype/category-So-tests (Files): Likewise.
22801         * modules/unictype/category-Z-tests (Files): Likewise.
22802         * modules/unictype/category-Zl-tests (Files): Likewise.
22803         * modules/unictype/category-Zp-tests (Files): Likewise.
22804         * modules/unictype/category-Zs-tests (Files): Likewise.
22805         * modules/unictype/category-and-not-tests (Files): Likewise.
22806         * modules/unictype/category-and-tests (Files): Likewise.
22807         * modules/unictype/category-byname-tests (Files): Likewise.
22808         * modules/unictype/category-name-tests (Files): Likewise.
22809         * modules/unictype/category-none-tests (Files): Likewise.
22810         * modules/unictype/category-of-tests (Files): Likewise.
22811         * modules/unictype/category-or-tests (Files): Likewise.
22812         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22813         * modules/unictype/combining-class-tests (Files): Likewise.
22814         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22815         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22816         * modules/unictype/ctype-blank-tests (Files): Likewise.
22817         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22818         * modules/unictype/ctype-digit-tests (Files): Likewise.
22819         * modules/unictype/ctype-graph-tests (Files): Likewise.
22820         * modules/unictype/ctype-lower-tests (Files): Likewise.
22821         * modules/unictype/ctype-print-tests (Files): Likewise.
22822         * modules/unictype/ctype-punct-tests (Files): Likewise.
22823         * modules/unictype/ctype-space-tests (Files): Likewise.
22824         * modules/unictype/ctype-upper-tests (Files): Likewise.
22825         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22826         * modules/unictype/decimal-digit-tests (Files): Likewise.
22827         * modules/unictype/digit-tests (Files): Likewise.
22828         * modules/unictype/mirror-tests (Files): Likewise.
22829         * modules/unictype/numeric-tests (Files): Likewise.
22830         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22831         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22832         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22833         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22834         Likewise.
22835         * modules/unictype/property-bidi-block-separator-tests (Files):
22836         Likewise.
22837         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22838         Likewise.
22839         * modules/unictype/property-bidi-common-separator-tests (Files):
22840         Likewise.
22841         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22842         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22843         Likewise.
22844         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22845         Likewise.
22846         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22847         Likewise.
22848         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22849         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22850         Likewise.
22851         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22852         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22853         Likewise.
22854         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22855         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22856         * modules/unictype/property-bidi-segment-separator-tests (Files):
22857         Likewise.
22858         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22859         * modules/unictype/property-byname-tests (Files): Likewise.
22860         * modules/unictype/property-combining-tests (Files): Likewise.
22861         * modules/unictype/property-composite-tests (Files): Likewise.
22862         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22863         * modules/unictype/property-dash-tests (Files): Likewise.
22864         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22865         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22866         Likewise.
22867         * modules/unictype/property-deprecated-tests (Files): Likewise.
22868         * modules/unictype/property-diacritic-tests (Files): Likewise.
22869         * modules/unictype/property-extender-tests (Files): Likewise.
22870         * modules/unictype/property-format-control-tests (Files): Likewise.
22871         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22872         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22873         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22874         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22875         * modules/unictype/property-hyphen-tests (Files): Likewise.
22876         * modules/unictype/property-id-continue-tests (Files): Likewise.
22877         * modules/unictype/property-id-start-tests (Files): Likewise.
22878         * modules/unictype/property-ideographic-tests (Files): Likewise.
22879         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22880         * modules/unictype/property-ids-trinary-operator-tests (Files):
22881         Likewise.
22882         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22883         * modules/unictype/property-iso-control-tests (Files): Likewise.
22884         * modules/unictype/property-join-control-tests (Files): Likewise.
22885         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22886         * modules/unictype/property-line-separator-tests (Files): Likewise.
22887         * modules/unictype/property-logical-order-exception-tests (Files):
22888         Likewise.
22889         * modules/unictype/property-lowercase-tests (Files): Likewise.
22890         * modules/unictype/property-math-tests (Files): Likewise.
22891         * modules/unictype/property-non-break-tests (Files): Likewise.
22892         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22893         * modules/unictype/property-numeric-tests (Files): Likewise.
22894         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22895         * modules/unictype/property-other-default-ignorable-code-point-tests
22896         (Files): Likewise.
22897         * modules/unictype/property-other-grapheme-extend-tests (Files):
22898         Likewise.
22899         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22900         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22901         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22902         * modules/unictype/property-other-math-tests (Files): Likewise.
22903         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22904         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22905         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22906         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22907         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22908         * modules/unictype/property-private-use-tests (Files): Likewise.
22909         * modules/unictype/property-punctuation-tests (Files): Likewise.
22910         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22911         * modules/unictype/property-radical-tests (Files): Likewise.
22912         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22913         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22914         * modules/unictype/property-space-tests (Files): Likewise.
22915         * modules/unictype/property-terminal-punctuation-tests (Files):
22916         Likewise.
22917         * modules/unictype/property-test-tests (Files): Likewise.
22918         * modules/unictype/property-titlecase-tests (Files): Likewise.
22919         * modules/unictype/property-unassigned-code-value-tests (Files):
22920         Likewise.
22921         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22922         * modules/unictype/property-uppercase-tests (Files): Likewise.
22923         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22924         * modules/unictype/property-white-space-tests (Files): Likewise.
22925         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22926         * modules/unictype/property-xid-start-tests (Files): Likewise.
22927         * modules/unictype/property-zero-width-tests (Files): Likewise.
22928         * modules/unictype/scripts-tests (Files): Likewise.
22929         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22930         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22931         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22932         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22933         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22934         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22935         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22936         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22937         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22938         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22939         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22940         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22941         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22942         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22943         * modules/uninorm/composition-tests (Files): Likewise.
22944         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22945         * modules/uninorm/decomposition-tests (Files): Likewise.
22946         * modules/uninorm/filter-tests (Files): Likewise.
22947         * modules/uninorm/nfc-tests (Files): Likewise.
22948         * modules/uninorm/nfd-tests (Files): Likewise.
22949         * modules/uninorm/nfkc-tests (Files): Likewise.
22950         * modules/uninorm/nfkd-tests (Files): Likewise.
22951         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22952         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22953         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22954         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22955         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22956         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22957         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22958         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22959         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22960         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22961         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22962         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22963         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22964         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22965         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22966         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22967         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22968         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22969         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22970         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22971         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22972         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22973         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22974         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22975         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22976         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22977         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22978         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22979         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22980         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22981         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22982         * modules/uniwidth/u8-width-tests (Files): Likewise.
22983         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22984         * modules/uniwidth/u16-width-tests (Files): Likewise.
22985         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22986         * modules/uniwidth/u32-width-tests (Files): Likewise.
22987         * modules/uniwidth/width-tests (Files): Likewise.
22988         * modules/unlink-tests (Files): Likewise.
22989         * modules/unsetenv-tests (Files): Likewise.
22990         * modules/usleep-tests (Files): Likewise.
22991         * modules/utimens-tests (Files): Likewise.
22992         * modules/utimensat-tests (Files): Likewise.
22993         * modules/vasnprintf-posix-tests (Files): Likewise.
22994         * modules/vasnprintf-tests (Files): Likewise.
22995         * modules/vasprintf-posix-tests (Files): Likewise.
22996         * modules/vasprintf-tests (Files): Likewise.
22997         * modules/vdprintf-posix-tests (Files): Likewise.
22998         * modules/vfprintf-posix-tests (Files): Likewise.
22999         * modules/vprintf-posix-tests (Files): Likewise.
23000         * modules/vsnprintf-posix-tests (Files): Likewise.
23001         * modules/vsnprintf-tests (Files): Likewise.
23002         * modules/vsprintf-posix-tests (Files): Likewise.
23003         * modules/wcrtomb-tests (Files): Likewise.
23004         * modules/wcsnrtombs-tests (Files): Likewise.
23005         * modules/wcsrtombs-tests (Files): Likewise.
23006         * modules/wctype-tests (Files): Likewise.
23007         * modules/wcwidth-tests (Files): Likewise.
23008         * modules/xmemdup0-tests (Files): Likewise.
23009         * modules/xprintf-posix-tests (Files): Likewise.
23010         * modules/xvasprintf-tests (Files): Likewise.
23011
23012 2009-12-24  Eric Blake  <ebb9@byu.net>
23013
23014         test-nanosleep: fix typo
23015         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23016         patch.
23017         Reported by Bruno Haible.
23018
23019 2009-12-24  Bruno Haible  <bruno@clisp.org>
23020
23021         Reduce namespace pollution on glibc systems.
23022         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23023         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23024         systems.
23025         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23026         <getopt.h> on glibc systems.
23027         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23028         systems.
23029         * lib/fcntl.c: Include <unistd.h> here instead.
23030
23031 2009-12-24  Bruno Haible  <bruno@clisp.org>
23032
23033         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23034
23035 2009-12-24  Eric Blake  <ebb9@byu.net>
23036
23037         tests: add signature checks
23038         * tests/signature.h (SIGNATURE_CHECK): New file.
23039         * modules/atexit-tests (Files): Use it.
23040         * modules/btowc-tests (Files): Likewise.
23041         * modules/canonicalize-lgpl-tests (Files): Likewise.
23042         * modules/ceilf-tests (Files): Likewise.
23043         * modules/ceill-tests (Files): Likewise.
23044         * modules/chown-tests (Files): Likewise.
23045         * modules/dprintf-posix-tests (Files): Likewise.
23046         * modules/dup2-tests (Files): Likewise.
23047         * modules/dup3-tests (Files): Likewise.
23048         * modules/duplocale-tests (Files): Likewise.
23049         * modules/fchdir-tests (Files): Likewise.
23050         * modules/fcntl-tests (Files): Likewise.
23051         * modules/fdopendir-tests (Files): Likewise.
23052         * modules/fflush-tests (Files): Likewise.
23053         * modules/flock-tests (Files): Likewise.
23054         * modules/floorf-tests (Files): Likewise.
23055         * modules/floorl-tests (Files): Likewise.
23056         * modules/fnmatch-tests (Files): Likewise.
23057         * modules/fopen-tests (Files): Likewise.
23058         * modules/fprintf-posix-tests (Files): Likewise.
23059         * modules/freopen-tests (Files): Likewise.
23060         * modules/frexp-nolibm-tests (Files): Likewise.
23061         * modules/frexp-tests (Files): Likewise.
23062         * modules/frexpl-nolibm-tests (Files): Likewise.
23063         * modules/frexpl-tests (Files): Likewise.
23064         * modules/fseek-tests (Files): Likewise.
23065         * modules/fseeko-tests (Files): Likewise.
23066         * modules/fsync-tests (Files): Likewise.
23067         * modules/ftell-tests (Files): Likewise.
23068         * modules/ftello-tests (Files): Likewise.
23069         * modules/futimens-tests (Files): Likewise.
23070         * modules/getaddrinfo-tests (Files): Likewise.
23071         * modules/getcwd-tests (Files): Likewise.
23072         * modules/getdelim-tests (Files): Likewise.
23073         * modules/getdtablesize-tests (Files): Likewise.
23074         * modules/getgroups-tests (Files): Likewise.
23075         * modules/gethostname-tests (Files): Likewise.
23076         * modules/getline-tests (Files): Likewise.
23077         * modules/getopt-posix-tests (Files): Likewise.
23078         * modules/gettimeofday-tests (Files): Likewise.
23079         * modules/glob-tests (Files): Likewise.
23080         * modules/iconv-tests (Files): Likewise.
23081         * modules/inet_ntop-tests (Files): Likewise.
23082         * modules/inet_pton-tests (Files): Likewise.
23083         * modules/isblank-tests (Files): Likewise.
23084         * modules/lchown-tests (Files): Likewise.
23085         * modules/ldexpl-tests (Files): Likewise.
23086         * modules/link-tests (Files): Likewise.
23087         * modules/linkat-tests (Files): Likewise.
23088         * modules/lseek-tests (Files): Likewise.
23089         * modules/lstat-tests (Files): Likewise.
23090         * modules/mbrtowc-tests (Files): Likewise.
23091         * modules/mbsinit-tests (Files): Likewise.
23092         * modules/mbsnrtowcs-tests (Files): Likewise.
23093         * modules/mbsrtowcs-tests (Files): Likewise.
23094         * modules/memchr-tests (Files): Likewise.
23095         * modules/memcmp-tests (Files): Likewise.
23096         * modules/memmem-tests (Files): Likewise.
23097         * modules/memrchr-tests (Files): Likewise.
23098         * modules/mkdir-tests (Files): Likewise.
23099         * modules/mkfifo-tests (Files): Likewise.
23100         * modules/mkfifoat-tests (Files): Likewise.
23101         * modules/mknod-tests (Files): Likewise.
23102         * modules/nanosleep-tests (Files): Likewise.
23103         * modules/nl_langinfo-tests (Files): Likewise.
23104         * modules/obstack-printf-tests (Files): Likewise.
23105         * modules/open-tests (Files): Likewise.
23106         * modules/openat-tests (Files): Likewise.
23107         * modules/perror-tests (Files): Likewise.
23108         * modules/pipe2-tests (Files): Likewise.
23109         * modules/poll-tests (Files): Likewise.
23110         * modules/popen-tests (Files): Likewise.
23111         * modules/posix_spawn-tests (Files): Likewise.
23112         * modules/posix_spawnp-tests (Files): Likewise.
23113         * modules/pread-tests (Files): Likewise.
23114         * modules/printf-posix-tests (Files): Likewise.
23115         * modules/pty-tests (Files): Likewise.
23116         * modules/random_r-tests (Files): Likewise.
23117         * modules/rawmemchr-tests (Files): Likewise.
23118         * modules/readlink-tests (Files): Likewise.
23119         * modules/remove-tests (Files): Likewise.
23120         * modules/rename-tests (Files): Likewise.
23121         * modules/renameat-tests (Files): Likewise.
23122         * modules/rmdir-tests (Files): Likewise.
23123         * modules/round-tests (Files): Likewise.
23124         * modules/roundf-tests (Files): Likewise.
23125         * modules/roundl-tests (Files): Likewise.
23126         * modules/select-tests (Files): Likewise.
23127         * modules/setenv-tests (Files): Likewise.
23128         * modules/sigaction-tests (Files): Likewise.
23129         * modules/sleep-tests (Files): Likewise.
23130         * modules/snprintf-posix-tests (Files): Likewise.
23131         * modules/snprintf-tests (Files): Likewise.
23132         * modules/sprintf-posix-tests (Files): Likewise.
23133         * modules/stat-tests (Files): Likewise.
23134         * modules/strcasestr-tests (Files): Likewise.
23135         * modules/strchrnul-tests (Files): Likewise.
23136         * modules/strerror-tests (Files): Likewise.
23137         * modules/strsignal-tests (Files): Likewise.
23138         * modules/strstr-tests (Files): Likewise.
23139         * modules/strtod-tests (Files): Likewise.
23140         * modules/strverscmp-tests (Files): Likewise.
23141         * modules/symlink-tests (Files): Likewise.
23142         * modules/symlinkat-tests (Files): Likewise.
23143         * modules/times-tests (Files): Likewise.
23144         * modules/trunc-tests (Files): Likewise.
23145         * modules/truncf-tests (Files): Likewise.
23146         * modules/truncl-tests (Files): Likewise.
23147         * modules/tsearch-tests (Files): Likewise.
23148         * modules/uname-tests (Files): Likewise.
23149         * modules/unlink-tests (Files): Likewise.
23150         * modules/unsetenv-tests (Files): Likewise.
23151         * modules/usleep-tests (Files): Likewise.
23152         * modules/utimensat-tests (Files): Likewise.
23153         * modules/vasprintf-tests (Files): Likewise.
23154         * modules/vdprintf-posix-tests (Files): Likewise.
23155         * modules/vfprintf-posix-tests (Files): Likewise.
23156         * modules/vprintf-posix-tests (Files): Likewise.
23157         * modules/vsnprintf-posix-tests (Files): Likewise.
23158         * modules/vsnprintf-tests (Files): Likewise.
23159         * modules/vsprintf-posix-tests (Files): Likewise.
23160         * modules/wcrtomb-tests (Files): Likewise.
23161         * modules/wcsnrtombs-tests (Files): Likewise.
23162         * modules/wcsrtombs-tests (Files): Likewise.
23163         * modules/wcwidth-tests (Files): Likewise.
23164         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23165         * tests/test-isinf.c (isinf): Likewise.
23166         * tests/test-isnan.c (isnan): Likewise.
23167         * tests/test-signbit.c (signbit): Likewise.
23168         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23169         declaration, either as macro or with correct signature.
23170         (select): Ensure function under test is declared with correct
23171         signature in correct header.
23172         * tests/test-atexit.c (atexit): Likewise.
23173         * tests/test-btowc.c (btowc): Likewise.
23174         * tests/test-canonicalize-lgpl.c (realpath)
23175         (canonicalize_file_name): Likewise.
23176         * tests/test-ceilf1.c (ceilf): Likewise.
23177         * tests/test-ceill.c (ceill): Likewise.
23178         * tests/test-chown.c (chown): Likewise.
23179         * tests/test-dprintf-posix.c (dprintf): Likewise.
23180         * tests/test-dup2.c (dup2): Likewise.
23181         * tests/test-dup3.c (dup3): Likewise.
23182         * tests/test-duplocale.c (duplocale): Likewise.
23183         * tests/test-fchdir.c (fchdir): Likewise.
23184         * tests/test-fchownat.c (fchownat): Likewise.
23185         * tests/test-fcntl.c (fcntl): Likewise.
23186         * tests/test-fdopendir.c (fdopendir): Likewise.
23187         * tests/test-fflush.c (fflush): Likewise.
23188         * tests/test-flock.c (flock): Likewise.
23189         * tests/test-floorf1.c (floorf): Likewise.
23190         * tests/test-floorl.c (floorl): Likewise.
23191         * tests/test-fnmatch.c (fnmatch): Likewise.
23192         * tests/test-fopen.c (fopen): Likewise.
23193         * tests/test-fprintf-posix.c (fprintf): Likewise.
23194         * tests/test-freopen.c (freopen): Likewise.
23195         * tests/test-frexp.c (frexp): Likewise.
23196         * tests/test-frexpl.c (frexpl): Likewise.
23197         * tests/test-fseek.c (fseek): Likewise.
23198         * tests/test-fseeko.c (fseeko): Likewise.
23199         * tests/test-fstatat.c (fstatat): Likewise.
23200         * tests/test-fsync.c (fsync): Likewise.
23201         * tests/test-ftell.c (ftell): Likewise.
23202         * tests/test-ftello.c (ftello): Likewise.
23203         * tests/test-futimens.c (futimens): Likewise.
23204         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23205         (gai_strerror): Likewise.
23206         * tests/test-getcwd.c (getcwd): Likewise.
23207         * tests/test-getdelim.c (getdelim): Likewise.
23208         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23209         * tests/test-getgroups.c (getgroups): Likewise.
23210         * tests/test-gethostname.c (gethostname): Likewise.
23211         * tests/test-getline.c (getline): Likewise.
23212         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23213         Likewise.
23214         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23215         * tests/test-glob.c (glob, globfree): Likewise.
23216         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23217         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23218         * tests/test-inet_pton.c (inet_pton): Likewise.
23219         * tests/test-isblank.c (isblank): Likewise.
23220         * tests/test-lchown.c (lchown): Likewise.
23221         * tests/test-ldexpl.c (ldexpl): Likewise.
23222         * tests/test-link.c (link): Likewise.
23223         * tests/test-linkat.c (linkat): Likewise.
23224         * tests/test-lseek.c (lseek): Likewise.
23225         * tests/test-lstat.c (lstat): Likewise.
23226         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23227         * tests/test-mbsinit.c (mbsinit): Likewise.
23228         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23229         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23230         * tests/test-memchr.c (memchr): Likewise.
23231         * tests/test-memcmp.c (memcmp): Likewise.
23232         * tests/test-memmem.c (memmem): Likewise.
23233         * tests/test-memrchr.c (memrchr): Likewise.
23234         * tests/test-mkdir.c (mkdir): Likewise.
23235         * tests/test-mkdirat.c (mkdirat): Likewise.
23236         * tests/test-mkfifo.c (mkfifo): Likewise.
23237         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23238         * tests/test-mknod.c (mknod): Likewise.
23239         * tests/test-nanosleep.c (nanosleep): Likewise.
23240         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23241         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23242         Likewise.
23243         * tests/test-open.c (open): Likewise.
23244         * tests/test-openat.c (openat): Likewise.
23245         * tests/test-perror.c (perror): Likewise.
23246         * tests/test-pipe2.c (pipe2): Likewise.
23247         * tests/test-poll.c (poll): Likewise.
23248         * tests/test-popen.c (popen, pclose): Likewise.
23249         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23250         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23251         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23252         (posix_spawn_file_actions_destroy)
23253         (posix_spawn_file_actions_addclose)
23254         (posix_spawn_file_actions_addopen)
23255         (posix_spawn_file_actions_adddup2): Likewise.
23256         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23257         * tests/test-pread.c (pread): Likewise.
23258         * tests/test-printf-posix.c (printf): Likewise.
23259         * tests/test-pty.c (openpty, forkpty): Likewise.
23260         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23261         (random_r): Likewise.
23262         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23263         * tests/test-readlink.c (readlink): Likewise.
23264         * tests/test-remove.c (remove): Likewise.
23265         * tests/test-rename.c (rename): Likewise.
23266         * tests/test-renameat.c (renameat): Likewise.
23267         * tests/test-rmdir.c (rmdir): Likewise.
23268         * tests/test-round1.c (round): Likewise.
23269         * tests/test-roundf1.c (roundf): Likewise.
23270         * tests/test-roundl.c (roundl): Likewise.
23271         * tests/test-setenv.c (setenv): Likewise.
23272         * tests/test-sigaction.c (sigaction): Likewise.
23273         * tests/test-sleep.c (sleep): Likewise.
23274         * tests/test-snprintf.c (snprintf): Likewise.
23275         * tests/test-sprintf-posix.c (sprintf): Likewise.
23276         * tests/test-stat.c (stat): Likewise.
23277         * tests/test-stpncpy.c (stpncpy): Likewise.
23278         * tests/test-strcasestr.c (strcasestr): Likewise.
23279         * tests/test-strchrnul.c (strchrnul): Likewise.
23280         * tests/test-strerror.c (strerror): Likewise.
23281         * tests/test-strsignal.c (strsignal): Likewise.
23282         * tests/test-strstr.c (strstr): Likewise.
23283         * tests/test-strtod.c (strtod): Likewise.
23284         * tests/test-strverscmp.c (strverscmp): Likewise.
23285         * tests/test-symlink.c (symlink): Likewise.
23286         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23287         * tests/test-times.c (times): Likewise.
23288         * tests/test-trunc1.c (trunc): Likewise.
23289         * tests/test-truncf1.c (truncf): Likewise.
23290         * tests/test-truncl.c (truncl): Likewise.
23291         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23292         Likewise.
23293         * tests/test-uname.c (uname): Likewise.
23294         * tests/test-unlink.c (unlink): Likewise.
23295         * tests/test-unlinkat.c (unlinkat): Likewise.
23296         * tests/test-unsetenv.c (unsetenv): Likewise.
23297         * tests/test-usleep.c (usleep): Likewise.
23298         * tests/test-utimensat.c (utimensat): Likewise.
23299         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23300         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23301         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23302         * tests/test-vprintf-posix.c (vprintf): Likewise.
23303         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23304         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23305         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23306         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23307         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23308         * tests/test-wcwidth.c (wcwidth): Likewise.
23309
23310         build: pull in conditional headers during GNULIB_POSIXCHECK
23311         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23312         definitions from any conditionally-included headers.
23313         * lib/stdlib.in.h (includes): Likewise.
23314         * lib/unistd.in.h (includes): Likewise.
23315
23316 2009-12-24  Bruno Haible  <bruno@clisp.org>
23317
23318         * tests/test-argv-iter.c: Include header file being tested immediately
23319         after config.h.
23320         * tests/test-base64.c: Likewise.
23321         * tests/test-flock.c: Likewise.
23322         * tests/test-fsync.c: Likewise.
23323         * tests/test-getdate.c: Likewise.
23324         * tests/test-getndelim2.c: Likewise.
23325         * tests/test-isfinite.c: Likewise.
23326         * tests/test-isinf.c: Likewise.
23327         * tests/test-strerror.c: Likewise.
23328         * tests/test-strsignal.c: Likewise.
23329
23330 2009-12-23  Eric Blake  <ebb9@byu.net>
23331
23332         unistd: work around cygwin bug
23333         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23334         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23335         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23336
23337 2009-12-23  Bruno Haible  <bruno@clisp.org>
23338
23339         localename: More tests.
23340         * tests/test-localename.c (SIZEOF): New macro.
23341         (categories): New variable.
23342         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23343         test_locale_name_default): Add test w.r.t. thread locale.
23344         (test_locale_name_thread): New function.
23345         (main): Invoke it.
23346
23347         localename: Make aware of thread locale.
23348         * lib/localename.h (gl_locale_name_thread): New declaration.
23349         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23350         behaviour with respect to thread locale.
23351         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23352         <langinfo.h>, glthread/lock.h.
23353         (SIZE_BITS): New macro.
23354         (string_hash): New function.
23355         (struct hash_node): New type.
23356         (HASH_TABLE_SIZE): New macro.
23357         (struniq_hash_table, struniq_lock): New variables.
23358         (struniq): New function.
23359         (gl_locale_name_thread): New function.
23360         (gl_locale_name): Invoke it.
23361         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23362         * modules/localename (Depends-on): Add lock.
23363         Reported by Mike Gran <spk121@yahoo.com>.
23364
23365 2009-12-23  Eric Blake  <ebb9@byu.net>
23366
23367         va-args: new module
23368         * modules/va-args: New file.
23369         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23370         * MODULES.html.sh (Core language properties): Mention it.
23371
23372         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23373         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23374         named alias for __attribute__((__unused__)).
23375         * lib/chown.c: Update client.
23376         * lib/fchmodat.c: Likewise.
23377         * lib/fts.c: Likewise.
23378         * lib/getdate.y: Likewise.
23379         * lib/getgroups.c: Likewise.
23380         * lib/getopt.c: Likewise.
23381         * lib/getugroups.c: Likewise.
23382         * lib/mkdir.c: Likewise.
23383         * lib/mkfifo.c: Likewise.
23384         * lib/mkfifoat.c: Likewise.
23385         * lib/mknod.c: Likewise.
23386         * lib/mknodat.c: Likewise.
23387         * lib/readlink.c: Likewise.
23388         * lib/se-context.in.h: Likewise.
23389         * lib/se-selinux.in.h: Likewise.
23390         * lib/sockets.c: Likewise.
23391         * lib/symlink.c: Likewise.
23392         * lib/symlinkat.c: Likewise.
23393         * lib/unicodeio.c: Likewise.
23394         * lib/unistr.h: Likewise.
23395         * tests/test-areadlink.c: Likewise.
23396         * tests/test-areadlinkat.c: Likewise.
23397         * tests/test-filenamecat.c: Likewise.
23398         * tests/test-fseeko.c: Likewise.
23399         * tests/test-ftello.c: Likewise.
23400         * tests/test-getdate.c: Likewise.
23401         * tests/test-getgroups.c: Likewise.
23402         * tests/test-gethostname.c: Likewise.
23403         * tests/test-quotearg.c: Likewise.
23404         * tests/test-version-etc.c: Likewise.
23405         * tests/test-xalloc-die.c: Likewise.
23406         * tests/test-xfprintf-posix.c: Likewise.
23407         * tests/test-xprintf-posix.c: Likewise.
23408         * tests/test-xvasprintf.c: Likewise.
23409
23410         tests: avoid compiler warnings
23411         * tests/test-fcntl.c (main): Delete unused parameters.
23412         * tests/test-freopen-safer.c (main): Likewise.
23413         * tests/test-xalloc-die.c (main): Mark unused parameters.
23414         * tests/test-fseeko.c (main): Likewise.
23415         * tests/test-ftello.c (main): Likewise.
23416         * tests/test-nanosleep.c (main): Avoid declaration warning.
23417         * tests/test-sleep.c (main): Likewise.
23418         * tests/test-unsetenv.c (main): Silence warning about string
23419         literal.
23420         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23421
23422 2009-12-23  Bruno Haible  <bruno@clisp.org>
23423
23424         * tests/test-localename.c (test_locale_name): New function, extracted
23425         from main. Also test mixed situations.
23426         (test_locale_name_posix, test_locale_name_environ,
23427         test_locale_name_default): New functions.
23428         (main): Invoke them all.
23429         * modules/localename-tests (configure.ac): Test for newlocale.
23430
23431 2009-12-23  Bruno Haible  <bruno@clisp.org>
23432
23433         unistd: Ensure getcwd gets declared before being overridden.
23434         * lib/unistd.in.h: Conditionally include <io.h>.
23435
23436 2009-12-22  Bruno Haible  <bruno@clisp.org>
23437
23438         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23439         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23440         (gl_WCHAR_H): Invoke it.
23441         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23442         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23443         Reported by Karl Berry <karl@freefriends.org>.
23444
23445 2009-12-22  Eric Blake  <ebb9@byu.net>
23446
23447         math, unistd: avoid redundant includes
23448         * lib/math.in.h (isnan): No need to re-include <math.h>.
23449         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23450
23451         getsubopt: work around cygwin bug
23452         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23453         avoid conflicting with system getsubopt.
23454         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23455         bug.
23456
23457         getopt: synchronize from glibc
23458         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23459         parameter order.  Adjust all callers.
23460         (_getopt_internal_r, main): Adjust quoting in error messages.
23461         Drop considerations for outdated POSIX 1003.2 error message.
23462         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23463         callers.
23464         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23465
23466         test-getopt: test stderr behavior
23467         * modules/getopt-posix-tests (Depends-on): Add dup2.
23468         * tests/test-getopt.c (ASSERT): Avoid stderr.
23469         (main): Move stderr to a temporary file.
23470         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23471         Instead, add parameter to inform caller if output occurred.
23472         (test_getopt): Adjust all existing tests to expect silence, and
23473         add new tests of leading ":".
23474         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23475         glibc shortcomings with leading "-:" or "+:" in optstring.
23476         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23477         Likewise.
23478         * doc/posix-functions/getopt.texi (getopt): Likewise.
23479
23480         test-getopt: enhance test
23481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23482         supports optind=0.
23483         * tests/test-getopt.c (OPTIND_MIN): Move...
23484         * tests/test-getopt.h (OPTIND_MIN): ...here.
23485         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23486         Require that optind=0 works, since modern BSD supports it in
23487         addition to optreset, and since coreutils expects it.
23488         (test_getopt_long_only): New test.
23489         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23490         glibc shortcomings with 'W;', and enforcement of optind=0.
23491         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23492         Likewise.
23493
23494 2009-12-21  Bruno Haible  <bruno@clisp.org>
23495
23496         localename: Improvements for MacOS X and Cygwin.
23497         * lib/localename.h (gl_locale_name_environ): New declaration.
23498         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23499         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23500         (gl_locale_name_posix): Invoke it.
23501         (gl_locale_name_default): Add comments. Use Windows native API also on
23502         Cygwin.
23503
23504 2009-12-21  Bruno Haible  <bruno@clisp.org>
23505
23506         Update list of Win32 locale ids.
23507         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23508         (LANG_SAMI): Renamed from LANG_SAAMI.
23509         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23510         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23511         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23512         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23513         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23514         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23515         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23516         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23517         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23518         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23519         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23520         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23521         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23522         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23523         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23524         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23525         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23526         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23527         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23528         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23529         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23530         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23531         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23532         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23533         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23534         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23535         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23536         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23537         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23538         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23539         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23540         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23541         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23542         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23543         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23544         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23545         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23546         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23547         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23548         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23549         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23550         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23551         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23552         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23553         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23554         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23555         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23556         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23557         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23558         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23559         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23560         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23561         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23562         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23563         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23564         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23565         Add more languages and countries for Sami, Sorbian. Add more countries
23566         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23567         for Pashto. Change country for Syriac, Tswana.
23568
23569 2009-12-21  Eric Blake  <ebb9@byu.net>
23570
23571         test-utimens: avoid spurious failure
23572         * tests/test-chown.h (nap): Factor...
23573         * tests/nap.h: ...into new file.
23574         * tests/test-lchown.h (nap): Avoid duplication.
23575         * tests/test-utimens-common.h (nap): Use shared implementation,
23576         necessary on file systems with 1-second resolution.
23577         * modules/chown-tests (Files): Include new file.
23578         * modules/fdutimensat-tests (Files): Likewise.
23579         * modules/futimens-tests (Files): Likewise.
23580         * modules/lchown-tests (Files): Likewise.
23581         * modules/openat-tests (Files): Likewise.
23582         * modules/utimens-tests (Files): Likewise.
23583         * modules/utimensat-tests (Files): Likewise.
23584
23585 2009-12-19  Eric Blake  <ebb9@byu.net>
23586
23587         futimens, utimensat: work around Linux bug
23588         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23589         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23590         * lib/utimensat.c (rpl_utimensat): Work around it.
23591         * lib/futimens.c (rpl_futimens): Adjust comment.
23592
23593         utimens: work around Linux ctime bug
23594         * lib/utimens.c (detect_ctime_bug): New helper function.
23595         (update_timespec): Differentiate between workaround needed for
23596         this bug vs. what is needed for systems that lack utimensat.
23597         (fdutimens, lutimens): Work around bug.
23598
23599         utimens: check for ctime update
23600         * tests/test-utimens-common.h (check_ctime): Define.
23601         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23602         * tests/test-futimens.h (test_futimens): Likewise.
23603         * tests/test-lutimens.h (test_lutimens): Likewise.
23604         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23605         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23606
23607 2009-12-19  Bruno Haible  <bruno@clisp.org>
23608
23609         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23610         * tests/test-dprintf-posix2.sh: New file.
23611         * tests/test-dprintf-posix2.c: New file.
23612         * modules/dprintf-posix-tests (Files): Add them.
23613         (configure.ac): Check for getrlimit and setrlimit.
23614         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23615
23616 2009-12-19  Bruno Haible  <bruno@clisp.org>
23617
23618         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23619         * tests/test-fprintf-posix3.sh: New file.
23620         * tests/test-fprintf-posix3.c: New file.
23621         * modules/fprintf-posix-tests (Files): Add them.
23622         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23623
23624 2009-12-19  Eric Blake  <ebb9@byu.net>
23625
23626         dirfd: fix prototype
23627         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23628         * lib/dirfd.c (dirfd): Likewise.
23629
23630         canonicalize: reduce memory usage
23631         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23632         allocation to size.
23633         Reported by Solar Designer <solar@openwall.com>.
23634
23635 2009-12-19  Bruno Haible  <bruno@clisp.org>
23636
23637         New module attribute 'Applicability'.
23638         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23639         * gnulib-tool: New option --extract-applicability.
23640         (func_usage): Document it.
23641         (sed_extract_prog): Recognize it.
23642         (func_get_applicability): New function.
23643         (func_import): Generalize handling of 'link-warning' module.
23644         * modules/link-warning (Applicability): New section.
23645         * modules/arg-nonnull (Applicability): New section.
23646         Repoted by Simon Josefsson <simon@josefsson.org>.
23647
23648 2009-12-19  Bruno Haible  <bruno@clisp.org>
23649
23650         fflush: tweak
23651         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23652         * lib/fseeko.c (rpl_fseeko): Likewise.
23653
23654 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23655
23656         * lib/gl_list.h: Fix typo in comment.
23657
23658 2009-12-16  Eric Blake  <ebb9@byu.net>
23659
23660         fcntl: use to simplify other modules
23661         * modules/cloexec (Depends-on): Add fcntl.
23662         * modules/fchdir (Depends-on): Likewise.
23663         * modules/fd-safer-flag (Depends-on): Likewise.
23664         * modules/unistd-safer (Depends-on): Likewise.
23665         * modules/dup3 (configure.ac): Set module indicator.
23666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23667         missing.
23668         * lib/fchdir.c (_gl_register_dup): Fix comment.
23669         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23670         * lib/dup-safer.c (dup_safer): Likewise.
23671         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23672         * lib/dup3.c (dup3): Likewise.
23673         * tests/test-fchdir.c (main): Enhance test.
23674         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23675
23676         fcntl: port portions of fcntl to mingw
23677         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23678         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23679         replacement for mingw.
23680         * modules/fcntl (Description): Update.
23681         (Depends-on): Add dup2.
23682         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23683         * modules/fcntl-h (Makefile.am): Substitute it.
23684         * lib/fcntl.in.h (fcntl): Update declaration.
23685         (F_DUPFD, F_GETFD): New macros, when needed.
23686         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23687         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23688         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23689         we now guarantee.
23690
23691         fcntl: work around cygwin bug in F_DUPFD
23692         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23693         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23694         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23695         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23696         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23697
23698         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23699         * modules/fcntl (Files): List new files.
23700         (configure.ac): Run a test.
23701         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23702         * lib/fcntl.c (rpl_fcntl): Likewise.
23703         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23704         (gl_FCNTL_H): Always replace fcntl.h.
23705         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23706         * lib/fcntl.in.h (fcntl): Declare replacement.
23707         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23708         needed, plus a witness.
23709         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23710         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23711         * tests/test-fcntl.c: New file.
23712         * modules/fcntl-tests: Likewise.
23713
23714         binary-io: avoid potential compilation warning
23715         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23716         directives.
23717
23718         fflush: avoid compilation error on NetBSD
23719         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23720         between off_t and fpos_t, since the latter is sometimes a struct.
23721         * lib/fseeko.c (rpl_fseeko): Likewise.
23722         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23723
23724 2009-12-15  Eric Blake  <ebb9@byu.net>
23725
23726         fcntl-h, stdio, sys_ioctl: fix declarations
23727         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23728         function must not take arguments.
23729         * lib/sys_ioctl.in.h (ioctl): Likewise.
23730         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23731         (open): Add a link warning.
23732
23733 2009-12-15  Jim Meyering  <meyering@redhat.com>
23734
23735         areadlink, areadlink-with-size: relax license to LGPLv2+
23736         * modules/areadlink (License): Relax to LGPLv2+.
23737         * modules/areadlink-with-size (License): Likewise.
23738
23739 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23740             Bruno Haible  <bruno@clisp.org>
23741
23742         *printf: Fix memory leak.
23743         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23744         * lib/vfprintf.c (vfprintf): Likewise.
23745         * lib/dprintf.c (dprintf): Likewise.
23746         * lib/vdprintf.c (vdprintf): Likewise.
23747
23748 2009-12-14  Eric Blake  <ebb9@byu.net>
23749
23750         accept4: adjust module dependencies
23751         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23752
23753         utimens: one more try at avoiding compiler warning
23754         * lib/utimens.c (lutimens): Lower scope of result.
23755
23756 2009-12-13  Bruno Haible  <bruno@clisp.org>
23757
23758         Move the malloc checking from module 'list' to new module 'xlist'.
23759         * modules/xlist: New file.
23760         * lib/gl_xlist.h: New file.
23761         * lib/gl_xlist.c: New file.
23762         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23763         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23764         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23765         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23766         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23767         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23768         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23769         gl_sortedlist_nx_add): New declarations.
23770         (struct gl_list_implementation): Rename and change methods accordingly.
23771         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23772         (gl_list_nx_create): Renamed from gl_list_create.
23773         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23774         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23775         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23776         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23777         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23778         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23779         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23780         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23781         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23782         gl_list_create_empty.
23783         (gl_list_nx_create): Renamed from gl_list_create.
23784         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23785         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23786         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23787         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23788         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23789         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23790         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23791         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23792         * lib/gl_array_list.c: Don't include xalloc.h.
23793         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23794         NULL upon out-of-memory.
23795         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23796         out-of-memory.
23797         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23798         Change return type to 'int'.
23799         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23800         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23801         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23802         upon out-of-memory.
23803         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23804         upon out-of-memory.
23805         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23806         upon out-of-memory.
23807         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23808         upon out-of-memory.
23809         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23810         out-of-memory.
23811         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23812         Update.
23813         (gl_array_list_implementation): Update.
23814         * lib/gl_carray_list.c: Don't include xalloc.h.
23815         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23816         Return NULL upon out-of-memory.
23817         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23818         out-of-memory.
23819         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23820         Change return type to 'int'.
23821         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23822         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23823         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23824         upon out-of-memory.
23825         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23826         upon out-of-memory.
23827         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23828         out-of-memory.
23829         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23830         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23831         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23832         Update.
23833         (gl_carray_list_implementation): Update.
23834         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23835         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23836         gl_linked_create_empty. Return NULL upon out-of-memory.
23837         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23838         out-of-memory.
23839         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23840         Change return type to 'int'. Return -1 upon out-of-memory.
23841         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23842         out-of-memory.
23843         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23844         upon out-of-memory.
23845         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23846         upon out-of-memory.
23847         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23848         NULL upon out-of-memory.
23849         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23850         upon out-of-memory.
23851         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23852         out-of-memory.
23853         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23854         Update.
23855         * lib/gl_linked_list.c: Don't include xalloc.h.
23856         (gl_linked_list_implementation): Update.
23857         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23858         (add_to_bucket): Change return type to 'int'.
23859         (gl_linkedhash_list_implementation): Update.
23860         * lib/gl_anytree_list1.h (free_subtree): New function.
23861         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23862         gl_tree_create_empty. Return NULL upon out-of-memory.
23863         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23864         Change return type to 'int'. Return -1 upon out-of-memory.
23865         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23866         out-of-memory.
23867         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23868         (gl_tree_remove_node): New function, moved here from
23869         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23870         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23871         Update.
23872         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23873         malloc, not xmalloc. Return NULL upon out-of-memory.
23874         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23875         out-of-memory.
23876         (gl_tree_remove_node_from_tree): New function, extracted from
23877         gl_tree_remove_node.
23878         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23879         upon out-of-memory.
23880         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23881         out-of-memory.
23882         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23883         upon out-of-memory.
23884         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23885         upon out-of-memory.
23886         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23887         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23888         not xmalloc. Return NULL upon out-of-memory.
23889         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23890         out-of-memory.
23891         (gl_tree_remove_node_from_tree): New function, extracted from
23892         gl_tree_remove_node.
23893         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23894         upon out-of-memory.
23895         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23896         out-of-memory.
23897         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23898         upon out-of-memory.
23899         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23900         upon out-of-memory.
23901         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23902         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23903         gl_anytree_list1.h before gl_anyavltree_list2.h.
23904         (gl_avltree_list_implementation): Update.
23905         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23906         gl_anytree_list1.h before gl_anyavltree_list2.h.
23907         (gl_rbtree_list_implementation): Update.
23908         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23909         Change return type to 'int'. Return -1 upon out-of-memory. Use
23910         __builtin_expect.
23911         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23912         (gl_avltreehash_list_implementation): Update.
23913         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23914         (gl_rbtreehash_list_implementation): Update.
23915         * modules/array-list (Depends-on): Remove xalloc.
23916         * modules/carray-list (Depends-on): Likewise.
23917         * modules/linked-list (Depends-on): Likewise.
23918         * modules/linkedhash-list (Depends-on): Likewise.
23919         * modules/avltree-list (Depends-on): Likewise.
23920         * modules/rbtree-list (Depends-on): Likewise.
23921         * modules/avltreehash-list (Depends-on): Likewise.
23922         * modules/rbtreehash-list (Depends-on): Likewise.
23923
23924         * modules/xsublist: New file.
23925         * lib/gl_xsublist.h: New file.
23926         * lib/gl_xsublist.c: New file.
23927         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23928         (gl_sublist_nx_create): New declaration.
23929         * lib/gl_sublist.c: Don't include xalloc.h.
23930         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23931         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23932         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23933         Change return type to 'int'. Return -1 upon out-of-memory.
23934         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23935         upon out-of-memory.
23936         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23937         NULL upon out-of-memory.
23938         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23939         upon out-of-memory.
23940         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23941         NULL upon out-of-memory.
23942         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23943         NULL upon out-of-memory.
23944         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23945         upon out-of-memory.
23946         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23947         (gl_sublist_list_implementation): Update.
23948         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23949         upon out-of-memory.
23950         * modules/sublist (Depends-on): Remove xalloc.
23951
23952         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23953         * tests/test-carray_list.c: Likewise.
23954         * tests/test-linked_list.c: Likewise.
23955         * tests/test-linkedhash_list.c: Likewise.
23956         * tests/test-avltree_list.c: Likewise.
23957         * tests/test-rbtree_list.c: Likewise.
23958         * tests/test-avltreehash_list.c: Likewise.
23959         * tests/test-rbtreehash_list.c: Likewise.
23960         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23961         * modules/carray-list-tests (Makefile.am): Likewise.
23962         * modules/linked-list-tests (Makefile.am): Likewise.
23963         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23964         * modules/avltree-list-tests (Makefile.am): Likewise.
23965         * modules/rbtree-list-tests (Makefile.am): Likewise.
23966         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23967         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23968
23969         * NEWS: Mention the changes.
23970
23971         * lib/clean-temp.c: Include gl_xlist.h.
23972         * modules/clean-temp (Depends-on): Add xlist.
23973
23974         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23975         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23976
23977         * tests/test-array_oset.c: Include gl_xlist.h.
23978         * modules/array-oset-tests (Depends-on): Add xlist.
23979
23980         Reported by José E. Marchesi <jemarch@gnu.org>.
23981
23982 2009-12-13  Bruno Haible  <bruno@clisp.org>
23983
23984         Move the malloc checking from module 'oset' to new module 'xoset'.
23985         * modules/xoset: New file.
23986         * lib/gl_xoset.h: New file.
23987         * lib/gl_xoset.c: New file.
23988         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23989         declarations.
23990         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23991         (struct gl_oset_implementation): Rename and change methods accordingly.
23992         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23993         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23994         'int'. Mark as __warn_unused_result__.
23995         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23996         gl_oset_create_empty.
23997         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23998         'int'.
23999         * lib/gl_array_oset.c: Don't include xalloc.h.
24000         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24001         malloc, not xmalloc.
24002         (grow): Change return type to 'int'. Don't call xalloc_die.
24003         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24004         to 'int'.
24005         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24006         'int'.
24007         (gl_array_oset_implementation): Update.
24008         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24009         gl_tree_create_empty.
24010         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24011         'int'.
24012         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24013         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24014         xmalloc.
24015         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24016         not xmalloc.
24017         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24018         xmalloc.
24019         (gl_avltree_oset_implementation): Update.
24020         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24021         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24022         xmalloc.
24023         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24024         not xmalloc.
24025         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24026         xmalloc.
24027         (gl_rbtree_oset_implementation): Update.
24028         * modules/array-oset (Depends-on): Remove xalloc.
24029         * modules/avltree-oset (Depends-on): Likewise.
24030         * modules/rbtree-oset (Depends-on): Likewise.
24031         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24032         * tests/test-avltree_oset.c: Likewise.
24033         * tests/test-rbtree_oset.c: Likewise.
24034         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24035         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24036         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24037         * NEWS: Mention the change.
24038
24039 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24040
24041         maint.mk: allow a project to override release-prep commands
24042         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24043         commands into a new rule.
24044         (release-prep): New rule.
24045         (release-prep-hook): New overridable variable.
24046
24047 2009-12-13  Bruno Haible  <bruno@clisp.org>
24048
24049         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24050
24051 2009-12-13  Jim Meyering  <meyering@redhat.com>
24052
24053         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24054         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24055
24056 2009-12-12  Bruno Haible  <bruno@clisp.org>
24057
24058         duplocale: Tweak.
24059         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24060
24061 2009-12-12  Karl Berry  <karl@gnu.org>
24062
24063         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24064
24065 2009-12-12  Bruno Haible  <bruno@clisp.org>
24066
24067         * m4/po.m4: Undo incorrect untabification.
24068
24069 2009-12-12  Bruno Haible  <bruno@clisp.org>
24070
24071         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24072         * modules/c-strtod (Depends-on): Add locale.
24073         * modules/c-strtold (Depends-on): Likewise.
24074
24075 2009-12-12  Bruno Haible  <bruno@clisp.org>
24076
24077         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24078
24079 2009-12-11  Eric Blake  <ebb9@byu.net>
24080
24081         setenv: relax requirement in light of POSIX ruling
24082         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24083         not NULL.
24084         * tests/test-setenv.c (main): Relax test.
24085         * tests/test-unsetenv.c (main): Likewise.
24086         * doc/posix-functions/setenv.texi (setenv): Document this.
24087         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24088
24089 2009-12-11  Bruno Haible  <bruno@clisp.org>
24090
24091         New module 'fd-safer-flag'.
24092         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24093         * lib/dup-safer.c (dup_safer_flag): Remove function.
24094         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24095         * lib/fd-safer.c (fd_safer_flag): Remove function.
24096         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24097         * modules/cloexec (configure.ac): Drop indicator macro.
24098         * modules/fd-safer-flag: New file.
24099         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24100         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24101         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24102
24103 2009-12-11  Bruno Haible  <bruno@clisp.org>
24104
24105         Tests for module 'nl_langinfo'.
24106         * modules/nl_langinfo-tests: New file.
24107         * tests/test-nl_langinfo.sh: New file.
24108         * tests/test-nl_langinfo.c: New file.
24109
24110         New module 'nl_langinfo'.
24111         * lib/nl_langinfo.c: New file.
24112         * m4/nl_langinfo.m4: New file.
24113         * modules/nl_langinfo: New file.
24114         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24115
24116 2009-12-11  Bruno Haible  <bruno@clisp.org>
24117
24118         Tests for module 'langinfo'.
24119         * modules/langinfo-tests: New file.
24120         * tests/test-langinfo.c: New file.
24121
24122         New module 'langinfo'.
24123         * lib/langinfo.in.h: New file.
24124         * m4/langinfo_h.m4: New file.
24125         * modules/langinfo: New file.
24126         * doc/posix-headers/langinfo.texi: Mention the new module.
24127
24128 2009-12-11  Bruno Haible  <bruno@clisp.org>
24129
24130         * lib/config.charset: Untabify.
24131
24132 2009-12-11  Bruno Haible  <bruno@clisp.org>
24133
24134         * modules/unistd-safer (configure.ac): Drop indicator macro.
24135
24136 2009-12-11  Bruno Haible  <bruno@clisp.org>
24137
24138         Move pipe2-safer code to its own file.
24139         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24140         * lib/pipe-safer.c (pipe2_safer): Remove function.
24141         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24142         (Makefile.am): Add it to lib_SOURCES.
24143
24144 2009-12-10  Bruno Haible  <bruno@clisp.org>
24145
24146         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24147
24148 2009-12-10  Bruno Haible  <bruno@clisp.org>
24149
24150         Declare which arguments expect non-NULL values, for GCC and clang.
24151         * build-aux/arg-nonnull.h: New file.
24152         * modules/arg-nonnull: New file.
24153         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24154         (inet_ntop, inet_pton): Use it.
24155         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24156         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24157         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24158         (open, openat): Use it.
24159         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24160         (fnmatch): Use it.
24161         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24162         (getopt, getopt_long, getopt_long_only): Use it.
24163         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24164         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24165         Use it.
24166         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24167         (iconv_open): Use it.
24168         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24169         (strtoimax, strtoumax): Use it.
24170         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24171         (duplocale): Use it.
24172         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24173         (frexp, frexpl): Use it.
24174         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24175         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24176         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24177         (tsearch, tfind, tdelete, twalk): Use it.
24178         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24179         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24180         sigpending): Use it.
24181         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24182         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24183         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24184         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24185         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24186         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24187         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24188         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24189         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24190         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24191         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24192         Use it.
24193         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24194         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24195         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24196         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24197         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24198         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24199         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24200         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24201         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24202         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24203         strtoull, unsetenv): Use it.
24204         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24205         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24206         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24207         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24208         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24209         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24210         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24211         (strcasecmp, strncasecmp): Use it.
24212         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24213         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24214         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24215         rpl_setsockopt): Use it.
24216         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24217         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24218         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24219         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24220         (gettimeofday): Use it.
24221         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24222         (times): Use it.
24223         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24224         (uname): Use it.
24225         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24226         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24227         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24228         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24229         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24230         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24231         unlinkat, write): Use it.
24232         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24233         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24234         * lib/argv-iter.h: Include arg-nonnull.h.
24235         (_ATTRIBUTE_NONNULL_): Remove macro.
24236         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24237         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24238         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24239         optimization.
24240         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24241         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24242         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24243         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24244         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24245         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24246         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24247         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24248         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24249         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24250         * modules/dirent (Depends-on): Add arg-nonnull.
24251         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24252         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24253         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24254         * modules/fnmatch (Depends-on): Add arg-nonnull.
24255         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24256         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24257         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24258         * modules/glob (Depends-on): Add arg-nonnull.
24259         (Makefile.am): Insert arg-nonnull.h into glob.h.
24260         * modules/iconv_open (Depends-on): Add arg-nonnull.
24261         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24262         * modules/inttypes (Depends-on): Add arg-nonnull.
24263         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24264         * modules/locale (Depends-on): Add arg-nonnull.
24265         (Makefile.am): Insert arg-nonnull.h into locale.h.
24266         * modules/math (Depends-on): Add arg-nonnull.
24267         (Makefile.am): Insert arg-nonnull.h into math.h.
24268         * modules/netdb (Depends-on): Add arg-nonnull.
24269         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24270         * modules/search (Depends-on): Add arg-nonnull.
24271         (Makefile.am): Insert arg-nonnull.h into search.h.
24272         * modules/signal (Depends-on): Add arg-nonnull.
24273         (Makefile.am): Insert arg-nonnull.h into signal.h.
24274         * modules/spawn (Depends-on): Add arg-nonnull.
24275         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24276         * modules/stdio (Depends-on): Add arg-nonnull.
24277         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24278         * modules/stdlib (Depends-on): Add arg-nonnull.
24279         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24280         * modules/string (Depends-on): Add arg-nonnull.
24281         (Makefile.am): Insert arg-nonnull.h into string.h.
24282         * modules/strings (Depends-on): Add arg-nonnull.
24283         (Makefile.am): Insert arg-nonnull.h into strings.h.
24284         * modules/sys_socket (Depends-on): Add arg-nonnull.
24285         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24286         * modules/sys_stat (Depends-on): Add arg-nonnull.
24287         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24288         * modules/sys_time (Depends-on): Add arg-nonnull.
24289         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24290         * modules/sys_times (Depends-on): Add arg-nonnull.
24291         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24292         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24293         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24294         * modules/time (Depends-on): Add arg-nonnull.
24295         (Makefile.am): Insert arg-nonnull.h into time.h.
24296         * modules/unistd (Depends-on): Add arg-nonnull.
24297         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24298         * modules/wchar (Depends-on): Add arg-nonnull.
24299         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24300         * modules/argv-iter (Depends-on): Add arg-nonnull.
24301         * tests/test-canonicalize.c (null_ptr): New function.
24302         (main): Use it.
24303         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24304         (main): Use it.
24305         * tests/test-memmem.c (null_ptr): New function.
24306         (main): Use it.
24307         Reported by Jim Meyering.
24308
24309 2009-12-10  Bruno Haible  <bruno@clisp.org>
24310
24311         Use spaces for indentation, not tabs.
24312         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24313         * m4/*.m4: Untabify.
24314         * build-aux/*.h: Untabify.
24315         * tests/**/*.[hc]: Untabify.
24316         * README: New section "Indent with spaces, not TABs", based on
24317         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24318         * NEWS: Mention the change.
24319
24320 2009-12-10  Bruno Haible  <bruno@clisp.org>
24321
24322         pty test: Fix link error.
24323         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24324         test_pty_LDADD.
24325
24326 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24327
24328         * modules/pty: New file.
24329         * modules/pty-tests: New file.
24330         * m4/pty.m4: New file.
24331         * tests/test-pty.c: New file.
24332         * doc/glibc-headers/pty.texi: Modified.
24333         * doc/glibc-functions/forkpty.texi: Modified.
24334         * doc/glibc-functions/openpty.texi: Modified.
24335
24336 2009-12-10  Bruno Haible  <bruno@clisp.org>
24337
24338         Avoid syntax error in C++ mode.
24339         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24340
24341 2009-12-10  Bruno Haible  <bruno@clisp.org>
24342
24343         Use sed with option -e.
24344         * gnulib-tool (func_version, func_emit_copyright_notice,
24345         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24346         option -e to sed.
24347         * modules/link-warning (Makefile.am): Likewise.
24348
24349 2009-12-10  Jim Meyering  <meyering@redhat.com>
24350
24351         mgetgroups: do not write bytes beyond end of malloc'd buffer
24352         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24353         username, we call getgroups with a one-element-shorter buffer,
24354         but still told it the length was original, max_n_groups.
24355
24356 2009-12-09  Eric Blake  <ebb9@byu.net>
24357
24358         cloexec: relax license
24359         * modules/cloexec (Maintainer): Add myself.
24360         (License): Use LGPL, not GPL.
24361
24362         link-warning: optimize generation
24363         * modules/link-warning (Makefile.am): Reduce process usage.
24364
24365 2009-12-09  Bruno Haible  <bruno@clisp.org>
24366
24367         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24368         workaround was added on 2009-11-17.
24369
24370 2009-12-09  Jim Meyering  <meyering@redhat.com>
24371             Bruno Haible  <bruno@clisp.org>
24372
24373         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24374         * modules/link-warning (Makefile.am): Make the comment-removing sed
24375         command more robust in the face of bootstrap-prepended comment lines.
24376
24377 2009-12-09  Bruno Haible  <bruno@clisp.org>
24378
24379         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24380         most one group.
24381
24382 2009-12-09  Simon Josefsson <simon@josefsson.org>
24383             Bruno Haible  <bruno@clisp.org>
24384
24385         * build-aux/link-warning.h: Add copyright notice.
24386         * modules/link-warning (Makefile.am): Generate link-warning.h from
24387         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24388         * NEWS: Mention change in link-warning module.
24389         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24390         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24391         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24392         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24393         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24394         * modules/math (Makefile.am): Add dependency to math.h.
24395         * modules/search (Makefile.am): Add dependency to search.h.
24396         * modules/signal (Makefile.am): Add dependency to signal.h.
24397         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24398         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24399         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24400         * modules/string (Makefile.am): Add dependency to string.h.
24401         * modules/strings (Makefile.am): Add dependency to strings.h.
24402         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24403         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24404         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24405         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24406         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24407         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24408         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24409         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24410         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24411
24412 2009-12-09  Bruno Haible  <bruno@clisp.org>
24413
24414         fchdir: Optimize away rpl_fstat when possible.
24415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24416         REPLACE_OPEN_DIRECTORY.
24417         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24418
24419 2009-12-09  Bruno Haible  <bruno@clisp.org>
24420
24421         * lib/fchdir.c: Update comment.
24422
24423 2009-12-09  Bruno Haible  <bruno@clisp.org>
24424
24425         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24426
24427 2009-12-08  Eric Blake  <ebb9@byu.net>
24428
24429         fchdir: avoid memory leak on re-registration.
24430         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24431
24432 2009-12-08  Jim Meyering  <meyering@redhat.com>
24433
24434         init.sh: avoid Solaris 10 /bin/sh portability problem
24435         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24436         sourced script:
24437           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24438           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24439           bar
24440         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24441         and two tests used that idiom.
24442         * tests/init.sh: Update suggested usage comments.
24443         (path_prepend_): New function, to be used in place
24444         of the --src-path=DIR option.
24445         (setup_): Move PATH-prepending code into path_prepend_.
24446         * tests/test-pread.sh: Adapt to new usage.
24447         * tests/test-xalloc-die.sh: Likewise.
24448
24449 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24450
24451         * doc/gnulib.texi (Glibc pty.h): Add.
24452         * doc/glibc-functions/forkpty.texi: Add.
24453         * doc/glibc-functions/openpty.texi: Add.
24454         Suggested by Bruno Haible.
24455
24456 2009-12-08  Eric Blake  <ebb9@byu.net>
24457
24458         fchdir: fix logic bugs
24459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24460         * tests/test-fchdir.c (main): Enhance test.
24461         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24462         is in use.
24463
24464         dup2: fix logic bugs
24465         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24466         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24467         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24468         exists.
24469         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24470
24471 2009-12-07  Eric Blake  <ebb9@byu.net>
24472
24473         unlink: fix m4 detection
24474         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24475
24476         unistd-safer: add unit test
24477         * modules/unistd-safer-tests: New file.
24478         * tests/test-dup-safer.c: Likewise.
24479         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24480         * tests/test-dup2.c (setmode): Likewise.
24481         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24482
24483         cloexec: preserve text vs. binary across dup_cloexec
24484         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24485         mode.
24486         * modules/dup2-tests (Depends-on): Add binary-io.
24487         * modules/cloexec-tests (Depends-on): Likewise.
24488         * tests/test-dup2.c (setmode, is_mode): New helpers.
24489         (main): Add tests that translation mode is preserved.
24490         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24491         Reported by Bruno Haible.
24492
24493         mgetgroups: reduce duplicate listings
24494         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24495         resulting array.
24496         * tests/test-chown.h (test_chown): Simplify client.
24497         * tests/test-lchown.h (test_lchown): Likewise.
24498
24499 2009-12-06  Bruno Haible  <bruno@clisp.org>
24500
24501         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24502         value.
24503
24504 2009-12-06  Bruno Haible  <bruno@clisp.org>
24505
24506         * lib/progname.c: Include stdio.h, stdlib.h.
24507         (set_program_name): Reject a NULL argument.
24508
24509 2009-12-05  Eric Blake  <ebb9@byu.net>
24510
24511         pipe2-safer: new module
24512         * modules/pipe2-safer: New file.
24513         * lib/unistd-safer.h (pipe2_safer): New prototype.
24514         * lib/unistd--.h (pipe2): New wrapper.
24515         * lib/pipe-safer.c (pipe2_safer): New function.
24516         * modules/pipe (Depends-on): Add pipe2-safer.
24517         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24518
24519         stdlib-safer: preserve cloexec flag for mkostemp[s]
24520         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24521         fd_safer_flag.
24522
24523         unistd-safer: allow preservation of cloexec status via flag
24524         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24525         prototypes.
24526         * lib/dup-safer.c (dup_safer_flag): New function.
24527         * lib/fd-safer.c (fd_safer_flag): Likewise.
24528         * modules/cloexec (configure.ac): Set witness.
24529
24530         test-dup2: enhance test
24531         * modules/dup2-tests (Depends-on): Add cloexec.
24532         * tests/test-dup2.c (main): Enhance test.
24533
24534         cloexec: add dup_cloexec
24535         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24536         header and comments.
24537         * lib/cloexec.c (set_cloexec_flag): Add comments.
24538         (dup_cloexec): New function, with mingw implementation borrowed
24539         from...
24540         * lib/w32spawn.h (dup_noinherit): ...here.
24541         * modules/execute (Depends-on): Add cloexec.
24542         * modules/pipe (Depends-on): Likewise.
24543         * modules/cloexec (Depends-on): Add dup2.
24544         * modules/cloexec-tests (Files): New file.
24545         * tests/test-cloexec.c: Likewise.
24546
24547         test-xalloc-die: fix test for mingw
24548         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24549         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24550         directory and .exe suffix off argv[0] output.
24551
24552         test-fseeko: fix test for mingw
24553         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24554         than undefining fseek, so test will pass on mingw.
24555
24556 2009-12-05  Bruno Haible  <bruno@clisp.org>
24557
24558         * lib/progname.h (set_program_name): Clarify specification.
24559         * lib/progname.c (set_program_name): Likewise.
24560         Reported by Jim Meyering.
24561
24562 2009-12-05  Jim Meyering  <meyering@redhat.com>
24563
24564         maint.mk: backslash-escape parens in default regexp
24565         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24566         backslash-escape the literal parentheses.
24567
24568         maint.mk: news-date-check: use grep -E
24569         * top/maint.mk (today): Define a Make variable, not a...
24570         (news-date-check): ...shell variable.
24571         (news-date-regexp): Use the Make variable.
24572         Use grep's -E option.  Change the failing diagnostic to mention
24573         the variable, $(news-date-regexp).
24574
24575 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24576
24577         maintainer-makefile: allow customization of NEWS entry format
24578         * top/maint.mk (news-date-regexp): New overridable variable.
24579         (news-date-check): Use it.
24580
24581 2009-12-04  Eric Blake  <ebb9@byu.net>
24582
24583         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24584         * lib/mgetgroups.h (xgetgroups): New prototype.
24585         * lib/mgetgroups.c (xgetgroups): New wrapper.
24586         (mgetgroups): Handle ENOSYS.
24587         * modules/mgetgroups (Depends-on): Add realloc.
24588         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24589
24590         mgetgroups: avoid argument promotion issues with -1
24591         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24592         for invalid gid_t.
24593         * tests/test-chown.h (getegid, test_chown): Likewise.
24594         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24595
24596 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24597
24598         exclude: Fix header file problems.
24599         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24600
24601 2009-12-01  Jim Meyering  <meyering@redhat.com>
24602
24603         fts: fts_open: do not let an empty string cause immediate failure
24604         This is required in support of GNU rm, for which the command
24605         "rm A '' B" must process and remove both A and B, in spite of
24606         the empty string argument.
24607         * lib/fts.c (fts_open): Do not let the presence of an empty string
24608         cause fts_open to fail immediately.  Most fts-using tools must be
24609         able to process all arguments, in order, and can be expected to
24610         diagnose such arguments themselves.
24611
24612 2009-11-30  Eric Blake  <ebb9@byu.net>
24613
24614         utimens: fix compilation error
24615         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24616         Declare variable at right scope.
24617
24618 2009-11-29  Jim Meyering  <meyering@redhat.com>
24619
24620         bootstrap: handle perl-5.11's changed --version output
24621         * build-aux/bootstrap (get_version): Handle perl separately,
24622         since perl-5.11's --version output is different.
24623
24624 2009-11-28  Jim Meyering  <meyering@redhat.com>
24625
24626         userspec: depend on the inttostr module, too
24627         * modules/userspec (Depends-on): Add inttostr.
24628
24629         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24630         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24631         number of MAXUID when it evaluates to (uid_t) -1.
24632         Likewise for group ID.  Reported by Matt McCutchen in
24633         <http://savannah.gnu.org/bugs/?28113>
24634
24635         userspec: reformat to use spaces, not TABs
24636         * lib/userspec.c: Expand TABs to spaces.
24637         Add Emacs' "indent-tabs-mode: nil" hint.
24638
24639 2009-11-27  Eric Blake  <ebb9@byu.net>
24640
24641         getopt-gnu: flush out another BSD bug
24642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24643         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24644         flush out BSD bug.
24645         * tests/test-getopt.h (test_getopt): End lists with NULL.
24646         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24647         (test_getopt_long_posix): Enhance test.
24648         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24649         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24650         getopt-gnu.
24651         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24652         Likewise.
24653
24654 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24655
24656         * modules/idpriv-droptemp-tests (Notice): Fix text.
24657
24658 2009-11-27  Jim Meyering  <meyering@redhat.com>
24659
24660         test-xalloc-die: avoid spurious failure due to libtool argv difference
24661         In a libtool-enabled project, this test would fail due to a difference
24662         in the emitted program name, e.g.,
24663         -test-xalloc-die: memory exhausted
24664         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24665         Use program to avoid that.
24666         * modules/xalloc-die-tests (Depends-on): Add progname.
24667         * tests/test-xalloc-die.c: Include progname.h".
24668         (program_name): Remove decl.
24669         (main): Call set_program_name.
24670         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24671
24672 2009-11-26  Richard Jones  <rjones@redhat.com>
24673
24674         w32sock: leave win32 error in place.
24675         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24676
24677 2009-11-26  Eric Blake  <ebb9@byu.net>
24678
24679         init.sh: suggest to use skip_ and fail_ functions in comments
24680         * tests/init.sh: Add a sentence.
24681
24682 2009-11-25  Bruno Haible  <bruno@clisp.org>
24683
24684         init.sh: add documentation in comments
24685         * tests/init.sh: Add some developer and user documentation.
24686
24687 2009-11-26  Jim Meyering  <meyering@redhat.com>
24688
24689         init.sh: accommodate even those who specify bogus srcdir manually
24690         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24691         configure-time tests to be sanitized, so that there is no need to
24692         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24693         (with no double quotes) suffices.  However, since tests may be
24694         invoked manually, and since you may explicitly set srcdir to the
24695         name of a directory containing spaces, do quote its uses here.
24696         * tests/test-pread.sh: Likewise.
24697         Suggested by Bruno Haible.
24698
24699         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24700         * tests/test-pread.sh: Write no data into the pipe, because
24701         test-pread actually reads none.  This avoids a diagnostic,
24702         "bash: echo: write error: Broken pipe", that arises in the unusual
24703         event something is ignoring SIGPIPE, and might be interpreted
24704         as some sort of failure.  Reported by Bruno Haible.
24705
24706 2009-11-25  Jim Meyering  <meyering@redhat.com>
24707
24708         test-pread: cover failure with ESPIPE and EINVAL
24709         * tests/test-pread.c (main): Test for failure, too.
24710         * tests/test-pread.sh: Invoke with stdin on a pipe.
24711         Suggested by Eric Blake.
24712
24713         pread: improvement and fix
24714         * modules/pread (Depends-on): Depend on lseek, for portability to
24715         e.g., mingw.  Suggested by Eric Blake.
24716         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24717
24718         unistd.in.h: correct declaration of pread
24719         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24720         Reported by Richard W.M. Jones.
24721
24722         test-pread.sh: distribute the test script
24723         * modules/pread-tests (Files): Include test-pread.sh.
24724
24725         test-pread.sh: clean up
24726         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24727         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24728         That is unnecessary, since it's always ".".
24729         Suggestion from Eric Blake.
24730
24731         test-pread.sh: make executable
24732         * tests/test-pread.sh: Set executable bit.
24733         Reported by Eric Blake.
24734
24735         correct typo in test-pread.sh
24736         * tests/test-pread.sh: Add #! line.
24737
24738         test pread
24739         * tests/test-pread.c: New file.
24740         * tests/test-pread.sh: Likewise.
24741         * modules/pread-tests: Likewise.
24742
24743         pread: new module
24744         * modules/pread: New file.
24745         * lib/unistd.in.h (pread): Define/declare.
24746         * lib/pread.c (pread): New file.
24747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24748         * modules/unistd (Makefile.am): Substitute witnesses.
24749         * doc/posix-functions/pread.texi (pread): Update.
24750         * MODULES.html.sh: Add pread.
24751
24752 2009-11-25  Jim Meyering  <meyering@redhat.com>
24753
24754         tests/init.sh: new file to be used via most *.sh tests
24755         * tests/init.sh: New file.
24756
24757 2009-11-25  Eric Blake  <ebb9@byu.net>
24758
24759         utimens: work around older Linux failure with symlinks
24760         * lib/utimens.c (lutimensat_works_really): New variable.
24761         (fdutimens, lutimens): Use it to manage kernels that support
24762         nanosecond times on files, but not on symlinks.
24763         Reported by OndÅ™ej Vašík.
24764
24765         utimes: fix configure grammar
24766         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24767
24768 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24769
24770         regex: Fix fastmap for multibyte character ranges.
24771         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24772         characters when a multibyte character range is included.
24773
24774 2009-11-22  Andy Wingo  <wingo@pobox.com>
24775
24776         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24777         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24778
24779 2009-11-24  Bruno Haible  <bruno@clisp.org>
24780
24781         doc: Most *_l functions exist in MacOS X 10.5.
24782         * doc/posix-functions/duplocale.texi: Update platforms list.
24783         * doc/posix-functions/freelocale.texi: Likewise.
24784         * doc/posix-functions/newlocale.texi: Likewise.
24785         * doc/posix-functions/uselocale.texi: Likewise.
24786         * doc/posix-functions/isalnum_l.texi: Likewise.
24787         * doc/posix-functions/isalpha_l.texi: Likewise.
24788         * doc/posix-functions/isblank_l.texi: Likewise.
24789         * doc/posix-functions/iscntrl_l.texi: Likewise.
24790         * doc/posix-functions/isdigit_l.texi: Likewise.
24791         * doc/posix-functions/isgraph_l.texi: Likewise.
24792         * doc/posix-functions/islower_l.texi: Likewise.
24793         * doc/posix-functions/isprint_l.texi: Likewise.
24794         * doc/posix-functions/ispunct_l.texi: Likewise.
24795         * doc/posix-functions/isspace_l.texi: Likewise.
24796         * doc/posix-functions/isupper_l.texi: Likewise.
24797         * doc/posix-functions/iswalnum_l.texi: Likewise.
24798         * doc/posix-functions/iswalpha_l.texi: Likewise.
24799         * doc/posix-functions/iswblank_l.texi: Likewise.
24800         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24801         * doc/posix-functions/iswctype_l.texi: Likewise.
24802         * doc/posix-functions/iswdigit_l.texi: Likewise.
24803         * doc/posix-functions/iswgraph_l.texi: Likewise.
24804         * doc/posix-functions/iswlower_l.texi: Likewise.
24805         * doc/posix-functions/iswprint_l.texi: Likewise.
24806         * doc/posix-functions/iswpunct_l.texi: Likewise.
24807         * doc/posix-functions/iswspace_l.texi: Likewise.
24808         * doc/posix-functions/iswupper_l.texi: Likewise.
24809         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24810         * doc/posix-functions/isxdigit_l.texi: Likewise.
24811         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24812         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24813         * doc/posix-functions/strcoll_l.texi: Likewise.
24814         * doc/posix-functions/strfmon_l.texi: Likewise.
24815         * doc/posix-functions/strftime_l.texi: Likewise.
24816         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24817         * doc/posix-functions/strxfrm_l.texi: Likewise.
24818         * doc/posix-functions/tolower_l.texi: Likewise.
24819         * doc/posix-functions/toupper_l.texi: Likewise.
24820         * doc/posix-functions/towctrans_l.texi: Likewise.
24821         * doc/posix-functions/towlower_l.texi: Likewise.
24822         * doc/posix-functions/towupper_l.texi: Likewise.
24823         * doc/posix-functions/wcscoll_l.texi: Likewise.
24824         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24825         * doc/posix-functions/wctrans_l.texi: Likewise.
24826         * doc/posix-functions/wctype_l.texi: Likewise.
24827         * doc/glibc-functions/strptime_l.texi: Likewise.
24828         * doc/glibc-functions/strtod_l.texi: Likewise.
24829         * doc/glibc-functions/strtof_l.texi: Likewise.
24830         * doc/glibc-functions/strtol_l.texi: Likewise.
24831         * doc/glibc-functions/strtold_l.texi: Likewise.
24832         * doc/glibc-functions/strtoll_l.texi: Likewise.
24833         * doc/glibc-functions/strtoul_l.texi: Likewise.
24834         * doc/glibc-functions/strtoull_l.texi: Likewise.
24835         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24836         * doc/glibc-functions/wcstod_l.texi: Likewise.
24837         * doc/glibc-functions/wcstof_l.texi: Likewise.
24838         * doc/glibc-functions/wcstol_l.texi: Likewise.
24839         * doc/glibc-functions/wcstold_l.texi: Likewise.
24840         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24841         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24842         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24843
24844 2009-11-24  Bruno Haible  <bruno@clisp.org>
24845
24846         duplocale: Fix logic bug.
24847         * lib/duplocale.c: Don't include <langinfo.h>.
24848         (_NL_LOCALE_NAME): Remove macro.
24849         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24850         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24851
24852 2009-11-23  Jim Meyering  <meyering@redhat.com>
24853
24854         test-update-copyright: don't hard-code /usr/bin/perl
24855         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24856         perl to print the current year.  Gilles Espinasse reported that
24857         the replaced use of perl was hard-coded as /usr/bin/perl.
24858
24859 2009-11-23  Bruno Haible  <bruno@clisp.org>
24860
24861         duplocale: Add support for glibc 2.3.x.
24862         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24863
24864 2009-11-22  Bruno Haible  <bruno@clisp.org>
24865
24866         vasnprintf: Tiny optimization.
24867         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24868         MacOS X.
24869
24870 2009-11-22  Bruno Haible  <bruno@clisp.org>
24871
24872         Tests for module 'duplocale'.
24873         * modules/duplocale-tests: New file.
24874         * tests/test-duplocale.c: New file.
24875
24876         New module 'duplocale'.
24877         * m4/duplocale.m4: New file.
24878         * lib/locale.in.h (duplocale): New declaration.
24879         * lib/duplocale.c: New file.
24880         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24881         gl_LOCALE_H_DEFAULTS): New macros.
24882         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24883         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24884         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24885         REPLACE_DUPLOCALE.
24886         * modules/duplocale: New file.
24887         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24888
24889 2009-11-22  Bruno Haible  <bruno@clisp.org>
24890
24891         * modules/locale-tests (configure.ac): Test for newlocale function.
24892         * tests/test-locale.c: When the system has extended locale functions,
24893         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24894
24895         locale: Make locale_t available when possible.
24896         * lib/locale.in.h: Include <xlocale.h> when it exists.
24897         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24898         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24899         * modules/locale (Depends-on): Add extensions.
24900         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24901         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24902
24903 2009-11-22  Bruno Haible  <bruno@clisp.org>
24904
24905         Add comments.
24906         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24907         invocation.
24908         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24909         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24910         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24911
24912 2009-11-22  Bruno Haible  <bruno@clisp.org>
24913
24914         error: account for the possibility of freopen (stdout).
24915         * lib/error.c: Include <unistd.h>.
24916         (flush_stdout): New function, extracted from error and error_at_line.
24917         Determine stdout's fd dynamically.
24918         (error, error_at_line): Invoke flush_stdout.
24919         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24920         * modules/error (Depends-on): Add unistd.
24921
24922 2009-11-22  Bruno Haible  <bruno@clisp.org>
24923
24924         diffseq: Add comment.
24925         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24926
24927 2009-11-22  Jim Meyering  <meyering@redhat.com>
24928
24929         c-stack: avoid defining an unused static function
24930         * lib/c-stack.c (find_stack_direction): Do not define this function
24931         when it will not be used.
24932
24933         diffseq: avoid spurious gcc warnings
24934         * lib/diffseq.h (IF_LINT2): Define.
24935         (compareseq): Use it to initialize two members of "part".
24936         This avoids two used-uninitialized warnings.
24937
24938 2009-11-21  Jim Meyering  <meyering@redhat.com>
24939
24940         c-stack: avoid "ignoring return value of `write'" warning
24941         * lib/c-stack.c: Include "ignore-value.h".
24942         (die): Explicitly ignore each write return value.
24943         * modules/c-stack (Depends-on): Add ignore-value.
24944
24945 2009-11-21  Bruno Haible  <bruno@clisp.org>
24946
24947         diffseq: reduce scope of variable 'best'.
24948         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24949         variable, earlier used for two different purposes.
24950
24951 2009-11-21  Jim Meyering  <meyering@redhat.com>
24952
24953         diffseq: remove useless assignment to "best"
24954         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24955         assignment.  At that point "best" is already guaranteed to be zero.
24956
24957 2009-11-20  Eric Blake  <ebb9@byu.net>
24958
24959         build: mention ftp redirector in release announcements
24960         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24961         values that used to come from cfg.mk; mention FTP redirect URL.
24962         * build-aux/announce-gen: Mention the mirror list.
24963         Suggested by Karl Berry.
24964
24965         nanosleep: improve port to mingw
24966         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24968         LIB_NANOSLEEP, but only when needed.
24969         * modules/select (Link): Document LIBSOCKET.
24970         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24971         enough.
24972
24973         nanosleep: work around cygwin bug
24974         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24975         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24976         bug.
24977         (getnow): Delete, not needed.
24978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24979         LIB_CLOCK_GETTIME.
24980         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24981         clock-time, gettime.
24982         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24983         bug.
24984         * modules/nanosleep-tests: New test.
24985         * tests/test-nanosleep.c: New file.
24986
24987         sleep: work around cygwin bug
24988         * lib/sleep.c (rpl_sleep): Work around the bug.
24989         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24990         (gl_PREREQ_SLEEP): Delete unused macro.
24991         * modules/sleep (Depends-on): Add verify.
24992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24993         * modules/unistd (Makefile.am): Substitute witness.
24994         * lib/unistd.in.h (sleep): Update prototype.
24995         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24996         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24997         * modules/sleep-tests (Depends-on): Check for alarm.
24998
24999 2009-11-20  Jim Meyering  <meyering@redhat.com>
25000
25001         maint.mk: improve sc_prohibit_magic_number_exit
25002         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25003         so it does not match uses like System.exit(1).
25004         Add comments showing how to correct all offenders.
25005
25006 2009-11-19  Eric Blake  <ebb9@byu.net>
25007
25008         xalloc-die-tests: add missing library
25009         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25010
25011         test-xvasprintf: silence compiler warnings
25012         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25013         empty string from gcc.
25014
25015 2009-11-19  Jim Meyering  <meyering@redhat.com>
25016
25017         xfreopen: new module, from coreutils
25018         * modules/xfreopen: New module.
25019         * lib/xfreopen.c: New file.
25020         * lib/xfreopen.h: New file.
25021         * MODULES.html.sh (File stream based Input/Output"): Add it.
25022
25023 2009-11-19  Eric Blake  <ebb9@byu.net>
25024
25025         manywarnings: depend on warnings
25026         * modules/manywarnings (Depends-on): Add warnings.
25027
25028         build: avoid compiler warnings
25029         * lib/select.c (rpl_select): Delete unused variable.
25030         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25031
25032 2009-11-18  Eric Blake  <ebb9@byu.net>
25033
25034         tests: avoid false negative with --with-packager
25035         * tests/test-version-etc.sh: Discard packager information.
25036         * tests/test-argp-version-etc-1.sh: Likewise.
25037         Reported by Mike Frysinger.
25038
25039         utimens: fix regression on Solaris
25040         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25041         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25042         can only change fd timestamps via futimesat.  Instead, use an
25043         additional witness macro to avoid BSD bug.
25044         Reported by Jim Meyering.
25045
25046 2009-11-17  Eric Blake  <ebb9@byu.net>
25047
25048         usleep: use it to simplify tests
25049         * modules/stat-time-tests (Depends-on): Add usleep.
25050         (configure.ac): Drop usleep check.
25051         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25052         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25053         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25054         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25055         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25056         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25057         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25058         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25059         Likewise.
25060         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25061         * tests/test-lchown.h (nap): Likewise.
25062         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25063         * tests/test-stat-time.c (nap): Likewise.
25064         * tests/test-utimens-common.h (nap): Update comments.
25065
25066         usleep: new module
25067         * modules/usleep: New file.
25068         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25069         * lib/usleep.c (usleep): Likewise.
25070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25071         * modules/unistd (Makefile.am): Substitute witnesses.
25072         * lib/unistd.in.h (usleep): Add declaration.
25073         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25074         * MODULES.html.sh (Date and time): Likewise.
25075         * modules/usleep-tests (Depends-on): New test.
25076         * tests/test-usleep.c: New file.
25077
25078         chown: work around OpenBSD bug
25079         * lib/chown.c (rpl_chown): Work around the bug.
25080         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25081         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25082         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25083         * modules/chown (Depends-on): Add stdbool.
25084         * modules/lchown (Depends-on): Likewise.
25085         * doc/posix-functions/chown.texi (chown): Document the bug.
25086         * doc/posix-functions/lchown.texi (lchown): Likewise.
25087         * tests/test-lchown.h (test_chown): Relax test.
25088
25089         mkstemp: avoid conflict with C++ keyword template
25090         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25091         * lib/mkostemp.c (mkostemp): Likewise.
25092         * lib/mkostemps.c (mkostemps): Likewise.
25093         * lib/mkstemp.c (mkstemp): Likewise.
25094         * lib/mkstemps.c (mkstemps): Likewise.
25095
25096         xalloc-die-tests: optimize
25097         * tests/test-xalloc-die.sh: Reduce number of processes.
25098
25099 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25100
25101         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25102         patch from ludo@gnu.org (Ludovic Courtès).
25103
25104 2009-11-17  Jim Meyering  <meyering@redhat.com>
25105
25106         version-etc: use proper license string
25107         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25108         * modules/version-etc-fsf: Likewise.
25109
25110 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25111
25112         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25113         printed to stdout.  Deal with EOL differences.
25114
25115 2009-11-17  Eric Blake  <ebb9@byu.net>
25116
25117         unsetenv: work around Solaris bug
25118         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25119         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25120         Reported by Jim Meyering.
25121
25122         vasnprintf: avoid compiler warnings
25123         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25124         variables.
25125         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25126
25127 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25128
25129         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25130         settings since xalloc-die is no longer the self test,
25131         xalloc-die.sh is.
25132
25133 2009-11-17  Jim Meyering  <meyering@redhat.com>
25134
25135         test-xalloc-die.sh: make the code agree with the commit log
25136         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25137         at the end, just in case you happen to have a test-xalloc-die
25138         program in some other PATH directory.
25139
25140         test-xalloc-die.sh: fix a portability bug
25141         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25142         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25143         Otherwise, argv[0] (as often seen in diagnostics) would be too
25144         system-dependent, sometimes with, and sometimes without the leading "./".
25145
25146         version-etc-fsf: relax license to LGPLv3+
25147         * modules/version-etc-fsf (License): Relax license.
25148
25149 2009-11-16  Eric Blake  <ebb9@byu.net>
25150
25151         xalloc-die-tests: avoid printing null pointer
25152         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25153         shell script.
25154         * tests/test-xalloc-die.c (program_name): Declare.
25155         * tests/test-xalloc-die.sh (tmpfiles): New file.
25156
25157         setenv, unsetenv: work around various bugs
25158         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25159         (setenv) [HAVE_SETENV]: Work around bugs.
25160         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25162         for bugs.
25163         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25164         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25166         * modules/stdlib (Makefile.am): Update substitutions.
25167         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25168         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25169         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25170         * modules/setenv-tests: New test.
25171         * modules/unsetenv-tests: Likewise.
25172         * tests/test-setenv.c: New file.
25173         * tests/test-unsetenv.c: Likewise.
25174
25175 2009-11-16  Jim Meyering  <meyering@redhat.com>
25176
25177         version-etc: relax license to LGPLv3+
25178         * modules/version-etc (License): Relax license.
25179
25180         better AC_REQUIRE expanded-before-required-warning avoidance
25181         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25182         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25183         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25184         which is no longer needed.
25185
25186 2009-11-16  Eric Blake  <ebb9@byu.net>
25187
25188         test-freading: clean up temporary file
25189         * tests/test-freading.c (main): Remove file on success, and use
25190         ASSERT more liberally.
25191         Reported by Jim Meyering.
25192
25193 2009-11-16  Jim Meyering  <meyering@redhat.com>
25194
25195         avoid new AC_REQUIRE expanded-before-required warnings
25196         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25197         merely using it.
25198         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25199         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25200
25201 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25202
25203         * tests/test-xalloc-die.c: New file.
25204         * modules/xalloc-die-tests: New file.
25205         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25206         XFAIL_TESTS so it can be appended by modules.
25207
25208 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25209
25210         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25211         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25212
25213 2009-11-14  Eric Blake  <ebb9@byu.net>
25214
25215         fnmatch: avoid compiler warning
25216         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25217         to silence compiler warning about mismatch signedness in ?:.
25218         Reported by Robert Millan.
25219
25220         intprops: add double-inclusion guard
25221         * lib/intprops.h: Allow idempotent includes.
25222         Suggested by Bruce Korb.
25223
25224         openat: detect Solaris fchownat bug
25225         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25226         penalizing glibc chownat when only lchownat is broken.
25227         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25228         trailing slash bugs.
25229         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25230         * modules/openat-tests (Files): Include more files.
25231         (Depends-on): Add mgetgroups, sleep, stat-time.
25232         (configure.ac): Add additional checks.
25233         (Makefile.am): Build new test.
25234         * tests/test-fchownat.c: New file.
25235
25236         lchown: detect Solaris and FreeBSD bug
25237         * lib/lchown.c (rpl_lchown): Work around bug.
25238         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25240         * modules/unistd (Makefile.am): Populate it.
25241         * lib/unistd.in.h (lchown): Update declaration.
25242         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25243         * modules/lchown-tests: New file.
25244         * tests/test-lchown.h (test_lchown): Likewise.
25245         * tests/test-lchown.c (main): Likewise.
25246
25247         chown: detect Solaris and FreeBSD bug
25248         * lib/chown.c (rpl_chown): Work around bug.
25249         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25250         (gl_PREREQ_CHOWN): Delete.
25251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25252         * modules/unistd (Makefile.am): Populate it.
25253         * lib/unistd.in.h (chown): Update declaration.
25254         * lib/lchown.c (chown): Update client.
25255         * modules/lchown (Depends-on): Add lstat.
25256         * doc/posix-functions/chown.texi (chown): Document the bug.
25257         * doc/posix-functions/getgroups.texi (getgroups): Document
25258         getgroups pitfall.
25259         * modules/chown-tests: New file.
25260         * tests/test-chown.h (test_chown): Likewise.
25261         * tests/test-chown.c (main): Likewise.
25262
25263 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25264
25265         gnulib-tool: correctly detect absence of m4 directories
25266         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25267
25268 2009-11-14  Jim Meyering  <meyering@redhat.com>
25269
25270         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25271         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25272
25273 2009-11-14  John W. Eaton  <jwe@gnu.org>
25274
25275         strftime.h: wrap funtion declaration in extern "C" block
25276         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25277
25278 2009-11-13  Eric Blake  <ebb9@byu.net>
25279
25280         getgroups: avoid compiler warning
25281         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25282
25283         getgroups: work around FreeBSD bug
25284         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25285         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25286         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25287         * tests/test-getgroups.c (main): Fix buffer overrun.
25288
25289         getgroups: avoid compilation failure
25290         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25291         * modules/getgroups (Depends-on): Add stdint.
25292
25293 2009-11-13  Jim Meyering  <meyering@redhat.com>
25294
25295         test-getgroups: avoid compilation failure
25296         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25297
25298 2009-11-13  Eric Blake  <ebb9@byu.net>
25299
25300         mgetgroups: new module, taken from coreutils
25301         * modules/mgetgroups: New file.
25302         * lib/mgetgroups.h: Likewise.
25303         * lib/mgetgroups.c (mgetgroups): Likewise.
25304         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25305         * MODULES.html.sh (Users and groups): Mention it.
25306
25307         getgroups: don't expose GETGROUPS_T to user
25308         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25309         an element at a time if GETGROUPS_T is wrong size.
25310         * lib/getugroups.h (getugroups): Change signature.
25311         * lib/unistd.in.h (getgroups): Likewise.
25312         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25313         signature needs fixing.
25314         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25315         AC_TYPE_GETGROUPS.
25316         * modules/group-member (Depends-on): Add getgroups.
25317         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25318         (group_member): Rely on getgroups replacement.
25319         * lib/getugroups.c (getugroups): Use gid_t.
25320         * tests/test-getgroups.c (main): Likewise.
25321         * NEWS: Mention the signature change.
25322         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25323         problem with signature.
25324         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25325         GETGROUPS_T is still useful for setgroups.
25326
25327         getgroups, getugroups: provide stubs for mingw
25328         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25329         * lib/getugroups.c (getugroups): Likewise.
25330         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25331         function.  Modernize replacement scheme.
25332         (gl_PREREQ_GETGROUPS): Delete.
25333         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25334         * modules/getgroups (configure.ac): Declare witness.
25335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25336         * modules/unistd (Depends-on): Substitute witness.
25337         * lib/unistd.in.h (getgroups): Declare replacement.
25338
25339         getgroups: avoid calling exit
25340         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25341         drop xalloc.
25342         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25343         dependencies.
25344         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25345         exiting, in the rare case of malloc failure.
25346
25347         getgroups: fix logic error
25348         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25349         has more than 20 groups.
25350         * modules/getgroups-tests: New test.
25351         * tests/test-getgroups.c: New file.
25352
25353 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25354
25355         * tests/test-base64.c: Improve.
25356
25357 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25358
25359         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25360         Blake <ebb9@byu.net>.
25361
25362 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25363
25364         * tests/test-xvasprintf.c: Add %s%s related checks.
25365
25366 2009-11-12  Eric Blake  <ebb9@byu.net>
25367
25368         version-etc: match standards.texi style
25369         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25370         and use <> only for URLs.
25371
25372 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25373
25374         fts: do not fail on a submount during traversal
25375         * lib/fts.c (fts_build): Read the stat info again after opening
25376         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25377         Original report at http://bugzilla.redhat.com/501848.
25378
25379 2009-11-12  Jim Meyering  <meyering@redhat.com>
25380
25381         bootstrap: sync from coreutils
25382         * build-aux/bootstrap (bootstrap_epilogue): New function.
25383         Use git_modules_config in one more place.  This make bootstrap's
25384         --gnulib-srcdir option more useful for testing.
25385
25386         bootstrap: generalize autoheader check
25387         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25388         AC_CONFIG_HEADERS.
25389
25390 2009-11-11  Eric Blake  <ebb9@byu.net>
25391
25392         mkfifoat: use new modules for Solaris and BSD bugs
25393         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25394         * lib/mkfifoat.c (mknodat): Split...
25395         * lib/mknodat.c (mknodat): ...into new file.
25396         * modules/mkfifoat (Files): Ship new file.
25397         (Depends-on): Add mkfifo, mknod.
25398         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25399         (Depends-on): Add symlink.
25400         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25401         redundant with test_mkfifo.h.
25402         (do_mkfifoat, do_mknodat): New helpers.
25403
25404         mknod: new module
25405         * modules/mknod: New file.
25406         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25407         * lib/mknod.c (mknod): Likewise.
25408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25409         defaults.
25410         * modules/sys_stat (Makefile.am): Substitute them.
25411         * lib/sys_stat.in.h (mknod): Declare replacement.
25412         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25413         Document it.
25414         * doc/posix-functions/mknod.texi (mknod): Likewise.
25415         * modules/mknod-tests: New test.
25416         * tests/test-mknod.c: Likewise.
25417
25418         mkfifo: new module
25419         * modules/mkfifo: New file.
25420         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25421         * lib/mkfifo.c (mkfifo): Likewise.
25422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25423         defaults.
25424         * modules/sys_stat (Makefile.am): Substitute them.
25425         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25426         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25427         Document it.
25428         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25429         * modules/mkfifo-tests: New test.
25430         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25431         from test-mkfifoat.c.
25432         * tests/test-mkfifo.c: New file.
25433
25434         readlink: detect FreeBSD bug
25435         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25436         slash on symlink.
25437         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25438         * tests/test-readlink.h (test_readlink): Enhance test.
25439
25440         symlink: detect FreeBSD bug
25441         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25442         slash on symlink.
25443         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25444         * tests/test-symlink.h (test_symlink): Enhance test.
25445
25446 2009-11-10  Eric Blake  <ebb9@byu.net>
25447
25448         link: detect FreeBSD bug
25449         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25450         symlink.
25451         * doc/posix-functions/link.texi (link): Document the bug.
25452         * tests/test-link.h (test_link): Enhance test.
25453         * tests/test-linkat.c (main): Update caller.
25454
25455         unlink, remove: detect FreeBSD bug
25456         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25457         slash on symlink.
25458         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25459         * doc/posix-functions/remove.texi (remove): Likewise.
25460         * tests/test-unlink.h (test_unlink): Enhance test.
25461         * tests/test-remove.c (main): Likewise.
25462
25463 2009-11-09  Eric Blake  <ebb9@byu.net>
25464
25465         rename: detect FreeBSD bug
25466         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25467         slash on symlink.
25468         * modules/renameat-tests (Depends-on): Add filenamecat.
25469         * tests/test-rename.h (test_rename): Allow one more errno.
25470         * tests/test-renameat.c (main): Likewise.
25471         * doc/posix-functions/rename.texi (rename): Document the bug.
25472
25473         open: detect FreeBSD bug
25474         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25475         symlink.
25476         * doc/posix-functions/open.texi (open): Document the bug.
25477         * doc/posix-functions/utimes.texi (utimes): Likewise.
25478         * tests/test-open.h (test_open): Add parameters, and test symlink
25479         handling.
25480         * tests/test-open.c (main): Adjust caller.
25481         * tests/test-fcntl-safer.c (main): Likewise.
25482         * modules/open-tests (Depends-on): Add stdbool, symlink.
25483         * modules/fcntl-safer-tests (Depends-on): Likewise.
25484         * tests/test-openat.c (main): Add test-open tests.
25485
25486         stat: detect FreeBSD bug
25487         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25488         symlink.
25489         * doc/posix-functions/stat.texi (stat): Document the bug.
25490         * tests/test-stat.h (test_stat_func): Add argument.
25491         * tests/test-stat.c (main): Adjust caller.
25492         * tests/test-fstatat.c (main): Likewise.
25493         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25494         Reported by Jim Meyering.
25495
25496 2009-11-09  James Youngman  <jay@gnu.org>
25497
25498         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25499         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25500
25501 2009-11-08  Jim Meyering  <meyering@redhat.com>
25502
25503         utimens: remove invalid futimesat call
25504         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25505         It used the file descriptor of the target file as the DIR_FD
25506         parameter and NULL as the file name.  That caused failure with
25507         errno == EFAULT on FreeBSD-8.0-rc2
25508
25509 2009-11-07  Eric Blake  <ebb9@byu.net>
25510
25511         fflush, freadseek: use fseeko, not fseek
25512         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25513         (clear_ungetc_buffer): Avoid potential problems on large files.
25514         * lib/freadseek.c (freadseek): Likewise.
25515         * modules/freadseek (Depends-on): Add fseeko.
25516         * modules/fseek (configure.ac): Set a witness.
25517         * tests/test-fflush.c (main): Use fseeko.
25518         * tests/test-fpurge.c (fseek): Disable link warning.
25519         * tests/test-freadable.c (fseek): Likewise.
25520         * tests/test-freading.c (fseek): Likewise.
25521         * tests/test-fseeko.c (fseek): Likewise.
25522         * tests/test-ftell.c (fseek): Likewise.
25523         * tests/test-ftello.c (fseek): Likewise.
25524         * tests/test-fwritable.c (fseek): Likewise.
25525         * tests/test-fwriting.c (fseek): Likewise.
25526
25527 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25528
25529         * modules/memchr (Depends-on): Drop getpagesize dependency.
25530
25531 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25532
25533         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25534         Reported by Ludovic Courtès.
25535         * build-aux/pmccabe2html: Improve example usage.
25536         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25537
25538 2009-11-06  Jim Meyering  <meyering@redhat.com>
25539
25540         do-release-commit-and-tag: New module.
25541         Automate the release-commit and tag process.
25542         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25543         * modules/do-release-commit-and-tag: New file.
25544         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25545
25546 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25547
25548         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25549         because test-select.c uses inet_pton.
25550
25551 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25552
25553         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25554         GETADDRINFO_LIB.  Bump serial number.
25555         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25556         Suggested by Eric Blake <ebb9@byu.net>.
25557
25558 2009-11-05  Eric Blake  <ebb9@byu.net>
25559
25560         strtod: detect darwin bug
25561         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25562         Reported by Leo Davis.
25563
25564         freopen-safer: new module
25565         * modules/freopen-safer: New module.
25566         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25567         * lib/freopen-safer.c (freopen_safer): New file.
25568         * lib/stdio-safer.h (freopen_safer): New declaration.
25569         * lib/stdio--.h (freopen): New override.
25570         * MODULES.html.sh (File stream based Input/Output): Mention it.
25571         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25572         freopen-safer module.
25573         * doc/posix-functions/stderr.texi (stderr): Likewise.
25574         * doc/posix-functions/stdin.texi (stdin): Likewise.
25575         * doc/posix-functions/stdout.texi (stdout): Likewise.
25576         * modules/freopen-safer-tests: New test.
25577         * tests/test-reopen-safer.c: New file.
25578
25579 2009-11-05  Jim Meyering  <meyering@redhat.com>
25580
25581         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25582         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25583
25584 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25585
25586         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25587
25588 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25589
25590         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25591
25592 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25593
25594         Fix link error.
25595         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25596         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25597
25598 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25599
25600         * tests/test-func.c: Also test value of __func__.
25601
25602 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25603
25604         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25605         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25606
25607 2009-11-05  Bruno Haible  <bruno@clisp.org>
25608
25609         Fix link error.
25610         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25611         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25612         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25613
25614 2009-11-05  Bruno Haible  <bruno@clisp.org>
25615
25616         Tests for module 'inet_pton'.
25617         * modules/inet_pton-tests: New file.
25618         * tests/test-inet_pton.c: New file.
25619
25620 2009-11-05  Bruno Haible  <bruno@clisp.org>
25621
25622         Tests for module 'inet_ntop'.
25623         * modules/inet_ntop-tests: New file.
25624         * tests/test-inet_ntop.c: New file.
25625
25626 2009-11-04  Eric Blake  <ebb9@byu.net>
25627
25628         stdlib-safer: wrap all mkstemp variants
25629         * modules/mkostemp (configure.ac): Set witness.
25630         * modules/mkostemps (configure.ac): Likewise.
25631         * modules/mkstemps (configure.ac): Likewise.
25632         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25633         (mkstemps_safer): Wrap more functions.
25634         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25635         wrapping.
25636         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25637         (mkstemps_safer): Implement the wrappers.
25638
25639         mkstemps, mkostemps: new modules
25640         * modules/mkostemps: New module.
25641         * modules/mkstemps: Likewise.
25642         * lib/mkostemps.c (mkostemps): New file.
25643         * lib/mkstemps.c (mkstemps): Likewise.
25644         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25645         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25647         * modules/stdlib (Makefile.am): Substitute them.
25648         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25649         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25650         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25651         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25652         * MODULES.html.sh (File system functions): Mention them.
25653
25654         tempname: resync from glibc
25655         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25656         same values for __GT_FILE as glibc.  Abort even when assertions
25657         are disabled.
25658         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25659         match its value otherwise.  Allow idempotent inclusion.
25660         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25661         * lib/mkostemp.c (mkostemp): Likewise.
25662         * lib/mkstemp.c (mkstemp): Likewise.
25663         * lib/tmpfile.c (tmpfile): Likewise.
25664         * NEWS: Document this.
25665
25666         utimens: fix use of futimens on older Linux
25667         * lib/utimens.c (fdutimens): Use updated, rather than original,
25668         timespec to avoid bug in older Linux kernel.
25669         Reported by Simon Josefsson.
25670
25671 2009-11-04  Bruno Haible  <bruno@clisp.org>
25672
25673         Make num_processors more flexible and consistent.
25674         * lib/nproc.h (enum nproc_query): New type.
25675         (num_processors): Add a 'query' argument.
25676         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25677         (num_processors): Add a 'query' argument. Test the value of the
25678         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25679         mingw, count the number of CPUs available for the current process.
25680         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25681         Check for sched_getaffinity and sched_getaffinity_np.
25682         * modules/nproc (Depends-on): Add c-ctype, extensions.
25683         * NEWS: Mention the change.
25684
25685 2009-11-03  Bruno Haible  <bruno@clisp.org>
25686
25687         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25688
25689 2009-11-03  Jim Meyering  <meyering@redhat.com>
25690
25691         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25692         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25693         if it is defined.
25694
25695 2009-11-02  Eric Blake  <ebb9@byu.net>
25696
25697         mktime, timegm: share common declaration
25698         * lib/mktime-internal.h: New file.
25699         * lib/mktime.c: Use it rather than open-coding a declaration.
25700         * lib/timegm.c: Likewise.
25701         * modules/mktime (Files): Ship it.
25702         * modules/timegm (Files): Likewise.
25703         Suggested by Bruno Haible.
25704
25705         test-update-copyright: update test to match script changes
25706         * tests/test-update-copyright.sh: Avoid hard-coding perl
25707         location.  Don't update *.bak created by earlier runs.
25708
25709 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25710             Simon Josefsson  <simon@josefsson.org>
25711             Bruno Haible  <bruno@clisp.org>
25712
25713         Fix link error on Solaris 8.
25714         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25715         also in libnsl. Define also INET_PTON_LIB.
25716         * modules/inet_pton (Link): New section.
25717
25718 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25719             Bruno Haible  <bruno@clisp.org>
25720
25721         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25722         * modules/inet_ntop (Link): New section.
25723         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25724
25725 2009-11-02  Eric Blake  <ebb9@byu.net>
25726
25727         maint: avoid compiler warnings in m4 macros
25728         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25729         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25730
25731 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25732
25733         * m4/pmccabe2html.m4: Remove file.
25734         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25735         function.  Change maintainer.
25736         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25737         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25738         Courtès).
25739
25740 2009-10-31  Eric Blake  <ebb9@byu.net>
25741
25742         fseeko: fix m4 regression
25743         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25744         regression from 2009-10-27.
25745         Reported by Ralf Wildenhues.
25746
25747 2009-10-31  Jim Meyering  <meyering@redhat.com>
25748
25749         inttostr: aesthetics and improved (compile-time) safety
25750         Define inttype_is_signed rather than inttype_is_unsigned,
25751         since the sole use is via "#if inttype_is_signed".
25752         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25753         inttype_is_unsigned.
25754         * lib/offtostr.c (inttype_is_signed): Likewise.
25755         * lib/uinttostr.c (inttype_is_signed): Likewise.
25756         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25757         * lib/inttostr.c (inttostr): Use verify to cross-check the
25758         inttype_is_signed value and the signedness of the actual type.
25759         * modules/inttostr (Depends-on): Add verify.
25760
25761 2009-10-30  Eric Blake  <ebb9@byu.net>
25762
25763         build: avoid compiler warnings
25764         * lib/fchmodat.c (lchmod): Mark unused variables.
25765         * lib/getopt.c (_getopt_initialize): Likewise.
25766         * lib/mktime.c (__mktime_internal): Provide prototype.
25767         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25768         older gcc that do not understand #pragma GCC diagnostic.
25769         * lib/uinttostr.c (inttype_is_unsigned): Define.
25770         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25771
25772 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25773
25774         stat: fix compilation on AIX
25775         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25776         only see struct stat64.
25777
25778 2009-10-30  Eric Blake  <ebb9@byu.net>
25779
25780         exclude: make more robust
25781         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25782         rather than masking a coding bug.
25783         Suggested by Bruno Haible.
25784
25785 2009-10-30  Jim Meyering  <meyering@redhat.com>
25786
25787         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25788         Rather than putting #!/usr/bin/perl on the first line,
25789         start with a variant of what's recommended by "man perlrun" that
25790         invokes the first "perl" program from your shell's search path.
25791         * build-aux/gitlog-to-changelog: Replace #!... as above.
25792         Add a "Local Variables" perl mode setting.
25793         Prompted by a patch from Ludovic Courtès.
25794         Improved by Eric Blake.
25795         * build-aux/useless-if-before-free: Likewise.
25796         * build-aux/announce-gen: Likewise.
25797         * build-aux/update-copyright: Likewise.
25798
25799 2009-10-29  Eric Blake  <ebb9@byu.net>
25800
25801         filenamecat-lgpl: adjust clients
25802         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25803         filenamecat.
25804         * modules/renameat (Depends-on): Likewise.
25805
25806         filenamecat: split into filenamecat-lgpl
25807         * modules/filenamecat-lgpl: New module.
25808         * modules/filenamecat (Files): Move library-safe files into
25809         filenamecat-lgpl.
25810         (Depends-on): Add filenamecat-lgpl.
25811         (configure.ac): Declare witness.
25812         * lib/filenamecat.h (file_name_concat): Only declare when using
25813         GPL module.
25814         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25815         Move...
25816         * lib/filenamecat-lgpl.c: ...into new file.
25817         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25818         (gl_FILE_NAME_CONCAT): Use it.
25819         * MODULES.html.sh (File system functions): Mention new module.
25820
25821         argp: avoid memory leak
25822         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25823         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25824         base_name, since the latter malloc()s and can call exit().
25825         Leak introduced 2006-07-03.
25826
25827         dirname-lgpl: adjust clients that don't need full dirname
25828         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25829         * modules/filenamecat (Depends-on): Likewise.
25830         * modules/linkat (Depends-on): Likewise.
25831         * modules/mkancesdirs (Depends-on): Likewise.
25832         * modules/mkdir (Depends-on): Likewise.
25833         * modules/openat (Depends-on): Likewise.
25834         * modules/savewd (Depends-on): Likewise.
25835         * modules/rename (Depends-on): Likewise.
25836         (License): Relax license.
25837         * modules/mkdir-tests (Depends-on): Drop progname.
25838         (Makefile.am): Delete unneeded LDADD.
25839         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25840
25841         dirname: split into dirname-lgpl
25842         * modules/dirname-lgpl: New module.
25843         * modules/dirname (Files): Move library-safe files into
25844         dirname-lgpl.
25845         (Depends-on): Add dirname-lgpl.
25846         (configure.ac): Declare witness.
25847         * modules/double-slash-root (License): Relax license.
25848         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25849         module.
25850         * lib/dirname.c (dir_len, mdir_name): Move...
25851         * lib/dirname-lgpl.c: ...into new file.
25852         * lib/basename.c (last_component, base_len): Move...
25853         * lib/basename-lgpl.c: ...into new file.
25854         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25855         (gl_DIRNAME): Use it.
25856         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25857         Mention new module.
25858         * modules/dirname-tests (Depends-on): Add progname.
25859         * tests/test-dirname.c (program_name): Delete.
25860
25861         mkdir: make safe for libraries
25862         * modules/mkdir (Depends-on): Drop xalloc.
25863         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25864         exit.
25865
25866         tests: avoid some compiler warnings
25867         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25868         literals.
25869         * tests/test-memchr.c (main): Avoid type mismatch.
25870         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25871         * tests/test-base64.c (main): Likewise.
25872         * tests/test-getdelim.c (main): Likewise.
25873         * tests/test-gethostname.c (main): Likewise.
25874         * tests/test-getline.c (main): Likewise.
25875         * tests/test-netinet_in.c (main): Likewise.
25876         * tests/test-select.c (open_server_socket, main): Likewise.
25877         * tests/test-select-stdin.c (main): Likewise.
25878         * tests/test-sockets.c (main): Likewise.
25879         * tests/test-strsignal.c (main): Likewise.
25880         * tests/test-sys_select.c (main): Likewise.
25881         * tests/test-sys_socket.c (main): Likewise.
25882         * tests/test-u64.c (main): Likewise.
25883         * tests/test-xfprintf-posix.c (main): Likewise.
25884         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25885
25886         sockets: avoid compiler warning
25887         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25888
25889         maint: detect usage(1) and other suspicious exits
25890         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25891
25892 2009-10-29  Jim Meyering  <meyering@redhat.com>
25893
25894         timespec: long-to-int truncation could make timespec_cmp malfunction
25895         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25896         a multiple of 2^32 nanoseconds as no difference.
25897
25898 2009-10-28  Jim Meyering  <meyering@redhat.com>
25899
25900         fprintftime: wrap macro code argument in "do {...} while(0)"
25901         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25902         cpy macro must be a statement that can be followed by a semicolon.
25903         Now that the else clause contains a comment and is hence longer
25904         than one line, I require curly braces.  That in turn requires
25905         that we wrap this code block in the standard do...while(0).
25906
25907         fprintftime: remove stray semicolon from previous change
25908         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25909
25910         fprintftime: avoid a warning about ignored fwrite return value
25911         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25912         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25913         that is unsafe.
25914         * modules/fprintftime (Depends-on): Add ignore-value.
25915
25916         exclude: avoid an unwarranted warning
25917         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25918
25919 2009-10-27  Eric Blake  <ebb9@byu.net>
25920
25921         fseek: avoid compilation failure when fflush is replaced
25922         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25923         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25924         module is in use.
25925         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25926         module is not in use; since REPLACE_FSEEK worked otherwise.
25927         (GNULIB_FTELLO): Likewise for ftell.
25928         Reported by Ian Beckwith and others.
25929
25930 2009-10-27  Bruno Haible  <bruno@clisp.org>
25931
25932         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25933         Reported by Jim Meyering.
25934
25935 2009-10-27  Jim Meyering  <jim@meyering.net>
25936             Bruno Haible  <bruno@clisp.org>
25937
25938         Avoid warning despite dropping the return value of fwrite.
25939         * lib/unicodeio.c: Include ignore-value.h.
25940         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25941         * modules/unicodeio (Depends-on): Add ignore-value.
25942
25943 2009-10-26  Eric Blake  <ebb9@byu.net>
25944
25945         areadlinkat: fix fallback path
25946         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25947         pointer and zero.
25948
25949 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25950
25951         Use a better IO block size for modern systems
25952         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25953         * lib/md2.c: Likewise.
25954         * lib/md4.c: Likewise.
25955         * lib/md5.c: Likewise.
25956         * lib/sha1.c: Likewise.
25957         * lib/sha256.c: Likewise.
25958         * lib/sha512.c: Likewise.
25959
25960 2009-10-22  Eric Blake  <ebb9@byu.net>
25961
25962         tests: avoid several compiler warnings
25963         * tests/test-getcwd.c (main): Avoid buffer underflow.
25964         * tests/test-getdate.c (main): String literals are not safe with
25965         putenv, so use setenv.  Declare unused argument.
25966         * modules/getdate-tests (Depends-on): Add setenv.
25967         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25968         problems with string literals in char *.
25969         * tests/test-hash.c (main): Avoid shadowing declaration.
25970         (insert_new): Treat string literals as char const *.
25971         * tests/test-getopt.h (test_getopt): Likewise.
25972         (getopt_loop): Alter types to minimize casting elsewhere.
25973         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25974         (test_getopt_long_posix): Likewise.
25975         (do_getopt_long): Add wrapper to minimize casting.
25976         * tests/test-atexit.c (clear_temp_file): Use void.
25977         * tests/test-areadlink-with-size.c (main): Declare unused
25978         arguments.
25979         * tests/test-areadlink.c (main): Likewise.
25980         * tests/test-areadlinkat-with-size.c (main): Likewise.
25981         * tests/test-areadlinkat.c (main): Likewise.
25982         * tests/test-canonicalize-lgpl.c (main): Likewise.
25983         * tests/test-canonicalize.c (main): Likewise.
25984         * tests/test-dirent-safer.c (main): Likewise.
25985         * tests/test-dirname.c (main): Likewise.
25986         * tests/test-dup2.c (main): Likewise.
25987         * tests/test-fchdir.c (main): Likewise.
25988         * tests/test-fcntl-h.c (main): Likewise.
25989         * tests/test-fcntl-safer.c (main): Likewise.
25990         * tests/test-fdopendir.c (main): Likewise.
25991         * tests/test-fdutimensat.c (main): Likewise.
25992         * tests/test-fflush.c (main): Likewise.
25993         * tests/test-filenamecat.c (main): Likewise.
25994         * tests/test-filevercmp.c (main): Likewise.
25995         * tests/test-fopen-safer.c (main): Likewise.
25996         * tests/test-fopen.c (main): Likewise.
25997         * tests/test-fpending.c (main): Likewise.
25998         * tests/test-fpurge.c (main): Likewise.
25999         * tests/test-freading.c (main): Likewise.
26000         * tests/test-fstatat.c (main): Likewise.
26001         * tests/test-fsync.c (main): Likewise.
26002         * tests/test-futimens.c (main): Likewise.
26003         * tests/test-getndelim2.c (main): Likewise.
26004         * tests/test-gettimeofday.c (main): Likewise.
26005         * tests/test-getopt.c (main): Likewise.
26006         * tests/test-i-ring.c (main): Likewise.
26007         * tests/test-inttypes.c (main): Likewise.
26008         * tests/test-link.c (main): Likewise.
26009         * tests/test-lstat.c (main): Likewise.
26010         * tests/test-math.c (main): Likewise.
26011         * tests/test-md5.c (main): Likewise.
26012         * tests/test-memchr2.c (main): Likewise.
26013         * tests/test-memrchr.c (main): Likewise.
26014         * tests/test-mkdir.c (main): Likewise.
26015         * tests/test-mkdirat.c (main): Likewise.
26016         * tests/test-mkfifoat.c (main): Likewise.
26017         * tests/test-open.c (main): Likewise.
26018         * tests/test-openat-safer.c (main): Likewise.
26019         * tests/test-openat.c (main): Likewise.
26020         * tests/test-quotearg.c (main): Likewise.
26021         * tests/test-rawmemchr.c (main): Likewise.
26022         * tests/test-readlink.c (main): Likewise.
26023         * tests/test-remove.c (main): Likewise.
26024         * tests/test-rename.c (main): Likewise.
26025         * tests/test-renameat.c (main): Likewise.
26026         * tests/test-rmdir.c (main): Likewise.
26027         * tests/test-sha1.c (main): Likewise.
26028         * tests/test-signal.c (main): Likewise.
26029         * tests/test-sigaction.c (main): Likewise.
26030         * tests/test-stat.c (main): Likewise.
26031         * tests/test-stat-time.c (main): Likewise.
26032         * tests/test-stddef.c (main): Likewise.
26033         * tests/test-stdint.c (main): Likewise.
26034         * tests/test-stdio.c (main): Likewise.
26035         * tests/test-stdlib.c (main): Likewise.
26036         * tests/test-strchrnul.c (main): Likewise.
26037         * tests/test-strerror.c (main): Likewise.
26038         * tests/test-string.c (main): Likewise.
26039         * tests/test-strtod.c (main): Likewise.
26040         * tests/test-strverscmp.c (main): Likewise.
26041         * tests/test-symlink.c (main): Likewise.
26042         * tests/test-symlinkat.c (main): Likewise.
26043         * tests/test-sys_stat.c (main): Likewise.
26044         * tests/test-sys_time.c (main): Likewise.
26045         * tests/test-time.c (main): Likewise.
26046         * tests/test-unistd.c (main): Likewise.
26047         * tests/test-unlink.c (main): Likewise.
26048         * tests/test-unlinkat.c (main): Likewise.
26049         * tests/test-utimens.c (main): Likewise.
26050         * tests/test-utimensat.c (main): Likewise.
26051         * tests/test-version-etc.c (main): Likewise.
26052         * tests/test-wchar.c (main): Likewise.
26053         * tests/test-wctype.c (main): Likewise.
26054         * tests/test-xprintf-posix.c (main): Likewise.
26055         * tests/test-posixtm.c (main): Likewise.
26056         (STREQ): Delete unused macro.
26057         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26058         shadowed variables.
26059         * tests/test-memchr.c (main): Likewise.
26060
26061 2009-10-21  Eric Blake  <ebb9@byu.net>
26062
26063         areadlinkat: avoid failure on older glibc
26064         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26065         rather than mis-comparing 0 against FUNC_RESULT of char*.
26066
26067 2009-10-21  Bruno Haible  <bruno@clisp.org>
26068
26069         * modules/stpncpy (License): Relicense under LGPLv2+.
26070         Reported by David Lutterkort <lutter@redhat.com>.
26071
26072 2009-10-20  Eric Blake  <ebb9@byu.net>
26073
26074         utimensat: work around Solaris 9 bug
26075         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26076         has trailing slash bugs.
26077         * tests/test-lutimens.h (test_lutimens): Enhance test.
26078         * tests/test-utimens.h (test_utimens): Likewise.
26079         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26080         * doc/posix-functions/utimes.texi (utimes): Likewise.
26081         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26082         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26083         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26084         * doc/posix-functions/futimens.texi (futimens): Likewise.
26085
26086         fdutimensat: new module
26087         * modules/fdutimensat: New file.
26088         * lib/fdutimensat.c (fdutimensat): Likewise.
26089         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26090         * MODULES.html.sh (File system functions): Mention module.
26091         * modules/fdutimensat-tests: New test.
26092         * tests/test-fdutimensat.c: Likewise.
26093
26094         doc: regenerate INSTALL
26095         * doc/INSTALL: Reflect recent autoconf update.
26096         * doc/INSTALL.ISO: Likewise.
26097         * doc/INSTALL.UTF-8: Likewise.
26098
26099 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26100
26101         acl: warn if ACL support is not detected
26102         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26103
26104 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26105
26106         * lib/nproc.h: Add extern "C" block for C++.
26107
26108 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26109             Bruno Haible  <bruno@clisp.org>
26110
26111         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26112         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26113         * doc/posix-functions/isalpha.texi: Likewise.
26114         * doc/posix-functions/isblank.texi: Likewise.
26115         * doc/posix-functions/iscntrl.texi: Likewise.
26116         * doc/posix-functions/isdigit.texi: Likewise.
26117         * doc/posix-functions/isgraph.texi: Likewise.
26118         * doc/posix-functions/islower.texi: Likewise.
26119         * doc/posix-functions/isprint.texi: Likewise.
26120         * doc/posix-functions/ispunct.texi: Likewise.
26121         * doc/posix-functions/isspace.texi: Likewise.
26122         * doc/posix-functions/isupper.texi: Likewise.
26123         * doc/posix-functions/isxdigit.texi: Likewise.
26124
26125 2009-10-18  Bruno Haible  <bruno@clisp.org>
26126
26127         Tests for module 'isblank'.
26128         * modules/isblank-tests: New file.
26129         * tests/test-isblank.c: New file.
26130
26131         New module 'isblank'.
26132         * lib/isblank.c: New file.
26133         * m4/isblank.m4: New file.
26134         * modules/isblank: New file.
26135         * doc/posix-functions/isblank.texi: Mention the new module.
26136
26137 2009-10-18  Bruno Haible  <bruno@clisp.org>
26138
26139         New module 'ctype'.
26140         * lib/ctype.in.h: New file.
26141         * m4/ctype.m4: New file.
26142         * modules/ctype: New file.
26143         * doc/posix-headers/ctype.texi: Mention the new module.
26144
26145 2009-10-18  Jim Meyering  <meyering@redhat.com>
26146
26147         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26148         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26149         right after its initialization, rather than farther down.
26150         Keeping these in close proximity makes it easier to ensure
26151         that each such variable is initialized.  E.g.,
26152
26153             LIB_CLOCK_GETTIME=
26154             AC_SUBST([LIB_CLOCK_GETTIME])
26155
26156         This change also increments these serial numbers.
26157         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26158         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26160
26161 2009-10-18  Bruno Haible  <bruno@clisp.org>
26162
26163         Don't let environment variables perturb build.
26164         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26165         (gl_PREREQ_GETHRXTIME): ... not here.
26166
26167 2009-10-18  Bruno Haible  <bruno@clisp.org>
26168
26169         Avoid symlink attack in localcharset module.
26170         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26171         (O_NOFOLLOW): Define fallback.
26172         (get_charset_aliases): Don't open the file if it is a symbolic link.
26173         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26174         gl_FCNTL_H.
26175         (gl_FCNTL_H): Require it.
26176         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26177         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26178         Reported by Fergal Glynn <fglynn@veracode.com>.
26179
26180 2009-10-18  Bruno Haible  <bruno@clisp.org>
26181
26182         Implement nproc for mingw.
26183         * lib/nproc.c: Include <windows.h>
26184         (num_processors): On native Windows platforms, try GetSystemInfo.
26185
26186 2009-10-18  Bruno Haible  <bruno@clisp.org>
26187
26188         Implement nproc for IRIX.
26189         * lib/nproc.c: Include <sys/sysmp.h>.
26190         (num_processors): On IRIX systems, try sysmp.
26191         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26192
26193 2009-10-18  Bruno Haible  <bruno@clisp.org>
26194
26195         Implement nproc for HP-UX.
26196         * lib/nproc.c: Include <sys/pstat.h>
26197         (num_processors): On HP-UX systems, try pstat_getdynamic.
26198         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26199         pstat_getdynamic.
26200
26201 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26202             Bruno Haible  <bruno@clisp.org>
26203
26204         Implement nproc for NetBSD, OpenBSD.
26205         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26206         (ARRAY_SIZE): New macro.
26207         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26208         * m4/nproc.m4: New file.
26209         * modules/nproc (Files): Add m4/nproc.m4.
26210         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26211         (Makefile.am): Instead, augment lib_SOURCES.
26212
26213 2009-10-18  Bruno Haible  <bruno@clisp.org>
26214
26215         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26216         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26217         sys/param.h.
26218
26219 2009-10-16  Eric Blake  <ebb9@byu.net>
26220
26221         utimensat: new module
26222         * modules/utimensat: New file.
26223         * lib/utimensat.c (utimensat): Likewise.
26224         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26225         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26226         so we can work around Linux bugs.
26227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26228         * modules/sys_stat (Makefile.am): Substitute them.
26229         * lib/sys_stat.in.h (utimensat): Declare it.
26230         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26231         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26232         * modules/utimensat-tests: New test.
26233         * tests/test-utimensat.c: Likewise.
26234
26235         utimens: let lutimens work on non-symlinks
26236         * lib/utimens.c (lutimens): Fall back to utimens rather than
26237         failing with ENOSYS, when file is not a symlink.
26238         (utimens): Reduce redirection.
26239         * tests/test-lutimens.h (test_lutimens): Update test to cover
26240         non-symlinks.
26241         * tests/test-utimens.h (test_utimens): Update test to cover
26242         symlinks.
26243         * tests/test-utimens.c (main): Update caller.
26244
26245         utimens: cache whether utimensat syscall works
26246         * lib/utimens.c (utimensat_works_really): New cache variable.
26247         (fdutimens, lutimens): Use it to avoid failing syscall.
26248
26249         test-stat-time, test-utimens: improve portability
26250         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26251         ext4 on alpha, and for cygwin.
26252         * tests/test-utimens-common.h: New file.
26253         (nap): Factor delays into single function.
26254         * tests/test-lutimens.h (test_lutimens): Use new header.
26255         * tests/test-futimens.h (test_futimens): Likewise.
26256         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26257         timestamps to occur from same machine, as was done previously for
26258         test_utimens.
26259         * modules/utimens-tests (Files): Ship new file.
26260         * modules/futimens-tests (Files): Likewise.
26261         Reported in part by Jim Meyering.
26262
26263         sys_stat: sort replacement declarations
26264         * lib/sys_stat.in.h: Sort declarations.
26265         * lib/futimens.c (futimens): Fix typo.
26266
26267 2009-10-15  Jim Meyering  <meyering@redhat.com>
26268
26269         don't let environment settings perturb build
26270         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26271         could cause a configure-time and/or build-time malfunction.
26272         Typically, a configure-time function-in-library test is performed
26273         via code like this:
26274
26275           LIB_VAR=
26276           AC_SUBST([LIB_VAR])
26277           prefix_saved_LIBS=$LIBS
26278             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26279                        [test "$ac_cv_search_FUNC" = "none required" ||
26280                         LIB_VAR=$ac_cv_search_FUNC])
26281           LIBS=$prefix_saved_LIBS
26282
26283         However, in each of the files affected by this change, the LIB_VAR=
26284         initialization was omitted.  Thus, when set in the environment, its
26285         value would propagate into generated Makefiles when FUNC is not found
26286         in LIB_NAME.
26287         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26288         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26290
26291 2009-10-14  Eric Blake  <ebb9@byu.net>
26292
26293         fchdir: avoid infinite recursion in mingw
26294         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26295         recursing.
26296
26297         test-stat-time: port to mingw
26298         * tests/test-stat-time.c (force_unlink): Return a value.
26299         (test_ctime) [W32]: Fix compilation error.
26300         (nap): Don't call usleep with too large an argument.  Use
26301         force_unlink.
26302         * doc/pastposix-functions/usleep.texi (usleep): Document the
26303         portability issue.
26304
26305 2009-10-13  Jim Meyering  <meyering@redhat.com>
26306
26307         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26308         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26309         * modules/pipe-filter-ii: Likewise.
26310         * modules/sys_socket-tests: Likewise.
26311         * modules/tsearch-tests: Likewise.
26312         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26313         (check): Depend on it.
26314
26315 2009-10-12  Eric Blake  <ebb9@byu.net>
26316
26317         utimens-tests: port to NFS file systems
26318         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26319         comparisons to avoid spurious failures from timestamp drift
26320         between NFS machines.
26321
26322 2009-10-12  Eric Blake  <ebb9@byu.net>
26323
26324         stat-time-tests: minor cleanups
26325         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26326         * tests/test-stat-time.c (nap): Separate assignment from call.
26327         Suggested by Paolo Bonzini and Bruno Haible.
26328
26329         sys_stat: guarantee struct timespec
26330         * lib/sys_stat.in.h (includes): Always include <time.h>
26331         * modules/sys_stat (Depends-on): Add time.
26332         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26333         mode_t permission values.
26334         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26335         get at subsecond timestamps.
26336
26337 2009-10-10  Eric Blake  <ebb9@byu.net>
26338
26339         futimens: new module
26340         * modules/futimens: New file.
26341         * lib/futimens.c (futimens): Likewise.
26342         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26343         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26344         we can work around Linux bugs.
26345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26346         * modules/sys_stat (Makefile.am): Substitute them.
26347         * lib/sys_stat.in.h (futimens): Declare it.
26348         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26349         * doc/posix-functions/futimens.texi (futimens): Likewise.
26350         * modules/futimens-tests: New test.
26351         * tests/test-futimens.c: Likewise.
26352
26353         utimens: introduce fdutimens
26354         * lib/utimens.h (fdutimens): New prototype.
26355         * lib/utimens.c (gl_futimens): Move guts...
26356         (fdutimens): ...to new interface.
26357         * tests/test-utimens.c (do_fdutimens): Use it.
26358
26359         utimens: add UTIME_NOW and UTIME_OMIT support
26360         * lib/utimens.c (validate_timespec, update_timespec): New helper
26361         functions.
26362         (gl_futimens, lutimens): Use them.
26363         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26364         stdbool, sys_stat.
26365         (Link): Mention resulting library dependency.
26366         * modules/utimecmp (Link): Likewise.
26367         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26368         (Makefile.am): Pick up library dependency.
26369         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26370         definition.
26371         * tests/test-sys_stat.c: Test the definitions.
26372         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26373         * NEWS: Document library dependency.
26374
26375         utimecmp: support symlink timestamps
26376         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26377         hashing when possible.  Use pathconf when available.
26378         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26379         * modules/utimecmp (Depends-on): Add lstat.
26380
26381         utimens: add lutimens interface
26382         * lib/utimens.c (lutimens): New function.
26383         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26384         * lib/utimens.h (lutimens): Declare new interface.
26385         * tests/test-utimens.c (main): Enhance test.
26386         * tests/test-lutimens.h (test_lutimens): New file.
26387         * modules/utimens-tests (Files): Distribute it.
26388         (Depends-on): Add symlink.
26389         (configure.ac): Check for usleep.
26390
26391         utimens: validate futimens usage
26392         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26393         fewer syscalls on failure later on.  Avoid compiler warning on
26394         mingw.
26395         * modules/utimens (Depends-on): Add dup2.
26396
26397         utimens: add test
26398         * modules/utimens-tests: New test.
26399         * tests/test-utimens.h: New file.
26400         * tests/test-futimens.h: Likewise.
26401         * tests/test-utimens.c: Likewise.
26402
26403         doc: mention timestamp portability issues
26404         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26405         instead.
26406         * doc/posix-functions/utime.texi (utime): Likewise.
26407         * doc/posix-functions/utimes.texi (utimes): Likewise.
26408         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26409         instead.
26410         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26411         module.
26412         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26413         Mention weakness with symlink timestamps.
26414         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26415         to utimensat/futimens instead.
26416         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26417
26418         test-dup2: enhance test
26419         * tests/test-dup2.c (main): Also check AT_FDCWD.
26420
26421         test-stat-time: avoid more spurious failures
26422         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26423         xfs; and avoid race if the two timestamps cross quantization edge.
26424
26425         relocatable: prefer 'file system' over 'filesystem'
26426         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26427         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26428         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26429         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26430         * lib/relocatable.c (compute_curr_prefix): Likewise.
26431
26432 2009-10-10  Jim Meyering  <meyering@redhat.com>
26433
26434         stat-time-tests: check for the usleep function
26435         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26436
26437 2009-10-10  Bruno Haible  <bruno@clisp.org>
26438
26439         * modules/xnanosleep: Put the Link section after the Include section.
26440
26441 2009-10-09  Eric Blake  <ebb9@byu.net>
26442
26443         dup2: work around FreeBSD 6.1 bug
26444         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26445         * doc/posix-functions/dup2.texi (dup2): Document it.
26446         Reported by Nelson H. F. Beebe and Jim Meyering.
26447
26448         test-stat-time: port to buggy NFS clients
26449         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26450         (test_ctime): Also skip test if mtime and ctime are skewed.
26451
26452         maint: prefer 'file system' over 'filesystem'
26453         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26454         * doc/posix-functions/lstat.texi (lstat): Likewise.
26455         * lib/file-has-acl.c (file_has_acl): Likewise.
26456         * lib/fwriteerror.c [TEST]: Likewise.
26457         * tests/test-areadlink.h (test_areadlink): Likewise.
26458         * tests/test-areadlinkat-with-size.c (main): Likewise.
26459         * tests/test-areadlinkat.c (main): Likewise.
26460         * tests/test-canonicalize-lgpl.c (main): Likewise.
26461         * tests/test-canonicalize.c (main): Likewise.
26462         * tests/test-fstatat.c (main): Likewise.
26463         * tests/test-linkat.c (main): Likewise.
26464         * tests/test-lstat.h (test_lstat_func): Likewise.
26465         * tests/test-mkdir.h (test_mkdir): Likewise.
26466         * tests/test-readlink.h (test_readlink): Likewise.
26467         * tests/test-remove.c (main): Likewise.
26468         * tests/test-rename.h (test_rename): Likewise.
26469         * tests/test-renameat.c (main): Likewise.
26470         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26471         * tests/test-symlink.h (test_symlink): Likewise.
26472         * tests/test-symlinkat.c (main): Likewise.
26473         * tests/test-unlink.h (test_unlink_func): Likewise.
26474         * tests/test-unlinkat.c (main): Likewise.
26475
26476         maint: make realtime library usage explicit
26477         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26478         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26479         * modules/settime (Link): Likewise.
26480         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26481
26482         test-stat-time: speed up execution
26483         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26484         warning on mingw.
26485         (nap): New helper function.
26486         (prepare_test): Use it to reduce sleep time.
26487         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26488         execution.
26489         * modules/stat-time-tests (configure.ac): Check for usleep.
26490
26491 2009-10-09  Jim Meyering  <meyering@redhat.com>
26492
26493         selinux-h: always use getfilecon wrappers
26494         * lib/getfilecon.c: New file.
26495         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26496         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26497         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26498         (fgetfilecon): Provide a stub.
26499         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26500         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26501         file unconditionally.
26502         When <selinux/selinux.h> is found, arrange to use wrappers.
26503         * modules/selinux-h (Files): Add getfilecon.c.
26504         (Makefile.am): Substitute include-next-related bits
26505         into the now-always-generated selinux/selinux.h file.
26506         * doc/glibc-functions/lgetfilecon.texi: New file.
26507         * doc/glibc-functions/fgetfilecon.texi: New file.
26508         * doc/glibc-functions/getfilecon.texi: New file.
26509         * doc/glibc-functions/getfilecon-desc.texi: New file.
26510         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26511         which to pull in the new files.
26512         * MODULES.html.sh (Misc): Add selinux-h.
26513
26514 2009-10-08  Jim Meyering  <meyering@redhat.com>
26515
26516         unistd: fix comment typo
26517         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26518
26519 2009-10-08  Eric Blake  <ebb9@byu.net>
26520
26521         areadlink: use SIZE_MAX consistently
26522         * modules/areadlink (Depends-on): Add stdint.
26523         * modules/areadlink-with-size (Depends-on): Likewise.
26524         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26525         gives NULL; drop sys/types, since unistd gives size_t; and add
26526         stdint for SIZE_MAX.
26527         (SIZE_MAX): Rely on headers.
26528         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26529         and add stdint.
26530         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26531         (SIZE_MAX): Likewise.
26532         (INITIAL_BUF_SIZE): Turn into enum.
26533         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26534
26535 2009-10-08  Jim Meyering  <meyering@redhat.com>
26536
26537         areadlinkat: avoid compilation failure
26538         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26539         Fix typo in comment.
26540
26541 2009-10-07  Eric Blake  <ebb9@byu.net>
26542
26543         areadlinkat-with-size: new module
26544         * modules/areadlinkat-with-size: New module.
26545         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26546         * lib/areadlink.h (areadlinkat): Declare it.
26547         * MODULES.html.sh (File system functions): Mention it.
26548         * modules/areadlinkat-with-size-tests: New test.
26549         * tests/test-areadlinkat-with-size.c: New file.
26550
26551         xreadlinkat: new module
26552         * modules/xreadlinkat: New module.
26553         * lib/xreadlinkat.c (xreadlinkat): New file.
26554         * lib/xreadlink.h (xreadlinkat): Declare it.
26555         * MODULES.html.sh (File system functions): Mention it.
26556
26557         areadlinkat: new module
26558         * lib/at-func.c (FUNC_FAIL): New define.
26559         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26560         * modules/areadlinkat: New module.
26561         * lib/linkat.c (areadlinkat): Move...
26562         * lib/areadlinkat.c (areadlinkat): ...to new file.
26563         * lib/areadlink.h (areadlinkat): Declare it.
26564         * modules/linkat (Depends-on): Add areadlinkat.
26565         * MODULES.html.sh (File system functions): Mention it.
26566         * modules/areadlinkat-tests: New test.
26567         * tests/test-areadlinkat.c: New file.
26568
26569         areadlink, areadlink-with-size: add tests
26570         * modules/areadlink-tests: New test.
26571         * modules/areadlink-with-size-tests: Likewise.
26572         * tests/test-areadlink.h: New file.
26573         * tests/test-areadlink.c: Likewise.
26574         * tests/test-areadlink-with-size.c: Likewise.
26575
26576         maint: minor cleanups
26577         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26578         _UNUSED_PARAMETER_ instead.
26579         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26580         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26581         * modules/linkat-tests (Files): Distribute test-link.h.
26582
26583         openat, utimens: whitespace cleanup
26584         * lib/openat.c: Prefer space throughout, rather than mix of 8
26585         spaces vs. tabs.
26586         * lib/at-func.c: Likewise.
26587         * lib/utimens.c: Likewise.
26588
26589         openat: avoid using wrong fd
26590         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26591         working directory chooses same fd.
26592         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26593
26594         mkdir, mkdirat: fix cygwin 1.5.x bug
26595         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26596         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26597         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26598         bug.
26599         (gl_PREREQ_MKDIR): Delete unused macro.
26600         * modules/mkdir (Files): Track file rename.
26601         (configure.ac): Update macro name.
26602         * modules/openat (Depends-on): Add mkdir.
26603         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26604
26605         mkdir, mkdirat: add tests
26606         * modules/mkdir-tests: New test.
26607         * tests/test-mkdir.h: New file.
26608         * tests/test-mkdir.c: Likewise.
26609         * tests/test-mkdirat.c: Likewise.
26610         * modules/openat-tests (Files): Add new files.
26611         (Makefile.am): Run new test.
26612
26613 2009-10-06  Eric Blake  <ebb9@byu.net>
26614
26615         doc: tweak *at function documentation
26616         * doc/posix-functions/faccessat.texi (faccessat): Mention
26617         known issue with replacement.
26618         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26619         * doc/posix-functions/linkat.texi (linkat): Likewise.
26620         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26621         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26622         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26623         * doc/posix-functions/renameat.texi (renameat): Likewise.
26624         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26625
26626         openat: fix GNU/Hurd bug in unlinkat
26627         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26628         broken.
26629         * doc/posix-functions/unlink.texi (unlink): Document this.
26630         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26631
26632         fdopendir: fix GNU/Hurd bug
26633         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26634         allowing non-directory fds.
26635         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26636         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26637         * modules/dirent (Makefile.am): Substitute it.
26638         * lib/dirent.in.h (fdopendir): Declare replacement.
26639         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26640         * tests/test-fdopendir.c (main): Test something other than
26641         /dev/null, since on Hurd that behaves like a directory.
26642
26643         test-symlink: port to GNU/Hurd
26644         * tests/test-symlink.h (test_symlink): Relax expected errno.
26645
26646         doc: tweak more cygwin information
26647         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26648         now compatible with glibc.
26649         * doc/posix-functions/getopt.texi (getopt): Likewise.
26650
26651         getopt-gnu: add another test
26652         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26653         guarantee behavior relied on by m4.
26654         * tests/test-getopt.c (main): Use it.
26655         * modules/getopt-posix-tests (Depends-on): Add setenv.
26656         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26657
26658         getopt: fix compilation on darwin
26659         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26660         include.
26661         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26662         Reported by Ludovic Courtès.
26663
26664 2009-10-06  Bruno Haible  <bruno@clisp.org>
26665
26666         * modules/size_max (Description): Discourage its use.
26667         Reported by Simon Josefsson.
26668
26669 2009-10-06  Jim Meyering  <meyering@redhat.com>
26670
26671         linkat: avoid compilation failure
26672         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26673
26674 2009-10-05  Eric Blake  <ebb9@byu.net>
26675
26676         linkat: support Linux 2.6.17
26677         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26678         linkat on Linux, but allow cache variable override.
26679         * lib/linkat.c (rpl_linkat): Define override.
26680         * modules/linkat (Depends-on): Add symlinkat.
26681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26682         * modules/unistd (Makefile.am): Substitute it.
26683         * lib/unistd.in.h (linkat): Declare replacement.
26684         Reported by Pádraig Brady.
26685
26686         quotearg: port test to systems with C.UTF-8 locale
26687         * tests/test-quotearg.c (struct result_strings): Add another
26688         member, differentiating between C.ASCII and C.UTF-8 handling.
26689         (compare_strings): Add parameter.
26690         (main): Adjust all callers.
26691
26692         getopt: avoid clash with FreeBSD _getopt_internal
26693         * lib/getopt.in.h (_getopt_internal): Override the name.
26694         * lib/getopt_int.h (includes): Pick up any overrides.
26695         Reported by Reuben Thomas.
26696
26697         hash: allow C89 compilation
26698         * lib/hash.c (check_tuning): Move declaration before statement.
26699         Reported by Reuben Thomas.
26700
26701 2009-10-05  Karl Berry  <karl@gnu.org>
26702
26703         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26704
26705 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26706             Bruno Haible  <bruno@clisp.org>
26707
26708         * lib/uname.c (uname): Use a table-driven algorithm to compute
26709         Windows NT versions.
26710
26711 2009-10-04  Bruno Haible  <bruno@clisp.org>
26712
26713         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26714         program_invocation_short_name.
26715         * modules/progname (configure.ac): Test for presence of
26716         program_invocation_short_name.
26717         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26718
26719 2009-10-04  Bruno Haible  <bruno@clisp.org>
26720
26721         * lib/progname.c (set_program_name): Fix comment.
26722         Reported by Jim Meyering.
26723
26724 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26725             Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/uname.c: Include <string.h>.
26728         (uname): Do only one call to GetVersionEx in the common case.
26729
26730 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26731             Bruno Haible  <bruno@clisp.org>
26732
26733         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26734         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26735         (uname): Add support for Windows CE and various non-x86 CPU types.
26736
26737 2009-10-03  Bruno Haible  <bruno@clisp.org>
26738
26739         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26740         invocation to tests/configure.ac.
26741         Reported by Ian Beckwith <ianb@erislabs.net>.
26742
26743 2009-10-02  Eric Blake  <ebb9@byu.net>
26744
26745         fchdir: avoid compiler warning
26746         * lib/fchdir.c (canonicalize_file_name)
26747         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26748
26749         test-open: support mingw errno values
26750         * tests/test-open.h (test_open): Relax test.
26751         * tests/test-fopen.h (test_fopen): Likewise.
26752         * tests/test-openat-safer.c (main): Likewise.
26753
26754         open: fix opening directory on mingw
26755         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26756
26757         test-open: on GNU/Hurd, /dev/null is a directory
26758         * tests/test-fopen.h (main): Rename...
26759         (test_fopen): ...to this.  Use a guaranteed non-directory when
26760         confirming open behavior on trailing slash.
26761         * tests/test-openat-safer.c (main): Likewise.
26762         * tests/test-open.h (main): Likewise....
26763         (test_open): ...to this.
26764         * tests/test-fopen.c (main): Adjust caller.
26765         * tests/test-fopen-safer.c (main): Likewise.
26766         * tests/test-open.c (main): Likewise.
26767         * tests/test-fcntl-safer.c (main): Likewise.
26768         Reported by Samuel Thibault.
26769
26770         rename, fchdir: don't ignore chdir failure
26771         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26772         * lib/rename.c (rpl_rename) [W32]: Likewise.
26773         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26774         an empty destination directory if source cannot be renamed,
26775         although there is still possibility for failure.
26776         * doc/posix-functions/rename.texi (rename): Document the race.
26777         Reported by Jim Meyering.
26778
26779         maint: cleanup whitespace in recent commits
26780         * lib/rename.c (rpl_rename): Remove tabs.
26781         * tests/test-link.h (test_link): Likewise.
26782         * lib/fchdir.c (get_name): Likewise.
26783         Reported by Jim Meyering.
26784
26785 2009-10-02  Ben Pfaff  <blp@gnu.org>
26786
26787         relocatable-prog-wrapper: Add missing dependency on
26788         double-slash-root.
26789         * modules/relocatable-prog-wrapper: Add dependency.
26790         Reported by Ian Beckwith <ianb@erislabs.net>.
26791
26792 2009-10-02  Eric Blake  <ebb9@byu.net>
26793
26794         renameat: fix Solaris bugs
26795         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26796         needed fixing.
26797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26798         * modules/stdio (Makefile.am): Substitute it.
26799         * lib/stdio.in.h (renameat): Declare replacement.
26800         * lib/renameat.c (rpl_renameat): Implement fix.
26801
26802         renameat: new module
26803         * modules/renameat: New file.
26804         * lib/renameat.c (renameat): Likewise.
26805         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26807         * modules/stdio (Makefile.am): Substitute them.
26808         * lib/stdio.in.h (renameat): Declare it.
26809         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26810         * doc/posix-functions/renameat.texi (renameat): Likewise.
26811         * modules/renameat-tests: New test.
26812         * tests/test-renameat.c: Likewise.
26813
26814         rename: fix mingw bugs
26815         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26816         directory overwrite bugs.
26817
26818         rename: fix another cygwin 1.5 bug
26819         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26820         checks.
26821         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26822         unnecessary cygwin workarounds.  Also work around bug with moving
26823         full directory onto an empty one.
26824         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26825
26826         rename-dest-slash: merge into rename module
26827         * modules/rename-dest-slash (Status): Mark obsolete.
26828         (Depends-on): Add rename.
26829         (Files): Let rename do it all.
26830         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26831         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26832         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26833         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26834         * lib/rename.c (rpl_rename): Update comments.
26835
26836         rename: fix cygwin 1.5.x bugs
26837         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26838         * lib/rename.c (rpl_rename): Work around them.
26839         * modules/rename (Depends-on): Add same-inode.
26840
26841         rename: fix Solaris 10 bug
26842         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26843         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26844         was the only bug.
26845
26846         rename: fix Solaris 9 bug
26847         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26848         on non-directory.  Avoid calling exit.
26849         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26850         strdup.
26851         * modules/rename-tests (Depends-on): Drop lstat.
26852         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26853         (gl_PREREQ_RENAME): Delete unused macro.
26854
26855         rename-dest-slash: fix NetBSD bug
26856         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26857         links.
26858         * modules/rename-dest-slash (Depends-on): Add same-inode.
26859
26860         rename-tests: new test, exposes several platform bugs
26861         * modules/rename-tests: New file.
26862         * tests/test-rename.h: Likewise.
26863         * tests/test-rename.c: Likewise.
26864         * doc/posix-functions/rename.texi (rename): Improve documentation,
26865         including bugs that will eventually be fixed in gnulib.
26866
26867 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26868
26869         * lib/uname.c: Include <stdlib.h>
26870         (uname): Assume version info is available.
26871
26872 2009-10-02  Jim Meyering  <meyering@redhat.com>
26873
26874         gnu-web-doc-update: correct --help output
26875         * build-aux/gnu-web-doc-update: Make --help output relevant.
26876
26877         gnu-web-doc-update: add standard options
26878         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26879
26880         gnu-web-doc-update: New module.
26881         Use this script to automatically update the on-line web documentation
26882         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26883         * modules/gnu-web-doc-update: New file, from coreutils.
26884         * build-aux/gnu-web-doc-update: New script.
26885
26886 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26887
26888         link: LoadLibrary is not needed.
26889         * lib/link.c: Use GetModuleHandle.
26890
26891 2009-10-01  Eric Blake  <ebb9@byu.net>
26892
26893         getopt: bump serial number
26894         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26895         change.
26896
26897         tests: tighten link, rmdir, and remove tests
26898         * tests/test-link.h (includes): No need to use <config.h> here.
26899         Clean up if directory hard link was created, otherwise test for
26900         trailing '.'.
26901         * tests/test-linkat.c (main): Simplify.
26902         * tests/test-remove.c (main): Enhance test for trailing '.'.
26903         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26904
26905 2009-10-01  Jim Meyering  <meyering@redhat.com>
26906
26907         maint.mk: requiring "make major" was annoying, for a "minor" release.
26908         What is intended is "stable", to contrast with alpha and beta,
26909         so require "make stable", not "make major".
26910         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26911         (get_tool_versions): Likewise.
26912         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26913
26914 2009-09-30  Ben Pfaff  <blp@gnu.org>
26915
26916         Fix broken build of replacement for Windows tmpfile().
26917         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26918         flags argument added along with the 'mkostemp' module.
26919
26920 2009-09-28  Bruno Haible  <bruno@clisp.org>
26921
26922         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26923         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26924         to 'remove_elt'.
26925         (gl_list_remove): Update.
26926         * lib/gl_list.c (gl_list_remove): Update.
26927         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26928         to 'remove_elt'.
26929         (gl_oset_remove): Update.
26930         * lib/gl_list.c (gl_oset_remove): Update.
26931         Reported by Eric Blake.
26932
26933 2009-09-28  Eric Blake  <ebb9@byu.net>
26934
26935         doc: mention yet more cygwin 1.7 status
26936         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26937         cygwin.
26938         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26939         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26940
26941         argp: fix test failure
26942         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26943         that are not upper-case.  Pass correct range to tolower.
26944
26945 2009-09-27  Jim Meyering  <meyering@redhat.com>
26946
26947         test-yesno: work around sparc-dash here-document infelicity
26948         Without this change, the literal \177 byte in a here document
26949         would make dash 0.5.5.1-3 access uninitialized memory.
26950         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26951         Instead, use a marker, "@", and filter through tr to create the desired
26952         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26953
26954 2009-09-27  Bruno Haible  <bruno@clisp.org>
26955
26956         Disable untested support for new flavours of ACLs on AIX.
26957         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26958         progress.
26959         * lib/set-mode-acl.c (qset_acl): Likewise.
26960
26961 2008-12-07  Bruno Haible  <bruno@clisp.org>
26962
26963         Add support for new flavours of ACLs on AIX. (Untested.)
26964         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26965         (file_has_acl): Add support for newer AIX.
26966         * lib/set-mode-acl.c (qset_acl): Likewise.
26967         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26968         Rainer Tammer <tammer@tammer.net>.
26969
26970 2009-09-26  Eric Blake  <ebb9@byu.net>
26971
26972         argp: fix compilation of getopt
26973         * lib/getopt.in.h (includes): Use different guard than glibc.
26974         Reported by Sergey Poznyakoff.
26975
26976         doc: mention more cygwin 1.7 status
26977         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26978         bug.
26979         * doc/posix-functions/execl.texi (execl): Likewise.
26980         * doc/posix-functions/execle.texi (execle): Likewise.
26981         * doc/posix-functions/execlp.texi (execlp): Likewise.
26982         * doc/posix-functions/execv.texi (execv): Likewise.
26983         * doc/posix-functions/execve.texi (execve): Likewise.
26984         * doc/posix-functions/execvp.texi (execvp): Likewise.
26985         * doc/glibc-functions/canonicalize_file_name.texi
26986         (canonicalize_file_name): Cygwin 1.7 now provides this.
26987         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26988         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26989         on AT_SYMLINK_NOFOLLOW.
26990
26991 2009-09-24  Eric Blake  <ebb9@byu.net>
26992
26993         test-linkat: make test more robust
26994         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26995
26996         getopt: fix inclusion guards for cygwin
26997         * modules/getopt-posix (Depends-on): Add include-next.
26998         (Makefile.am): Substitute more items in replacement header.
26999         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27000         <getopt.h>.
27001         * lib/getopt.in.h (includes): Use split inclusion guard, and
27002         prefer <getopt.h> over include <unistd.h> when one is present.
27003         (option): Also override name of 'struct option'.
27004
27005         same-inode: revert prior change; it is not yet ready
27006         * NEWS: Undo mention of this change.
27007         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27008         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27009         * lib/cycle-check.c (cycle_check): Likewise.
27010         * lib/same.c (same_name): Likewise.
27011         * lib/at-func2.c (at_func2): Likewise.
27012
27013 2009-09-23  Eric Blake  <ebb9@byu.net>
27014
27015         linkat: new module
27016         * modules/linkat: New file.
27017         * lib/at-func2.c (at_func2): Likewise.
27018         * lib/linkat.c (linkat): Likewise.
27019         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27020         * lib/openat-priv.h (at_func2): Add declaration.
27021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27022         * modules/unistd (Makefile.am): Substitute them.
27023         * lib/unistd.in.h (linkat): Declare it.
27024         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27025         * doc/posix-functions/linkat.texi (linkat): Likewise.
27026         * doc/posix-functions/link.texi (link): Tweak wording.
27027         * tests/test-link.c (main): Move guts...
27028         * tests/test-link.h (test_link): ...into new file.
27029         * modules/linkat-tests: New test.
27030         * tests/test-linkat.c: Likewise.
27031         * modules/link-tests (Files): Ship new file.
27032         (Depends-on): Add stdbool.
27033
27034         dirname: add library-safe mdir_name
27035         * lib/dirname.h (mdir_name): New prototype.
27036         * lib/dirname.c (dir_name): Move guts...
27037         (mdir_name): ...to new function that avoids xalloc_die.
27038
27039         fchdir: another mingw fix
27040         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27041         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27042         on mingw (where it has not yet been ported), and make it optional
27043         elsewhere.
27044         (_gl_register_fd): Use it.
27045
27046         same-inode: make SAME_INODE tri-state, to port to mingw
27047         * NEWS: Mention this change.
27048         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27049         st_ino always being 0.
27050         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27051         * lib/cycle-check.c (cycle_check): Likewise.
27052         * lib/same.c (same_name): Likewise.
27053
27054         lstat: avoid mingw compilation error
27055         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27056         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27057         lstat ourselves.
27058         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27059         was adequate.
27060         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27061         the checks for lstat.
27062         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27063
27064         link: fix test failure on Solaris 9
27065         * lib/link.c (rpl_link): Don't assume link will catch bogus
27066         trailing slash on source.
27067
27068         test-symlinkat: enhance test
27069         * tests/test-readlink.c (main): Move guts...
27070         * tests/test-readlink.h (test_readlink): ...into new file.
27071         * tests/test-symlink.c (main): Move guts...
27072         * tests/test-symlink.h (test_symlink): ...into new file.
27073         * tests/test-symlinkat.c (main): Use new files for further
27074         coverage.
27075         (do_symlink, do_readlink): New helper functions.
27076         * modules/symlink-tests (Files): Ship new file.
27077         (Depends-on): Add stdbool.
27078         * modules/readlink-tests (Files): Ship new file.
27079         (Depends-on): Add stdbool.
27080         * modules/symlinkat-tests (Files): Use new files.
27081
27082 2009-09-23  Eric Blake  <ebb9@byu.net>
27083
27084         readlink: document portability issue with symlink length
27085         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27086         systems have bogus st_size on symlinks, and mention the
27087         areadlink-with-size module.
27088         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27089         * doc/posix-functions/readlink.texi (readlink): Mention the
27090         areadlink module, and ERANGE failure.
27091         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27092         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27093
27094         readlink: fix Solaris 9 bug with trailing slash
27095         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27096         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27097         * doc/posix-functions/readlink.texi (readlink): Document this.
27098         * modules/readlink-tests: New test.
27099         * tests/test-readlink.c: Likewise.
27100
27101         readlink: fix cygwin 1.5.x bug with return type
27102         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27103         * lib/unistd.in.h (readlink): Use ssize_t.
27104         * lib/readlink.c (readlink): Likewise.
27105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27106         * modules/unistd (Makefile.am): Substitute it.
27107         * lib/unistd.in.h (readlink): Declare replacement.
27108         * doc/posix-functions/readlink.texi (readlink): Document this.
27109
27110         symlink: use throughout gnulib
27111         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27112         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27113         symlink is not used.
27114         * modules/symlinkat (Depends-on): Add symlink.
27115         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27116         * modules/canonicalize-tests (Depends-on): Likewise.
27117         * modules/lstat-tests (Depends-on): Likewise.
27118         * modules/openat-tests (Depends-on): Likewise.
27119         * modules/remove-tests (Depends-on): Likewise.
27120         * modules/rmdir-tests (Depends-on): Likewise.
27121         * modules/unlink-tests (Depends-on): Likewise.
27122         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27123         * tests/test-canonicalize.c (symlink): Likewise.
27124         * tests/test-fstatat.c (symlink): Likewise.
27125         * tests/test-lstat.c (symlink): Likewise.
27126         * tests/test-remove.c (symlink): Likewise.
27127         * tests/test-rmdir.c (symlink): Likewise.
27128         * tests/test-unlink.c (symlink): Likewise.
27129         * tests/test-unlinkat.c (symlink): Likewise.
27130
27131         symlink: new module, for Solaris 9 bug
27132         * modules/symlink: New file.
27133         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27134         * lib/symlink.c: Likewise.
27135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27136         * modules/unistd (Makefile.am): Substitute them.
27137         * lib/unistd.in.h (symlink): Declare replacement.
27138         * MODULES.html.sh (File system functions): Mention it.
27139         * doc/posix-functions/symlink.texi (symlink): Likewise.
27140         * modules/symlink-tests: New test.
27141         * tests/test-symlink.c: Likewise.
27142
27143 2009-09-23  Bruno Haible  <bruno@clisp.org>
27144
27145         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27146         when needed.
27147         Test case: gnulib-tool --import --with-tests atexit inttypes.
27148         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27149
27150 2009-09-23  Bruno Haible  <bruno@clisp.org>
27151
27152         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27153         subcommand, not in a subshell.
27154
27155 2009-09-22  Eric Blake  <ebb9@byu.net>
27156
27157         unistd: sort replacement declarations
27158         * lib/unistd.in.h: Sort declarations.
27159
27160         open, openat: minor optimization
27161         * lib/open.c (open): If open succeeded, len is non-zero.
27162         * lib/openat.c (rpl_openat): Likewise.
27163
27164         link-follow: ensure correct result
27165         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27166         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27167         distinguish between possible failures.
27168
27169 2009-09-21  Eric Blake  <ebb9@byu.net>
27170
27171         fts: avoid compiler warning
27172         * lib/fts.c (dirent_inode_sort_may_be_useful)
27173         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27174
27175 2009-09-19  Bruno Haible  <bruno@clisp.org>
27176
27177         * lib/progreloc.c (canonicalize_file_name): New declaration.
27178
27179 2009-09-19  Eric Blake  <ebb9@byu.net>
27180
27181         link: fix quoting
27182         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27183
27184         openat: fix openat bugs on Solaris 9
27185         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27186         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27187         * modules/openat (Depends-on): Add open.
27188         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27189         * modules/fcntl-h (Makefile.am): Substitute it.
27190         * lib/fcntl.in.h (openat): Declare replacement.
27191         * doc/posix-functions/openat.texi (openat): Document this.
27192
27193         openat: move fstatat and unlinkat into correct files
27194         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27195         compiled.
27196         * lib/openat.c (fstatat, unlinkat): Move...
27197         * lib/fstatat.c (fstatat): ...into correct files.
27198         * lib/unlinkat.c (unlinkat): Likewise.
27199
27200         openat: fix unlinkat bugs on Solaris 9
27201         * lib/unlinkat.c (unlinkat): New file.
27202         * modules/openat (Depends-on): Add unlink.
27203         (Files): Distribute it.
27204         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27205         trailing slash behavior is broken.
27206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27207         * modules/unistd (Makefile.am): Substitute it.
27208         * lib/unistd.in.h (unlinkat): Declare replacement.
27209         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27210
27211         openat: fix fstatat bugs on Solaris 9
27212         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27213         stat.
27214         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27215
27216         test-unlinkat: enhance test, to expose Solaris 9 bug
27217         * tests/test-unlink.c (main): Factor guts...
27218         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27219         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27220         * tests/test-rmdir.c (main): Adjust caller.
27221         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27222         (unlinker): New helper function.
27223         (rmdirat): Enhance check.
27224         * modules/rmdir-tests (Depends-on): Add stdbool.
27225         * modules/unlink-tests (Depends-on): Likewise.
27226         (Files): Add test-unlink.h.
27227         * modules/openat-tests (Files): Likewise.
27228         (Depends-on): Add unlinkdir.
27229
27230         test-fstatat: new test, to expose Solaris 9 bugs
27231         * tests/test-stat.c (main): Factor guts...
27232         * tests/test-stat.h (test_stat_func): ...into new file.
27233         * tests/test-lstat.c (main): Factor guts...
27234         * tests/test-lstat.h (test_lstat_func): ...into new file.
27235         * tests/test-fstatat.c: New file.
27236         * modules/stat-tests (Files): Add test-stat.h.
27237         * modules/lstat-tests (Files): Add test-lstat.h.
27238         (Depends-on): Add stdbool.
27239         * modules/openat-tests (Depends-on): Add pathmax.
27240         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27241         (Makefile.am): Run new test.
27242
27243         remove: new module, for mingw and Solaris 9 bugs
27244         * modules/remove: New file.
27245         * lib/remove.c: Likewise.
27246         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27248         * modules/stdio (Makefile.am): Use them.
27249         * lib/stdio.in.h (remove): Declare replacement.
27250         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27251         * doc/posix-functions/remove.texi (remove): Likewise.
27252         * modules/remove-tests: New test.
27253         * tests/test-remove.c: Likewise.
27254
27255         unlink: new module, for Solaris 9 bug
27256         * modules/unlink: New file.
27257         * lib/unlink.c: Likewise.
27258         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27260         * modules/unistd (Makefile.am): Use them.
27261         * lib/unistd.in.h (stat): Declare replacement.
27262         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27263         * doc/posix-functions/unlink.texi (unlink): Likewise.
27264         * modules/unlink-tests: New test.
27265         * tests/test-unlink.c: Likewise.
27266
27267         lstat: fix Solaris 9 bug
27268         * lib/lstat.c (lstat): Also check for trailing slash on
27269         non-symlink, non-directories.  Use stat module to simplify logic.
27270         * doc/posix-functions/lstat.texi (lstat): Document it.
27271         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27272         (configure.ac): Check for symlink.
27273         * tests/test-lstat.c (main): Add more tests.
27274
27275         stat: add as dependency to other modules
27276         * modules/chown (Depends-on): Add stat.
27277         * modules/euidaccess (Depends-on): Likewise.
27278         * modules/fchdir (Depends-on): Likewise.
27279         * modules/isdir (Depends-on): Likewise.
27280         * modules/link (Depends-on): Likewise.
27281         * modules/lstat (Depends-on): Likewise.
27282         * modules/mkdir-p (Depends-on): Likewise.
27283         * modules/modechange (Depends-on): Likewise.
27284         * modules/open (Depends-on): Likewise.
27285         * modules/readlink (Depends-on): Likewise.
27286         * modules/same (Depends-on): Likewise.
27287
27288         stat: fix Solaris 9 bug
27289         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27290         slash.
27291         * lib/stat.c (rpl_stat): Work around it.
27292         * doc/posix-functions/stat.texi (stat): Update documentation.
27293
27294         stat: new module, for mingw bug
27295         * modules/stat: New file.
27296         * lib/stat.c: Likewise.
27297         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27299         * modules/sys_stat (Makefile.am): Use them.
27300         * lib/sys_stat.in.h (stat): Declare replacement.
27301         * lib/openat.c (fstatat): Deal with lstat and stat being function
27302         macros.
27303         * modules/openat (Depends-on): Add inline.
27304         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27305         * doc/posix-functions/stat.texi (stat): Likewise.
27306         * modules/stat-tests: New test.
27307         * tests/test-stat.c: Likewise.
27308
27309 2009-09-19  Jim Meyering  <meyering@redhat.com>
27310
27311         syntax-check: detect unnecessary inclusion of canonicalize.h
27312         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27313
27314 2009-09-19  Eric Blake  <ebb9@byu.net>
27315
27316         canonicalize-lgpl: adjust clients to use correct header
27317         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27318         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27319         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27320         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27321         * lib/progreloc.c (includes): Likewise.
27322
27323 2009-09-19  Jim Meyering  <meyering@redhat.com>
27324
27325         test-posixtm.c: correct a comment
27326         * tests/test-posixtm.c: Correct first-line comment.
27327         Spotted by Eric Blake.
27328
27329 2009-09-16  Jim Meyering  <meyering@redhat.com>
27330
27331         posixtm-tests: make T const-correct; add a test case
27332         * tests/test-posixtm.c (T): Declare const.
27333         Add a test for -(2^31+1).
27334         Remove useless can-succeed-only-in-2002 test.
27335
27336         posixtm-tests: adjust the sole failing test
27337         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27338         expected output matches what mktime now produces.  Cross-checked via
27339         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27340
27341         posixtm: move #ifdef'd tests into a new module
27342         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27343         * tests/test-posixtm.c: ... this new file.
27344         * modules/posixtm-tests: New module.
27345
27346 2009-09-19  Eric Blake  <ebb9@byu.net>
27347
27348         openat: simplify use of at-func.c
27349         * lib/at-func.c (includes): Include prerequisites here, to
27350         simplify requirements on client files.
27351         * lib/openat-priv.h: Add double-inclusion guard.
27352         * lib/faccessat.c (includes): Simplify.
27353         * lib/fchmodat.c (includes): Likewise.
27354         * lib/fchownat.c (includes): Likewise.
27355         * lib/mkdirat.c (includes): Likewise.
27356         * lib/mkfifoat.c (includes): Likewise.
27357         * lib/symlinkat.c (includes): Likewise.
27358
27359         openat: allow return of fd 0
27360         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27361         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27362         unistd-safer.
27363         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27364         <fcntl.h>; this module does not leak fds.
27365         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27366         must be allowed to return 0, leaving openat_safer to add the
27367         safety.
27368         (openat_permissive): Avoid writing to just-opened fd 2 if
27369         restoring the current directory fails.
27370         * lib/openat-die.c (openat_restore_fail): Add comment.
27371         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27372         (save_cwd): Guarantee safe fd, but without use of open_safer.
27373         * tests/test-openat.c: New test.
27374         * modules/openat-tests (Files, Makefile.am): Distribute and build
27375         new file.
27376
27377         relocatable-prog-wrapper: fix build
27378         * modules/relocatable-prog-wrapper (Files): Update name of
27379         canonicalize m4 file, broken on 2009-09-17.
27380         Reported by emad hajjar <aleppos@hotmail.com>.
27381
27382 2009-09-19  Bruno Haible  <bruno@clisp.org>
27383
27384         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27385         * lib/safe-alloc.c: Likewise.
27386         Reported by Ian Beckwith <ianb@erislabs.net>.
27387
27388 2009-09-18  Bruno Haible  <bruno@clisp.org>
27389
27390         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27391         Reported by <erobles@sensacd.com.mx>.
27392
27393 2009-09-17  Eric Blake  <ebb9@byu.net>
27394
27395         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27396         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27397         slashes when checking if last component is missing.
27398         * tests/test-canonicalize.c (main): Test this.
27399
27400         canonicalize, canonicalize-lgpl: honor // if distinct from /
27401         * modules/canonicalize (Files): Add double-slash-root.m4.
27402         * modules/canonicalize-lgpl (Files): Likewise.
27403         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27404         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27405         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27406         fallback definition.
27407         (canonicalize_filename_mode): Use it to protect //.
27408         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27409         (__realpath): Likewise.
27410         * tests/test-canonicalize.c (main): Test this.
27411         * tests/test-canonicalize-lgpl.c (main): Likewise.
27412         * modules/canonicalize-tests (Depends-on): Add same-inode.
27413         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27414
27415         canonicalize-lgpl: fix glibc bug with trailing slash
27416         * m4/canonicalize-lgpl.m4: Move contents...
27417         * m4/canonicalize.m4: ...here.
27418         (gl_CANONICALIZE_LGPL): Factor realpath check...
27419         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27420         glibc 2.3.5 bug, fixed 2005-04-27.
27421         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27422         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27423         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27424         * modules/canonicalize-lgpl (Files): Manage file rename.
27425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27426         * modules/stdlib (Makefile.am): Substitute witness.
27427         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27428         is needed.
27429         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27430         replacement is required.
27431         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27432         * doc/glibc-functions/canonicalize_file_name.texi
27433         (canonicalize_file_name): Document this.
27434         * doc/posix-functions/realpath.texi (realpath): Likewise.
27435
27436         canonicalize-lgpl: reject non-directory with trailing slash
27437         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27438         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27439         catches failures in glibc 2.3.5.
27440         * tests/test-canonicalize.c (main): Likewise.
27441
27442         canonicalize-lgpl: use native realpath if it works
27443         * lib/canonicalize-lgpl.c (realpath): Guard with
27444         FUNC_REALPATH_WORKS.
27445         * lib/stdlib.in.h (realpath): Make declaration optional based on
27446         HAVE_REALPATH.
27447         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27448         native realpath works.
27449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27450         * modules/stdlib (Makefile.am): Substitute witness.
27451
27452         canonicalize, canonicalize-lgpl: use <stdlib.h>
27453         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27454         (Include): Mention <stdlib.h>.
27455         (configure.ac): Mention functions we provide.
27456         * modules/canonicalize (configure.ac): Likewise.
27457         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27458         realpath if canonicalize_file_name is missing.
27459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27460         * modules/stdlib (Makefile.am): Substitute witnesses.
27461         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27462         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27463         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27464         * NEWS: Document this.
27465         * doc/glibc-functions/canonicalize_file_name.texi
27466         (canonicalize_file_name): Likewise.
27467         * doc/posix-functions/realpath.texi (realpath): Likewise.
27468         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27469
27470         test-canonicalize: consolidate into single C program
27471         * tests/test-canonicalize.sh: Delete; move setup into...
27472         * tests/test-canonicalize.c (main): ...the program, making it
27473         easier to run in debugger.  Add some tests.
27474         * modules/canonicalize-tests (Files): Remove unused file.
27475         (Depends-on): Add progname.
27476         (configure.ac, Makefile.am): Simplify.
27477
27478         test-canonicalize-lgpl: consolidate into single C program
27479         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27480         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27481         easier to run in debugger.  Add some tests.
27482         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27483         (configure.ac, Makefile.am): Simplify.
27484
27485         canonicalize: avoid resolvepath
27486         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27487         unnecessary checks.
27488         * lib/canonicalize.c (includes): Simplify.
27489         (canonicalize_file_name): Drop resolvepath implementation.
27490         * modules/canonicalize (Depends-on): Drop filenamecat.
27491
27492         canonicalize: don't lose errno
27493         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27494         over calls to free.
27495
27496         canonicalize: simplify errno handling
27497         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27498         assignment.
27499
27500         canonicalize, canonicalize-lgpl: update module dependencies
27501         * modules/canonicalize (Depends-on): Add extensions, lstat,
27502         pathmax, stdlib.
27503         (Files): Drop pathmax.h.
27504         (configure.ac): Adjust macro name.
27505         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27506         lstat, stdlib, sys_stat.
27507         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27508         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27509         extensions.
27510         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27511         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27512         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27513         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27514         declaration, if available.
27515         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27516         we can rely on the readlink module.
27517         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27518         (includes): Use <unistd.h> unconditionally.
27519
27520 2009-09-17  Eric Blake  <ebb9@byu.net>
27521
27522         maint: make Include sections of modules consistent
27523         * modules/alloca: Use only header name; no need to list #include.
27524         * modules/alloca-opt: Likewise.
27525         * modules/arpa_inet: Likewise.
27526         * modules/canon-host: Likewise.
27527         * modules/configmake: Likewise.
27528         * modules/dirent: Likewise.
27529         * modules/eealloc: Likewise.
27530         * modules/environ: Likewise.
27531         * modules/fchdir: Likewise.
27532         * modules/fcntl: Likewise.
27533         * modules/fcntl-h: Likewise.
27534         * modules/gethrxtime: Likewise.
27535         * modules/gettime: Likewise.
27536         * modules/ignore-value: Likewise.
27537         * modules/inet_ntop: Likewise.
27538         * modules/inet_pton: Likewise.
27539         * modules/inttypes: Likewise.
27540         * modules/isnand-nolibm: Likewise.
27541         * modules/isnanf-nolibm: Likewise.
27542         * modules/mbchar: Likewise.
27543         * modules/mbfile: Likewise.
27544         * modules/mbiter: Likewise.
27545         * modules/mbuiter: Likewise.
27546         * modules/netdb: Likewise.
27547         * modules/netinet_in: Likewise.
27548         * modules/nproc: Likewise.
27549         * modules/pagealign_alloc: Likewise.
27550         * modules/poll: Likewise.
27551         * modules/printf-frexp: Likewise.
27552         * modules/pthread: Likewise.
27553         * modules/putenv: Likewise.
27554         * modules/random_r: Likewise.
27555         * modules/relocatable-prog: Likewise.
27556         * modules/search: Likewise.
27557         * modules/select: Likewise.
27558         * modules/selinux-h: Likewise.
27559         * modules/settime: Likewise.
27560         * modules/signal: Likewise.
27561         * modules/size_max: Likewise.
27562         * modules/socklen: Likewise.
27563         * modules/ssize_t: Likewise.
27564         * modules/stdarg: Likewise.
27565         * modules/stdbool: Likewise.
27566         * modules/stddef: Likewise.
27567         * modules/stdint: Likewise.
27568         * modules/stdio: Likewise.
27569         * modules/stdlib: Likewise.
27570         * modules/string: Likewise.
27571         * modules/strings: Likewise.
27572         * modules/sys_file: Likewise.
27573         * modules/sys_ioctl: Likewise.
27574         * modules/sys_select: Likewise.
27575         * modules/sys_socket: Likewise.
27576         * modules/sys_stat: Likewise.
27577         * modules/sys_time: Likewise.
27578         * modules/sys_times: Likewise.
27579         * modules/sys_utsname: Likewise.
27580         * modules/sys_wait: Likewise.
27581         * modules/sysexits: Likewise.
27582         * modules/time: Likewise.
27583         * modules/times: Likewise.
27584         * modules/tmpfile: Likewise.
27585         * modules/trim: Likewise.
27586         * modules/unistd: Likewise.
27587         * modules/wchar: Likewise.
27588         * modules/wctype: Likewise.
27589
27590 2009-09-17  Bruno Haible  <bruno@clisp.org>
27591
27592         Make getdate.y compile on QNX and NetBSD 5 / i386.
27593         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27594         TIME_T_FITS_IN_LONG_INT.
27595         * lib/getdate.y (long_time_t): New type.
27596         (relative_time): Change type of 'seconds' field to long_time_t.
27597         (get_date): Update types of local variables. Check against overflow
27598         during conversion from long_time_t to time_t.
27599         Reported by Matt Kraai <kraai@ftbfs.org>
27600         and Hasso Tepper <hasso@netbsd.org>.
27601
27602 2009-09-17  Bruno Haible  <bruno@clisp.org>
27603
27604         * modules/COPYING: Update copyright years.
27605         * modules/README: Likeiwse.
27606         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27607         Reported by Ian Beckwith <ianb@erislabs.net>.
27608
27609 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27610
27611         * users.txt: Update references for gnuit package.
27612
27613 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27614
27615         * m4/getdelim.m4: Fix typo in copyright line.
27616
27617 2009-09-17  Bruno Haible  <bruno@clisp.org>
27618
27619         * lib/atoll.c: Use the standard header with GPL copyright.
27620         * lib/argz.in.h: Likewise.
27621         * lib/glob.c: Likewise.
27622         * lib/glob-libc.h: Likewise.
27623         * lib/random_r.c: Likewise.
27624         * lib/siglist.h: Likewise.
27625         * lib/strsignal.c: Likewise.
27626         Reported by Ian Beckwith <ianb@erislabs.net>.
27627
27628 2009-09-17  Eric Blake  <ebb9@byu.net>
27629
27630         rmdir: ensure correct dependency order
27631         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27632
27633 2009-09-17  Bruno Haible  <bruno@clisp.org>
27634
27635         Disable assertion that fails on NetBSD 5 / i386.
27636         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27637         Reported by Sam Steingold <sds@gnu.org>
27638         and Hasso Tepper <hasso@netbsd.org>.
27639
27640 2009-09-16  Eric Blake  <ebb9@byu.net>
27641
27642         unlinkdir: port to mingw
27643         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27644         on which no one can unlink a directory.
27645
27646         stdlib: sort witness names
27647         * modules/stdlib (Makefile.am): Sort replacements.
27648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27649         * lib/stdlib.in.h: Likewise.
27650
27651         parse-duration-tests: avoid link failure
27652         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27653         LIBINTL.
27654         Reported by Tom G. Christensen.
27655
27656         openat-tests: ensure unlinkat behaves like rmdir
27657         * tests/test-rmdir.c (main): Factor guts...
27658         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27659         * modules/rmdir-tests (Files): Ship new file.
27660         * modules/openat-tests: New test.
27661         * tests/test-unlinkat.c: Likewise.
27662
27663         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27664         * modules/rmdir-errno (Status, Notice): Now obsolete.
27665
27666         rmdir: work around cygwin 1.5.x and mingw bugs
27667         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27668         * lib/rmdir.c (rmdir): Work around it.
27669         * modules/rmdir (Status, Notice): No longer obsolete.
27670         (Files): Add dos.m4.
27671         (Depends-on): Add unistd.
27672         (configure.ac): Set witnesses.
27673         (License): Relax to LGPLv2+.
27674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27675         * modules/unistd (Makefile.am): Substitute witnesses.
27676         * lib/unistd.in.h (rmdir): Declare replacement.
27677         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27678         * modules/rmdir-tests: New tests.
27679         * tests/test-rmdir.c: Likewise.
27680
27681 2009-09-15  Eric Blake  <ebb9@byu.net>
27682
27683         fchdir: improve use of replacement functions
27684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27685         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27686         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27687         REPLACE_CLOSEDIR.
27688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27689         * modules/sys_stat (Makefile.am): Substitute correct witness.
27690         * modules/dirent (Makefile.am): Likewise.
27691         * modules/unistd (Makefile.am): Likewise.
27692         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27693         * lib/unistd.in.h (dup): Likewise.
27694         * lib/sys_stat.in.h (fstat): Likewise.
27695
27696         maint: ignore gnulib-tool temp files
27697         * .gitignore: Ignore files created during gnulib-tool --test.
27698
27699 2009-09-13  Jim Meyering  <meyering@redhat.com>
27700
27701         posixtm: don't reject a time that specify "60" as the number of seconds
27702         * lib/posixtm.c (posixtime): The code to reject invalid dates
27703         would also reject a time specified with the .60 suffix.
27704         But POSIX allows that, in order to accommodate leap seconds.
27705         So don't reject it.
27706         (main): Adjust tests accordingly.
27707         * modules/posixtm (Depends-on): Add stpcpy.
27708
27709 2009-09-11  Jim Meyering  <meyering@redhat.com>
27710
27711         announce-gen: include [$release_type] in emitted Subject:
27712         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27713         e.g., [stable] in the emitted Subject: line.
27714
27715 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27716
27717         Remove obsolete macros from several modules.
27718         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27719         obsolete Autoconf macros with their modern counterparts.
27720         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27721         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27723         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27724         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27725         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27727         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27728         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27729         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27730         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27731         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27732         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27733         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27734         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27735         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27736         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27737         * m4/time_r.m4 (gl_TIME_R): Likewise.
27738         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27739         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27740         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27741
27742         Fix copyright header in build-aux scripts.
27743         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27744         recommendation.
27745         * build-aux/ncftpput-ftp: Likewise.
27746         * build-aux/update-copyright: Likewise.
27747
27748 2009-09-09  Eric Blake  <ebb9@byu.net>
27749
27750         test-link: allow Linux choice of errno
27751         * tests/test-link.c (main): Relax test for alternate error.
27752
27753         strndup: fix improper m4 caching
27754         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27755         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27756         (gl_PREREQ_STRNDUP): Delete.
27757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27758         * modules/string (Makefile.am): Substitute it.
27759         * lib/string.in.h (strndup): Modernize prototype.
27760
27761         getcwd: port to mingw
27762         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27763         different from the POSIX assumptions made throughout the getcwd
27764         module; fortunately, the mingw getcwd does not need replacement.
27765         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27766         * modules/getcwd-tests: New test.
27767         * tests/test-getcwd.c: Likewise.
27768
27769         link: fix platform bugs
27770         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27771         * lib/link.c (link): Work around them.  Fix related mingw bug.
27772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27773         * modules/unistd (Makefile.am): Substitute it.
27774         * lib/unistd.in.h (link): Declare replacement.
27775         * doc/posix-functions/link.texi (link): Document this.
27776         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27777
27778         test-link: consolidate into single C program, test more cases
27779         * tests/test-link.sh: Delete.
27780         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27781         at least Cygwin and Solaris.
27782         * modules/link-tests (Files): Remove unused file.
27783         (Depends-on): Add errno, sys_stat.
27784         (Makefile.am): Simplify.
27785
27786 2009-09-08  Bruno Haible  <bruno@clisp.org>
27787
27788         Work around towlower, towupper bug on mingw.
27789         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27790         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27791         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27792         * doc/posix-functions/towupper.texi: Likewise.
27793         Reported by Eric Blake.
27794
27795 2009-09-08  Jim Meyering  <meyering@redhat.com>
27796
27797         build: don't try to run autoheader if we don't use it
27798         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27799         is not used in configure.ac.
27800
27801 2009-09-08  Eric Blake  <ebb9@byu.net>
27802
27803         euidaccess: fix compilation error
27804         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27805
27806         rawmemchr: relax license
27807         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27808         okay.
27809         Reported by Jim Meyering.
27810
27811         mkfifoat: new module
27812         * modules/mkfifoat: New file.
27813         * lib/mkfifoat.c: Likewise.
27814         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27815         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27816         * modules/sys_stat (Makefile.am): Use them.
27817         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27818         * MODULES.html.sh (File system functions): Mention module.
27819         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27820         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27821         * modules/mkfifoat-tests: New test.
27822         * tests/test-mkfifoat.c: Likewise.
27823
27824         strchrnul: relax license
27825         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27826         okay.
27827         Reported by Jim Meyering.
27828
27829 2009-09-08  Eric Blake  <ebb9@byu.net>
27830
27831         fstatat: fix compilation on Solaris
27832         * lib/fstatat.c (includes): Add fcntl.h.
27833         Reported by Pádraig Brady.
27834
27835 2009-09-07  Eric Blake  <ebb9@byu.net>
27836
27837         rename: modernize replacement
27838         * modules/rename (Depends-on): Add stdio.
27839         (configure.ac): Declare witness.
27840         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27841         stdio take care of replacement.
27842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27843         * modules/stdio (Makefile.am): Substitute them.
27844         * lib/stdio.in.h (rename): Declare replacement.
27845         * lib/rename.c (includes): Allow cross-compilation to non-windows
27846         machines.
27847         * doc/posix-functions/rename.texi (rename): Improve
27848         documentation.
27849
27850         stdio: sort witness names
27851         * modules/stdio (Makefile.am): Sort replacements.
27852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27853         * lib/stdio.in.h: Likewise.
27854
27855         getcwd: minor cleanups
27856         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27857         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27858
27859         openat: provide more convenience names
27860         * modules/faccessat (configure.ac): Add C witness.
27861         * lib/unistd.in.h (readlinkat): Fix typo.
27862         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27863         convenience wrappers.
27864         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27865         wrappers in syntax checks.
27866
27867 2009-09-06  Eric Blake  <ebb9@byu.net>
27868
27869         doc: fix comments in recent patches
27870         * lib/faccessat.c: Mention correct function.
27871         * lib/fchmodat.c: Likewise.
27872         * lib/fchownat.c: Likewise.
27873         * lib/symlinkat.c: Likewise.
27874         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27875         constants.
27876
27877         faccessat, symlinkat: continue cleanup of previous patch
27878         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27879         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27880         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27882         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27883         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27884         set.
27885
27886 2009-09-06  Bruno Haible  <bruno@clisp.org>
27887
27888         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27889         (fstatat): Declare if GNULIB_FSTATAT is set.
27890         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27891         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27892         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27893         * modules/fcntl-h (Files): Remove m4/openat.m4.
27894         * modules/sys_stat (Files): Remove m4/openat.m4.
27895         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27896         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27897         * modules/unistd (Files): Remove m4/openat.m4.
27898         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27899         GNULIB_OPENAT.
27900         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27901         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27903         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27904         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27905         gl_OPENAT_DEFAULTS.
27906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27907         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27908         Don't require gl_OPENAT_DEFAULTS.
27909         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27910         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27911         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27912         (gl_OPENAT_DEFAULTS): Remove macro.
27913
27914 2009-09-06  Bruno Haible  <bruno@clisp.org>
27915
27916         * modules/openat (configure.ac): Remove unneeded witness.
27917
27918 2009-09-06  Bruno Haible  <bruno@clisp.org>
27919
27920         Set errno to ENOSYS when a function is entirely unsupported.
27921         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27922         EOPNOTSUPP.
27923         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27924         * modules/chown (Depends-on): Remove errno.
27925
27926 2009-09-06  Bruno Haible  <bruno@clisp.org>
27927
27928         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27929
27930 2009-09-06  Bruno Haible  <bruno@clisp.org>
27931
27932         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27933
27934 2009-09-06  Ben Pfaff  <blp@gnu.org>
27935             Bruno Haible  <bruno@clisp.org>
27936
27937         Work around a glibc bug in strtok_r.
27938         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27939         Undefine if UNDEFINE_STRTOK_R is set.
27940         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27942         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27943         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27944         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27945         UNDEFINE_STRTOK_R.
27946         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27947
27948 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27949
27950         exclude: minor fix
27951         * lib/exclude.c: Include wctype.h
27952
27953 2009-09-06  Akim Demaille  <demaille@gostai.com>
27954
27955         bootstrap: improve error message
27956         * build-aux/bootstrap (find_tool): Upon failure, report the list
27957         of candidates.
27958         Honor the initial value of the envvar.
27959
27960 2009-09-05  Eric Blake  <ebb9@byu.net>
27961
27962         symlinkat: new module
27963         * modules/symlinkat: New file.
27964         * lib/symlinkat.c: Likewise.
27965         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27967         * modules/unistd (Makefile.am): Use them.
27968         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27969         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27970         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27971         * MODULES.html.sh (File system functions): Mention module.
27972         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27973         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27974         * modules/symlinkat-tests: New test.
27975         * tests/test-symlinkat.c: Likewise.
27976
27977         test-openat-safer: add more checks
27978         * tests/test-openat-safer.c (main): Check more code paths.
27979
27980 2009-09-05  Jim Meyering  <meyering@redhat.com>
27981
27982         syntax-check: detect unnecessary inclusion of openat.h
27983         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27984
27985 2009-09-05  Bruno Haible  <bruno@clisp.org>
27986
27987         Support towlower, towupper.
27988         * doc/posix-functions/towlower.texi: Mention module wctype.
27989         * doc/posix-functions/towupper.texi: Likewise.
27990         * lib/wctype.in.h (towlower, towupper): New functions.
27991         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27992         (ASSERT): New macro.
27993         (e): New variable.
27994         (main): Test also towlower, towupper. Test WEOF argument.
27995         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27996
27997 2009-09-05  Bruno Haible  <bruno@clisp.org>
27998
27999         Fix conversion behaviour when the input is invalid.
28000         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28001         mark occurring in first pass of indirect conversion.
28002         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28003         input.
28004         Found by clang's static analyzer.
28005
28006 2009-09-05  Bruno Haible  <bruno@clisp.org>
28007
28008         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28009         where direct conversion is possible.
28010
28011 2009-09-04  Eric Blake  <ebb9@byu.net>
28012
28013         openat: fail with ENOENT on empty name
28014         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28015         buffer.
28016
28017         link-follow: fix logic bug in prior patch
28018         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28019         reversed sense of yes and no in prior patch.  Avoid confusing
28020         compilation failure with desired semantics.
28021
28022         link-follow: accomodate mingw and cross-compilation
28023         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28024         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28025         cross-compilation results to -1, to make linkat easier to
28026         implement when cross-compiling.  Trivially support mingw.
28027         * modules/link-follow (configure.ac): Call new name.
28028         * NEWS: Mention this.
28029
28030 2009-09-03  Eric Blake  <ebb9@byu.net>
28031
28032         faccessat: compile replacement
28033         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28034         needed.
28035
28036         fts: fix compilation error
28037         * lib/fts.c (includes): Re-add "openat.h", for
28038         openat_needs_fchdir.
28039
28040         faccessat: new module
28041         * modules/faccessat: New file.
28042         * lib/faccessat.c: Likewise.
28043         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28045         * modules/unistd (Makefile.am): Use it.
28046         * lib/unistd.in.h (faccessat): Declare it.
28047         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28048         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28049         * MODULES.html.sh (File system functions): Mention it.
28050         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28051         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28052
28053         euidaccess: prefer POSIX over non-standard implementation
28054         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28055         * lib/euidaccess.c (euidaccess): Use it if available.
28056
28057         openat: make template easier to use
28058         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28059         AT_FUNC_F2 to be undefined.
28060         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28061         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28062         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28063         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28064         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28065         Likewise.
28066         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28067         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28068         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28069         Likewise.
28070
28071         openat: declare in POSIX headers
28072         * NEWS: Mention this.
28073         * modules/openat (configure.ac): Declare witnesses.
28074         (Depends-on): Add fcntl-h, sys_stat, unistd.
28075         (Include): Mention correct headers.
28076         * modules/fcntl-h (Depends-on): Add link-warning.
28077         (Files): Add openat.m4.
28078         (Makefile.am): Substitute witnesses.
28079         * modules/sys_stat (Files, Makefile.am): Likewise.
28080         * modules/unistd (Files, Makefile.am): Likewise.
28081         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28082         (gl_OPENAT_DEFAULTS): New macro.
28083         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28086         (SYS_STAT_H): Remove unused variable.
28087         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28088         * lib/fcntl--.h (includes): Remove unneeded header.
28089         * lib/openat-safer.c (includes): Likewise.
28090         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28091         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28092         appropriate headers.
28093         (__OPENAT_PREFIX): Delete.
28094         * lib/fcntl.in.h (openat): Provide declaration.
28095         (AT_FDCWD): Fix Solaris bug.
28096         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28097         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28098         * lib/fchmodat.c (includes):  Adjust to find declaration.
28099         * lib/fchownat.c (includes): Likewise.
28100         * lib/mkdirat.c (includes): Likewise.
28101         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28102         still visible.
28103
28104 2009-09-02  Eric Blake  <ebb9@byu.net>
28105
28106         errno: use consistently
28107         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28108         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28109         * lib/canonicalize.c (ELOOP): Likewise.
28110         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28111         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28112         * lib/lchown.c (EOPNOTSUPP): Likewise.
28113         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28114         * lib/savewd.c (ESTALE): Likewise.
28115         * lib/settime.c (ENOSYS): Likewise.
28116         * lib/utimens.c (ENOSYS): Likewise.
28117         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28118         * lib/chdir-safer.c (ELOOP): Likewise.
28119         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28120         * modules/c-stack (Depends-on): Add errno.
28121         * modules/canonicalize (Depends-on): Likewise.
28122         * modules/chdir-safer (Depends-on): Likewise.
28123         * modules/fdopendir (Depends-on): Likewise.
28124         * modules/inet_ntop (Depends-on): Likewise.
28125         * modules/inet_pton (Depends-on): Likewise.
28126         * modules/lchown (Depends-on): Likewise.
28127         * modules/openat (Depends-on): Likewise.
28128         * modules/savewd (Depends-on): Likewise.
28129         * modules/settime (Depends-on): Likewise.
28130         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28131
28132         fts: avoid leaking fds
28133         * modules/fts (Depends-on): Add cloexec.
28134         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28135         flag.
28136
28137         fts: make directory fds more robust
28138         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28139         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28140
28141         backupfile, chdir-long, fts, savedir: make safer
28142         * lib/backupfile.c (includes): Use "dirent--.h", since
28143         numbered_backup can write to stderr during readdir.
28144         * lib/savedir.c (includes): Likewise.
28145         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28146         emulation can write to stderr on failure.
28147         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28148         * lib/getcwd.c: Document why opendir_safer is unused.
28149         * lib/glob.c: Likewise.
28150         * lib/scandir.c: Likewise.
28151         * lib/openat-proc.c: Likewise, for open_safer.
28152         * modules/backupfile (Depends-on): Add dirent-safer.
28153         * modules/savedir (Depends-on): Likewise.
28154         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28155         * modules/chdir-long (Depends-on): Add openat-safer.
28156
28157         openat-safer: new module
28158         * modules/openat-safer: New file.
28159         * lib/openat-safer.c: Likewise.
28160         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28161         * lib/fcntl-safer.h (openat_safer): Declare.
28162         * lib/fcntl--.h (openat): Override.
28163         * MODULES.html.sh (File descriptor based I/O): Mention it.
28164         * lib/openat.h: Add double-inclusion guards.
28165         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28166         "fcntl--.h", so we can implement openat.
28167         * modules/openat-safer-tests: New test.
28168         * tests/test-openat-safer.c: New file.
28169
28170         dirent-safer: new module
28171         * modules/dirent-safer: New file.
28172         * lib/dirent--.h: Likewise.
28173         * lib/dirent-safer.h: Likewise.
28174         * lib/opendir-safer.c: Likewise.
28175         * m4/dirent-safer.m4: Likewise.
28176         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28177         * modules/dirent-safer-tests: New test.
28178         * tests/test-dirent-safer.c: New file.
28179         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28180
28181         fdopendir: optimize on mingw
28182         * lib/unistd.in.h (_gl_directory_name): New prototype.
28183         * lib/fchdir.c (_gl_directory_name): Implement it.
28184         (fchdir): Use it to simplify implementation.
28185         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28186         fchdir, when available, to avoid calling [f]chdir().
28187
28188         fdopendir: split into its own module
28189         * lib/openat.c (fdopendir): Move...
28190         * lib/fdopendir.c: ...into new file.
28191         * modules/fdopendir: New module.
28192         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28193         * modules/openat (Depends-on): Add fdopendir.
28194         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28195         fdopendir here.
28196         * modules/savedir (Depends-on): Only need fdopendir, not full
28197         openat.
28198         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28199         * lib/openat.h (fdopendir): Drop prototype.
28200         * lib/dirent.in.h (fdopendir): Provide prototype.
28201         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28202         * modules/dirent (Makefile.am): Substitute them.
28203         * MODULES.html.sh (File system functions): Mention it.
28204         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28205         * modules/fdopendir-tests: New file.
28206         * tests/test-fdopendir.c: Likewise.
28207
28208         fchdir: use more consistent macro convention
28209         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28210         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28211         REPLACE_FCHDIR, rather than relying on config.h macros.
28212         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28213         inside a single make-time REPLACE_FCHDIR block, rather than using
28214         the config.h FCHDIR_REPLACEMENT.
28215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28216         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28217         Manage fstat replacement.
28218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28219         REPLACE_FCHDIR.
28220         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28221         (Makefile.am): Substitute REPLACE_FCHDIR.
28222         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28223         FCHDIR_REPLACEMENT.
28224         * lib/dup-safer.c (dup_safer): Likewise.
28225         * lib/dup2.c (rpl_dup2): Likewise.
28226         * lib/dup3.c (rpl_dup3): Likewise.
28227         * lib/open.c (rpl_open): Likewise.
28228
28229         fchdir: simplify error handling, and support dup3
28230         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28231         stdbool, malloc-posix, realloc-posix.
28232         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28233         (ensure_dirs_slot): Return false on allocation failure.
28234         (rpl_dup2): Delete.
28235         (_gl_register_dup): New function.
28236         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28237         (_gl_register_fd): Close fd on allocation failure.
28238         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28239         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28240         prototype.
28241         (rpl_dup2_fchdir): Delete prototype.
28242         * lib/open.c (open): Update caller.
28243         * lib/dup2.c (dup2): Track fchdir metadata.
28244         * lib/dup3.c (dup3): Likewise.
28245         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28247
28248 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28249
28250         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28251         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28252         don't pass arguments to AC_OUTPUT.
28253
28254 2009-09-02  Bruno Haible  <bruno@clisp.org>
28255
28256         * modules/mkdtemp (License): Relicense under LGPLv2+.
28257         Reported by Paolo Bonzini.
28258
28259 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28260
28261         Replace uses of obsolete autoconf macros in Jim's modules.
28262         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28263         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28264         can evoke a warning from autoconf when run with -Wobsolete
28265         enabled.  They were declared obsolete for good reasons (see
28266         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28267         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28268         should not continue using the deprecated macros.
28269         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28270         obsolete Autoconf macros with modern counterparts.
28271         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28272         * m4/dos.m4 (gl_AC_DOS): Likewise.
28273         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28274         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28275         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28276         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28277         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28278         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28279         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28280         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28281         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28282         Likewise.
28283         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28284         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28285         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28286         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28287         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28288         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28289
28290 2009-09-01  Eric Blake  <ebb9@byu.net>
28291
28292         fchdir: fix off-by-one bug in previous patch
28293         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28294         (_gl_unregister_fd): Delete useless if.
28295
28296 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28297
28298         maint.mk: sort the list of syntax-check rules
28299         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28300         easier to get a sense of progress when the rules are run sequentially
28301         and take a long time.
28302
28303 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28304
28305         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28306         * modules/netinet_in: Likewise.
28307         * modules/sys_file: Likewise.
28308         * modules/sys_ioctl: Likewise.
28309         * modules/sys_select: Likewise.
28310         * modules/sys_socket: Likewise.
28311         * modules/sys_stat: Likewise.
28312         * modules/sys_time: Likewise.
28313         * modules/sys_times: Likewise.
28314         * modules/sys_utsname: Likewise.
28315         * modules/sys_wait: Likewise.
28316
28317 2009-09-01  Jim Meyering  <meyering@redhat.com>
28318
28319         fts: help ensure that return values are not ignored
28320         * lib/fts_.h (__GNUC_PREREQ): Define.
28321         (__attribute_warn_unused_result__): Define.
28322         (fts_children, fts_close, fts_open, fts_read): Declare with
28323         __attribute_warn_unused_result__.
28324
28325         fts: fts_close now fails also when closing a dir file descriptor fails
28326         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28327         and propagate to caller, along with errno.
28328
28329         announce-gen: correct formatting in --help output
28330         * build-aux/announce-gen (usage): Move the one-line description in
28331         --help output "up", to where it belongs, just after Usage:.
28332
28333 2009-08-31  Eric Blake  <ebb9@byu.net>
28334
28335         fchdir: port to mingw
28336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28337         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28338         opened, then use a substitute.
28339         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28340         replacement.
28341         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28342         (_gl_register_fd): No need to check stat if open already filters
28343         all directories.
28344         (fchdir): Fix error condition to match POSIX.
28345         * modules/fchdir (Depends-on): Add sys_stat.
28346         * doc/posix-functions/open.texi (open): Document the limitation.
28347         * modules/fchdir-tests: New file.
28348         * tests/test-fchdir.c: Likewise.
28349
28350         canonicalize: allow cross-testing from cygwin to mingw
28351         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28352         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28353         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28354         Likewise.
28355         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28356         target does not support symlinks.
28357         * tests/test-canonicalize-lgpl.sh: Likewise.
28358
28359         chown: avoid compilation warning on mingw
28360         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28361         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28362         mingw.
28363         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28364         * modules/chown (Depends-on): Add errno.
28365
28366 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28367
28368         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28369         command.
28370
28371 2009-08-31  Jim Meyering  <meyering@redhat.com>
28372
28373         canonicalize: remove useless initialization
28374         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28375         initialization of local, "end".
28376
28377 2009-08-30  Bruno Haible  <bruno@clisp.org>
28378
28379         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28380         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28381         ENOSYS.
28382
28383 2009-08-30  Bruno Haible  <bruno@clisp.org>
28384
28385         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28386         /usr/xpg4/bin/tr when it exists.
28387         * tests/test-pipe-filter-gi1.sh: Likewise.
28388
28389 2009-08-30  Bruno Haible  <bruno@clisp.org>
28390
28391         Work around deficient /usr/bin/id program on Solaris.
28392         * tests/test-file-has-acl.sh (ID): New variable.
28393         * tests/test-set-mode-acl.sh (ID): Likewise.
28394         * tests/test-copy-acl.sh (ID): Likewise.
28395         * tests/test-copy-file.sh (ID): Likewise.
28396
28397 2009-08-30  Bruno Haible  <bruno@clisp.org>
28398
28399         New module 'xstriconveh'.
28400         * lib/xstriconveh.h: New file.
28401         * lib/xstriconveh.c: New file.
28402         * modules/xstriconveh: New file.
28403
28404 2009-08-30  Bruno Haible  <bruno@clisp.org>
28405
28406         Make it easier to use mem_cd_iconveh.
28407         * lib/striconveh.h (iconveh_t): New type.
28408         (iconveh_open, iconveh_close): New declarations.
28409         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28410         with a single 'const iconveh_t *' argument.
28411         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28412         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28413         with a single 'const iconveh_t *' argument.
28414         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28415         * tests/test-striconveh.c (main): Update.
28416         * NEWS: Mention the change.
28417
28418 2009-08-30  Bruno Haible  <bruno@clisp.org>
28419
28420         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28421         problem.
28422
28423 2009-08-30  Bruno Haible  <bruno@clisp.org>
28424
28425         Work around iconv_open problem on Solaris.
28426         * lib/iconv_open-solaris.gperf: New file.
28427         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28428         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28429         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28430         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28431         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28432         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28433
28434 2009-08-29  Jim Meyering  <meyering@redhat.com>
28435
28436         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28437         * top/maint.mk (cvs-check): Remove target; it was just an alias
28438         to the better-named vc-diff-check.
28439         (maintainer-distcheck): Remove rule.  It was used only from
28440         the (alpha/beta/major) target, and all of its commands but one
28441         were coreutils-specific.
28442         (vc-dist): Remove rule.
28443         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28444         Run vc-diff-check, not vc-dist.
28445         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28446
28447 2009-08-27  Bruno Haible  <bruno@clisp.org>
28448
28449         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28450         of 0.
28451
28452 2009-08-27  Bruno Haible  <bruno@clisp.org>
28453
28454         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28455         compilers.
28456         * doc/func.texi: Document the SunPRO C bug.
28457
28458 2009-08-27  Bruno Haible  <bruno@clisp.org>
28459
28460         Fix link error on Solaris.
28461         * tests/test-parse-duration.c (xstrdup): Remove function.
28462
28463 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28464
28465         ignore-value: handle pointer types, too
28466         * lib/ignore-value.h (__attribute__): Remove definition.
28467         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28468         of a more concise and more-often effective "(void) i" statement.
28469         (ignore_ptr): New function to suppress warnings from functions that
28470         return pointers, and to make it explicit that one function doesn't
28471         handle all cases.
28472
28473 2009-08-25  Bruno Haible  <bruno@clisp.org>
28474
28475         dup2: work around a Linux bug.
28476         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28477         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28478         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28479         Reported by Simon Josefsson.
28480
28481 2009-08-25  Jim Meyering  <meyering@redhat.com>
28482
28483         libguestfs uses gnulib
28484         * users.txt: Add libguestfs.
28485
28486 2009-08-24  Eric Blake  <ebb9@byu.net>
28487
28488         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28489         * lib/pipe2.c (includes): Add binary-io.h.
28490         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28491
28492 2009-08-24  Bruno Haible  <bruno@clisp.org>
28493
28494         Tolerate declared but missing accept4 syscall.
28495         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28496         available.
28497         * lib/sys_socket.in.h (accept4): If the function is already present,
28498         override it.
28499         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28500         * modules/accept4 (Makefile.am): Compile accept4.c always.
28501         Reported by Paolo Bonzini and Eric Blake.
28502
28503 2009-08-23  Bruno Haible  <bruno@clisp.org>
28504
28505         New module 'accept4'.
28506         * lib/sys_socket.in.h (accept4): New declaration.
28507         * lib/accept4.c: New file.
28508         * m4/accept4.m4: New file.
28509         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28510         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28511         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28512         HAVE_ACCEPT4.
28513         * modules/accept4: New file.
28514         * doc/glibc-functions/accept4.texi: Mention the new module.
28515
28516 2009-08-24  Jim Meyering  <meyering@redhat.com>
28517
28518         progname: also set global program_invocation_name, when possible
28519         Before this change, a libtool-enabled program that calls glibc's
28520         error function would report the program name as
28521         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28522         * modules/progname (configure.ac): Check for a declaration of
28523         program_invocation_name.
28524         * lib/progname.c:  Include <errno.h>.
28525         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28526         Set program_invocation_name.
28527
28528 2009-08-23  Bruno Haible  <bruno@clisp.org>
28529
28530         * lib/dup3.c: Include <string.h>.
28531
28532 2009-08-23  Bruno Haible  <bruno@clisp.org>
28533
28534         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28535         * lib/pipe2.c (pipe2): Likewise.
28536         Suggested by Eric Blake.
28537
28538 2009-08-23  Bruno Haible  <bruno@clisp.org>
28539
28540         Tolerate declared but missing dup3 syscall.
28541         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28542         * lib/unistd.in.h (dup3): If the function is already present,
28543         override it.
28544         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28545         * modules/dup3 (Makefile.am): Compile dup3.c always.
28546         Reported by Paolo Bonzini.
28547
28548 2009-08-23  Bruno Haible  <bruno@clisp.org>
28549
28550         Tolerate declared but missing pipe2 syscall.
28551         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28552         available.
28553         * lib/unistd.in.h (pipe2): If the function is already present,
28554         override it.
28555         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28556         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28557         Reported by Paolo Bonzini.
28558
28559 2009-08-23  Bruno Haible  <bruno@clisp.org>
28560
28561         * lib/pipe2.c (pipe2): Move #ifs inside function.
28562
28563 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28564
28565         quotearg: document limitations of quote_these_too
28566         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28567         those limitations are created.
28568         * lib/quotearg.h (set_char_quoting): Document that digits and
28569         letters that are special after backslash are not permitted.
28570         (quotearg_char): Cross-reference set_char_quoting documentation.
28571
28572 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28573
28574         quotearg: implement custom_quoting_style
28575         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28576         right_quote fields.
28577         (set_custom_quoting): New public function.
28578         (quotearg_buffer_restyled): Add left_quote and right_quote
28579         arguments, handle them very much like locale quoting, and update
28580         all uses.
28581         (quotearg_n_custom): New public function.
28582         (quotearg_n_custom_mem): New public function.
28583         (quotearg_custom): New public function.
28584         (quotearg_custom_mem): New public function.
28585         * lib/quotearg.h: Prototype and document new public functions.
28586         (enum quoting_style): For escape_quoting_style and
28587         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28588         ignored even though they're otherwise like c_quoting_style.
28589         Add custom_quoting_style member and document with comparison to
28590         clocale_quoting_style.
28591         * tests/test-quotearg.c (custom_quotes): New array.
28592         (custom_results): New array.
28593         (main): Extend to test custom quoting.
28594
28595 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28596
28597         quotearg: fix right quote escaping when it's in quote_these_too
28598         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28599         quote, be sure to prepend only one backslash.
28600         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28601         (main): Test it.
28602
28603 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28604
28605         quotearg-tests: test escaping of embedded locale quotes
28606         * tests/test-quotearg.c (struct result_strings): Add member for
28607         new input.
28608         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28609         (inputs): Add new input.
28610         (results_g): Add expected results.
28611         (flag_results): Likewise.
28612         (locale_results): Likewise.
28613         (compare_strings): Check those.
28614
28615 2009-08-23  Bruno Haible  <bruno@clisp.org>
28616
28617         Tests for module 'dup3'.
28618         * modules/dup3-tests: New file.
28619         * tests/test-dup3.c: New file.
28620
28621         New module 'dup3'.
28622         * lib/unistd.in.h (dup3): New declaration.
28623         * lib/dup3.c: New file.
28624         * m4/dup3.m4: New file.
28625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28626         HAVE_DUP3.
28627         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28628         * modules/dup3: New file.
28629         * doc/glibc-functions/dup3.texi: Mention the new module.
28630
28631 2009-08-23  Bruno Haible  <bruno@clisp.org>
28632
28633         Tweak the dup2 test.
28634         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28635         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28636         the test file is still empty. Fix argument order of lseek.
28637
28638 2009-08-23  Bruno Haible  <bruno@clisp.org>
28639
28640         Avoid test link errors when the modules getopt-gnu, gettext are used.
28641         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28643
28644 2009-08-23  Bruno Haible  <bruno@clisp.org>
28645
28646         Fix getdtablesize() on mingw.
28647         * lib/getdtablesize.c (getdtablesize): Implement differently.
28648         * lib/unistd.in.h (getdtablesize): Improve comment.
28649
28650 2009-08-23  Bruno Haible  <bruno@clisp.org>
28651
28652         New module 'mkostemp'.
28653         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28654         * lib/stdlib.in.h (mksotemp): New declaration.
28655         * lib/mkostemp.c: New file, from glibc with modifications.
28656         * lib/tempname.h (GT_FILE): Remove outdated comment.
28657         (gen_tempname): Add flags argument.
28658         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28659         (__GT_FILE): Map to 1.
28660         (small_open, large_open): Remove macros.
28661         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28662         * lib/mkstemp.c (mkstemp): Update.
28663         * lib/mkdtemp.c (mkdtemp): Likewise.
28664         * m4/mkostemp.m4: New file.
28665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28666         HAVE_MKOSTEMP.
28667         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28668         HAVE_MKOSTEMP.
28669         * modules/mkostemp: New file, based on modules/mkstemp.
28670         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28671         * NEWS: Mention the change.
28672
28673 2009-08-23  Bruno Haible  <bruno@clisp.org>
28674
28675         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28676         Reported by Eric Blake.
28677
28678 2009-08-23  Bruno Haible  <bruno@clisp.org>
28679
28680         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28681         Reported by Eric Blake.
28682
28683 2009-08-23  Bruno Haible  <bruno@clisp.org>
28684
28685         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28686         * modules/pipe2 (Depends-on): Likewise.
28687
28688 2009-08-23  Eric Blake  <ebb9@byu.net>
28689
28690         fcntl-h: add O_TTY_INIT support
28691         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28692         * tests/test-fcntl-h.c (o): Test it.
28693         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28694
28695         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28696         * modules/fcntl: Move <fcntl.h> header replacement...
28697         * modules/fcntl-h: ...to new name, so as not to collide with
28698         like-named function.
28699         * tests/test-fcntl.c: Rename...
28700         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28701         * modules/fcntl-tests: Rename...
28702         * modules/fcntl-h-tests: ...to this.  Update test file name.
28703         * modules/chdir-long (Depends-on): Update clients.
28704         * modules/chdir-safer (Depends-on): Likewise.
28705         * modules/fcntl-safer (Depends-on): Likewise.
28706         * modules/fts (Depends-on): Likewise.
28707         * modules/mkancesdirs (Depends-on): Likewise.
28708         * modules/mkdir-p (Depends-on): Likewise.
28709         * modules/open (Depends-on): Likewise.
28710         * modules/savewd (Depends-on): Likewise.
28711         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28712         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28713
28714 2009-08-22  Bruno Haible  <bruno@clisp.org>
28715
28716         * modules/binary-io (License): Relicense under LGPL.
28717         * modules/pipe2 (License): Likewise.
28718
28719 2009-08-22  Bruno Haible  <bruno@clisp.org>
28720
28721         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28722         return value.
28723         * lib/pipe-filter-gi.c (filter_init): Likewise.
28724         Reported by Eric Blake.
28725
28726 2009-08-22  Bruno Haible  <bruno@clisp.org>
28727
28728         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28729         * modules/pipe (Depends-on): Add pipe2.
28730
28731 2009-08-22  Bruno Haible  <bruno@clisp.org>
28732
28733         Tests for module 'pipe2'.
28734         * modules/pipe2-tests: New file.
28735         * tests/test-pipe2.c: New file.
28736
28737         New module 'pipe2'.
28738         * lib/unistd.in.h (pipe2): New declaration.
28739         * lib/pipe2.c: New file.
28740         * m4/pipe2.m4: New file.
28741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28742         HAVE_PIPE2.
28743         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28744         * modules/pipe2: New file.
28745         * doc/glibc-functions/pipe2.texi: Mention the new module.
28746
28747 2009-08-22  Bruno Haible  <bruno@clisp.org>
28748
28749         Reference some new glibc functions.
28750         * doc/glibc-functions/accept4.texi: New file.
28751         * doc/glibc-functions/dup3.texi: New file.
28752         * doc/glibc-functions/mkostemp.texi: New file.
28753         * doc/glibc-functions/pipe2.texi: New file.
28754         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28755         (Glibc sys/socket.h): Refer to accept4.
28756         (Glibc unistd.h): Refer to dup3, pipe2.
28757         Reported by Eric Blake.
28758
28759 2009-08-22  Jim Meyering  <meyering@redhat.com>
28760             Bruno Haible  <bruno@clisp.org>
28761
28762         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28763         This makes it so packages using automake-1.11's silent-rules option
28764         can print e.g., a single "GEN    configmake.h" line, rather than
28765         the 30+ statements that perform the job.  If you want to see the
28766         actual commands, you can still run "make V=1".
28767         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28768         so that make output is abbreviated when those variables are defined
28769         appropriately.
28770         * modules/argz: Likewise.
28771         * modules/arpa_inet: Likewise.
28772         * modules/byteswap: Likewise.
28773         * modules/configmake: Likewise.
28774         * modules/dirent: Likewise.
28775         * modules/errno: Likewise.
28776         * modules/fcntl: Likewise.
28777         * modules/float: Likewise.
28778         * modules/fnmatch: Likewise.
28779         * modules/getopt-posix: Likewise.
28780         * modules/glob: Likewise.
28781         * modules/iconv_open: Likewise.
28782         * modules/inttypes: Likewise.
28783         * modules/localcharset: Likewise.
28784         * modules/locale: Likewise.
28785         * modules/math: Likewise.
28786         * modules/netdb: Likewise.
28787         * modules/netinet_in: Likewise.
28788         * modules/poll: Likewise.
28789         * modules/posix_spawnp-tests: Likewise.
28790         * modules/sched: Likewise.
28791         * modules/search: Likewise.
28792         * modules/selinux-h: Likewise.
28793         * modules/signal: Likewise.
28794         * modules/spawn: Likewise.
28795         * modules/stdarg: Likewise.
28796         * modules/stdbool: Likewise.
28797         * modules/stddef: Likewise.
28798         * modules/stdint: Likewise.
28799         * modules/stdio: Likewise.
28800         * modules/stdlib: Likewise.
28801         * modules/string: Likewise.
28802         * modules/strings: Likewise.
28803         * modules/sys_file: Likewise.
28804         * modules/sys_ioctl: Likewise.
28805         * modules/sys_select: Likewise.
28806         * modules/sys_socket: Likewise.
28807         * modules/sys_stat: Likewise.
28808         * modules/sys_time: Likewise.
28809         * modules/sys_times: Likewise.
28810         * modules/sys_utsname: Likewise.
28811         * modules/sys_wait: Likewise.
28812         * modules/sysexits: Likewise.
28813         * modules/time: Likewise.
28814         * modules/unistd: Likewise.
28815         * modules/wchar: Likewise.
28816         * modules/wctype: Likewise.
28817
28818 2009-08-22  Jim Meyering  <meyering@redhat.com>
28819
28820         announce-gen: detect write failure
28821         * build-aux/announce-gen: Add Coda at end.
28822         Remove equivalent-but-more-verbose block at top.
28823
28824 2009-08-19  Akim Demaille  <demaille@gostai.com>
28825
28826         bootstrap: --help to stdout.
28827         * bootstrap (usage): Don't send --help to stderr.
28828         Use a here doc instead of a long string.
28829
28830 2009-08-21  Eric Blake  <ebb9@byu.net>
28831
28832         test-popen-safer: split from test-popen
28833         * tests/test-popen.c (main): Move...
28834         * tests/test-popen.h: ...into new file.
28835         * tests/test-popen-safer2.c: New file.
28836         * modules/popen-tests (Files): Add test-popen.h.
28837         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28838         Suggested by Bruno Haible.
28839
28840         test-fcntl-safer: split from test-open
28841         * tests/test-open.c (main): Move...
28842         * tests/test-open.h: ...into new file.
28843         * tests/test-fcntl-safer.c: New file.
28844         * modules/open-tests (Files): Add test-open.h.
28845         * modules/fcntl-safer-tests: New file.
28846         Suggested by Bruno Haible.
28847
28848         test-fopen-safer: split from test-fopen
28849         * tests/test-fopen.c (main): Move...
28850         * tests/test-fopen.h: ...into new file.
28851         * tests/test-fopen-safer.c: New file.
28852         * modules/fopen-tests (Files): Add test-fopen.h.
28853         * modules/fopen-safer-tests: New file.
28854         Suggested by Bruno Haible.
28855
28856 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28857
28858         popen-safer: test O_CLOEXEC at run-time.
28859         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28860
28861 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28862
28863         fcntl: move more flags to the header
28864         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28865         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28866         * lib/fcntl.in.h: Do both things here.
28867
28868 2009-08-21  Jim Meyering  <meyering@redhat.com>
28869
28870         consistently remove $@-t before redirecting to it
28871         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28872         * modules/alloca-opt: Likewise.
28873         * modules/byteswap: Likewise.
28874         * modules/fnmatch: Likewise.
28875         * modules/getopt-posix: Likewise.
28876         * modules/glob: Likewise.
28877         * modules/poll: Likewise.
28878         * modules/posix_spawnp-tests: Likewise.
28879         * modules/sys_socket: Likewise.
28880         * modules/sysexits: Likewise.
28881
28882 2009-08-21  Eric Blake  <ebb9@byu.net>
28883
28884         popen: simplify access to original popen
28885         * lib/popen.c (rpl_popen): No need to worry about popen being a
28886         macro.
28887         Reported by Bruno Haible.
28888
28889 2009-08-20  Eric Blake  <ebb9@byu.net>
28890
28891         build: avoid some compiler warnings
28892         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28893         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28894         type.
28895         (new_exclude_segment, excluded_file_pattern_p)
28896         (excluded_file_name_p): Reduce scope.
28897         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28898         old-style declaration.
28899
28900 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28901
28902         * tests/test-exclude1.sh: Handle Windows EOL.
28903         * tests/test-exclude2.sh: Likewise.
28904         * tests/test-exclude3.sh: Likewise.
28905         * tests/test-exclude4.sh: Likewise.
28906         * tests/test-exclude5.sh: Likewise.
28907         * tests/test-exclude6.sh: Likewise.
28908         * tests/test-exclude7.sh: Likewise.
28909
28910 2009-08-19  Akim Demaille  <demaille@gostai.com>
28911
28912         bootstrap: find sha1sum when named gsha1sum.
28913         * bootstrap (find_tool): New.
28914         ($SHA1SUM): New.
28915         Use it.
28916
28917 2009-08-20  Jim Meyering  <meyering@redhat.com>
28918
28919         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28920         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28921         expression that converts "." in a file name to "\." in the resulting
28922         regexp.  Start with a dummy statement, so that prior shell variable
28923         definitions are expanded portably.  Reported by Simon Josefsson.
28924
28925 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28926
28927         Fix polling for writeability of a screen buffer.
28928         * lib/poll.c: Distinguish input and screen buffers for the
28929         Win32 implementation.
28930         * lib/select.c: Likewise.
28931
28932 2009-08-19  Eric Blake  <ebb9@byu.net>
28933
28934         popen-safer: prevent popen from clobbering std descriptors
28935         * modules/popen-safer: New file.
28936         * lib/popen-safer.c: Likewise.
28937         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28938         * lib/stdio--.h (popen): Provide override.
28939         * lib/stdio-safer.h (popen_safer): Provide declaration.
28940         * tests/test-popen.c (includes): Partially test this.
28941         * modules/popen-safer-tests: New file, for more tests.
28942         * tests/test-popen-safer.c: Likewise.
28943         * MODULES.html.sh (file stream based Input/Output): Mention it.
28944
28945         tests: test some of the *-safer modules
28946         * modules/fopen-safer (Depends-on): Add fopen.
28947         * modules/fcntl-safer (Depends-on): Add fcntl.
28948         * modules/stdlib-safer (Depends-on): Add stdlib.
28949         (configure.ac): Set indicator.
28950         * modules/unistd-safer (configure.ac): Likewise.
28951         * modules/tmpfile-safer (configure.ac): Likewise.
28952         (Depends-on): Add tmpfile.
28953         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28954         active.
28955         * tests/test-fopen.c (includes): Test safer versions when they are
28956         in use.
28957         * tests/test-open.c (includes): Likewise.
28958
28959         popen: fix cygwin 1.5 bug when stdin closed
28960         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28961         * modules/popen: New file.
28962         * modules/popen-tests: Likewise.
28963         * tests/test-popen.c: Likewise.
28964         * m4/popen.m4: Likewise.
28965         * lib/popen.c: Likewise.
28966         * lib/stdio.in.h (popen): New declaration.
28967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28968         * modules/stdio (Makefile.am): Likewise.
28969         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28970
28971 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28972
28973         maint.mk: give full control over update-copyright exclusions
28974         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28975         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28976         (update-copyright): Don't force inclusion of top-level
28977         ChangeLog.  Don't force exclusion of all COPYING files, but make
28978         them the default exclusion instead.
28979
28980 2009-08-16  Bruno Haible  <bruno@clisp.org>
28981
28982         Fix test failures on Solaris 10.
28983         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28984         tests when Solaris iconv() is used.
28985         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28986         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28987         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28988         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28989         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28990
28991 2009-08-16  Bruno Haible  <bruno@clisp.org>
28992
28993         Fix test failures on Solaris 10.
28994         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28995         'tr' program and pass it as first argument.
28996         * tests/test-pipe-filter-gi1.sh: Likewise.
28997         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28998         program as first argument.
28999         * tests/test-pipe-filter-gi1.c (main): Likewise.
29000
29001 2009-08-16  Eric Blake  <ebb9@byu.net>
29002
29003         fpurge: fix previous commits
29004         * modules/fpurge (Makefile.am): Make replacement conditional,
29005         partially reverting 2007-04-29 change; missed in previous
29006         attempt.
29007         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29008         is missing.
29009
29010 2009-08-16  Bruno Haible  <bruno@clisp.org>
29011
29012         Clarify fpurge's effect on the file position.
29013         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29014         * tests/test-fpurge.c (main): Make a second pass for checking the file
29015         position.
29016
29017 2009-08-16  Bruno Haible  <bruno@clisp.org>
29018
29019         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29020         declaration of fpurge is missing.
29021         * tests/test-fpurge.c (main): Check that the file has not more contents
29022         than expected. Close the file before removing it.
29023
29024 2009-08-15  Eric Blake  <ebb9@byu.net>
29025
29026         fpurge: don't wrap working cygwin implementation
29027         * lib/fpurge.c (fpurge): Fix comment typo.
29028         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29029         1.7 to avoid replacement.
29030         * tests/test-fpurge.c (main): Enhance test.
29031
29032 2009-08-15  Eric Blake  <ebb9@byu.net>
29033         and Jim Meyering  <meyering@redhat.com>
29034
29035         test-update-copyright: skip if perl is insufficient
29036         * tests/test-update-copyright.sh: Failure to run maintainer tool
29037         should not cause testsuite failure on cygwin 1.5.
29038
29039 2009-08-14  Eric Blake  <ebb9@byu.net>
29040
29041         doc: mention more functions added in cygwin 1.7.0
29042         * doc/posix-headers/limits.texi (limits.h): Update for recent
29043         cygwin additions.
29044         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29045         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29046         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29047         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29048         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29049
29050 2009-08-14  Eric Blake  <ebb9@byu.net>
29051
29052         maint.mk: simplify update-copyright rule
29053         * top/maint.mk (update-copyright-local): Delete, and document how
29054         to do it in cfg.mk instead.
29055         (update-copyright-exclude-regexp): Delete, and document how to do
29056         it in .x-update-copyright instead.
29057         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29058         exclude ChangeLog.
29059
29060 2009-08-14  Bruno Haible  <bruno@clisp.org>
29061
29062         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29063
29064 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29065
29066         maint.mk: support update-copyright-env
29067         * top/maint.mk (update-copyright-env): Define place-holder.
29068         (update-copyright): Expand $(update-copyright-env) before
29069         invoking update-copyright.
29070
29071 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29072
29073         update-copyright: implement forced reformatting
29074         * build-aux/update-copyright: Implement and document
29075         UPDATE_COPYRIGHT_FORCE.
29076         * tests/test-update-copyright.sh: Test it.
29077
29078 2009-08-14  Eric Blake  <ebb9@byu.net>
29079         and Bruno Haible  <bruno@clisp.org>
29080
29081         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29082         * tests/test-locale.c: Revert previous patch related to NULL.
29083         * tests/test-stdio.c: Likewise.
29084         * tests/test-stdlib.c: Likewise.
29085         * tests/test-string.c: Likewise.
29086         * tests/test-unistd.c: Likewise.
29087         * modules/time-tests (Depends-on): Add verify.
29088         * modules/wchar-tests (Depends-on): Likewise.
29089         * tests/test-time.c: Test for NULL compliance.
29090         * tests/test-wchar.c: Likewise.
29091         * modules/locale (Depends-on): Add stddef.
29092         * modules/stdio (Depends-on): Likewise.
29093         * modules/stdlib (Depends-on): Likewise.
29094         * modules/string (Depends-on): Likewise.
29095         * modules/time (Depends-on): Likewise.
29096         * modules/unistd (Depends-on): Likewise.
29097         * modules/wchar (Depends-on): Likewise.
29098         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29099         * lib/stdlib.in.h (includes): Likewise.
29100         * lib/string.in.h (includes): Likewise.
29101         * lib/time.in.h (includes): Likewise.
29102         * lib/unistd.in.h (includes): Likewise.
29103         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29104         replaced.
29105         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29106         * m4/stddef_h.m4: New file.
29107         * modules/stddef: Likewise.
29108         * lib/stddef.in.h: Likewise.
29109         * modules/stddef-tests: Likewise.
29110         * tests/test-stddef.c: Likewise.
29111         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29112         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29113         * doc/posix-headers/locale.texi (locale.h): Likewise.
29114         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29115         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29116         * doc/posix-headers/string.texi (string.h): Likewise.
29117         * doc/posix-headers/time.texi (time.h): Likewise.
29118         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29119         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29120
29121 2009-08-14  Eric Blake  <ebb9@byu.net>
29122
29123         doc: improve git diff of texinfo files
29124         * .gitattributes: Add rule for *.texi files, with hint on how to
29125         use it.
29126         Copied from m4, and based on a report by Bruno Haible.
29127
29128 2009-08-14  Bruno Haible  <bruno@clisp.org>
29129
29130         Disable multithread support by default on Cygwin 1.5.x for real.
29131         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29132
29133 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29134
29135         update-copyright: much ado about intervals
29136         * build-aux/update-copyright: Implement and document
29137         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29138         of copyright year intervals.
29139         Also, document UPDATE_COPYRIGHT_YEAR.
29140         * tests/test-update-copyright.sh: Test it.
29141
29142         update-copyright: convert 2-digit to 4-digit years
29143         * build-aux/update-copyright: Implement and document.
29144         * tests/test-update-copyright.sh: Update.
29145
29146 2009-08-14  Jim Meyering  <meyering@redhat.com>
29147
29148         test-exclude: avoid coreutils "make check" failure
29149         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29150         just as in test-argmatch.c.
29151
29152 2009-08-13  Eric Blake  <ebb9@byu.net>
29153
29154         test-dup2: fix bad assumption
29155         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29156         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29157
29158         test-version-etc: fix CRLF portability issue
29159         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29160         recognize \r.
29161         * tests/test-argp-version-etc-1.sh: Likewise.
29162
29163         getopt: update client modules
29164         * modules/argp (Depends-on): Use getopt-gnu.
29165         * modules/git-merge-changelog (Depends-on): Likewise.
29166         * modules/long-options (Depends-on): Likewise.
29167         * modules/xstrtol (Depends-on): Likewise.
29168
29169 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29170
29171         * tests/test-version-etc.sh: Don't fail on different
29172         project/version.  Don't fail on CRLF differences.  Rewrite to use
29173         multiple -e instead of multiple sed forks, suggested by Eric Blake
29174         <ebb9@byu.net>.
29175         * tests/test-argp-version-etc-1.sh: Likewise.
29176
29177 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29178
29179         * tests/test-version-etc.sh: Don't fail on different
29180         project/version.
29181
29182 2009-08-12  Bruno Haible  <bruno@clisp.org>
29183
29184         Tests for modules 'getopt-posix', 'getopt-gnu'.
29185         * modules/getopt-posix-tests: New file.
29186         * tests/test-getopt.c: New file.
29187         * tests/test-getopt.h: New file.
29188         * tests/test-getopt_long.h: New file.
29189
29190         New modules 'getopt-posix', 'getopt-gnu'.
29191         * modules/getopt-gnu: New file, renamed from modules/getopt.
29192         * modules/getopt-posix: New file.
29193         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29194         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29195         (gl_GETOPT): Remove macro.
29196         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29197         Disable the test against BSD systems that declare optreset. Test
29198         against mingw bug. Test against lack of support of optional arguments
29199         on many platforms.
29200         * doc/glibc-headers/getopt.texi: Update module name and list of
29201         relevant platforms.
29202         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29203         'getopt-gnu' and more portability problems.
29204         * NEWS: Mention the changes.
29205
29206 2009-08-12  Bruno Haible  <bruno@clisp.org>
29207
29208         Ensure that optarg etc. get declared by <unistd.h>.
29209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29210         AC_USE_SYSTEM_EXTENSIONS.
29211         * modules/getopt (Depends-on): Add 'extensions'.
29212
29213 2009-08-12  Bruno Haible  <bruno@clisp.org>
29214
29215         Avoid test link errors.
29216         * modules/pipe-filter-ii-tests (Makefile.am): Define
29217         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29218         * modules/pipe-filter-gi-tests (Makefile.am): Define
29219         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29221
29222 2009-08-12  Bruno Haible  <bruno@clisp.org>
29223
29224         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29225         gl_GETOPT_SUBSTITUTE before.
29226         (gl_GETOPT): Use it.
29227         * m4/argp.m4 (gl_ARGP): Update.
29228         Reported by Sergey Poznyakoff.
29229
29230         * m4/getopt.m4: Reorder macros.
29231         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29232         (gl_GETOPT_SUBSTITUTE): Remove macro.
29233
29234 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29235
29236         Minor improvement in gitlog-to-changelog
29237
29238         * build-aux/gitlog-to-changelog: New option `--format' makes
29239         output format string configurable.
29240
29241 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29242
29243         Optimize exclude: use hash tables for non-wildcard patterns.
29244
29245         * lib/exclude.c: Include hash.h and mbuiter.h
29246         (struct exclude_pattern, exclude_segment): New data types.
29247         (struct exclude): Rewrite.
29248         (fnmatch_pattern_has_wildcards): New function.
29249         (new_exclude_segment, free_exclude_segment): New functions.
29250         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29251         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29252         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29253         * modules/exclude: Depend on hash and mbuiter.
29254
29255         * modules/exclude-tests: New file.
29256         * tests/test-exclude.c: New file.
29257         * tests/test-exclude1.sh: New file.
29258         * tests/test-exclude2.sh: New file.
29259         * tests/test-exclude3.sh: New file.
29260         * tests/test-exclude4.sh: New file.
29261         * tests/test-exclude5.sh: New file.
29262         * tests/test-exclude6.sh: New file.
29263         * tests/test-exclude7.sh: New file.
29264
29265 2009-08-12  Bruno Haible  <bruno@clisp.org>
29266
29267         Ensure that getopt() gets declared by <unistd.h>.
29268         * lib/unistd.in.h: Conditionally include getopt.h.
29269         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29270         Set GNULIB_UNISTD_H_GETOPT.
29271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29272         GNULIB_UNISTD_H_GETOPT.
29273         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29274
29275 2009-08-12  Bruno Haible  <bruno@clisp.org>
29276
29277         Clarify logic.
29278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29279         gl_replace_getopt instead of GETOPT_H.
29280
29281 2009-08-12  Bruno Haible  <bruno@clisp.org>
29282
29283         * m4/getopt.m4: Add comments.
29284
29285 2009-08-12  Bruno Haible  <bruno@clisp.org>
29286
29287         Disable multithread support by default on Cygwin 1.5.x.
29288         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29289         set gl_use_threads=no if not specified otherwise.
29290
29291 2009-08-11  Bruno Haible  <bruno@clisp.org>
29292
29293         Avoid compilation error on NetBSD 5.0.
29294         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29295         * tests/test-stdio.c: Likewise.
29296         * tests/test-stdlib.c: Likewise.
29297         * tests/test-string.c: Likewise.
29298         * tests/test-unistd.c: Likewise.
29299         Reported by Greg Troxel <gdt@ir.bbn.com>
29300         at <https://savannah.gnu.org/support/?106973>.
29301
29302 2009-08-11  Bruno Haible  <bruno@clisp.org>
29303
29304         * modules/dup2-tests (Depends-on): Remove close.
29305
29306         Undo 2009-07-19 commit.
29307         * modules/acl-tests (Depends-on): Remove close.
29308         * modules/binary-io-tests (Depends-on): Likewise.
29309         * modules/closein-tests (Depends-on): Likewise.
29310         * modules/flock-tests (Depends-on): Likewise.
29311         * modules/fsync-tests (Depends-on): Likewise.
29312         * modules/lseek-tests (Depends-on): Likewise.
29313         * modules/pipe-tests (Depends-on): Likewise.
29314         * modules/posix_spawn-tests (Depends-on): Likewise.
29315         * modules/posix_spawnp-tests (Depends-on): Likewise.
29316         * modules/stat-time-tests (Depends-on): Likewise.
29317         * modules/yesno-tests (Depends-on): Likewise.
29318
29319 2009-08-10  Bruno Haible  <bruno@clisp.org>
29320
29321         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29322
29323 2009-08-10  Bruno Haible  <bruno@clisp.org>
29324
29325         Fix a gcc warning.
29326         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29327
29328 2009-08-10  Bruno Haible  <bruno@clisp.org>
29329
29330         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29331         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29332         not only the first time.
29333         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29334         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29335         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29336         is 1, not only the the first time.
29337
29338 2009-08-10  Bruno Haible  <bruno@clisp.org>
29339
29340         Make it possible to use module 'gethostname' without module 'close'.
29341         * lib/unistd.in.h (close): Evoke a link error only if
29342         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29344         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29345         * modules/unistd (Makefile.am): Substitute
29346         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29347         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29348         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29349         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29350         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29351         * modules/sys_ioctl (Makefile.am): Substitute
29352         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29353         * modules/socket (configure.ac): On native Windows, set
29354         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29355         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29356         Reported by Sam Steingold <sds@gnu.org>.
29357
29358 2009-08-10  Bruno Haible  <bruno@clisp.org>
29359
29360         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29361         * modules/ioctl (configure.ac): Likewise.
29362
29363 2009-08-10  Bruno Haible  <bruno@clisp.org>
29364
29365         Avoid collision between gnulib wrapper and libintl wrapper.
29366         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29367         already defined in intl/printf.c.
29368         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29369         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29370
29371 2009-08-09  Bruno Haible  <bruno@clisp.org>
29372
29373         Make <sys/select.h> really self-contained, also on Solaris 10.
29374         * lib/sys_select.in.h: Include <string.h>.
29375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29376         Solaris 10 problem.
29377         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29378         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29379         Reported by Jim Meyering.
29380
29381 2009-08-09  Bruno Haible  <bruno@clisp.org>
29382
29383         Avoid warnings from 'aclocal' that are due to a use of macro name
29384         AM_XGETTEXT_OPTION that is not defined in automake.
29385         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29386         automake.
29387         * modules/error (configure.ac): Likewise.
29388         * modules/propername (configure.ac): Likewise.
29389         * modules/vasprintf (configure.ac): Likewise.
29390         * modules/verror (configure.ac): Likewise.
29391         * modules/xprintf (configure.ac): Likewise.
29392         * modules/xvasprintf (configure.ac): Likewise.
29393
29394 2009-08-08  Bruno Haible  <bruno@clisp.org>
29395
29396         Avoid compilation error in C++ mode.
29397         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29398         Reported by Sam Steingold <sds@gnu.org>.
29399
29400 2009-08-08  Bruno Haible  <bruno@clisp.org>
29401
29402         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29403         for the various Unix platforms.
29404         * doc/posix-headers/limits.texi: Update platforms list regarding
29405         HOST_NAME_MAX.
29406         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29407
29408 2009-08-07  Jim Meyering  <meyering@redhat.com>
29409
29410         selinux-at: fix typo in a comment
29411         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29412         Spotted by Paolo Bonzini.
29413
29414         selinux-at: remove redundant m4 code, add documentation
29415         * modules/selinux-at (configure.ac): Remove redundant code.
29416         LIB_SELINUX is already set via the dependent module, selinux-h.
29417         (Include): Add quotes around selinux-at.h.
29418         * lib/selinux-at.h: Add documentation.
29419         Reported by Bruno Haible in
29420         http://marc.info/?l=gnulib-bug&m=124958988300749
29421
29422 2009-08-07  Bruno Haible  <bruno@clisp.org>
29423
29424         Avoid link error on MacOS X 10.3 and 10.4.
29425         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29426         on non-ELF systems.
29427         * lib/argp-pv.c (argp_program_version): Likewise.
29428         Reported by Simon Josefsson.
29429
29430 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29431
29432         * tests/test-version-etc.sh: Use $EXEEXT.
29433
29434 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29435
29436         update-copyright: update documentation to point to maint.mk
29437         * build-aux/update-copyright: Here.
29438
29439 2009-08-06  Jim Meyering  <meyering@redhat.com>
29440
29441         maint.mk: support update-copyright-local
29442         * top/maint.mk (update-copyright-local): Define place-holder.
29443         (update-copyright): Depend on $(update-copyright-local).
29444
29445 2009-08-06  Jim Meyering  <meyering@redhat.com>
29446
29447         selinux-at: new module
29448         Initially written for coreutils, this module will soon be
29449         used by findutils, too.
29450         * MODULES.html.sh [Misc]: Add selinux-at.
29451         * lib/selinux-at.h: New file, from coreutils.
29452         * lib/selinux-at.c: Likewise.
29453         * modules/selinux-at: Likewise.
29454         (License): Change from LGPL to GPL, since it depends
29455         on the GPL'd openat module.
29456
29457         doc: update README
29458         * README: Remove references to cogito.
29459         Remove cvs-repo-updating instructions from 2007.
29460         Don't imply that CVS is better if you have limited disk space.
29461
29462 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29463
29464         update-copyright: support C-style comments
29465         * build-aux/update-copyright: Implement and document.
29466         * tests/test-update-copyright.sh: Test.
29467
29468 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29469
29470         update-copyright: support omitted "(C)"
29471         * build-aux/update-copyright: Implement and document.  Also,
29472         allow variable whitespace before "(C)".
29473         * tests/test-update-copyright.sh: Test.
29474
29475 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29476
29477         update-copyright: don't trip on non-FSF copyright statements
29478         * build-aux/update-copyright: Fix so that the first correctly
29479         formatted FSF copyright statement is recognized no matter what
29480         appears before it.  Update documentation.
29481         * tests/test-update-copyright.sh: Test that.
29482
29483 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29484
29485         update-copyright: clean up code a little
29486         * build-aux/update-copyright: Append "_re" to the name of any
29487         variable holding a regular expression.
29488         Replace "old" and "new" with "stmt" in variable names.
29489         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29490         handled correctly.
29491         Format code more consistently.
29492
29493 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29494
29495         update-copyright-tests: improve portability
29496         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29497         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29498
29499 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29500
29501         update-copyright: support @copyright{} and &copy;
29502         * build-aux/update-copyright: Implement and document.
29503         * tests/test-update-copyright.sh: Test.
29504
29505 2009-08-04  Jim Meyering  <meyering@redhat.com>
29506
29507         update-copyright-tests: correctly test EOL=\r\n handling
29508         * tests/test-update-copyright.sh: Put \r at the end of some lines
29509         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29510
29511         maint.mk: make update-copyright exclusion list more configurable
29512         * top/maint.mk (update-copyright): Default to excluding COPYING,
29513         but allow an override, in case someone does want to update that file.
29514
29515         maint.mk: don't update copyright date in COPYING
29516         * top/maint.mk (update-copyright): Exclude COPYING.
29517
29518         maint.mk: add a copyright-updating rule
29519         * top/maint.mk (update-copyright): New rule.
29520         Derived from coreutils/Makefile.am.
29521
29522         update-copyright: rename some variables
29523         * build-aux/update-copyright: Rename a few variables for clarity.
29524         Tweak syntax.  List Joel E. Denny as coauthor.
29525
29526 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29527
29528         update-copyright: fix bug for 2-digit last year and add tests
29529         * build-aux/update-copyright: Fix bug.
29530         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29531         specified.
29532         * modules/update-copyright-tests: New
29533         * tests/test-update-copyright.sh: New.
29534
29535 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29536
29537         update-copyright: handle leading tabs in line prefix
29538         * build-aux/update-copyright: Count leading tabs as 8 spaces
29539         when computing margin.  This helps with the formatting of
29540         ChangeLogs, for example.
29541         Fix documentation a little.
29542
29543 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29544
29545         update-copyright: support EOL=\r\n
29546         * build-aux/update-copyright: Implement that.
29547
29548 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29549
29550         update-copyright: automatically format copyright statements
29551         * build-aux/update-copyright: Implement that.
29552         Also, be a little more predictable and safer by always failing
29553         when the full copyright format is not perfectly recognized as an
29554         unbroken whole.  Discussed at
29555         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29556         Rewrite documentation.
29557
29558 2009-08-03  Bruno Haible  <bruno@clisp.org>
29559
29560         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29561
29562 2009-08-02  Bruno Haible  <bruno@clisp.org>
29563
29564         Tests for module 'uname'.
29565         * modules/uname-tests: New file.
29566         * tests/test-uname.c: New file.
29567
29568         New module 'uname'.
29569         * lib/uname.c: New file.
29570         * m4/uname.m4: New file.
29571         * modules/uname: New file.
29572         * doc/posix-functions/uname.texi: Mention the new module.
29573
29574 2009-08-02  Bruno Haible  <bruno@clisp.org>
29575
29576         Tests for module 'sys_utsname'.
29577         * modules/sys_utsname-tests: New file.
29578         * tests/test-sys_utsname.c: New file.
29579
29580         New module 'sys_utsname'.
29581         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29582         * m4/sys_utsname_h.m4: New file.
29583         * modules/sys_utsname: New file.
29584         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29585
29586 2009-08-02  Bruno Haible  <bruno@clisp.org>
29587
29588         Implicitly initialize the sockets library.
29589         * lib/gethostname.c: Include sockets.h.
29590         (rpl_gethostname): Invoke gl_sockets_startup.
29591         * lib/socket.c: Include sockets.h.
29592         (rpl_socket): Invoke gl_sockets_startup.
29593         * modules/gethostname (Depends-on): Add sockets.
29594         * modules/socket (Depends-on): Likewise.
29595         * tests/test-poll.c: Don't include sockets.h.
29596         (main): Don't invoke gl_sockets_startup.
29597         * tests/test-select.c: Don't include sockets.h.
29598         (main): Don't invoke gl_sockets_startup.
29599
29600 2009-08-02  Bruno Haible  <bruno@clisp.org>
29601
29602         Allow multiple calls to gl_sockets_startup.
29603         * lib/sockets.c (initialized_sockets_version): New variable.
29604         (gl_sockets_startup): Do nothing if already called for this or a higher
29605         version.
29606         (gl_sockets_cleanup): Reset initialized_sockets_version.
29607
29608 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29609
29610         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29611         different project/version.
29612
29613 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29614             Bruno Haible  <bruno@clisp.org>
29615
29616         Tests for module 'pipe-filter-gi'.
29617         * modules/pipe-filter-gi-tests: New file.
29618         * tests/test-pipe-filter-gi1.sh: New file.
29619         * tests/test-pipe-filter-gi1.c: New file.
29620         * tests/test-pipe-filter-gi2.sh: New file.
29621         * tests/test-pipe-filter-gi2-main.c: New file.
29622         * tests/test-pipe-filter-gi2-child.c: New file.
29623
29624         New module 'pipe-filter-gi'.
29625         * lib/pipe-filter-gi.c: New file.
29626         * modules/pipe-filter-gi: New file.
29627
29628 2009-08-02  Bruno Haible  <bruno@clisp.org>
29629             Paolo Bonzini  <bonzini@gnu.org>
29630
29631         Tests for module 'pipe-filter-ii'.
29632         * modules/pipe-filter-ii-tests: New file.
29633         * tests/test-pipe-filter-ii1.sh: New file.
29634         * tests/test-pipe-filter-ii1.c: New file.
29635         * tests/test-pipe-filter-ii2.sh: New file.
29636         * tests/test-pipe-filter-ii2-main.c: New file.
29637         * tests/test-pipe-filter-ii2-child.c: New file.
29638
29639         New module 'pipe-filter-ii'.
29640         * lib/pipe-filter.h: New file.
29641         * lib/pipe-filter-ii.c: New file.
29642         * lib/pipe-filter-aux.h: New file.
29643         * modules/pipe-filter-ii: New file.
29644
29645 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29646
29647         * lib/gc-libgcrypt.c: Change copyright to FSF.
29648         * lib/gc-gnulib.c: Likewise.
29649
29650 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29651
29652         * lib/gethostname.c: Include limits.h.
29653
29654 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29655             Bruno Haible  <bruno@clisp.org>
29656
29657         Ensure HOST_NAME_MAX as part of the gethostname module.
29658         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29659         define also HOST_NAME_MAX.
29660         * tests/test-gethostname.c: Include <limits.h>.
29661         (main): Check also HOST_NAME_MAX.
29662         * doc/posix-headers/limits.texi: Document the mingw problem.
29663
29664 2009-08-02  Bruno Haible  <bruno@clisp.org>
29665
29666         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29667         Add comments.
29668
29669 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29670
29671         * lib/gethostname.c: Add Windows wrapper.
29672         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29673         * modules/gethostname: Depend on sys_socket & errno, for also
29674         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29675         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29676
29677 2009-07-31  Jim Meyering  <meyering@redhat.com>
29678
29679         getloadavg: fix symbol name in comment
29680         * lib/getloadavg.c: Correct a typo I introduced when adding
29681         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29682         Matt Kraai spotted the problem.
29683
29684 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29685
29686         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29687         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29688         code also if ! defined N_NAME_POINTER.
29689         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29690         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29691         but the n_name member is a 12-byte array.
29692
29693 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29694
29695         update-copyright: generalize comment handling
29696         * build-aux/update-copyright: Handle copyright statements
29697         within more comment styles.
29698         Document usage.
29699         Report any file with an external copyright holder or parse failure.
29700
29701 2009-07-29  Jim Meyering  <meyering@redhat.com>
29702
29703         mktime: correct setting of REPLACE_MKTIME
29704         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29705
29706         update-copyright: new module
29707         * modules/update-copyright: New file.
29708         * build-aux/update-copyright: New file.
29709         * MODULES.html.sh (maint+release support): Add update-copyright.
29710
29711 2009-07-27  Bruno Haible  <bruno@clisp.org>
29712
29713         Fix compilation error when <ctime> is used and mktime is replaced.
29714         * lib/time.in.h (mktime): New declaration.
29715         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29716         REPLACE_MKTIME instead of defining mktime in config.h.
29717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29718         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29719         Reported by Ross McFarland <rwmcfa1@neces.com>.
29720
29721 2009-07-27  Bruno Haible  <bruno@clisp.org>
29722
29723         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29724         Reported by Matt Kraai <mkraai@beckman.com>.
29725
29726 2009-07-25  Jim Meyering  <meyering@redhat.com>
29727
29728         maint.mk: avoid warnings about missing files
29729         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29730         diagnostic when .prev-version does not exist.
29731         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29732         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29733         nonexistent cfg.mk.
29734         Suggestions from Simon Josefsson.
29735
29736 2009-07-25  Bruno Haible  <bruno@clisp.org>
29737
29738         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29739         defined as macros. Needed on QNX 6.4.1.
29740         Reported by Matt Kraai <mkraai@beckman.com>.
29741
29742 2009-07-23  Jim Meyering  <meyering@redhat.com>
29743
29744         maint.mk: invoke "make dist" with a working value of XZ_OPT
29745         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29746
29747 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29748
29749         Make fseeko.c compile on QNX.
29750         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29751
29752 2009-07-22  Peter Simons  <simons@cryp.to>
29753
29754         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29755         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29756         * lib/md4.h: Likewise.
29757         * lib/md5.h: Likewise.
29758         * lib/sha1.h: Likewise.
29759         * lib/sha256.h: Likewise.
29760         * lib/sha512.h: Likewise.
29761
29762         tests-sha1: don't assign literal string to 'char *' variable
29763         * tests/test-sha1.c (main): Declare locals with "const" to match
29764         attributes of the right hand side.
29765
29766 2009-07-21  Eric Blake  <ebb9@byu.net>
29767
29768         dup2: fix more mingw problems
29769         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29770         fd to itself.
29771         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29772         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29773         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29774         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29775         care of mingw bugs.
29776
29777 2009-07-21  Jim Meyering  <meyering@redhat.com>
29778
29779         vc-list-files: avoid failure when /bin/sh is dash
29780         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29781         On some Debian based systems, /bin/sh is a symlink to dash, and running
29782         this command would omit the "/" following each 'tests' prefix:
29783           dash -x build-aux/vc-list-files -C . tests
29784         That is because bash and dash work differently:
29785           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29786           bash ok
29787           dash odd
29788
29789 2009-07-21  Eric Blake  <ebb9@byu.net>
29790
29791         dup2-tests: test previous patch
29792         * modules/dup2-tests: New file.
29793         * tests/test-dup2.c: Likewise.
29794         * tests/test-open.c (main): Avoid unspecified behavior.
29795         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29796         test.
29797
29798         dup2: work around mingw and cygwin 1.5 bug
29799         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29801         * modules/unistd (Makefile.am): Substitute it.
29802         * lib/unistd.in.h (dup2): Declare the replacement.
29803         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29804         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29805         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29806         * modules/execute (Depends-on): Add dup2.
29807         * modules/fseterr (Depends-on): Likewise.
29808         * modules/pipe (Depends-on): Likewise.
29809         * modules/posix_spawn-internal (Depends-on): Likewise.
29810
29811 2009-07-21  Bruno Haible  <bruno@clisp.org>
29812
29813         * modules/.gitattributes: New file.
29814
29815 2009-07-20  Bruno Haible  <bruno@clisp.org>
29816
29817         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29818         (main): Use it.
29819
29820 2009-07-20  Eric Blake  <ebb9@byu.net>
29821
29822         test-pipe: make a bit more robust.
29823         * tests/test-pipe.c (myerr): Allow error messages regardless of
29824         what we do to stderr.
29825         (test_pipe): Rearrange to avoid deadlock.
29826         (child_main): Try a larger read, to ensure we avoided deadlock.
29827         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29828         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29829         if misused.
29830
29831 2009-07-19  Jim Meyering  <meyering@redhat.com>
29832
29833         fts: avoid false-positive cycle-detection
29834         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29835         for each new command line argument.
29836
29837 2009-07-19  Bruno Haible  <bruno@clisp.org>
29838
29839         Fix build error on mingw with the modules sys_select and unistd.
29840         * modules/acl-tests (Depends-on): Add close.
29841         * modules/binary-io-tests (Depends-on): Likewise.
29842         * modules/closein-tests (Depends-on): Likewise.
29843         * modules/flock-tests (Depends-on): Likewise.
29844         * modules/fsync-tests (Depends-on): Likewise.
29845         * modules/lseek-tests (Depends-on): Likewise.
29846         * modules/pipe-tests (Depends-on): Likewise.
29847         * modules/posix_spawn-tests (Depends-on): Likewise.
29848         * modules/posix_spawnp-tests (Depends-on): Likewise.
29849         * modules/stat-time-tests (Depends-on): Likewise.
29850         * modules/yesno-tests (Depends-on): Likewise.
29851
29852 2009-07-19  Bruno Haible  <bruno@clisp.org>
29853
29854         Unify conditionals.
29855         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29856         macros, not at the compiler macros.
29857         * lib/pipe.c: Likewise.
29858         * lib/execute.c: Likewise.
29859         * lib/spawni.c: Likewise.
29860
29861 2009-07-19  Bruno Haible  <bruno@clisp.org>
29862
29863         Fix handling of closed stdin/stdout/stderr on mingw.
29864         * lib/w32spawn.h: Include unistd.h.
29865         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29866         file descriptor with O_NOINHERIT flag.
29867         (fd_safer_noinherit): New function, based on fd-safer.c.
29868         (dup_safer_noinherit): New function, based on dup-safer.c.
29869         (undup_safer_noinherit): New function.
29870         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29871         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29872         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29873         instead of fd_safer.
29874         * tests/test-pipe.c: Include <windows.h>.
29875         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29876         result.
29877
29878         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29879         from main.
29880         (test_pipe): Pass an extra argument for disambiguation.
29881         (main): Invoke parent_main or child_main.
29882
29883         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29884         consistently.
29885
29886 2009-07-18  Eric Blake  <ebb9@byu.net>
29887
29888         test-pipe: fix mingw build
29889         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29890
29891 2009-07-18  Bruno Haible  <bruno@clisp.org>
29892
29893         * modules/pipe-tests (Makefile.am): Fix typo.
29894
29895 2009-07-18  Eric Blake  <ebb9@byu.net>
29896
29897         error: fix mingw build
29898         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29899         Reported by Bruno Haible.
29900
29901         error: avoid undefined use of stdout
29902         * lib/error.c (error, error_at_line): Check that fd 1 is open
29903         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29904         is handling faults and the close_stdout module wants to report the
29905         detection of closed stdout as an error.
29906
29907 2009-07-17  Eric Blake  <ebb9@byu.net>
29908
29909         pipe: be robust in face of closed fds
29910         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29911         should cause child to misbehave.
29912         * modules/pipe-tests: New module.
29913         * tests/test-pipe.c: New file.
29914         * tests/test-pipe.sh: New file.
29915         Reported by Akim Demaille.
29916
29917 2009-07-14  Bruno Haible  <bruno@clisp.org>
29918
29919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29920         Reported by anonymous kc.
29921
29922 2009-07-07  Jim Meyering  <meyering@redhat.com>
29923
29924         maint.mk: don't look for translatable strings in *.m4 or *.mk
29925         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29926         when searching for translatable strings.
29927
29928 2009-07-05  Jim Meyering  <meyering@redhat.com>
29929
29930         remove superfluous parentheses in STREQ definition
29931         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29932         * lib/getugroups.c (STREQ): Likewise.
29933         * lib/fnmatch.c (STREQ): Likewise.
29934         Spotted by Bruno Haible.
29935
29936 2009-07-04  Jim Meyering  <meyering@redhat.com>
29937
29938         argv-iter: new module
29939         * MODULES.html.sh: Add argv-iter.
29940         * lib/argv-iter.c, lib/argv-iter.h: New files.
29941         * modules/argv-iter: New file.
29942         * modules/argv-iter-tests: New file.
29943         * tests/test-argv-iter.c: Test it.
29944
29945 2009-07-04  Bruno Haible  <bruno@clisp.org>
29946
29947         Fix assertion.
29948         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29949         contains more exact copies of a given entry than file2, leave the extra
29950         copies unpaired rather than aborting.
29951         Reported by Eric Blake.
29952
29953 2009-07-02  Bruno Haible  <bruno@clisp.org>
29954
29955         Speedup git-merge-changelog for git cherry-pick.
29956         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29957         (entries_mapping_get): New function, extracted from compute_mapping.
29958         (entries_mapping_reverse_get): New function.
29959         (compute_mapping): Add a 'full' argument. Return the result in a
29960         'struct entries_mapping'.
29961         (main): Update. Access the mappings through entries_mapping_get.
29962         Reported by Eric Blake.
29963
29964 2009-07-02  Bruno Haible  <bruno@clisp.org>
29965
29966         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29967         best_i.
29968
29969 2009-07-02  Bruno Haible  <bruno@clisp.org>
29970
29971         Speed up approximate search for matching ChangeLog entries.
29972         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29973         argument. Call fstrcmp_bounded instead of fstrcmp.
29974         (compute_mapping, try_split_merged_entry, main): Update callers.
29975
29976 2009-07-02  Bruno Haible  <bruno@clisp.org>
29977
29978         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29979
29980 2009-06-30  Bruno Haible  <bruno@clisp.org>
29981
29982         Reduce the number of uc_is_cased calls.
29983         * lib/unicase.h (casing_suffix_context_t): Add
29984         'first_char_except_ignorable' field.
29985         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29986         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29987         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29988         Update initializer.
29989         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29990         case-ignorable characters.
29991         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29992         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29993         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29994         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29995         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29996
29997 2009-06-30  Bruno Haible  <bruno@clisp.org>
29998
29999         Tests for module 'unicase/ignorable'.
30000         * modules/unicase/ignorable-tests: New file.
30001         * tests/unicase/test-ignorable.c: New file, generated by
30002         gen-uni-tables.
30003
30004         Tests for module 'unicase/cased'.
30005         * modules/unicase/cased-tests: New file.
30006         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30007         * tests/unicase/test-predicate-part1.h: New file, derived from
30008         tests/unictype/test-predicate-part1.h.
30009         * tests/unicase/test-predicate-part2.h: New file, same as
30010         tests/unictype/test-predicate-part2.h.
30011
30012         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30013         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30014         (output_casing_properties): New function.
30015         (main): Call it.
30016         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30017         * lib/unicase/cased.c: Include unictype/bitmap.h.
30018         (uc_is_cased): Define through a bitmap lookup.
30019         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30020         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30021         (uc_is_case_ignorable): Define through a bitmap lookup.
30022         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30023         lib/unictype/bitmap.h.
30024         (Depends-on): Add inline. Clean up.
30025         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30026         lib/unictype/bitmap.h.
30027         (Depends-on): Add inline. Clean up.
30028         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30029         recognition.
30030         * tests/unicase/test-u16-tolower.c (main): Likewise.
30031         * tests/unicase/test-u32-tolower.c (main): Likewise.
30032
30033 2009-06-30  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30036         * lib/unicase/u16-casemap.c: Likewise.
30037         * lib/unicase/u32-casemap.c: Likewise.
30038
30039 2009-06-29  Bruno Haible  <bruno@clisp.org>
30040
30041         Define u32_casefold as a wrapper around u32_ct_casefold.
30042         * lib/unicase/u32-casefold.c: Update.
30043         * modules/unicase/u32-casefold (Depends-on): Add
30044         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30045         unicase/empty-suffix-context. Clean up.
30046
30047         Define u16_casefold as a wrapper around u16_ct_casefold.
30048         * lib/unicase/u16-casefold.c: Update.
30049         * modules/unicase/u16-casefold (Depends-on): Add
30050         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30051         unicase/empty-suffix-context. Clean up.
30052
30053         Define u8_casefold as a wrapper around u8_ct_casefold.
30054         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30055         * lib/unicase/u8-casefold.c: Update.
30056         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30057         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30058
30059         Define u32_totitle as a wrapper around u32_ct_totitle.
30060         * lib/unicase/u32-totitle.c: Update.
30061         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30062         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30063
30064         Define u16_totitle as a wrapper around u16_ct_totitle.
30065         * lib/unicase/u16-totitle.c: Update.
30066         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30067         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30068
30069         Define u8_totitle as a wrapper around u8_ct_totitle.
30070         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30071         functions.
30072         (FUNC): Delegate to U_CT_TOTITLE.
30073         * lib/unicase/u8-totitle.c: Update.
30074         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30075         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30076
30077         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30078         invocation.
30079         * modules/unicase/u32-tolower (Depends-on): Add
30080         unicase/empty-prefix-context, unicase/empty-suffix-context.
30081
30082         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30083         invocation.
30084         * modules/unicase/u16-tolower (Depends-on): Add
30085         unicase/empty-prefix-context, unicase/empty-suffix-context.
30086
30087         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30088         * modules/unicase/u8-tolower (Depends-on): Add
30089         unicase/empty-prefix-context, unicase/empty-suffix-context.
30090
30091         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30092         invocation.
30093         * modules/unicase/u32-toupper (Depends-on): Add
30094         unicase/empty-prefix-context, unicase/empty-suffix-context.
30095
30096         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30097         invocation.
30098         * modules/unicase/u16-toupper (Depends-on): Add
30099         unicase/empty-prefix-context, unicase/empty-suffix-context.
30100
30101         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30102         * modules/unicase/u8-toupper (Depends-on): Add
30103         unicase/empty-prefix-context, unicase/empty-suffix-context.
30104
30105         New module 'unicase/u32-ct-casefold'.
30106         * lib/unicase/u32-ct-casefold.c: New file.
30107         * modules/unicase/u32-ct-casefold: New file.
30108
30109         New module 'unicase/u16-ct-casefold'.
30110         * lib/unicase/u16-ct-casefold.c: New file.
30111         * modules/unicase/u16-ct-casefold: New file.
30112
30113         New module 'unicase/u8-ct-casefold'.
30114         * lib/unicase/u8-ct-casefold.c: New file.
30115         * lib/unicase/u-ct-casefold.h: New file, derived from
30116         lib/unicase/u-casefold.h.
30117         * modules/unicase/u8-ct-casefold: New file.
30118
30119         New module 'unicase/u32-ct-totitle'.
30120         * lib/unicase/u32-ct-totitle.c: New file.
30121         * modules/unicase/u32-ct-totitle: New file.
30122
30123         New module 'unicase/u16-ct-totitle'.
30124         * lib/unicase/u16-ct-totitle.c: New file.
30125         * modules/unicase/u16-ct-totitle: New file.
30126
30127         New module 'unicase/u8-ct-totitle'.
30128         * lib/unicase/u8-ct-totitle.c: New file.
30129         * lib/unicase/u-ct-totitle.h: New file, derived from
30130         lib/unicase/u-totitle.h.
30131         * modules/unicase/u8-ct-totitle: New file.
30132
30133         New module 'unicase/u32-ct-tolower'.
30134         * lib/unicase/u32-ct-tolower.c: New file.
30135         * modules/unicase/u32-ct-tolower: New file.
30136
30137         New module 'unicase/u16-ct-tolower'.
30138         * lib/unicase/u16-ct-tolower.c: New file.
30139         * modules/unicase/u16-ct-tolower: New file.
30140
30141         New module 'unicase/u8-ct-tolower'.
30142         * lib/unicase/u8-ct-tolower.c: New file.
30143         * modules/unicase/u8-ct-tolower: New file.
30144
30145         New module 'unicase/u32-ct-toupper'.
30146         * lib/unicase/u32-ct-toupper.c: New file.
30147         * modules/unicase/u32-ct-toupper: New file.
30148
30149         New module 'unicase/u16-ct-toupper'.
30150         * lib/unicase/u16-ct-toupper.c: New file.
30151         * modules/unicase/u16-ct-toupper: New file.
30152
30153         New module 'unicase/u8-ct-toupper'.
30154         * lib/unicase/u8-ct-toupper.c: New file.
30155         * modules/unicase/u8-ct-toupper: New file.
30156
30157         Add context arguments to u*_casemap functions.
30158         * lib/unicase/unicasemap.h: Include unicase.h.
30159         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30160         suffix_context arguments.
30161         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30162         functions.
30163         (FUNC): Add prefix_context and suffix_context arguments. Use
30164         uc_is_cased and uc_is_case_ignorable.
30165         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30166         * lib/unicase/u16-casemap.c: Likewise.
30167         * lib/unicase/u32-casemap.c: Likewise.
30168         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30169         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30170         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30171         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30172         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30173         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30174
30175         New module 'unicase/u32-suffix-context'.
30176         * lib/unicase/u32-suffix-context.c: New file.
30177         * modules/unicase/u32-suffix-context: New file.
30178
30179         New module 'unicase/u16-suffix-context'.
30180         * lib/unicase/u16-suffix-context.c: New file.
30181         * modules/unicase/u16-suffix-context: New file.
30182
30183         New module 'unicase/u8-suffix-context'.
30184         * lib/unicase/u8-suffix-context.c: New file.
30185         * lib/unicase/u-suffix-context.h: New file.
30186         * modules/unicase/u8-suffix-context: New file.
30187
30188         New module 'unicase/empty-suffix-context'.
30189         * lib/unicase/empty-suffix-context.c: New file.
30190         * modules/unicase/empty-suffix-context: New file.
30191
30192         New module 'unicase/u32-prefix-context'.
30193         * lib/unicase/u32-prefix-context.c: New file.
30194         * modules/unicase/u32-prefix-context: New file.
30195
30196         New module 'unicase/u16-prefix-context'.
30197         * lib/unicase/u16-prefix-context.c: New file.
30198         * modules/unicase/u16-prefix-context: New file.
30199
30200         New module 'unicase/u8-prefix-context'.
30201         * lib/unicase/u8-prefix-context.c: New file.
30202         * lib/unicase/u-prefix-context.h: New file.
30203         * lib/unicase/context.h: New file.
30204         * modules/unicase/u8-prefix-context: New file.
30205
30206         New module 'unicase/empty-prefix-context'.
30207         * lib/unicase/empty-prefix-context.c: New file.
30208         * modules/unicase/empty-prefix-context: New file.
30209
30210         New module 'unicase/ignorable'.
30211         * lib/unicase/ignorable.c: New file.
30212         * modules/unicase/ignorable: New file.
30213
30214         New module 'unicase/cased'.
30215         * lib/unicase/caseprop.h: New file.
30216         * lib/unicase/cased.c: New file.
30217         * modules/unicase/cased: New file.
30218
30219         New functions for case mapping of substrings.
30220         * lib/unicase.h (casing_prefix_context_t): New type.
30221         (unicase_empty_prefix_context): New variable.
30222         (u8_casing_prefix_context, u16_casing_prefix_context,
30223         u32_casing_prefix_context, u8_casing_prefixes_context,
30224         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30225         declarations.
30226         (casing_suffix_context_t): New type.
30227         (unicase_empty_suffix_context): New variable.
30228         (u8_casing_suffix_context, u16_casing_suffix_context,
30229         u32_casing_suffix_context, u8_casing_suffixes_context,
30230         u16_casing_suffixes_context, u32_casing_suffixes_context,
30231         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30232         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30233         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30234         declarations.
30235
30236 2009-06-28  Jim Meyering  <meyering@redhat.com>
30237
30238         boostrap: indent only with spaces
30239         * build-aux/bootstrap: Indent only with spaces, never TABs.
30240
30241         bootstrap: split long lines
30242         * build-aux/bootstrap: Keep line length < 80.
30243
30244         bootstrap: sync from coreutils
30245         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30246         just as autoreconf does.  Verify a list of prerequisite
30247         package-name,version-number pairs if defined in bootstrap.conf.
30248         Refer to README-prereq, if prerequisites are not satisfied.
30249
30250 2009-06-27  Eric Blake  <ebb9@byu.net>
30251
30252         tests: add test for bogus NULL definition
30253         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30254         * tests/test-stdlib.c: Likewise.
30255         * tests/test-string.c: Likewise.
30256         * tests/test-locale.c: Likewise.
30257         * tests/test-unistd.c: Likewise.
30258         * modules/stdio-tests (Depends-on): Add verify.
30259         * modules/stdlib-tests (Depends-on): Likewise.
30260         * modules/string-tests (Depends-on): Likewise.
30261         * modules/locale-tests (Depends-on): Likewise.
30262         * modules/unistd-tests (Depends-on): Likewise.
30263
30264 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30265
30266         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30267         self-explaining comment.
30268         * m4/selinux-selinux-h: Update serial.
30269         (gl_LIBSELINUX): New macro, adding a warning for missing development
30270         packages to code extracted from...
30271         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30272         Add warning for missing development packages here, too.
30273
30274 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30275
30276         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30277
30278 2009-06-25  Eric Blake  <ebb9@byu.net>
30279
30280         version-etc: fix regression
30281         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30282         gcc.
30283         (version_etc): Use it, to catch bugs with trailing NULL.
30284         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30285         (version_etc_va): Fix logic bug.
30286         * modules/version-etc-tests: Add test.
30287         * tests/test-version-etc.c: New file.
30288         * tests/test-version-etc.sh: Likewise.
30289
30290 2009-06-25  Sam Steingold  <sds@gnu.org>
30291
30292         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30293         mbtowc declaration.
30294
30295 2009-06-25  Eric Blake  <ebb9@byu.net>
30296
30297         fpurge: migrate into <stdio.h>
30298         * lib/fpurge.h: Delete...
30299         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30300         * lib/fpurge.c (fpurge): Change declaring header.
30301         * modules/fpurge (Files): Drop deleted file.
30302         (Depends-on): Add stdio.
30303         (configure.ac): Set witness.
30304         * modules/stdio (Makefile.am): Support fpurge macros.
30305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30306         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30307         * lib/fflush.c: Update client.
30308         * tests/test-fpurge.c: Likewise.
30309         * NEWS: Mention the change.
30310
30311 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30312
30313         * lib/argp-version-etc.c (program_authors): Add const
30314         qualifier.
30315         * lib/version-etc.c: Fix typos in the comments.
30316         * modules/argp-version-etc: Depends on version-etc.
30317
30318 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30319
30320         argp-version-etc: new module.
30321
30322         * lib/argp-version-etc.c: New file.
30323         * lib/argp-version-etc.h: New file.
30324         * modules/argp-version-etc: New file.
30325         * modules/argp-version-etc-tests: New file.
30326         * tests/test-argp-version-etc.c: New test.
30327         * tests/test-argp-version-etc-1.sh: New test.
30328
30329 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30330
30331         Provide additional interfaces and documentation for version-etc
30332         module.
30333
30334         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30335         interfaces.
30336         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30337         prototypes.
30338
30339 2009-06-24  Bruno Haible  <bruno@clisp.org>
30340
30341         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30342         HAVE_LIB${NAME} macro.
30343         Reported by Sam Steingold <sds@gnu.org>.
30344
30345 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30346
30347         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30348         needed.
30349
30350 2009-06-21  Bruno Haible  <bruno@clisp.org>
30351
30352         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30353         work.
30354         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30355         together with LIB${NAME}, LTLIB${NAME}.
30356         Reported by Sam Steingold <sds@gnu.org>.
30357
30358 2009-06-20  Jim Meyering  <meyering@redhat.com>
30359
30360         tests: make sc_require_test_exit_idiom more generic
30361         * top/maint.mk (Exit_witness_file): New overridable variable.
30362         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30363         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30364
30365 2009-06-19  Jim Meyering  <meyering@redhat.com>
30366
30367         hash: reverse order of src/dst parameters in an internal interface
30368         * lib/hash.c (transfer_entries): Reverse order of parameters to
30369         put DST before SRC.  Adjust callers.
30370
30371         tests: test-hash: avoid wholesale duplication
30372         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30373         Instead, use a loop and add a single conditional.
30374
30375         tests: test-hash: allow seed selection via a command line argument
30376         * tests/test-hash.c (get_seed): New function.
30377         (main): Use it.
30378
30379 2009-06-19  Eric Blake  <ebb9@byu.net>
30380
30381         hash: avoid memory leak on allocation failure
30382         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30383         failure.  Factor repeated algorithm...
30384         (transfer_entries): ...into new helper routine.
30385         (hash_delete): React to hash_rehash return value.
30386
30387         hash: reduce memory pressure in hash_rehash no-op case
30388         * lib/hash.c (next_prime): Avoid overflow.
30389         (hash_initialize): Factor bucket size computation...
30390         (compute_bucket_size): ...into new helper function.
30391         (hash_rehash): Use new function and open coding to reduce memory
30392         pressure, and avoid a memory leak in USE_OBSTACK code.
30393         Reported by Jim Meyering.
30394
30395 2009-06-18  Eric Blake  <ebb9@byu.net>
30396
30397         hash: make rotation more obvious
30398         * modules/hash (Depends-on): Add bitrotate and stdint.
30399         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30400         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30401         (SIZE_MAX): Rely on headers for definition.
30402         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30403         (raw_hasher): Use rotr_sz.
30404         Suggested by Jim Meyering.
30405
30406         hash: fix memory leak in last patch
30407         * lib/hash.c (hash_rehash): Avoid memory leak.
30408
30409         hash: avoid no-op rehashing
30410         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30411
30412         hash: provide default callback functions
30413         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30414         (hash_initialize): Use them as defaults.
30415         * tests/test-hash.c (main): Test this.
30416
30417         hash: minor optimization
30418         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30419         when possible.
30420         (hash_initialize): Document this promise.
30421         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30422         * tests/test-hash.c (hash_compare_strings): Test this.
30423
30424 2009-06-18  Bruno Haible  <bruno@clisp.org>
30425
30426         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30427         going to be replaced anyway.
30428
30429 2009-06-18  Bruno Haible  <bruno@clisp.org>
30430
30431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30432         in one place.
30433         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30434         be replaced anyway.
30435
30436 2009-06-18  Eric Blake  <ebb9@byu.net>
30437
30438         hash: check for resize before insertion
30439         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30440         threshold before insertion, so that a pathological hash_rehash
30441         that fills every bucket can still trigger another rehash.
30442
30443 2009-06-18  Jim Meyering  <meyering@redhat.com>
30444
30445         hash-tests: add a loop around the small tests
30446         * tests/test-hash.c (main): Repeat small tests with selected
30447         small initial table sizes.
30448
30449 2009-06-17  Eric Blake  <ebb9@byu.net>
30450
30451         hash: minor cleanups
30452         * lib/hash.h (hash_entry): Make opaque, by moving...
30453         * lib/hash.c (hash_entry): ...here.
30454         (hash_insert): Clarify restrictions on what can be inserted.
30455         (hash_get_next): Clarify when it is safe to remove an element
30456         during traversal.
30457         (check_tuning): Skip verification when tuning is known safe.
30458         (hash_initialize): Clarify restrictions on tuning.
30459
30460 2009-06-17  Jim Meyering  <jim@meyering.net>
30461         and Eric Blake  <ebb9@byu.net>
30462
30463         hash-tests: new module
30464         * modules/hash-tests: New file.
30465         * tests/test-hash.c: New file.
30466
30467 2009-06-17  Eric Blake  <ebb9@byu.net>
30468
30469         strstr-simple: document new module
30470         * MODULES.html.sh: Document new module.
30471
30472         strstr, strcasestr: replace on platforms with broken memchr
30473         * modules/strstr: Split into...
30474         * modules/strstr-simple: ...new module that does not care about
30475         performance, but does care about glibc bug.
30476         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30477         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30478         if platform memchr is broken, per Debian bug 521737.
30479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30480         memchr.
30481         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30482         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30483         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30484         * modules/mountlist (Depends-on): Add strstr-simple.
30485         * modules/gen-uni-tables (Depends-on): Likewise.
30486         * modules/argz (Depends-on): Add strstr.
30487
30488 2009-06-17  Bruno Haible  <bruno@clisp.org>
30489
30490         * modules/posix_spawn-internal (Depends-on): Add errno.
30491
30492 2009-06-17  Bruno Haible  <bruno@clisp.org>
30493
30494         Define missing ESTALE on Interix 3.5.
30495         * lib/errno.in.h (ESTALE): Assign a value if missing.
30496         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30497         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30498         missing.
30499         * doc/posix-headers/errno.texi: Mention the Interix bug.
30500         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30501
30502 2009-06-15  Eric Blake  <ebb9@byu.net>
30503
30504         memchr, memchr2: add valgrind exception
30505         * lib/memchr.valgrind: New file.
30506         * lib/memchr2.valgrind: New file.
30507         * modules/memchr (Files): Distribute valgrind file.
30508         * modules/memchr2 (Files): Likewise.
30509
30510         docs: memchr is no longer obsolete
30511         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30512         * lib/string.in.h (memchr): Simplify logic.
30513
30514 2009-06-14  Jim Meyering  <meyering@redhat.com>
30515
30516         link-follow: fix the "checking..." message to not mention trailing slash
30517         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30518         never considered trailing slashes.
30519
30520 2009-06-14  Bruno Haible  <bruno@clisp.org>
30521
30522         * m4/memchr.m4: Mention also the bug on IA-64.
30523         * doc/posix-functions/memchr.texi: Likewise.
30524
30525 2009-06-12  Eric Blake  <ebb9@byu.net>
30526
30527         memchr: detect broken x86_64 and alpha implementations
30528         * modules/memchr-tests (Depends-on): Move mmap detection...
30529         * modules/memchr (Depends-on): ...here.
30530         (configure.ac): Set indicator.
30531         * lib/string.in.h (memchr): Declare replacement.
30532         * modules/string (Makefile.am): Trigger replacement.
30533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30534         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30535         bugs.
30536         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30537         * modules/getpagesize (License): Relax license.
30538
30539 2009-06-11  Bruno Haible  <bruno@clisp.org>
30540
30541         * lib/idpriv.h: Add more references.
30542
30543 2009-06-08  Bruno Haible  <bruno@clisp.org>
30544
30545         Tests for module 'idpriv-droptemp'.
30546         * modules/idpriv-droptemp-tests: New file.
30547         * tests/test-idpriv-droptemp.sh: New file.
30548         * tests/test-idpriv-droptemp.su.sh: New file.
30549         * tests/test-idpriv-droptemp.c: New file.
30550
30551         New module 'idpriv-droptemp'.
30552         * lib/idpriv-droptemp.c: New file.
30553         * modules/idpriv-droptemp: New file.
30554
30555 2009-06-08  Bruno Haible  <bruno@clisp.org>
30556
30557         Tests for module 'idpriv-drop'.
30558         * modules/idpriv-drop-tests: New file.
30559         * tests/test-idpriv-drop.sh: New file.
30560         * tests/test-idpriv-drop.su.sh: New file.
30561         * tests/test-idpriv-drop.c: New file.
30562
30563         New module 'idpriv-drop'.
30564         * lib/idpriv.h: New file.
30565         * lib-idpriv-drop.c: New file.
30566         * m4/idpriv.m4: New file.
30567         * modules/idpriv-drop: New file.
30568
30569 2009-06-08  Bruno Haible  <bruno@clisp.org>
30570
30571         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30572         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30573         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30574         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30575         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30576         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30577         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30578
30579 2009-06-08  Eric Blake  <ebb9@byu.net>
30580
30581         test-strstr: use memory fence, when possible
30582         * tests/test-strstr.c (main): Use memory fence, in order to be
30583         more likely to trigger Debian bug 521737.
30584         * modules/strstr-tests (Files): Pull in additional files.
30585
30586         memchr: no longer obsolete, for wider field testing
30587         * modules/memchr (Status, Notice): Delete, this module is no
30588         longer obsolete.
30589         * modules/vasnprintf (Depends-on): Add memchr.
30590
30591 2009-06-07  Jim Meyering  <meyering@redhat.com>
30592
30593         hash: declare some functions with the warn_unused_result attribute
30594         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30595
30596 2009-06-07  Bruno Haible  <bruno@clisp.org>
30597
30598         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30599         Reported by Eric Blake.
30600
30601 2009-06-06  Eric Blake  <ebb9@byu.net>
30602
30603         test-alignof: fix typo with long double
30604         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30605         compiler error.
30606
30607 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30608
30609         Escape non-texinfo { and }s.
30610         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30611         markup error.
30612
30613 2009-06-04  Jim Meyering  <meyering@redhat.com>
30614
30615         gitlog-to-changelog: don't infloop on an empty commit log
30616         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30617         Reported by Boris Petersen <transacid@centerim.org>.
30618
30619 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30620
30621         version-etc: extend for packagers
30622         Add three new configure options, intended for packagers:
30623           --with-packager="packager name"
30624           --with-packager-version="packager-specific version"
30625           --with-packager-bug-reports="packager bug reporting"
30626         An example with coreutils:
30627           $ ./configure \
30628             --with-packager=Gentoo \
30629             --with-packager-bug-report=http://bugs.gentoo.org/ \
30630             --with-packager-version="patchset 1.6"
30631           $ ./src/ls --version | head -n2
30632           ls (GNU coreutils) 7.1-dirty
30633           Packaged by Gentoo (patchset 1.6)
30634         Note that the bug reporting info via --help doesn't show up because
30635         coreutils uses its own custom emit_bug_reporting_address() implementation
30636         in src/system.h.  If it didn't, it'd look like:
30637           $ ./src/ls --help | tail -n4
30638           Report bugs to <bug-coreutils@gnu.org>.
30639           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30640           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30641           General help using GNU software: <http://www.gnu.org/gethelp/>.
30642         * lib/version-etc.c: Print new information, if provided.
30643         * m4/version-etc.m4: New file.
30644         * modules/version-etc (Files): Add m4/version-etc.m4.
30645         (configure.ac): Add gl_VERSION_ETC.
30646
30647 2009-05-31  Bruno Haible  <bruno@clisp.org>
30648
30649         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30650         and 'int64_t'.
30651         * modules/alignof-tests (Dependencies): Add stdint.
30652         Reported by Eric Blake.
30653
30654 2009-05-31  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30657         restriction due to compiler bugs.
30658         Reported by Eric Blake.
30659
30660 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30661             Bruno Haible  <bruno@clisp.org>
30662
30663         Fix test-alignof failure.
30664         * lib/alignof.h (alignof_slot): New macro.
30665         (alignof_type): New macro, with the same semantics as the previous
30666         'alignof'.
30667         (alignof): Alias to alignof_slot.
30668         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30669         check that the results are usable as constant expressions.
30670
30671 2009-05-31  Bruno Haible  <bruno@clisp.org>
30672
30673         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30674         * tests/test-memchr.c (main): Check that memchr does not read past the
30675         first occurrence of the byte.
30676         * tests/test-strstr.c (main): Update comment.
30677         Suggested by Eric Blake.
30678
30679 2009-05-30  Bruno Haible  <bruno@clisp.org>
30680
30681         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30682         detail how to use dumpbin.
30683         Reported by David Byron <dbyron@dbyron.com>.
30684
30685 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30686
30687         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30688
30689 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30690
30691         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30692
30693 2009-05-28  Bruno Haible  <bruno@clisp.org>
30694
30695         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30696         build-aux/ files.
30697
30698 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30699
30700         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30701
30702 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30703
30704         * gnulib-tool (sed_transform_main_lib_file)
30705         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30706         regexps.
30707
30708 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30709
30710         * tests/test-strstr.c: Add another self-test.
30711         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30712         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30713
30714 2009-05-23  Bruno Haible  <bruno@clisp.org>
30715
30716         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30717         change.
30718
30719 2009-05-21  Bruno Haible  <bruno@clisp.org>
30720
30721         Simplify use of mode_t varargs.
30722         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30723         uses 'mode_t' or 'int'.
30724         * lib/openat.c (openat): Likewise.
30725         * lib/open-safer.c (open_safer): Likewise.
30726         * m4/mode_t.m4: New file.
30727         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30728         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30729         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30730         * modules/open (Files): Add m4/mode_t.m4.
30731         * modules/openat (Files): Likewise.
30732         * modules/fcntl-safer (Files): Likewise.
30733         Suggested by Eric Blake.
30734
30735 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30736
30737         * doc/glibc-functions/fallocate.texi: New file.
30738         * doc/gnulib.texi: Include it.
30739
30740 2009-05-21  Eric Blake  <ebb9@byu.net>
30741             Bruno Haible  <bruno@clisp.org>
30742
30743         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30744         invocations.
30745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30746
30747 2009-05-21  Eric Blake  <ebb9@byu.net>
30748             Bruno Haible  <bruno@clisp.org>
30749
30750         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30751         include_next. Fix of 2008-11-20 commit.
30752         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30753         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30754         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30755         NEXT_MATH_H.
30756         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30757         instead of NEXT_MATH_H.
30758
30759 2009-05-21  Bruno Haible  <bruno@clisp.org>
30760
30761         Avoid redefinition warnings for SIZE_MAX.
30762         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30763         Reported by Simon Josefsson.
30764
30765 2009-05-21  Bruno Haible  <bruno@clisp.org>
30766
30767         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30768         AC_CACHE_VAL.
30769
30770 2009-05-20  Bruno Haible  <bruno@clisp.org>
30771
30772         Make zeroptr.h work on mingw.
30773         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30774         mprotect.
30775         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30776         * modules/memchr2-tests (configure.ac): Likewise.
30777         * modules/memcmp-tests (configure.ac): Likewise.
30778         * modules/memmem-tests (configure.ac): Likewise.
30779         * modules/memrchr-tests (configure.ac): Likewise.
30780         Reported by Simon Josefsson.
30781
30782 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30783
30784         * tests/test-glob.c: Include string.h for strcmp prototype.
30785
30786 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30787
30788         * modules/getdelim (Depends-on): Add explicit stdint, although it
30789         was implicitly already pulled in via realloc-posix.
30790         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30791
30792 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30793
30794         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30795         G. Christensen" <tgc@jupiterrise.com>.
30796         * m4/sys_socket_h.m4: Check for sa_family_t.
30797         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30798         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30799         * tests/test-sys_socket.c: Check that sa_family_t works.
30800
30801 2009-05-18  Eric Blake  <ebb9@byu.net>
30802
30803         maint.mk: allow gnulib_dir in VPATH build
30804         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30805
30806 2009-05-15  Jim Meyering  <meyering@redhat.com>
30807
30808         maint.mk: Give gnulib_dir a default definition.
30809         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30810         Thus, most packages no longer need to specify this variable in cfg.mk
30811
30812 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30813
30814         rename.m4: fix typos that would make non-mingw cross-configure fail
30815         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30816
30817 2009-05-13  Eric Blake  <ebb9@byu.net>
30818
30819         mmap-anon: avoid out-of-order autoconf expansion
30820         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30821         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30822         * modules/memchr-tests (Depends-on): Add extensions.
30823         * modules/memchr2-tests (Depends-on): Add extensions.
30824         * modules/memcmp-tests (Depends-on): Add extensions.
30825         * modules/memmem-tests (Depends-on): Add extensions.
30826         * modules/memrchr-tests (Depends-on): Add extensions.
30827
30828 2009-05-13  Bruno Haible  <bruno@clisp.org>
30829
30830         Make some tests ISO C 99 compliant.
30831         * tests/zerosize-ptr.h: New file.
30832         * tests/test-memchr.c: Include zerosize-ptr.h.
30833         (main): Use a zero-size object pointer instead of NULL.
30834         * tests/test-memchr2.c: Include zerosize-ptr.h.
30835         (main): Use a zero-size object pointer instead of NULL.
30836         * tests/test-memcmp.c: Include zerosize-ptr.h.
30837         (main): Use a zero-size object pointer instead of NULL.
30838         * tests/test-memmem.c: Include zerosize-ptr.h.
30839         (main): Use a zero-size object pointer instead of NULL.
30840         * tests/test-memrchr.c: Include zerosize-ptr.h.
30841         (main): Use a zero-size object pointer instead of NULL.
30842         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30843         m4/mmap-anon.m4.
30844         (Depends-on): Add getpagesize.
30845         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30846         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30847         m4/mmap-anon.m4.
30848         (Depends-on): Add getpagesize.
30849         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30850         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30851         m4/mmap-anon.m4.
30852         (Depends-on): Add getpagesize.
30853         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30854         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30855         m4/mmap-anon.m4.
30856         (Depends-on): Add getpagesize.
30857         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30858         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30859         m4/mmap-anon.m4.
30860         (Depends-on): Add getpagesize.
30861         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30862
30863 2009-05-12  Bruno Haible  <bruno@clisp.org>
30864
30865         Tests for module 'alignof'.
30866         * modules/alignof-tests: New file.
30867         * tests/test-alignof.c: New file.
30868
30869 2009-05-12  Bruno Haible  <bruno@clisp.org>
30870
30871         Fix alignof macro.
30872         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30873         vendor compilers that are always correct.
30874
30875 2009-05-12  Bruno Haible  <bruno@clisp.org>
30876
30877         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30878         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30879         not whether its fully works.
30880
30881 2009-05-12  Bruno Haible  <bruno@clisp.org>
30882
30883         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30884
30885 2009-05-12  Jim Meyering  <meyering@redhat.com>
30886
30887         * top/maint.mk: Adjust backslash alignment.
30888
30889 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30890
30891         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30892
30893 2009-05-11  Eric Blake  <ebb9@byu.net>
30894
30895         argp: avoid undefined behavior
30896         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30897         macros.
30898
30899 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30900
30901         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30902         user.name to prevent git commit from complaining.
30903
30904 2009-05-10  Bruno Haible  <bruno@clisp.org>
30905
30906         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30907         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30908         it rewrites every file name only once.
30909         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30910
30911 2009-05-08  Bruno Haible  <bruno@clisp.org>
30912
30913         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30914         instead of 'max'.
30915
30916 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30917
30918         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30919         sockaddr_storage test.
30920
30921 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30922
30923         * modules/sys_socket (Makefile.am): Substitute
30924         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30925         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30926         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30927         * tests/test-sys_socket.c: Check sockaddr_storage.
30928
30929 2009-05-08  Bruno Haible  <bruno@clisp.org>
30930
30931         New module 'alignof'.
30932         * lib/alignof.h: New file.
30933         * modules/alignof: New file.
30934
30935 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30936             Bruno Haible  <bruno@clisp.org>
30937
30938         Fix test-file-has-acl on FreeBSD.
30939         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30940         mask is implicitly added.
30941         * tests/test-file-has-acl.c: Include <signal.h>.
30942         (main): Terminate the test after 5 seconds.
30943         * modules/acl-tests (configure.ac): Check for alarm function.
30944
30945 2009-05-04  Bruno Haible  <bruno@clisp.org>
30946
30947         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30948         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30949         * modules/errno (configure.ac): Drop AC_REQUIRE.
30950         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30951         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30952
30953 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30954
30955         * modules/glob-tests: New module.
30956         * tests/test-glob.c: Add.
30957
30958 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30959
30960         * modules/fnmatch-tests: New module.
30961         * tests/test-fnmatch.c: Add.
30962
30963 2009-05-04  Eric Blake  <ebb9@byu.net>
30964
30965         maint: make the new no-submodule-changes rule VPATH-safe
30966         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30967
30968 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30969             Bruno Haible  <bruno@clisp.org>
30970
30971         acl: Fix infinite loop on FreeBSD.
30972         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30973         of return value from acl_get_entry.
30974         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30975         Likewise.
30976
30977 2009-05-03  Bruno Haible  <bruno@clisp.org>
30978
30979         * lib/acl-internal.h (acl_entries): Clarify return value.
30980         * lib/acl_entries.c (acl_entries): Likewise.
30981
30982 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30983
30984         Bug fix in acl module.
30985         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30986
30987 2009-05-03  Bruno Haible  <bruno@clisp.org>
30988
30989         Create gperf-generated file in the source dir, not in the build dir.
30990         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30991         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30992         * modules/unicase/locale-language (unicase/locale-languages.h):
30993         Likewise.
30994         * modules/unicase/special-casing (unicase/special-casing-table.h):
30995         Likewise.
30996         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30997         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30998         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30999         Reported by Ralf Wildenhues.
31000
31001 2009-05-03  Bruno Haible  <bruno@clisp.org>
31002
31003         * modules/fnmatch (Description, configure.ac): Taken from
31004         fnmatch-posix.
31005         * modules/fnmatch-posix: Turn into a symbolic reference to the
31006         'fnmatch' module, and deprecate.
31007         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31008
31009 2009-05-03  Bruno Haible  <bruno@clisp.org>
31010
31011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31012         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31013         Reported by Ralf Wildenhues.
31014
31015 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31016
31017         * m4/fnmatch.m4: Fix fnmatch re-define.
31018
31019 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31020
31021         priv-set: new module and tests; adapt write-any-file
31022         * lib/priv-set.c: New file.
31023         * lib/priv-set.h: New file.
31024         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31025         * lib/write-any-file.c: Simplify by using priv-set module.
31026         * m4/priv-set.m4: New file.
31027         * modules/priv-set: New file.
31028         * modules/unlinkdir: Add dependency on priv-set module.
31029         * modules/write-any-file: Likewise.
31030
31031         Tests for module 'priv-set'.
31032         * modules/priv-set-tests: New file.
31033         * tests/test-priv-set.c: New file.
31034
31035 2009-05-03  Jim Meyering  <meyering@redhat.com>
31036             Bruno Haible  <bruno@clisp.org>
31037
31038         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31039         use the converted UTF-8 variant of the name instead.
31040
31041 2009-05-03  Jim Meyering  <meyering@redhat.com>
31042
31043         tests: tighten some getdate tests
31044         * tests/test-getdate.c (main): Tighten tests: require equality,
31045         not just greater than.  Set TZ envvar to UTC0.
31046
31047 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31048
31049         getdate: correctly interpret "next monday" when run on a Monday
31050         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31051         that e.g., "next tues" (when run on a tuesday) results in a date
31052         that is one week in the future, and not today's date.
31053         I.e., add a week when the wday is the same as the current one.
31054         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31055         and earlier by Martin Bernreuther and Jan Minář.
31056         * tests/test-getdate.c (main): Check that "next DAY" is always in
31057         the future and that "last DAY" is always in the past.
31058
31059 2009-05-02  Jim Meyering  <meyering@redhat.com>
31060
31061         build: ensure that a release build fails when a submodule is unclean
31062         * top/maint.mk (no-submodule-changes): New rule.
31063         (alpha beta major): Depend on it.
31064
31065 2009-05-02  Bruno Haible  <bruno@clisp.org>
31066
31067         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31068         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31069         shell variable gl_fnmatch_required to detect which variant is
31070         requested.
31071         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31072         gl_FUNC_FNMATCH_POSIX.
31073         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31074         exclude fnmatch-posix.
31075
31076 2009-05-02  Bruno Haible  <bruno@clisp.org>
31077
31078         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31079         * modules/mbsrtowcs (License): Change to LGPLv2+.
31080         * modules/strnlen1 (License): Likewise.
31081         Reported by Simon Josefsson.
31082
31083 2009-05-02  Bruno Haible  <bruno@clisp.org>
31084
31085         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31086         "cross".
31087         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31088         gnulib-tool was called with option --source-base=lib.
31089
31090 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31091
31092         Use automake *-local hooks without commands, for extensibility.
31093         * modules/localcharset (Makefile.am): Rename install-exec-local
31094         rule to install-exec-localcharset, and make it a prerequisite of
31095         install-exec-local.  Likewise, rename the uninstall-local rule to
31096         uninstall-localcharset, and make it a prerequisite of the former.
31097
31098 2009-05-01  Bruno Haible  <bruno@clisp.org>
31099
31100         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31101         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31102         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31104         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31105         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31106         m4/locale-zh.m4, m4/codeset.m4.
31107
31108         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31109         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31110         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31111         m4/locale-zh.m4.
31112
31113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31114         REPLACE_WCRTOMB if mbstate_t must be replaced.
31115         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31116         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31117
31118 2009-05-01  Bruno Haible  <bruno@clisp.org>
31119
31120         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31121         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31122         dngettext, dcngettext, textdomain, bindtextdomain,
31123         bind_textdomain_codeset): Undefine before redefining.
31124
31125 2009-04-30  Bruno Haible  <bruno@clisp.org>
31126
31127         Fix bug introduced on 2009-04-25.
31128         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31129         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31130         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31131         is defined.
31132         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31133         is defined.
31134         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31135         is defined.
31136         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31137
31138 2009-04-28  Bruno Haible  <bruno@clisp.org>
31139
31140         Comment tweaks.
31141         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31142         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31143         * lib/unicase.h (u*_casexfrm): Likewise.
31144         Reported by Paolo Bonzini.
31145
31146 2009-04-28  Bruno Haible  <bruno@clisp.org>
31147
31148         Fix a compilation error.
31149         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31150         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31151         Reported by Jim Meyering.
31152
31153 2009-04-27  Bruno Haible  <bruno@clisp.org>
31154
31155         New module 'libunistring'.
31156         * modules/libunistring: New file.
31157         * m4/libunistring.m4: New file.
31158         * MODULES.html.sh (Unicode string functions): Add it.
31159
31160 2009-04-27  Eric Blake  <ebb9@byu.net>
31161
31162         maint.mk: allow package-specific header to provide <config.h>
31163         * top/maint.mk (sc_require_config_h): New variable.
31164         (sc_require_config_h, sc_require_config_h_first): Use it.
31165
31166 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31167
31168         * top/maint.mk (sc_avoid_if_before_free): Except
31169         useless-if-before-free script.
31170
31171 2009-04-27  Eric Blake  <ebb9@byu.net>
31172
31173         maintainer-makefile: depend on all required helper scripts
31174         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31175         useless-if-before-free.
31176         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31177         version, rather than assuming gnulib checkout is available.
31178         Reported by Simen Josefsson.
31179
31180 2009-04-26  Bruno Haible  <bruno@clisp.org>
31181
31182         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31183         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31184         "../" or "..".
31185
31186 2009-04-26  Bruno Haible  <bruno@clisp.org>
31187
31188         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31189         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31190         AC_LIB_HAVE_LINKFLAGS.
31191
31192 2009-04-26  Bruno Haible  <bruno@clisp.org>
31193
31194         Simplify calling convention of u*_conv_from_encoding.
31195         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31196         u32_conv_from_encoding): Expect a resultbuf argument and return the
31197         result directly as a pointer.
31198         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31199         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31200         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31201         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31202         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31203         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31204         Update.
31205         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31206         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31207         * lib/vasnprintf.c (VASNPRINTF): Update.
31208         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31209         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31210         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31211         * NEWS: Mention the change.
31212
31213 2009-04-26  Bruno Haible  <bruno@clisp.org>
31214
31215         Simplify calling convention of u*_conv_to_encoding.
31216         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31217         u32_conv_to_encoding): Expect a resultbuf argument and return the
31218         result directly as a pointer.
31219         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31220         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31221         freeing scaled_offsets if mem_iconveha failed.
31222         * lib/unicase/u-casexfrm.h (FUNC): Update.
31223         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31224         * lib/vasnprintf.c (VASNPRINTF): Update.
31225         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31226         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31227         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31228         * NEWS: Mention the change.
31229
31230 2009-04-26  Bruno Haible  <bruno@clisp.org>
31231
31232         Avoid test failures on AIX and OSF/1.
31233         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31234         malloc(0).
31235         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31236         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31237         Likewise.
31238         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31239         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31240         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31241         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31242         * doc/posix-functions/malloc.texi: Document the portability problem
31243         related to malloc(0).
31244
31245 2009-04-26  Bruno Haible  <bruno@clisp.org>
31246
31247         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31248         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31249         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31250
31251 2009-04-25  Bruno Haible  <bruno@clisp.org>
31252
31253         Avoid link error when creating a namespace clean library.
31254         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31255         as macro with arguments if already defined as an alias.
31256         * lib/signbitf.c (gl_signbitf): Don't undefine.
31257         * lib/signbitd.c (gl_signbitd): Don't undefine.
31258         * lib/signbitl.c (gl_signbitl): Don't undefine.
31259
31260 2009-04-25  Jim Meyering  <meyering@redhat.com>
31261
31262         vc-list-files: fix another quoting bug
31263         * build-aux/vc-list-files: Avoid sed backslash expansion
31264         of pathological directory names.
31265
31266 2009-04-25  Eric Blake  <ebb9@byu.net>
31267
31268         vc-list-files: fix shell quoting error
31269         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31270         timestamp.
31271
31272 2009-04-25  Jim Meyering  <meyering@redhat.com>
31273
31274         vc-list-files: restore lost functionality with subdir argument
31275         * build-aux/vc-list-files: When given a non-"." sub-directory
31276         argument, substitute the $dir/ prefix back onto each resulting name.
31277         Otherwise, coreutils' root_tests check would fail.
31278
31279 2009-04-24  Eric Blake  <ebb9@byu.net>
31280
31281         vc-list-files: ignore git symlinks
31282         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31283         than ls-files, to ignore git symlinks.
31284
31285         maint.mk: import improvements from m4
31286         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31287         (move_if_change): Delete unused macro.
31288         (news-date-check, vc-diff-check): Support VPATH builds.
31289         (announcement): Likewise.  Split --bootstrap-tools list...
31290         (boostrap-tools): ...into separate list, which can be overridden
31291         in cfg.mk.
31292         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31293         requiring dependency on useless-if-before-free module.
31294         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31295         Support VPATH builds.
31296
31297 2009-04-24  Jim Meyering  <meyering@redhat.com>
31298
31299         maint.mk: remove coreutils-specific rules and variables
31300         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31301         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31302         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31303
31304         maint.mk: remove obsolete rule
31305         * top/maint.mk (rel-check): Remove rule.
31306         (WGET, WGETFLAGS): Remove now-unused variables.
31307
31308 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31309
31310         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31311         consistency.
31312
31313         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31314         '$(PATH_SEPARATOR)' instead of ':'.
31315
31316 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31317
31318         * lib/getopt1.c (main): Use 'const' for static array.
31319
31320 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31321
31322         * top/maint.mk: Sync with coreutils.
31323         * NEWS: Explain incompatibilities.
31324
31325 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31326             Bruno Haible  <bruno@clisp.org>
31327
31328         Fix cross-compilation results.
31329         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31330         statement, as third argument of AC_TRY_RUN.
31331         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31332         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31333         Likewise.
31334         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31335         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31336         Likewise.
31337         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31338         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31339         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31340
31341 2009-04-20  Bruno Haible  <bruno@clisp.org>
31342
31343         Avoid test failure on mingw.
31344         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31345
31346 2009-04-20  Bruno Haible  <bruno@clisp.org>
31347
31348         Avoid compilation error on mingw.
31349         * modules/localename-tests (Depends-on): Add locale.
31350
31351 2009-04-19  Bruno Haible  <bruno@clisp.org>
31352
31353         Support for building a shared library on Windows platforms.
31354         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31355         (main): Test the presence of UNINORM_NFC here.
31356         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31357         (main): Test the presence of UNINORM_NFD here.
31358         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31359         (main): Test the presence of UNINORM_NFKC here.
31360         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31361         (main): Test the presence of UNINORM_NFKD here.
31362
31363 2009-04-19  Bruno Haible  <bruno@clisp.org>
31364
31365         Avoid a compiler warning.
31366         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31367         Change type of variable 'sequence'.
31368
31369 2009-04-19  Bruno Haible  <bruno@clisp.org>
31370
31371         * modules/configmake (Makefile.am): When the contents of configmake.h
31372         does not change, arrange to preserve its modification time.
31373
31374 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31375
31376         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31377         gettext domain.
31378
31379 2009-04-16  Jim Meyering  <meyering@redhat.com>
31380
31381         useless-if-before-free: improve conversion code
31382         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31383         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31384
31385 2009-04-14  Bruno Haible  <bruno@clisp.org>
31386
31387         * modules/fcntl (Depends-on): Add extensions.
31388         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31389
31390 2009-04-12  Ben Pfaff  <blp@gnu.org>
31391
31392         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31393         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31394
31395 2009-03-20  Ben Pfaff  <blp@gnu.org>
31396
31397         Make rename replace existing destinations on Windows.
31398         * m4/rename.m4: Add test for Mingw.
31399         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31400         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31401         * doc/posix-functions/rename.texi: Document.
31402
31403 2009-04-10  Bruno Haible  <bruno@clisp.org>
31404
31405         New include file "iconveh.h".
31406         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31407         * lib/striconveh.h: Include it.
31408         (enum iconv_ilseq_handler): Remove definition.
31409         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31410         striconveh.h.
31411         * lib/striconveha.c: Include striconveh.h.
31412         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31413         * modules/striconveh (Files): Add lib/iconveh.h.
31414         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31415         lib/striconveh.h.
31416
31417 2009-04-10  Bruno Haible  <bruno@clisp.org>
31418
31419         * lib/uniconv.h: Update comment.
31420
31421 2009-04-10  Bruno Haible  <bruno@clisp.org>
31422
31423         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31424         always.
31425         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31426         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31427         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31428         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31429         "unistring-notinline.h", so that the function gets defined always.
31430         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31431         * lib/unistr/u8-uctomb.c: Likewise.
31432         * lib/unistr/u16-mbtouc.c: Likewise.
31433         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31434         * lib/unistr/u16-uctomb.c: Likewise.
31435         * lib/unistr/u32-mbtouc.c: Likewise.
31436         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31437         * lib/unistr/u32-uctomb.c: Likewise.
31438
31439 2009-04-10  Bruno Haible  <bruno@clisp.org>
31440
31441         Mark 'utime' obsolete.
31442         * modules/utime (Status, Notice): New sections.
31443         Suggested by Jim Meyering.
31444
31445         Fix cross-compile guess for utime test.
31446         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31447         autoconf.
31448         * doc/posix-functions/utime.texi: Give more precisions.
31449         Reported by Jan <ipif@ymail.com>.
31450
31451 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31452
31453         filevercmp: correct today's change
31454         * lib/filevercmp.c: Also handle coreutils' test inputs.
31455         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31456
31457         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31458         for reporting it.
31459         * lib/filevercmp.c: Special handle for "", "." and "..".
31460         * tests/test-filevercmp.c: Enlarge the set suite.
31461
31462 2009-04-07  Jim Meyering  <meyering@redhat.com>
31463
31464         useless-if-before-free: show how to remove braced useless free, too
31465         * build-aux/useless-if-before-free: still only in a comment, though.
31466
31467 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31468
31469         maint.mk: import changes to syntax-check macros from coreutils
31470         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31471         Use them in the relevant macros.
31472
31473 2009-04-06  Bruno Haible  <bruno@clisp.org>
31474
31475         Fix unportable use of bit-fields.
31476         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31477         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31478         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31479
31480 2009-04-06  Bruno Haible  <bruno@clisp.org>
31481
31482         Avoid test failures on AIX and OSF/1.
31483         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31484         that malloc(0) = NULL.
31485         * tests/unicase/test-u8-tolower.c (check): Likewise.
31486         * tests/unicase/test-u8-totitle.c (check): Likewise.
31487         * tests/unicase/test-u8-toupper.c (check): Likewise.
31488         * tests/unicase/test-u16-casefold.c (check): Likewise.
31489         * tests/unicase/test-u16-tolower.c (check): Likewise.
31490         * tests/unicase/test-u16-totitle.c (check): Likewise.
31491         * tests/unicase/test-u16-toupper.c (check): Likewise.
31492         * tests/unicase/test-u32-casefold.c (check): Likewise.
31493         * tests/unicase/test-u32-tolower.c (check): Likewise.
31494         * tests/unicase/test-u32-totitle.c (check): Likewise.
31495         * tests/unicase/test-u32-toupper.c (check): Likewise.
31496         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31497         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31498         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31499         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31500         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31501         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31502         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31503         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31504         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31505         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31506         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31507         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31508
31509 2009-04-05  Bruno Haible  <bruno@clisp.org>
31510
31511         Work around an autoconf limitation.
31512         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31513         comment line if it would be longer than 3 KB.
31514
31515 2009-04-05  Bruno Haible  <bruno@clisp.org>
31516
31517         Avoid test failure with libiconv-1.13.
31518         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31519         of the expected test results.
31520
31521 2009-04-05  Bruno Haible  <bruno@clisp.org>
31522
31523         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31524         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31525         that it should be installed.
31526
31527 2009-04-05  Bruno Haible  <bruno@clisp.org>
31528
31529         * gnulib-tool: New option --copy-file.
31530         (func_usage): Document it.
31531         (func_dest_tmpfilename): Moved out of func_import.
31532         (func_add_file, func_update_file): New functions, extracted from
31533         func_import.
31534         (func_import): Update.
31535
31536 2009-04-05  Karl Berry  <karl@gnu.org>
31537
31538         * README: prominently mention gnulib-tool.
31539         Rearrange sections so getting the code is near the top.
31540
31541 2009-04-05  Bruno Haible  <bruno@clisp.org>
31542
31543         * lib/unicase.h: Mention u*_cmp2.
31544         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31545         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31546         * lib/unicase/ulc-casecmp.c: Likewise.
31547         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31548         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31549         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31550         unistr/u8-cmp.
31551         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31552         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31553         unistr/u16-cmp.
31554         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31555         unistr/u32-cmp.
31556
31557         * lib/uninorm.h: Mention u*_cmp2.
31558         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31559         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31560         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31561         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31562         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31563         unistr/u8-cmp.
31564         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31565         unistr/u16-cmp.
31566         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31567         unistr/u32-cmp.
31568
31569         New module 'unistr/u32-cmp2'.
31570         * lib/unistr/u32-cmp2.c: New file.
31571         * modules/unistr/u32-cmp2: New file.
31572
31573         New module 'unistr/u16-cmp2'.
31574         * lib/unistr/u16-cmp2.c: New file.
31575         * modules/unistr/u16-cmp2: New file.
31576
31577         New module 'unistr/u8-cmp2'.
31578         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31579         * lib/unistr/u8-cmp2.c: New file.
31580         * lib/unistr/u-cmp2.h: New file.
31581         * modules/unistr/u8-cmp2: New file.
31582
31583 2009-04-05  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/unictype.h (uc_property_is_valid): New macro.
31586         * tests/unictype/test-pr_byname.c (main): Use it.
31587
31588         * lib/unistr.h: Doc fixes.
31589         * lib/uniconv.h: Doc fixes.
31590         * lib/unictype.h: Doc fixes.
31591
31592 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31593
31594         Port coreutils 7.2 to Solaris 8.
31595
31596         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31597         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31598         for Solaris 8.  This is a bit of a hack, as it means it's the
31599         caller's responsibility to add -lnsl if needed, but most likely it
31600         won't be needed since only getaddrinfo uses this and getaddrinfo
31601         isn't needed on Solaris 8.
31602
31603         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31604         problem to Solaris 8 encountered with coreutils 7.2, which
31605         resulted in a message "fnmatch.c:292: warning: passing argument 4
31606         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31607         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31608
31609 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31610
31611         * m4/ld-version-script.m4: Add FIXME comment.
31612
31613 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31614
31615         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31616         SOVERSION variable.
31617
31618 2009-04-02  Bruno Haible  <bruno@clisp.org>
31619
31620         * Makefile (info, html, dvi, pdf): Combine the rules.
31621         Suggested by Jim Meyering.
31622
31623 2009-04-01  Bruno Haible  <bruno@clisp.org>
31624
31625         * Makefile (info, html, dvi, pdf): New targets.
31626         Reported by Reuben Thomas <rrt@sc3d.org>.
31627
31628 2009-04-01  Bruno Haible  <bruno@clisp.org>
31629
31630         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31631         can be put into PATH.
31632         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31633
31634 2009-04-01  Bruno Haible  <bruno@clisp.org>
31635
31636         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31637
31638 2009-04-01  Bruno Haible  <bruno@clisp.org>
31639
31640         Rename module 'visibility'.
31641         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31642         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31643         * doc/gnulib.texi: Update.
31644         * MODULES.html.sh (Misc): Update.
31645         * NEWS: Mention the change.
31646
31647 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31648
31649         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31650         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31651         Eric Blake <ebb9@byu.net> for review.
31652         * MODULES.html.sh: Add lib-msvc-compat.
31653         * doc/gnulib.texi: Link to new section.
31654         * m4/ld-output-def.m4: New file.
31655         * doc/ld-output-def.texi: New file.
31656
31657 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31658
31659         Rename ld-version-script to lib-symbol-versions.  Suggested by
31660         Bruno Haible <bruno@clisp.org>.
31661         * modules/ld-version-script: Renamed to lib-symbol-versions.
31662         * doc/ld-version-script.texi: Fix module name.
31663         * MODULES.html.sh: Add lib-symbol-versions.
31664
31665 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31666
31667         * modules/u64-tests: New file.
31668         * tests/test-u64.c: New file.
31669
31670 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31671
31672         * MODULES.html.sh: Mention u64.
31673         * modules/u64: New module.
31674         * modules/crypto/sha512: Depend on u64 module instead of providing
31675         u64.h.
31676
31677 2009-03-27  Eric Blake  <ebb9@byu.net>
31678
31679         test-strerror: make debugging EAI_SYSTEM easier
31680         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31681         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31682         failure was EAI_SYSTEM.
31683
31684 2009-03-25  Bruno Haible  <bruno@clisp.org>
31685
31686         Fix a problem with --enable-relocatable on Solaris 7.
31687         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31688         since 2008-02-24.
31689
31690 2009-03-25  Eric Blake  <ebb9@byu.net>
31691
31692         test-sockets: avoid gcc warning
31693         * tests/test-sockets.c (main): Silence compiler warning.
31694
31695 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31696
31697         New modules nproc, pthread, contributed by Glen Lenker.
31698
31699         * MODULES.html.sh: Add pthread, nproc.
31700         * lib/nproc.c: New file.
31701         * lib/nproc.h: New file.
31702         * lib/pthread.in.h: New file.
31703         * m4/pthread.m4: New file.
31704         * modules/nproc: New file.
31705         * modules/pthread: New file.
31706
31707 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31708
31709         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31710         New variable.
31711
31712 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31713
31714         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31715         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31716         * tests/test-filevercmp.c: Add tests for backup suffixes.
31717
31718 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31719
31720         * modules/stdlib (Depends-on): Add stdint, needed when defining
31721         struct random_data on, for example, HP-UX 10.20.  Reported by
31722         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31723
31724 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31725
31726         * lib/readline.c (readline): Call fflush on stdout after printing
31727         prompt.
31728
31729 2009-03-20  Bruno Haible  <bruno@clisp.org>
31730
31731         Remove dependency from 'close' module to -lws2_32 on native Windows.
31732         * lib/close-hook.h: New file.
31733         * lib/close-hook.c: New file.
31734         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31735         w32sock.h.
31736         (_gl_close_fd_maybe_socket): Remove function.
31737         (rpl_close): Invoke execute_all_close_hooks instead of
31738         _gl_close_fd_maybe_socket.
31739         * lib/sockets.c: Include close-hook.h, w32sock.h.
31740         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31741         (close_sockets_hook): New variable.
31742         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31743         (gl_sockets_cleanup): Unregister it.
31744         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31745         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31746         * modules/close-hook: New file.
31747         * modules/close (Files): Remove lib/w32sock.h.
31748         (Depends-on): Add close-hook.
31749         (Link): Remove section.
31750         * modules/sockets (Files): Add lib/w32sock.h.
31751         (Depends-on): Add close-hook.
31752         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31753         invocation.
31754         * NEWS: Mention that LIB_CLOSE is gone.
31755
31756 2009-03-23  Eric Blake  <ebb9@byu.net>
31757
31758         signal-tests: test previous patch
31759         * tests/test-signal.c: New file.
31760         * modules/signal-tests: Likewise.
31761
31762         signal.h: always support 'volatile sig_atomic_t'
31763         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31764         (gl_SIGNAL_H_DEFAULTS): Add a default.
31765         * modules/signal (Makefile.am): Substitute if needed.
31766         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31767         users can blindly add volatile.
31768         * doc/posix-headers/signal.texi (signal.h): Document it.
31769         Reported by Matthew Woehlke.
31770
31771 2009-03-23  Jim Meyering  <meyering@redhat.com>
31772
31773         pathmax: PATH_MAX: use pathconf only when available
31774         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31775         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31776         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31777         This avoids a link failure in a PSP cross-compilation environment
31778         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31779
31780         * lib/vasnprintf.c (divide): Fix typo in comment.
31781
31782 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31783
31784         * gnulib-tool (func_filter_filelist): Fix comment.
31785
31786 2009-03-20  Bruno Haible  <bruno@clisp.org>
31787
31788         Make sockets.h self-contained.
31789         * lib/sockets.c: Include sockets.h first.
31790         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31791
31792 2009-03-19  Eric Blake  <ebb9@byu.net>
31793
31794         doc: mention more functions added in cygwin 1.7.0
31795         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31796         addition.
31797         * doc/posix-functions/log2f.texi: Likewise.
31798
31799 2009-03-19  Jim Meyering  <meyering@redhat.com>
31800
31801         fsusage: avoid syntax error due to statement-before-declaration
31802         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31803         after all declarations.  Reported by Matthew Woehlke in
31804         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31805
31806 2009-03-18  Eric Blake  <ebb9@byu.net>
31807
31808         build-aux/compile: sync from automake
31809         * build-aux/compile: New file, from automake.
31810         * config/srclist.txt: Mention build-aux/compile.
31811
31812 2009-03-17  Bruno Haible  <bruno@clisp.org>
31813
31814         * lib/git-merge-changelog.c: Fix typo in comment.
31815         Reported by Reuben Thomas <rrt@sc3d.org>.
31816
31817 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31818
31819         * m4/regex.m4: update and improve help for
31820         --without-included-regex.
31821
31822 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31823
31824         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31825         failure on missing include files.
31826
31827 2009-03-17  Eric Blake  <ebb9@byu.net>
31828
31829         doc: mention more functions added in cygwin 1.7.0
31830         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31831         addition.
31832         * doc/posix-functions/fwscanf.texi: Likewise.
31833         * doc/posix-functions/swprintf.texi: Likewise.
31834         * doc/posix-functions/swscanf.texi: Likewise.
31835         * doc/posix-functions/vfwprintf.texi: Likewise.
31836         * doc/posix-functions/vfwscanf.texi: Likewise.
31837         * doc/posix-functions/vswprintf.texi: Likewise.
31838         * doc/posix-functions/vswscanf.texi: Likewise.
31839         * doc/posix-functions/vwprintf.texi: Likewise.
31840         * doc/posix-functions/vwscanf.texi: Likewise.
31841         * doc/posix-functions/wcscasecmp.texi: Likewise.
31842         * doc/posix-functions/wcsdup.texi: Likewise.
31843         * doc/posix-functions/wcsftime.texi: Likewise.
31844         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31845         * doc/posix-functions/wprintf.texi: Likewise.
31846         * doc/posix-functions/wscanf.texi: Likewise.
31847         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31848
31849 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31850
31851         maint.mk: really add $(AM_MAKEFLAGS)
31852         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31853         was inadvertently omitted in the last commit.
31854         Spotted by Bruno Haible.
31855
31856         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31857         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31858         $(AM_MAKEFLAGS)' rather than plain `make'.
31859
31860         gnulib-tool: execute $MAKE not make
31861         * gnulib-tool: Default $MAKE to 'make'.
31862         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31863         than make.  Initialize $MAKE in the do-autobuild script.
31864
31865         gnulib-tool: use $MAKE not make in generated files
31866         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31867         make, in generated files.  Initialize $MAKE in the do-autobuild
31868         script.
31869
31870         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31871
31872         GNUmakefile: disable parallelism only for multiple, recursive targets
31873         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31874         additions in the Makefile.
31875         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31876         by Automake.
31877         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31878         are listed on the command line and at least one of them is
31879         listed in $(ALL_RECURSIVE_TARGETS).
31880
31881 2009-03-14  Bruno Haible  <bruno@clisp.org>
31882
31883         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31884         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31885         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31886         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31887         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31888         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31889         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31890         unistr/u8-uctomb.
31891         * modules/unistr/u8-strchr (Depends-on): Likewise.
31892         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31893         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31894         unistr/u16-uctomb.
31895         * modules/unistr/u16-strchr (Depends-on): Likewise.
31896         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31897
31898 2009-03-12  Bruno Haible  <bruno@clisp.org>
31899
31900         Work around select() bug on Interix 3.5.
31901         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31902         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31903         * m4/select.m4: New file.
31904         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31905         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31906         * modules/select (Files): Add m4/select.m4.
31907         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31908         * modules/nanosleep (Depends-on): Add select.
31909         * modules/poll (Depends-on): Likewise.
31910         * doc/posix-functions/select.texi: Mention the Interix bug.
31911         Reported by Markus Duft <mduft@gentoo.org>.
31912
31913         * lib/select.c: Renamed from lib/winsock-select.c.
31914         * modules/select (Files): Add lib/select.c, remove
31915         lib/winsock-select.c.
31916         (configure.ac): Update.
31917
31918 2009-03-12  Jim Meyering  <meyering@redhat.com>
31919
31920         avoid gcc warnings about unused macro definitions
31921         * lib/readtokens.c (STREQ): Remove unused definition.
31922         * lib/xmalloc.c (SIZE_MAX): Likewise.
31923         * lib/openat-die.c (N_): Likewise.
31924         * lib/mountlist.c (SIZE_MAX): Remove definition.
31925         Instead, include <stdint.h>.
31926         * lib/readutmp.c: Likewise.
31927         * modules/readutmp (Depends-on): Add stdint.
31928         * modules/mountlist (Depends-on): Add stdint.
31929         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31930
31931 2009-03-10  Bruno Haible  <bruno@clisp.org>
31932
31933         Tests for module 'mbmemcasecoll'.
31934         * modules/mbmemcasecoll-tests: New file.
31935         * tests/test-mbmemcasecoll1.sh: New file.
31936         * tests/test-mbmemcasecoll2.sh: New file.
31937         * tests/test-mbmemcasecoll3.sh: New file.
31938         * tests/test-mbmemcasecoll.c: New file.
31939
31940         New module 'mbmemcasecoll'.
31941         * lib/mbmemcasecoll.h: New file.
31942         * lib/mbmemcasecoll.c: New file.
31943         * modules/mbmemcasecoll: New file.
31944
31945         * tests/test-mbmemcasecmp.h: New file, extracted from
31946         tests/test-mbmemcasecmp.c.
31947         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31948         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31949         (main): Update.
31950         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31951
31952 2009-03-09  Bruno Haible  <bruno@clisp.org>
31953
31954         Tests for module 'mbmemcasecmp'.
31955         * modules/mbmemcasecmp-tests: New file.
31956         * tests/test-mbmemcasecmp1.sh: New file.
31957         * tests/test-mbmemcasecmp2.sh: New file.
31958         * tests/test-mbmemcasecmp3.sh: New file.
31959         * tests/test-mbmemcasecmp.c: New file.
31960
31961         New module 'mbmemcasecmp'.
31962         * lib/mbmemcasecmp.h: New file.
31963         * lib/mbmemcasecmp.c: New file.
31964         * modules/mbmemcasecmp: New file.
31965
31966 2009-03-09  Bruno Haible  <bruno@clisp.org>
31967
31968         Tests for module 'unicase/ulc-casecoll'.
31969         * modules/unicase/ulc-casecoll-tests: New file.
31970         * tests/unicase/test-ulc-casecoll1.sh: New file.
31971         * tests/unicase/test-ulc-casecoll2.sh: New file.
31972         * tests/unicase/test-ulc-casecoll.c: New file.
31973
31974         New module 'unicase/ulc-casecoll'.
31975         * lib/unicase.h (ulc_casecoll): New declaration.
31976         * lib/unicase/ulc-casecoll.c: New file.
31977         * modules/unicase/ulc-casecoll: New file.
31978
31979         New module 'unicase/ulc-casexfrm'.
31980         * lib/unicase.h (ulc_casexfrm): New declaration.
31981         * lib/unicase/ulc-casexfrm.c: New file.
31982         * modules/unicase/ulc-casexfrm: New file.
31983
31984 2009-03-09  Bruno Haible  <bruno@clisp.org>
31985
31986         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31987         invocations.
31988
31989         * m4/mbscasecmp.m4: Remove file.
31990         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31991         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31992
31993         * m4/mbscasestr.m4: Remove file.
31994         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31995         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31996
31997         * m4/mbschr.m4: Remove file.
31998         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31999         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32000
32001         * m4/mbscspn.m4: Remove file.
32002         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32003         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32004
32005         * m4/mbslen.m4: Remove file.
32006         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32007         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32008
32009         * m4/mbsncasecmp.m4: Remove file.
32010         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32011         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32012
32013         * m4/mbsnlen.m4: Remove file.
32014         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32015         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32016
32017         * m4/mbspbrk.m4: Remove file.
32018         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32019         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32020
32021         * m4/mbspcasecmp.m4: Remove file.
32022         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32023         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32024
32025         * m4/mbsrchr.m4: Remove file.
32026         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32027         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32028
32029         * m4/mbssep.m4: Remove file.
32030         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32031         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32032
32033         * m4/mbsspn.m4: Remove file.
32034         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32035         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32036
32037         * m4/mbsstr.m4: Remove file.
32038         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32039         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32040
32041         * m4/mbstok_r.m4: Remove file.
32042         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32043         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32044
32045         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32046
32047         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32048         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32049
32050         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32051
32052 2009-03-08  Bruno Haible  <bruno@clisp.org>
32053
32054         Tests for module 'unicase/ulc-casecmp'.
32055         * modules/unicase/ulc-casecmp-tests: New file.
32056         * tests/unicase/test-ulc-casecmp1.sh: New file.
32057         * tests/unicase/test-ulc-casecmp2.sh: New file.
32058         * tests/unicase/test-ulc-casecmp.c: New file.
32059
32060         New module 'unicase/ulc-casecmp'.
32061         * lib/unicase.h (ulc_casecmp): New declaration.
32062         * lib/unicase/ulc-casecmp.c: New file.
32063         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32064         'const SRC_UNIT *'.
32065         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32066         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32067         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32068         * modules/unicase/ulc-casecmp: New file.
32069
32070         Tests for module 'unicase/u32-is-cased'.
32071         * modules/unicase/u32-is-cased-tests: New file.
32072         * tests/unicase/test-u32-is-cased.c: New file.
32073
32074         Tests for module 'unicase/u16-is-cased'.
32075         * modules/unicase/u16-is-cased-tests: New file.
32076         * tests/unicase/test-u16-is-cased.c: New file.
32077
32078         Tests for module 'unicase/u8-is-cased'.
32079         * modules/unicase/u8-is-cased-tests: New file.
32080         * tests/unicase/test-u8-is-cased.c: New file.
32081         * tests/unicase/test-is-cased.h: New file.
32082
32083         New module 'unicase/u32-is-cased'.
32084         * lib/unicase/u32-is-cased.c: New file.
32085         * modules/unicase/u32-is-cased: New file.
32086
32087         New module 'unicase/u16-is-cased'.
32088         * lib/unicase/u16-is-cased.c: New file.
32089         * modules/unicase/u16-is-cased: New file.
32090
32091         New module 'unicase/u8-is-cased'.
32092         * lib/unicase/u8-is-cased.c: New file.
32093         * lib/unicase/u-is-cased.h: New file.
32094         * modules/unicase/u8-is-cased: New file.
32095
32096         Tests for module 'unicase/u32-is-casefolded'.
32097         * modules/unicase/u32-is-casefolded-tests: New file.
32098         * tests/unicase/test-u32-is-casefolded.c: New file.
32099
32100         Tests for module 'unicase/u16-is-casefolded'.
32101         * modules/unicase/u16-is-casefolded-tests: New file.
32102         * tests/unicase/test-u16-is-casefolded.c: New file.
32103
32104         Tests for module 'unicase/u8-is-casefolded'.
32105         * modules/unicase/u8-is-casefolded-tests: New file.
32106         * tests/unicase/test-u8-is-casefolded.c: New file.
32107         * tests/unicase/test-is-casefolded.h: New file.
32108
32109         New module 'unicase/u32-is-casefolded'.
32110         * lib/unicase/u32-is-casefolded.c: New file.
32111         * modules/unicase/u32-is-casefolded: New file.
32112
32113         New module 'unicase/u16-is-casefolded'.
32114         * lib/unicase/u16-is-casefolded.c: New file.
32115         * modules/unicase/u16-is-casefolded: New file.
32116
32117         New module 'unicase/u8-is-casefolded'.
32118         * lib/unicase/u8-is-casefolded.c: New file.
32119         * modules/unicase/u8-is-casefolded: New file.
32120
32121         Tests for module 'unicase/u32-is-titlecase'.
32122         * modules/unicase/u32-is-titlecase-tests: New file.
32123         * tests/unicase/test-u32-is-titlecase.c: New file.
32124
32125         Tests for module 'unicase/u16-is-titlecase'.
32126         * modules/unicase/u16-is-titlecase-tests: New file.
32127         * tests/unicase/test-u16-is-titlecase.c: New file.
32128
32129         Tests for module 'unicase/u8-is-titlecase'.
32130         * modules/unicase/u8-is-titlecase-tests: New file.
32131         * tests/unicase/test-u8-is-titlecase.c: New file.
32132         * tests/unicase/test-is-titlecase.h: New file.
32133
32134         New module 'unicase/u32-is-titlecase'.
32135         * lib/unicase/u32-is-titlecase.c: New file.
32136         * modules/unicase/u32-is-titlecase: New file.
32137
32138         New module 'unicase/u16-is-titlecase'.
32139         * lib/unicase/u16-is-titlecase.c: New file.
32140         * modules/unicase/u16-is-titlecase: New file.
32141
32142         New module 'unicase/u8-is-titlecase'.
32143         * lib/unicase/u8-is-titlecase.c: New file.
32144         * modules/unicase/u8-is-titlecase: New file.
32145
32146         Tests for module 'unicase/u32-is-lowercase'.
32147         * modules/unicase/u32-is-lowercase-tests: New file.
32148         * tests/unicase/test-u32-is-lowercase.c: New file.
32149
32150         Tests for module 'unicase/u16-is-lowercase'.
32151         * modules/unicase/u16-is-lowercase-tests: New file.
32152         * tests/unicase/test-u16-is-lowercase.c: New file.
32153
32154         Tests for module 'unicase/u8-is-lowercase'.
32155         * modules/unicase/u8-is-lowercase-tests: New file.
32156         * tests/unicase/test-u8-is-lowercase.c: New file.
32157         * tests/unicase/test-is-lowercase.h: New file.
32158
32159         New module 'unicase/u32-is-lowercase'.
32160         * lib/unicase/u32-is-lowercase.c: New file.
32161         * modules/unicase/u32-is-lowercase: New file.
32162
32163         New module 'unicase/u16-is-lowercase'.
32164         * lib/unicase/u16-is-lowercase.c: New file.
32165         * modules/unicase/u16-is-lowercase: New file.
32166
32167         New module 'unicase/u8-is-lowercase'.
32168         * lib/unicase/u8-is-lowercase.c: New file.
32169         * modules/unicase/u8-is-lowercase: New file.
32170
32171         Tests for module 'unicase/u32-is-uppercase'.
32172         * modules/unicase/u32-is-uppercase-tests: New file.
32173         * tests/unicase/test-u32-is-uppercase.c: New file.
32174
32175         Tests for module 'unicase/u16-is-uppercase'.
32176         * modules/unicase/u16-is-uppercase-tests: New file.
32177         * tests/unicase/test-u16-is-uppercase.c: New file.
32178
32179         Tests for module 'unicase/u8-is-uppercase'.
32180         * modules/unicase/u8-is-uppercase-tests: New file.
32181         * tests/unicase/test-u8-is-uppercase.c: New file.
32182         * tests/unicase/test-is-uppercase.h: New file.
32183
32184         New module 'unicase/u32-is-uppercase'.
32185         * lib/unicase/u32-is-uppercase.c: New file.
32186         * modules/unicase/u32-is-uppercase: New file.
32187
32188         New module 'unicase/u16-is-uppercase'.
32189         * lib/unicase/u16-is-uppercase.c: New file.
32190         * modules/unicase/u16-is-uppercase: New file.
32191
32192         New module 'unicase/u8-is-uppercase'.
32193         * lib/unicase/u8-is-uppercase.c: New file.
32194         * modules/unicase/u8-is-uppercase: New file.
32195
32196         New module 'unicase/u32-is-invariant'.
32197         * lib/unicase/u32-is-invariant.c: New file.
32198         * modules/unicase/u32-is-invariant: New file.
32199
32200         New module 'unicase/u16-is-invariant'.
32201         * lib/unicase/u16-is-invariant.c: New file.
32202         * modules/unicase/u16-is-invariant: New file.
32203
32204         New module 'unicase/u8-is-invariant'.
32205         * lib/unicase/u8-is-invariant.c: New file.
32206         * lib/unicase/invariant.h: New file.
32207         * lib/unicase/u-is-invariant.h: New file.
32208         * modules/unicase/u8-is-invariant: New file.
32209
32210         Tests for module 'unicase/u32-casecoll'.
32211         * modules/unicase/u32-casecoll-tests: New file.
32212         * tests/unicase/test-u32-casecoll.c: New file.
32213
32214         Tests for module 'unicase/u16-casecoll'.
32215         * modules/unicase/u16-casecoll-tests: New file.
32216         * tests/unicase/test-u16-casecoll.c: New file.
32217
32218         Tests for module 'unicase/u8-casecoll'.
32219         * modules/unicase/u8-casecoll-tests: New file.
32220         * tests/unicase/test-u8-casecoll.c: New file.
32221
32222         New module 'unicase/u32-casecoll'.
32223         * lib/unicase/u32-casecoll.c: New file.
32224         * modules/unicase/u32-casecoll: New file.
32225
32226         New module 'unicase/u16-casecoll'.
32227         * lib/unicase/u16-casecoll.c: New file.
32228         * modules/unicase/u16-casecoll: New file.
32229
32230         New module 'unicase/u8-casecoll'.
32231         * lib/unicase/u8-casecoll.c: New file.
32232         * lib/unicase/u-casecoll.h: New file.
32233         * modules/unicase/u8-casecoll: New file.
32234
32235         New module 'unicase/u32-casexfrm'.
32236         * lib/unicase/u32-casexfrm.c: New file.
32237         * modules/unicase/u32-casexfrm: New file.
32238
32239         New module 'unicase/u16-casexfrm'.
32240         * lib/unicase/u16-casexfrm.c: New file.
32241         * modules/unicase/u16-casexfrm: New file.
32242
32243         New module 'unicase/u8-casexfrm'.
32244         * lib/unicase/u8-casexfrm.c: New file.
32245         * lib/unicase/u-casexfrm.h: New file.
32246         * modules/unicase/u8-casexfrm: New file.
32247
32248         Tests for module 'unicase/u32-casecmp'.
32249         * modules/unicase/u32-casecmp-tests: New file.
32250         * tests/unicase/test-u32-casecmp.c: New file.
32251
32252         Tests for module 'unicase/u16-casecmp'.
32253         * modules/unicase/u16-casecmp-tests: New file.
32254         * tests/unicase/test-u16-casecmp.c: New file.
32255
32256         Tests for module 'unicase/u8-casecmp'.
32257         * modules/unicase/u8-casecmp-tests: New file.
32258         * tests/unicase/test-u8-casecmp.c: New file.
32259         * tests/unicase/test-casecmp.h: New file.
32260
32261         New module 'unicase/u32-casecmp'.
32262         * lib/unicase/u32-casecmp.c: New file.
32263         * modules/unicase/u32-casecmp: New file.
32264
32265         New module 'unicase/u16-casecmp'.
32266         * lib/unicase/u16-casecmp.c: New file.
32267         * modules/unicase/u16-casecmp: New file.
32268
32269         New module 'unicase/u8-casecmp'.
32270         * lib/unicase/u8-casecmp.c: New file.
32271         * lib/unicase/u-casecmp.h: New file.
32272         * modules/unicase/u8-casecmp: New file.
32273
32274         Tests for module 'unicase/u32-casefold'.
32275         * modules/unicase/u32-casefold-tests: New file.
32276         * tests/unicase/test-u32-casefold.c: New file.
32277
32278         Tests for module 'unicase/u16-casefold'.
32279         * modules/unicase/u16-casefold-tests: New file.
32280         * tests/unicase/test-u16-casefold.c: New file.
32281
32282         Tests for module 'unicase/u8-casefold'.
32283         * modules/unicase/u8-casefold-tests: New file.
32284         * tests/unicase/test-u8-casefold.c: New file.
32285
32286         New module 'unicase/u32-casefold'.
32287         * lib/unicase/u32-casefold.c: New file.
32288         * modules/unicase/u32-casefold: New file.
32289
32290         New module 'unicase/u16-casefold'.
32291         * lib/unicase/u16-casefold.c: New file.
32292         * modules/unicase/u16-casefold: New file.
32293
32294         New module 'unicase/u8-casefold'.
32295         * lib/unicase/u8-casefold.c: New file.
32296         * lib/unicase/u-casefold.h: New file.
32297         * modules/unicase/u8-casefold: New file.
32298
32299         New module 'unicase/tocasefold'.
32300         * lib/unicase/casefold.h: New file.
32301         * lib/unicase/tocasefold.c: New file.
32302         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32303         * modules/unicase/tocasefold: New file.
32304
32305         Tests for module 'unicase/u32-totitle'.
32306         * modules/unicase/u32-totitle-tests: New file.
32307         * tests/unicase/test-u32-totitle.c: New file.
32308
32309         Tests for module 'unicase/u16-totitle'.
32310         * modules/unicase/u16-totitle-tests: New file.
32311         * tests/unicase/test-u16-totitle.c: New file.
32312
32313         Tests for module 'unicase/u8-totitle'.
32314         * modules/unicase/u8-totitle-tests: New file.
32315         * tests/unicase/test-u8-totitle.c: New file.
32316
32317         New module 'unicase/u32-totitle'.
32318         * lib/unicase/u32-totitle.c: New file.
32319         * modules/unicase/u32-totitle: New file.
32320
32321         New module 'unicase/u16-totitle'.
32322         * lib/unicase/u16-totitle.c: New file.
32323         * modules/unicase/u16-totitle: New file.
32324
32325         New module 'unicase/u8-totitle'.
32326         * lib/unicase/u8-totitle.c: New file.
32327         * lib/unicase/u-totitle.h: New file.
32328         * modules/unicase/u8-totitle: New file.
32329
32330         Tests for module 'unicase/u32-tolower'.
32331         * modules/unicase/u32-tolower-tests: New file.
32332         * tests/unicase/test-u32-tolower.c: New file.
32333
32334         Tests for module 'unicase/u16-tolower'.
32335         * modules/unicase/u16-tolower-tests: New file.
32336         * tests/unicase/test-u16-tolower.c: New file.
32337
32338         Tests for module 'unicase/u8-tolower'.
32339         * modules/unicase/u8-tolower-tests: New file.
32340         * tests/unicase/test-u8-tolower.c: New file.
32341
32342         New module 'unicase/u32-tolower'.
32343         * lib/unicase/u32-tolower.c: New file.
32344         * modules/unicase/u32-tolower: New file.
32345
32346         New module 'unicase/u16-tolower'.
32347         * lib/unicase/u16-tolower.c: New file.
32348         * modules/unicase/u16-tolower: New file.
32349
32350         New module 'unicase/u8-tolower'.
32351         * lib/unicase/u8-tolower.c: New file.
32352         * modules/unicase/u8-tolower: New file.
32353
32354         Tests for module 'unicase/u32-toupper'.
32355         * modules/unicase/u32-toupper-tests: New file.
32356         * tests/unicase/test-u32-toupper.c: New file.
32357
32358         Tests for module 'unicase/u16-toupper'.
32359         * modules/unicase/u16-toupper-tests: New file.
32360         * tests/unicase/test-u16-toupper.c: New file.
32361
32362         Tests for module 'unicase/u8-toupper'.
32363         * modules/unicase/u8-toupper-tests: New file.
32364         * tests/unicase/test-u8-toupper.c: New file.
32365
32366         New module 'unicase/u32-toupper'.
32367         * lib/unicase/u32-toupper.c: New file.
32368         * modules/unicase/u32-toupper: New file.
32369
32370         New module 'unicase/u16-toupper'.
32371         * lib/unicase/u16-toupper.c: New file.
32372         * modules/unicase/u16-toupper: New file.
32373
32374         New module 'unicase/u8-toupper'.
32375         * lib/unicase/u8-toupper.c: New file.
32376         * modules/unicase/u8-toupper: New file.
32377
32378         New module 'unicase/u32-casemap'.
32379         * lib/unicase/u32-casemap.c: New file.
32380         * modules/unicase/u32-casemap: New file.
32381
32382         New module 'unicase/u16-casemap'.
32383         * lib/unicase/u16-casemap.c: New file.
32384         * modules/unicase/u16-casemap: New file.
32385
32386         New module 'unicase/u8-casemap'.
32387         * lib/unicase/unicasemap.h: New file.
32388         * lib/unicase/u8-casemap.c: New file.
32389         * lib/unicase/u-casemap.h: New file.
32390         * modules/unicase/u8-casemap: New file.
32391
32392         New module 'unicase/special-casing'.
32393         * lib/unicase/special-casing.h: New file.
32394         * lib/unicase/special-casing.c: New file.
32395         * lib/unicase/special-casing-table.gperf: New file, generated by
32396         gen-uni-tables.c.
32397         * modules/unicase/special-casing: New file.
32398
32399         Tests for module 'unicase/locale-language'.
32400         * modules/unicase/locale-language-tests: New file.
32401         * tests/unicase/test-locale-language.sh: New file.
32402         * tests/unicase/test-locale-language.c: New file.
32403
32404         New module 'unicase/locale-language'.
32405         * lib/unicase/locale-language.c: New file.
32406         * lib/unicase/locale-languages.gperf: New file.
32407         * modules/unicase/locale-language: New file.
32408
32409         Generate more tables for case conversion and case folding.
32410         * lib/gen-uni-tables.c (SCC_*): New enum items.
32411         (struct special_casing_rule): New type.
32412         (casing_rules, num_casing_rules, allocated_casing_rules): New
32413         variables.
32414         (add_casing_rule, fill_casing_rules): New functions.
32415         (struct casefold_rule): New type.
32416         (casefolding_rules, num_casefolding_rules,
32417         allocated_casefolding_rules): New variables.
32418         (fill_casefolding_rules): New function.
32419         (unicode_casefold): New variable.
32420         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32421         sort_casing_rules, output_casing_rules): New functions.
32422         (main): Accept to more arguments: SpecialCasing.txt and
32423         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32424         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32425         Output mapping for casefolding.
32426
32427         * lib/unicase.h: Include stdbool.h, uninorm.h.
32428         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32429         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32430         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32431         arguments.
32432         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32433         resultp arguments.
32434         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32435         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32436         resultp arguments.
32437         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32438         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32439         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32440         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32441         declarations.
32442         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32443
32444 2009-03-08  Bruno Haible  <bruno@clisp.org>
32445
32446         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32447         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32448         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32449         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32450
32451 2009-03-07  Bruno Haible  <bruno@clisp.org>
32452
32453         Adjust u*_normcmp, u*_normcoll API.
32454         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32455         u16_normcoll, u32_normcoll): Change failure conventions.
32456         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32457         errno and return -1.
32458         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32459
32460 2009-03-07  Bruno Haible  <bruno@clisp.org>
32461
32462         Tests for module 'uninorm/u32-normcoll'.
32463         * modules/uninorm/u32-normcoll-tests: New file.
32464         * tests/uninorm/test-u32-normcoll.c: New file.
32465
32466         Tests for module 'uninorm/u16-normcoll'.
32467         * modules/uninorm/u16-normcoll-tests: New file.
32468         * tests/uninorm/test-u16-normcoll.c: New file.
32469
32470         Tests for module 'uninorm/u8-normcoll'.
32471         * modules/uninorm/u8-normcoll-tests: New file.
32472         * tests/uninorm/test-u8-normcoll.c: New file.
32473
32474 2009-03-07  Bruno Haible  <bruno@clisp.org>
32475
32476         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32477         tests/uninorm/test-u32-normcmp.c.
32478         * tests/uninorm/test-u32-normcmp.c: Include it.
32479         (test_nonascii): New function, extracted from main. Add some more
32480         tests.
32481         (main): Invoke test_ascii and test_nonascii.
32482         * modules/uninorm/u32-normcmp-tests (Files): Add
32483         tests/uninorm/test-u32-normcmp.h.
32484         (Depends-on): Remove uninorm/u32-normcmp.
32485
32486         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32487         tests/uninorm/test-u16-normcmp.c.
32488         * tests/uninorm/test-u16-normcmp.c: Include it.
32489         (test_nonascii): New function, extracted from main. Add some more
32490         tests.
32491         (main): Invoke test_ascii and test_nonascii.
32492         * modules/uninorm/u16-normcmp-tests (Files): Add
32493         tests/uninorm/test-u16-normcmp.h.
32494         (Depends-on): Remove uninorm/u16-normcmp.
32495
32496         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32497         tests/uninorm/test-u8-normcmp.c.
32498         * tests/uninorm/test-u8-normcmp.c: Include it.
32499         (test_nonascii): New function, extracted from main. Add some more
32500         tests.
32501         (main): Invoke test_ascii and test_nonascii.
32502         * modules/uninorm/u8-normcmp-tests (Files): Add
32503         tests/uninorm/test-u8-normcmp.h.
32504         (Depends-on): Remove uninorm/u8-normcmp.
32505
32506 2009-03-07  Bruno Haible  <bruno@clisp.org>
32507
32508         New module 'uninorm/u32-normcoll'.
32509         * lib/uninorm/u32-normcoll.c: New file.
32510         * modules/uninorm/u32-normcoll: New file.
32511
32512         New module 'uninorm/u16-normcoll'.
32513         * lib/uninorm/u16-normcoll.c: New file.
32514         * modules/uninorm/u16-normcoll: New file.
32515
32516         New module 'uninorm/u8-normcoll'.
32517         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32518         declarations.
32519         * lib/uninorm/u8-normcoll.c: New file.
32520         * lib/uninorm/u-normcoll.h: New file.
32521         * modules/uninorm/u8-normcoll: New file.
32522
32523         New module 'uninorm/u32-normxfrm'.
32524         * lib/uninorm/u32-normxfrm.c: New file.
32525         * modules/uninorm/u32-normxfrm: New file.
32526
32527         New module 'uninorm/u16-normxfrm'.
32528         * lib/uninorm/u16-normxfrm.c: New file.
32529         * modules/uninorm/u16-normxfrm: New file.
32530
32531         New module 'uninorm/u8-normxfrm'.
32532         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32533         declarations.
32534         * lib/uninorm/u8-normxfrm.c: New file.
32535         * lib/uninorm/u-normxfrm.h: New file.
32536         * modules/uninorm/u8-normxfrm: New file.
32537
32538 2009-03-07  Bruno Haible  <bruno@clisp.org>
32539
32540         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32541         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32542         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32543
32544 2009-03-07  Bruno Haible  <bruno@clisp.org>
32545
32546         New module 'memxfrm'.
32547         * lib/memxfrm.h: New file.
32548         * lib/memxfrm.c: New file.
32549         * modules/memxfrm: New file.
32550
32551 2009-03-07  Bruno Haible  <bruno@clisp.org>
32552
32553         New module 'memcmp2'.
32554         * lib/memcmp2.h: New file.
32555         * lib/memcmp2.c: New file.
32556         * modules/memcmp2: New file.
32557
32558 2009-03-07  Bruno Haible  <bruno@clisp.org>
32559
32560         Tests for module 'uninorm/decomposing-form'.
32561         * modules/uninorm/decomposing-form-tests: New file.
32562         * tests/uninorm/test-decomposing-form.c: New file.
32563
32564         New module 'uninorm/decomposing-form'.
32565         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32566         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32567         Add 'decomposing_variant' field.
32568         * lib/uninorm/decomposing-form.c: New file.
32569         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32570         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32571         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32572         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32573         * modules/uninorm/decomposing-form: New file.
32574         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32575         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32576
32577 2009-03-07  Bruno Haible  <bruno@clisp.org>
32578
32579         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32580         strings.
32581
32582 2009-03-06  Bruno Haible  <bruno@clisp.org>
32583
32584         Tests for module 'uninorm/u32-normcmp'.
32585         * tests/uninorm/test-u32-normcmp.c: New file.
32586         * modules/uninorm/u32-normcmp-tests: New file.
32587
32588         Tests for module 'uninorm/u16-normcmp'.
32589         * tests/uninorm/test-u16-normcmp.c: New file.
32590         * modules/uninorm/u16-normcmp-tests: New file.
32591
32592         Tests for module 'uninorm/u8-normcmp'.
32593         * tests/uninorm/test-u8-normcmp.c: New file.
32594         * modules/uninorm/u8-normcmp-tests: New file.
32595
32596         New module 'uninorm/u32-normcmp'.
32597         * lib/uninorm/u32-normcmp.c: New file.
32598         * modules/uninorm/u32-normcmp: New file.
32599
32600         New module 'uninorm/u16-normcmp'.
32601         * lib/uninorm/u16-normcmp.c: New file.
32602         * modules/uninorm/u16-normcmp: New file.
32603
32604         New module 'uninorm/u8-normcmp'.
32605         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32606         declarations.
32607         * lib/uninorm/u8-normcmp.c: New file.
32608         * lib/uninorm/u-normcmp.h: New file.
32609         * modules/uninorm/u8-normcmp: New file.
32610
32611 2009-03-06  Bruno Haible  <bruno@clisp.org>
32612
32613         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32614         Reported by Eric Blake.
32615
32616 2009-03-06  Eric Blake  <ebb9@byu.net>
32617             Bruno Haible  <bruno@clisp.org>
32618
32619         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32620         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32621         condition.
32622         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32623         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32624         condition.
32625         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32626
32627 2009-03-06  Eric Blake  <ebb9@byu.net>
32628
32629         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32630         to avoid compiler warnings.
32631         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32632
32633 2009-03-05  Bruno Haible  <bruno@clisp.org>
32634
32635         * tests/test-ftell.c (main): Disable test beyond end of file on
32636         FreeMiNT.
32637         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32638
32639 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32640
32641         * lib/filevercmp.c: Move hidden files up in ordering.
32642         * tests/test-filevercmp.c: Add tests for hidden files.
32643
32644 2009-03-04  Bruno Haible  <bruno@clisp.org>
32645
32646         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32647         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32648         AM_CFLAGS.
32649         Reported by Simon Josefsson.
32650
32651 2009-03-03  Bruno Haible  <bruno@clisp.org>
32652
32653         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32654         Reported by Simon Josefsson.
32655
32656         * doc/ld-version-script.texi: Update node reference.
32657
32658 2009-03-03  Bruno Haible  <bruno@clisp.org>
32659
32660         * modules/visibility (License): Change to 'unlimited'.
32661         Suggested by Simon Josefsson.
32662
32663 2009-03-03  Jim Meyering  <meyering@redhat.com>
32664
32665         unlinkdir: cannot_unlink_dir may modify process state
32666         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32667         it's neither thread-safe nor appropriate for use in a library.
32668
32669 2009-03-03  Eric Blake  <ebb9@byu.net>
32670
32671         test-closein: silence test under Darwin
32672         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32673         care if it dies from EPIPE or EBADF.
32674
32675 2009-03-03  Bruno Haible  <bruno@clisp.org>
32676
32677         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32678         earlier.
32679         * doc/visibility.texi: Fix @node and @section.
32680
32681 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32682
32683         * doc/gnulib.texi: Link to sections for ld version script and
32684         visibility.
32685         * doc/visibility.texi: Add @node and @section.
32686         * modules/ld-version-script: New module.
32687         * m4/ld-version-script.m4: New file.
32688         * doc/ld-version-script.texi: New file.
32689
32690 2009-03-02  David Lutterkort  <lutter@redhat.com>
32691
32692         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32694
32695 2009-03-02  Bruno Haible  <bruno@clisp.org>
32696
32697         * doc/visibility.texi: Mention libtool's -export-symbols option.
32698
32699 2009-03-02  Jim Meyering  <meyering@redhat.com>
32700
32701         announce-gen: new option: --no-print-checksums
32702         * build-aux/announce-gen (usage): Describe it.
32703         (print_checksums): Print a newline here, not in the [*] footnote.
32704         (main): Honor it.
32705
32706 2009-03-01  Bruno Haible  <bruno@clisp.org>
32707
32708         Use socklen_t in the native Windows replacements prototypes.
32709         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32710         instead of 'int'.
32711         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32712         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32713         * modules/getsockopt (Depends-on): Add socklen.
32714         * modules/setsockopt (Depends-on): Add socklen.
32715
32716 2009-03-01  Bruno Haible  <bruno@clisp.org>
32717
32718         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32719         least 4.2.
32720
32721 2009-03-01  Eric Blake  <ebb9@byu.net>
32722             Bruno Haible  <bruno@clisp.org>
32723
32724         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32725         error messages.
32726         * lib/wait-process.c (wait_subprocess): Omit error message about
32727         deadly signal sent to the child of termsigp != NULL.
32728
32729 2009-03-01  Eric Blake  <ebb9@byu.net>
32730
32731         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32732
32733 2009-03-01  Bruno Haible  <bruno@clisp.org>
32734
32735         Avoid a gcc warning.
32736         * tests/test-sched.c (b): Make global.
32737         Reported by Eric Blake.
32738
32739 2009-01-19  Martin Lambers  <marlam@marlam.de>
32740
32741         Provide POSIX semantics for socket timeout options on W32.
32742         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32743         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32744         * modules/setsockopt: Depend on sys_time module for struct timeval.
32745         * modules/getsockopt: Depend on sys_time module for struct timeval.
32746
32747 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32748
32749         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32750         __USE_GNU, for consistency with netdb.in.h.
32751         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32752
32753 2009-03-01  Bruno Haible  <bruno@clisp.org>
32754
32755         More support for FreeMiNT.
32756         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32757         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32758
32759 2009-03-01  Bruno Haible  <bruno@clisp.org>
32760
32761         More support for FreeMiNT.
32762         * lib/fpurge.c (fpurge): Correct last commit.
32763         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32764
32765 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32766
32767         Fix unportable awk script in vc-list-files.
32768         * build-aux/vc-list-files: In the replacement awk script, use
32769         substr with a second argument of 1, not zero.
32770         Report by Simon Josefsson.
32771
32772 2009-02-28  Bruno Haible  <bruno@clisp.org>
32773
32774         More support for FreeMiNT.
32775         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32776         to FreeMiNT today.
32777         * lib/fwriting.c (fwriting): Likewise.
32778         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32779
32780 2009-02-28  Bruno Haible  <bruno@clisp.org>
32781
32782         * tests/test-freadseek.c (main): Disable test beyond end of file on
32783         FreeMiNT.
32784         * tests/test-ftello.c (main): Likewise.
32785         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32786
32787 2009-02-28  Bruno Haible  <bruno@clisp.org>
32788
32789         Add tentative support for FreeMiNT.
32790         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32791         * lib/fpurge.c (fpurge): Likewise.
32792         * lib/freadable.c (freadable): Likewise.
32793         * lib/freading.c (freading): Likewise.
32794         * lib/freadptr.c (freadptr): Likewise.
32795         * lib/freadseek.c (freadptrinc): Likewise.
32796         * lib/fseeko.c (rpl_fseeko): Likewise.
32797         * lib/fseterr.c (fseterr): Likewise.
32798         * lib/fwritable.c (fwritable): Likewise.
32799         * lib/fwriting.c (fwriting): Likewise.
32800         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32801         Hourihane.
32802         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32803
32804 2009-02-28  Bruno Haible  <bruno@clisp.org>
32805
32806         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32807         SIGCHLD.
32808         Reported by Jim Meyering.
32809
32810 2009-02-28  Bruno Haible  <bruno@clisp.org>
32811
32812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32813         Mention the results of these tests on various platforms.
32814         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32815         order.
32816         * doc/posix-functions/printf.texi: Likewise.
32817         * doc/posix-functions/snprintf.texi: Likewise.
32818         * doc/posix-functions/sprintf.texi: Likewise.
32819         * doc/posix-functions/vfprintf.texi: Likewise.
32820         * doc/posix-functions/vprintf.texi: Likewise.
32821         * doc/posix-functions/vsnprintf.texi: Likewise.
32822         * doc/posix-functions/vsprintf.texi: Likewise.
32823         * doc/glibc-functions/obstack_printf.texi: Likewise.
32824         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32825
32826 2009-02-28  Bruno Haible  <bruno@clisp.org>
32827
32828         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32829         Reported by Loïc Minier <lool@dooz.org>.
32830
32831 2009-02-27  Bruno Haible  <bruno@clisp.org>
32832
32833         * gnulib-tool (func_import): Make the sed expression used to create the
32834         sed script for updating the .gitignore file POSIX compliant.
32835         Reported by Eric Blake.
32836
32837 2009-02-27  Bruno Haible  <bruno@clisp.org>
32838
32839         * gnulib-tool (sed): Don't alias as "sed --posix".
32840         Reported by Eric Blake.
32841
32842 2009-02-27  Bruno Haible  <bruno@clisp.org>
32843
32844         Avoid test link errors.
32845         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32846         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32847         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32848         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32850
32851 2009-02-27  Bruno Haible  <bruno@clisp.org>
32852
32853         Avoid spurious "(cached)" in configure output.
32854         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32855         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32856         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32857         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32858         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32859         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32860         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32861         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32862         Reported by Eric Blake.
32863
32864 2009-02-27  Eric Blake  <ebb9@byu.net>
32865
32866         printf: fix regression in previous patch
32867         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32868
32869 2009-02-27  Bruno Haible  <bruno@clisp.org>
32870
32871         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32872         value.
32873         * lib/stdint.in.h: Likewise.
32874         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32875
32876 2009-02-27  Eric Blake  <ebb9@byu.net>
32877
32878         doc: mention more functions added in cygwin 1.7.0
32879         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32880         addition.
32881         * doc/posix-functions/open_wmemstream.texi: Likewise.
32882         * doc/posix-functions/wcsnlen.texi: Likewise.
32883         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32884         * doc/posix-functions/wcstod.texi: Likewise.
32885         * doc/posix-functions/wcstof.texi: Likewise.
32886         * doc/posix-functions/wcstoimax.texi: Likewise.
32887         * doc/posix-functions/wcstok.texi: Likewise.
32888         * doc/posix-functions/wcstoumax.texi: Likewise.
32889
32890         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32892         * doc/posix-functions/fprintf.texi: Update.
32893         * doc/posix-functions/printf.texi: Update.
32894         * doc/posix-functions/snprintf.texi: Update.
32895         * doc/posix-functions/sprintf.texi: Update.
32896         * doc/posix-functions/vfprintf.texi: Update.
32897         * doc/posix-functions/vprintf.texi: Update.
32898         * doc/posix-functions/vsnprintf.texi: Update.
32899         * doc/posix-functions/vsprintf.texi: Update.
32900         * doc/glibc-functions/obstack_printf.texi: Update.
32901         * doc/glibc-functions/obstack_vprintf.texi: Update.
32902
32903 2009-02-26  Eric Blake  <ebb9@byu.net>
32904
32905         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32906         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32907         compilation bug by using runtime conversion.
32908         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32909         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32910         * modules/ceill-tests (Files): Use nan.h.
32911         * modules/floorl-tests (Files): Likewise.
32912         * modules/frexpl-tests (Files): Likewise.
32913         * modules/isnanl-tests (Files): Likewise.
32914         * modules/ldexpl-tests (Files): Likewise.
32915         * modules/roundl-tests (Files): Likewise.
32916         * modules/truncl-tests (Files): Likewise.
32917         * tests/test-ceill.c (main): Use a working NaN.
32918         * tests/test-floorl.c (main): Likewise.
32919         * tests/test-frexpl.c (main): Likewise.
32920         * tests/test-isnan.c (test_long_double): Likewise.
32921         * tests/test-isnanl.h (main): Likewise.
32922         * tests/test-ldexpl.h (main): Likewise.
32923         * tests/test-roundl.h (main): Likewise.
32924         * tests/test-truncl.h (main): Likewise.
32925         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32926
32927 2009-02-26  Eric Blake  <ebb9@byu.net>
32928             Bruno Haible  <bruno@clisp.org>
32929
32930         Work around a *printf bug with %ls on Solaris.
32931         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32932         precision is specified, sprintf stops converting the wide string
32933         argument when the number of bytes that have been produced by this
32934         conversion equals or exceeds the precision.
32935         * doc/posix-functions/fprintf.texi: Update.
32936         * doc/posix-functions/printf.texi: Update.
32937         * doc/posix-functions/snprintf.texi: Update.
32938         * doc/posix-functions/sprintf.texi: Update.
32939         * doc/posix-functions/vfprintf.texi: Update.
32940         * doc/posix-functions/vprintf.texi: Update.
32941         * doc/posix-functions/vsnprintf.texi: Update.
32942         * doc/posix-functions/vsprintf.texi: Update.
32943         * doc/glibc-functions/obstack_printf.texi: Update.
32944         * doc/glibc-functions/obstack_vprintf.texi: Update.
32945
32946 2009-02-26  Eric Blake  <ebb9@byu.net>
32947
32948         stdlib: favor compiler check of random.h
32949         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32950         to avoid an ObjC random.h installed by Swarm.
32951
32952 2009-02-26  Bruno Haible  <bruno@clisp.org>
32953
32954         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32955         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32956         Reported by Gary V. Vaughan <gary@gnu.org>.
32957
32958 2009-02-26  Bruno Haible  <bruno@clisp.org>
32959
32960         Fix *printf behaviour regarding the %ls directive.
32961         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32962         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32963         NEED_PRINTF_DIRECTIVE_LS.
32964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32965         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32967         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32968         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32969         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32970         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32975         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32979         * doc/posix-functions/fprintf.texi: Update.
32980         * doc/posix-functions/printf.texi: Update.
32981         * doc/posix-functions/snprintf.texi: Update.
32982         * doc/posix-functions/sprintf.texi: Update.
32983         * doc/posix-functions/vfprintf.texi: Update.
32984         * doc/posix-functions/vprintf.texi: Update.
32985         * doc/posix-functions/vsnprintf.texi: Update.
32986         * doc/posix-functions/vsprintf.texi: Update.
32987         * doc/glibc-functions/obstack_printf.texi: Update.
32988         * doc/glibc-functions/obstack_vprintf.texi: Update.
32989         Reported by Eric Blake.
32990
32991 2009-02-25  Bruno Haible  <bruno@clisp.org>
32992
32993         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32994         with known value.
32995         Reported by Gary V. Vaughan <gary@gnu.org>.
32996
32997 2009-02-25  Bruno Haible  <bruno@clisp.org>
32998
32999         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33000         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33001         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33002         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33003         Reported by Gary V. Vaughan <gary@gnu.org>.
33004
33005 2009-02-25  Bruno Haible  <bruno@clisp.org>
33006
33007         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33008         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33009         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33010         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33011         Reported by Gary V. Vaughan <gary@gnu.org>.
33012
33013 2009-02-25  Eric Blake  <ebb9@byu.net>
33014
33015         tests: skip fseek/ftell tests if ungetc is broken
33016         * m4/ungetc.m4: New file.
33017         * modules/fseek-tests: Split test, so ungetc dependency is
33018         separate from rest of test.
33019         * modules/fseeko-tests: Likewise.
33020         * modules/ftell-tests: Likewise.
33021         * modules/ftello-tests: Likewise.
33022         * tests/test-fseek.c (main): Isolate ungetc dependency.
33023         * tests/test-fseeko.c (main): Likewise.
33024         * tests/test-ftell.c (main): Likewise.
33025         * tests/test-ftello.c (main): Likewise.
33026         * tests/test-fseek2.sh: New file.
33027         * tests/test-fseeko2.sh: Likewise.
33028         * tests/test-ftell2.sh: Likewise.
33029         * tests/test-ftello2.sh: Likewise.
33030
33031 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33032
33033         test-getaddrinfo: fix usage of skip return code 77
33034         * tests/test-gettaddrinfo.c: Return skip code 77 only
33035         for first occurance of skip (4x77 is not 77)
33036
33037 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33038
33039         strtod: avoid C99 decl-after-statement
33040         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33041
33042 2009-02-24  Eric Blake  <ebb9@byu.net>
33043
33044         strtod: detect HP-UX 11.31 bug
33045         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33046         Reported by Gary V. Vaughan.
33047
33048 2009-02-23  Bruno Haible  <bruno@clisp.org>
33049
33050         Fix invalid read past end of memory block.
33051         * lib/vasnprintf.c (DCHAR_SET): Define.
33052         (local_wcslen): Define only when needed.
33053         (local_strnlen, local_wcsnlen): New functions.
33054         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33055         directives that involve a conversion ourselves.
33056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33057         wcsnlen, mbrtowc, wcrtomb.
33058         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33059         * tests/test-vasprintf-posix.c (test_function): Likewise.
33060         * tests/test-snprintf-posix.h (test_function): Likewise.
33061         * tests/test-sprintf-posix.h (test_function): Likewise.
33062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33063
33064 2009-02-22  Bruno Haible  <bruno@clisp.org>
33065
33066         Implement new clarified decomposition of Hangul syllables.
33067         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33068         of type LTV, return only a pairwise decomposition.
33069         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33070         Likewise.
33071         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33072         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33073         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33074
33075 2009-02-22  Bruno Haible  <bruno@clisp.org>
33076
33077         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33078         zero-length results and shrink excess allocated memory.
33079         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33080         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33081         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33082         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33083         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33084         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33085         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33086         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33087         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33088         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33089         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33090         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33091
33092 2009-02-21  Bruno Haible  <bruno@clisp.org>
33093
33094         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33095         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33096         spaces after a period. Put a space between a macro name and its
33097         argument list. Trivial rewordings.
33098         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33099         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33100         (main): Return 0 explicitly.
33101
33102 2009-02-21  Bruno Haible  <bruno@clisp.org>
33103
33104         Tests for module 'uninorm/filter'.
33105         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33106         * modules/uninorm/filter-tests: New file.
33107
33108         New module 'uninorm/filter'.
33109         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33110         uninorm_filter_flush, uninorm_filter_free): New declarations.
33111         * lib/uninorm/uninorm-filter.c: New file.
33112         * modules/uninorm/filter: New file.
33113
33114 2009-02-21  Bruno Haible  <bruno@clisp.org>
33115
33116         Tests for module 'uninorm/nfkc'.
33117         * tests/uninorm/test-nfkc.c: New file.
33118         * tests/uninorm/test-u8-nfkc.c: New file.
33119         * tests/uninorm/test-u16-nfkc.c: New file.
33120         * tests/uninorm/test-u32-nfkc.c: New file.
33121         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33122         * tests/uninorm/test-u32-nfkc-big.c: New file.
33123         * modules/uninorm/nfkc-tests: New file.
33124
33125         New module 'uninorm/nfkc'.
33126         * lib/uninorm/nfkc.c: New file.
33127         * modules/uninorm/nfkc: New file.
33128
33129         Tests for module 'uninorm/nfkd'.
33130         * tests/uninorm/test-nfkd.c: New file.
33131         * tests/uninorm/test-u8-nfkd.c: New file.
33132         * tests/uninorm/test-u16-nfkd.c: New file.
33133         * tests/uninorm/test-u32-nfkd.c: New file.
33134         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33135         * tests/uninorm/test-u32-nfkd-big.c: New file.
33136         * modules/uninorm/nfkd-tests: New file.
33137
33138         New module 'uninorm/nfkd'.
33139         * lib/uninorm/nfkd.c: New file.
33140         * modules/uninorm/nfkd: New file.
33141
33142         Tests for module 'uninorm/nfc'.
33143         * tests/uninorm/test-nfc.c: New file.
33144         * tests/uninorm/test-u8-nfc.c: New file.
33145         * tests/uninorm/test-u16-nfc.c: New file.
33146         * tests/uninorm/test-u32-nfc.c: New file.
33147         * tests/uninorm/test-u32-nfc-big.sh: New file.
33148         * tests/uninorm/test-u32-nfc-big.c: New file.
33149         * modules/uninorm/nfc-tests: New file.
33150
33151         New module 'uninorm/nfc'.
33152         * lib/uninorm/nfc.c: New file.
33153         * modules/uninorm/nfc: New file.
33154
33155         Tests for module 'uninorm/nfd'.
33156         * tests/uninorm/test-nfd.c: New file.
33157         * tests/uninorm/test-u8-nfd.c: New file.
33158         * tests/uninorm/test-u16-nfd.c: New file.
33159         * tests/uninorm/test-u32-nfd.c: New file.
33160         * tests/uninorm/test-u32-nfd-big.sh: New file.
33161         * tests/uninorm/test-u32-nfd-big.c: New file.
33162         * tests/uninorm/test-u32-normalize-big.h: New file.
33163         * tests/uninorm/test-u32-normalize-big.c: New file.
33164         * tests/uninorm/NormalizationTest.txt: New file, created from
33165         Unicode 5.1.0 NormalizationTest.txt.
33166         * modules/uninorm/nfd-tests: New file.
33167
33168         New module 'uninorm/nfd'.
33169         * lib/uninorm/nfd.c: New file.
33170         * modules/uninorm/nfd: New file.
33171
33172         New module 'uninorm/u32-normalize'.
33173         * lib/uninorm/u32-normalize.c: New file.
33174         * modules/uninorm/u32-normalize: New file.
33175
33176         New module 'uninorm/u16-normalize'.
33177         * lib/uninorm/u16-normalize.c: New file.
33178         * modules/uninorm/u16-normalize: New file.
33179
33180         New module 'uninorm/u8-normalize'.
33181         * lib/uninorm/u8-normalize.c: New file.
33182         * lib/uninorm/normalize-internal.h: New file.
33183         * lib/uninorm/u-normalize-internal.h: New file.
33184         * modules/uninorm/u8-normalize: New file.
33185
33186         New module 'uninorm/decompose-internal'.
33187         * lib/uninorm/decompose-internal.c: New file.
33188         * modules/uninorm/decompose-internal: New file.
33189
33190         Tests for module 'uninorm/composition'.
33191         * tests/uninorm/test-composition.c: New file.
33192         * modules/uninorm/composition-tests: New file.
33193
33194         New module 'uninorm/composition'.
33195         * lib/uninorm/composition.c: New file.
33196         * lib/uninorm/composition-table.gperf: New file, generated by
33197         gen-uni-tables.
33198         * modules/uninorm/composition: New file.
33199
33200         Tests for module 'uninorm/compat-decomposition'.
33201         * tests/uninorm/test-compat-decomposition.c: New file.
33202         * modules/uninorm/compat-decomposition-tests: New file.
33203
33204         New module 'uninorm/compat-decomposition'.
33205         * lib/uninorm/decompose-internal.h: New file.
33206         * lib/uninorm/compat-decomposition.c: New file.
33207         * modules/uninorm/compat-decomposition: New file.
33208
33209         Tests for module 'uninorm/canonical-decomposition'.
33210         * tests/uninorm/test-canonical-decomposition.c: New file.
33211         * modules/uninorm/canonical-decomposition-tests: New file.
33212
33213         New module 'uninorm/canonical-decomposition'.
33214         * lib/uninorm/canonical-decomposition.c: New file.
33215         * modules/uninorm/canonical-decomposition: New file.
33216
33217         Tests for module 'uninorm/decomposition'.
33218         * tests/uninorm/test-decomposition.c: New file.
33219         * modules/uninorm/decomposition-tests: New file.
33220
33221         New module 'uninorm/decomposition'.
33222         * lib/uninorm/decomposition.c: New file.
33223         * modules/uninorm/decomposition: New file.
33224
33225         New module 'uninorm/decomposition-table'.
33226         * lib/uninorm/decomposition-table.h: New file.
33227         * lib/uninorm/decomposition-table.c: New file.
33228         * lib/uninorm/decomposition-table1.h: New file, generated by
33229         gen-uni-tables.
33230         * lib/uninorm/decomposition-table2.h: New file, generated by
33231         gen-uni-tables.
33232         * modules/uninorm/decomposition-table: New file.
33233
33234         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33235         (UC_DECOMP_*): New enumeration items.
33236         (get_decomposition): New function.
33237         (struct decomp_table): New type.
33238         (output_decomposition, output_decomposition_tables): New functions.
33239         (unicode_composition_exclusions): New variable.
33240         (fill_composition_exclusions, debug_output_composition_tables): New
33241         functions.
33242         (main): Accept one more argument. Invoke fill_composition_exclusions.
33243         Output decomposition and composition tables.
33244
33245         New module 'uninorm/base'.
33246         * lib/uninorm.h: New file.
33247         * lib/unictype.h: Update comment.
33248         * modules/uninorm/base: New file.
33249
33250 2009-02-21  David Lutterkort  <lutter@redhat.com>
33251
33252         Tests for module 'safe-alloc'.
33253         * tests/test-safe-alloc.c: New file.
33254         * modules/safe-alloc-tests: New file.
33255
33256         New module 'safe-alloc'.
33257         * lib/safe-alloc.h: New file.
33258         * lib/safe-alloc.c: New file.
33259         * m4/safe-alloc.m4: New file.
33260         * modules/safe-alloc: New file.
33261         * doc/safe-alloc.texi: New file.
33262         * doc/gnulib.texi: Include it.
33263         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33264         safe-alloc.
33265
33266 2009-02-18  Bruno Haible  <bruno@clisp.org>
33267
33268         Fix link error on non-glibc systems.
33269         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33270         variable.
33271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33272
33273 2009-02-18  Jim Meyering  <meyering@redhat.com>
33274
33275         fts: avoid used-uninitialized error due to recent change
33276         * lib/fts.c (fts_read): Guard uses of the new member,
33277         parent->fts_n_dirs_remaining, since it's not relevant for
33278         the parent of a directory specified on the command-line.
33279
33280 2009-02-17  James Youngman  <jay@gnu.org>
33281             Bruno Haible  <bruno@clisp.org>
33282
33283         * m4/include_next.m4: Reformulate comment.
33284
33285 2009-02-16  Jim Meyering  <meyering@redhat.com>
33286
33287         fts: add #if guards so that the fts_lgpl module still builds
33288         * lib/fts.c: Guard just-added hash-table-using parts with
33289         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33290         Reported by Simon Josefsson.
33291
33292 2009-02-15  Bruno Haible  <bruno@clisp.org>
33293
33294         * modules/array-mergesort-tests: New file.
33295         * tests/test-array-mergesort.c: New file.
33296
33297         New module 'array-mergesort'.
33298         * modules/array-mergesort: New file.
33299         * lib/array-mergesort.h: New file.
33300
33301 2009-02-15  Bruno Haible  <bruno@clisp.org>
33302
33303         Fix 2009-02-07 commit.
33304         * lib/gen-uni-tables.c (output_predicate, output_category,
33305         output_combclass, output_bidi_category, output_decimal_digit,
33306         output_digit, output_numeric, output_mirror, output_scripts,
33307         output_ident_category, output_simple_mapping): Fix format directives.
33308         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33309
33310 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33311
33312         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33313         fixes are available from IBM.
33314
33315 2009-02-13  Jim Meyering  <meyering@redhat.com>
33316
33317         fts: arrange not to stat non-directories in more cases
33318         This makes GNU find (when it doesn't need to stat each file)
33319         *much* more efficient at traversing reiserfs file systems.
33320         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33321         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33322         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33323         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33324         (leaf_optimization_applies): New function.
33325         (LCO_hash, LCO_compare): New helper functions.
33326         (link_count_optimize_ok): New function.
33327         (fts_stat): Initialize new member (if dir).
33328         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33329         we've just stat'ed a directory.  Skip the stat call when possible.
33330         ---
33331         Note this AFS-related exchange:
33332         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33333         and note find's pioctl call in find/fstype.c.
33334         But that is necessary only if you want to enable the
33335         optimization for AFS, and for now, I don't.
33336
33337         fts: move a function definition "up" (no semantic change)
33338         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33339         "up" to precede upcoming use of a related function.
33340
33341 2009-02-11  Jim Meyering  <meyering@redhat.com>
33342
33343         fts: correct internal computation of nlinks (optimization-related)
33344         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33345         whether the current entry is a directory, so don't test it.
33346
33347 2009-02-10  Bruno Haible  <bruno@clisp.org>
33348
33349         Tests for module 'uniwbrk/ulc-wordbreaks'.
33350         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33351         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33352         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33353
33354         Tests for module 'uniwbrk/u32-wordbreaks'.
33355         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33356         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33357
33358         Tests for module 'uniwbrk/u16-wordbreaks'.
33359         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33360         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33361
33362         Tests for module 'uniwbrk/u8-wordbreaks'.
33363         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33364         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33365
33366 2009-02-10  Bruno Haible  <bruno@clisp.org>
33367
33368         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33369         property.
33370         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33371         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33372         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33373
33374 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33375
33376         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33377         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33378
33379 2009-02-10  Bruno Haible  <bruno@clisp.org>
33380
33381         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33382         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33383         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33384         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33385         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33386         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33387
33388 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33389
33390         * lib/sockets.h (gl_fd_to_handle): New function.
33391
33392         * tests/test-sockets.c: Call gl_fd_to_handle.
33393
33394 2009-02-09  Bruno Haible  <bruno@clisp.org>
33395
33396         * doc/havelib.texi: Document the conventions on bi-arch systems.
33397
33398 2009-02-08  Bruno Haible  <bruno@clisp.org>
33399
33400         Document the AC_LIB_LINKFLAGS macro.
33401         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33402         * doc/gnulib.texi: Include it.
33403
33404 2009-02-08  Bruno Haible  <bruno@clisp.org>
33405
33406         Fix wrong order of sections, compared to TOC.
33407         * doc/gnulib.texi: Include relocatable-maint.texi after the
33408         "Regular expressions" node, not before.
33409
33410 2009-02-08  Bruno Haible  <bruno@clisp.org>
33411
33412         Tests for module 'unicase/totitle'.
33413         * modules/unicase/totitle-tests: New file.
33414
33415         Tests for module 'unicase/tolower'.
33416         * modules/unicase/tolower-tests: New file.
33417
33418         Tests for module 'unicase/toupper'.
33419         * modules/unicase/toupper-tests: New file.
33420         * tests/unicase/test-mapping-part1.h: New file.
33421         * tests/unicase/test-mapping-part2.h: New file.
33422
33423         New module 'unicase/totitle'.
33424         * modules/unicase/totitle: New file.
33425         * lib/unicase/totitle.c: New file.
33426
33427         New module 'unicase/tolower'.
33428         * modules/unicase/tolower: New file.
33429         * lib/unicase/tolower.c: New file.
33430
33431         New module 'unicase/toupper'.
33432         * modules/unicase/toupper: New file.
33433         * lib/unicase/toupper.c: New file.
33434         * lib/unicase/simple-mapping.h: New file.
33435
33436         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33437         (mapping_table): New structure.
33438         (output_simple_mapping): New function.
33439         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33440         * modules/gen-uni-tables (Description): Update.
33441         * lib/unicase/toupper.h: New file, automatically generated by
33442         gen-uni-tables.
33443         * lib/unicase/tolower.h: New file, automatically generated by
33444         gen-uni-tables.
33445         * lib/unicase/totitle.h: New file, automatically generated by
33446         gen-uni-tables.
33447         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33448         gen-uni-tables.
33449         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33450         gen-uni-tables.
33451         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33452         gen-uni-tables.
33453
33454         New module 'unicase/base'.
33455         * modules/unicase/base: New file.
33456         * lib/unicase.h: New file.
33457
33458 2009-02-08  Bruno Haible  <bruno@clisp.org>
33459
33460         New module 'uniwbrk/ulc-wordbreaks'.
33461         * modules/uniwbrk/ulc-wordbreaks: New file.
33462         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33463
33464         New module 'uniwbrk/u32-wordbreaks'.
33465         * modules/uniwbrk/u32-wordbreaks: New file.
33466         * lib/uniwbrk/u32-wordbreaks.c: New file.
33467
33468         New module 'uniwbrk/u16-wordbreaks'.
33469         * modules/uniwbrk/u16-wordbreaks: New file.
33470         * lib/uniwbrk/u16-wordbreaks.c: New file.
33471
33472         New module 'uniwbrk/u8-wordbreaks'.
33473         * modules/uniwbrk/u8-wordbreaks: New file.
33474         * lib/uniwbrk/u8-wordbreaks.c: New file.
33475         * lib/uniwbrk/u-wordbreaks.h: New file.
33476
33477         New module 'uniwbrk/table'.
33478         * modules/uniwbrk/table: New file.
33479         * lib/uniwbrk/wbrktable.h: New file.
33480         * lib/uniwbrk/wbrktable.c: New file.
33481
33482         New module 'uniwbrk/wordbreak-property'.
33483         * modules/uniwbrk/wordbreak-property: New file.
33484         * lib/uniwbrk/wordbreak-property.c: New file.
33485
33486         * lib/gen-uni-tables.c (WBP_*): New enum items.
33487         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33488         (unicode_org_wbp): New variable.
33489         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33490         New functions.
33491         (wbp_table): New structure.
33492         (output_wbp, output_wbrk_tables): New functions.
33493         (main): Accept additional argument. Invoke fill_org_wbp,
33494         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33495         output_wbrk_tables.
33496         * modules/gen-uni-tables (Description): Update.
33497         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33498         gen-uni-tables.
33499
33500         New module 'uniwbrk/base'.
33501         * modules/uniwbrk/base: New file.
33502         * lib/uniwbrk.h: New file.
33503
33504 2009-02-08  Bruno Haible  <bruno@clisp.org>
33505
33506         Update to Unicode 5.1.0.
33507         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33508         U+2185..U+2188.
33509         (is_property_default_ignorable_code_point): Don't include characters
33510         of category Cc or Cs and not-a-characters.
33511         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33512         U+0D79, U+109E, U+109F, U+A60C.
33513         * lib/unictype/bidi_of.h: Regenerated.
33514         * lib/unictype/blocks.h: Regenerated.
33515         * lib/unictype/categ_C.h: Regenerated.
33516         * lib/unictype/categ_Cf.h: Regenerated.
33517         * lib/unictype/categ_Cn.h: Regenerated.
33518         * lib/unictype/categ_L.h: Regenerated.
33519         * lib/unictype/categ_Ll.h: Regenerated.
33520         * lib/unictype/categ_Lm.h: Regenerated.
33521         * lib/unictype/categ_Lo.h: Regenerated.
33522         * lib/unictype/categ_Lu.h: Regenerated.
33523         * lib/unictype/categ_M.h: Regenerated.
33524         * lib/unictype/categ_Mc.h: Regenerated.
33525         * lib/unictype/categ_Me.h: Regenerated.
33526         * lib/unictype/categ_Mn.h: Regenerated.
33527         * lib/unictype/categ_N.h: Regenerated.
33528         * lib/unictype/categ_Nd.h: Regenerated.
33529         * lib/unictype/categ_Nl.h: Regenerated.
33530         * lib/unictype/categ_No.h: Regenerated.
33531         * lib/unictype/categ_P.h: Regenerated.
33532         * lib/unictype/categ_Pd.h: Regenerated.
33533         * lib/unictype/categ_Pe.h: Regenerated.
33534         * lib/unictype/categ_Pf.h: Regenerated.
33535         * lib/unictype/categ_Pi.h: Regenerated.
33536         * lib/unictype/categ_Po.h: Regenerated.
33537         * lib/unictype/categ_Ps.h: Regenerated.
33538         * lib/unictype/categ_S.h: Regenerated.
33539         * lib/unictype/categ_Sk.h: Regenerated.
33540         * lib/unictype/categ_Sm.h: Regenerated.
33541         * lib/unictype/categ_So.h: Regenerated.
33542         * lib/unictype/categ_of.h: Regenerated.
33543         * lib/unictype/combining.h: Regenerated.
33544         * lib/unictype/ctype_alnum.h: Regenerated.
33545         * lib/unictype/ctype_alpha.h: Regenerated.
33546         * lib/unictype/ctype_graph.h: Regenerated.
33547         * lib/unictype/ctype_lower.h: Regenerated.
33548         * lib/unictype/ctype_print.h: Regenerated.
33549         * lib/unictype/ctype_punct.h: Regenerated.
33550         * lib/unictype/ctype_upper.h: Regenerated.
33551         * lib/unictype/decdigit.h: Regenerated.
33552         * lib/unictype/digit.h: Regenerated.
33553         * lib/unictype/mirror.h: Regenerated.
33554         * lib/unictype/numeric.h: Regenerated.
33555         * lib/unictype/pr_alphabetic.h: Regenerated.
33556         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33557         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33558         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33559         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33560         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33561         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33562         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33563         * lib/unictype/pr_combining.h: Regenerated.
33564         * lib/unictype/pr_dash.h: Regenerated.
33565         * lib/unictype/pr_decimal_digit.h: Regenerated.
33566         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33567         * lib/unictype/pr_deprecated.h: Regenerated.
33568         * lib/unictype/pr_diacritic.h: Regenerated.
33569         * lib/unictype/pr_extender.h: Regenerated.
33570         * lib/unictype/pr_format_control.h: Regenerated.
33571         * lib/unictype/pr_grapheme_base.h: Regenerated.
33572         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33573         * lib/unictype/pr_grapheme_link.h: Regenerated.
33574         * lib/unictype/pr_id_continue.h: Regenerated.
33575         * lib/unictype/pr_id_start.h: Regenerated.
33576         * lib/unictype/pr_ideographic.h: Regenerated.
33577         * lib/unictype/pr_ignorable_control.h: Regenerated.
33578         * lib/unictype/pr_lowercase.h: Regenerated.
33579         * lib/unictype/pr_math.h: Regenerated.
33580         * lib/unictype/pr_numeric.h: Regenerated.
33581         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33582         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33583         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33584         * lib/unictype/pr_other_id_continue.h: Regenerated.
33585         * lib/unictype/pr_other_lowercase.h: Regenerated.
33586         * lib/unictype/pr_other_math.h: Regenerated.
33587         * lib/unictype/pr_punctuation.h: Regenerated.
33588         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33589         * lib/unictype/pr_soft_dotted.h: Regenerated.
33590         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33591         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33592         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33593         * lib/unictype/pr_uppercase.h: Regenerated.
33594         * lib/unictype/pr_xid_continue.h: Regenerated.
33595         * lib/unictype/pr_xid_start.h: Regenerated.
33596         * lib/unictype/pr_zero_width.h: Regenerated.
33597         * lib/unictype/scripts.h: Regenerated.
33598         * lib/unictype/scripts_byname.gperf: Regenerated.
33599         * lib/unictype/sy_java_ident.h: Regenerated.
33600         * lib/unilbrk/lbrkprop1.h: Regenerated.
33601         * lib/unilbrk/lbrkprop2.h: Regenerated.
33602         * tests/unictype/test-categ_C.c: Regenerated.
33603         * tests/unictype/test-categ_Cf.c: Regenerated.
33604         * tests/unictype/test-categ_Cn.c: Regenerated.
33605         * tests/unictype/test-categ_L.c: Regenerated.
33606         * tests/unictype/test-categ_Ll.c: Regenerated.
33607         * tests/unictype/test-categ_Lm.c: Regenerated.
33608         * tests/unictype/test-categ_Lo.c: Regenerated.
33609         * tests/unictype/test-categ_Lu.c: Regenerated.
33610         * tests/unictype/test-categ_M.c: Regenerated.
33611         * tests/unictype/test-categ_Mc.c: Regenerated.
33612         * tests/unictype/test-categ_Me.c: Regenerated.
33613         * tests/unictype/test-categ_Mn.c: Regenerated.
33614         * tests/unictype/test-categ_N.c: Regenerated.
33615         * tests/unictype/test-categ_Nd.c: Regenerated.
33616         * tests/unictype/test-categ_Nl.c: Regenerated.
33617         * tests/unictype/test-categ_No.c: Regenerated.
33618         * tests/unictype/test-categ_P.c: Regenerated.
33619         * tests/unictype/test-categ_Pd.c: Regenerated.
33620         * tests/unictype/test-categ_Pe.c: Regenerated.
33621         * tests/unictype/test-categ_Pf.c: Regenerated.
33622         * tests/unictype/test-categ_Pi.c: Regenerated.
33623         * tests/unictype/test-categ_Po.c: Regenerated.
33624         * tests/unictype/test-categ_Ps.c: Regenerated.
33625         * tests/unictype/test-categ_S.c: Regenerated.
33626         * tests/unictype/test-categ_Sk.c: Regenerated.
33627         * tests/unictype/test-categ_Sm.c: Regenerated.
33628         * tests/unictype/test-categ_So.c: Regenerated.
33629         * tests/unictype/test-ctype_alnum.c: Regenerated.
33630         * tests/unictype/test-ctype_alpha.c: Regenerated.
33631         * tests/unictype/test-ctype_graph.c: Regenerated.
33632         * tests/unictype/test-ctype_lower.c: Regenerated.
33633         * tests/unictype/test-ctype_print.c: Regenerated.
33634         * tests/unictype/test-ctype_punct.c: Regenerated.
33635         * tests/unictype/test-ctype_upper.c: Regenerated.
33636         * tests/unictype/test-decdigit.h: Regenerated.
33637         * tests/unictype/test-digit.h: Regenerated.
33638         * tests/unictype/test-numeric.h: Regenerated.
33639         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33640         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33641         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33642         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33643         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33644         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33645         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33646         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33647         * tests/unictype/test-pr_combining.c: Regenerated.
33648         * tests/unictype/test-pr_dash.c: Regenerated.
33649         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33650         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33651         * tests/unictype/test-pr_deprecated.c: Regenerated.
33652         * tests/unictype/test-pr_diacritic.c: Regenerated.
33653         * tests/unictype/test-pr_extender.c: Regenerated.
33654         * tests/unictype/test-pr_format_control.c: Regenerated.
33655         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33656         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33657         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33658         * tests/unictype/test-pr_id_continue.c: Regenerated.
33659         * tests/unictype/test-pr_id_start.c: Regenerated.
33660         * tests/unictype/test-pr_ideographic.c: Regenerated.
33661         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33662         * tests/unictype/test-pr_lowercase.c: Regenerated.
33663         * tests/unictype/test-pr_math.c: Regenerated.
33664         * tests/unictype/test-pr_numeric.c: Regenerated.
33665         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33666         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33667         Regenerated.
33668         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33669         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33670         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33671         * tests/unictype/test-pr_other_math.c: Regenerated.
33672         * tests/unictype/test-pr_punctuation.c: Regenerated.
33673         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33674         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33675         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33676         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33677         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33678         * tests/unictype/test-pr_uppercase.c: Regenerated.
33679         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33680         * tests/unictype/test-pr_xid_start.c: Regenerated.
33681         * tests/unictype/test-pr_zero_width.c: Regenerated.
33682
33683         Update to Unicode 5.1.0.
33684         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33685         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33686         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33687         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33688         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33689         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33690         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33691         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33692         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33693         (nonspacing_table_ind): Update.
33694         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33695
33696         Update to Unicode 5.1.0.
33697         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33698         code transform.
33699         * lib/uniname/uniname.c (unicode_character_name,
33700         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33701         * lib/uniname/uninames.h: Regenerated.
33702         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33703
33704 2009-02-07  Bruno Haible  <bruno@clisp.org>
33705
33706         Merge gen-ctype and gen-lbrk into a single program.
33707         * lib/gen-uni-tables.c: New file, incorporating
33708         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33709         Add directory prefixes to the names of the generated files.
33710         * lib/unictype/gen-ctype.c: Remove file.
33711         * lib/unilbrk/gen-lbrk.c: Remove file.
33712         * modules/gen-uni-tables: New file.
33713         * modules/unictype/gen-ctype: Remove file.
33714         * modules/unilbrk/gen-lbrk: Remove file.
33715
33716 2009-02-07  Bruno Haible  <bruno@clisp.org>
33717
33718         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33719
33720         New module 'unistr/u32-strcoll'.
33721         * modules/unistr/u32-strcoll: New file.
33722         * lib/unistr/u32-strcoll.c: New file.
33723
33724         New module 'unistr/u16-strcoll'.
33725         * modules/unistr/u16-strcoll: New file.
33726         * lib/unistr/u16-strcoll.c: New file.
33727
33728         New module 'unistr/u8-strcoll'.
33729         * modules/unistr/u8-strcoll: New file.
33730         * lib/unistr/u8-strcoll.c: New file.
33731         * lib/unistr/u-strcoll.h: New file.
33732
33733 2009-02-07  Bruno Haible  <bruno@clisp.org>
33734
33735         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33736         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33737         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33738         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33739         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33740         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33741
33742 2009-02-07  Bruno Haible  <bruno@clisp.org>
33743
33744         Make 64-bit clean.
33745         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33746         output_combclass, output_bidi_category, output_decimal_digit,
33747         output_digit, output_numeric, output_mirror, output_scripts,
33748         output_ident_category): Use proper width specifier in format strings.
33749
33750 2009-02-07  Bruno Haible  <bruno@clisp.org>
33751
33752         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33753         failure behaviour.
33754
33755 2009-02-07  Jim Meyering  <meyering@redhat.com>
33756
33757         regex: avoid compilation failure with upcoming gcc-4.4
33758         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33759         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33760         "... error: integer overflow in preprocessor expression".
33761
33762 2009-02-05  Ben Pfaff  <blp@gnu.org>
33763
33764         Fix link errors on Windows when close module is used.
33765         * modules/close: Add $(LIB_CLOSE) to Link section.
33766         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33767         $(LIB_CLOSE) on Windows.
33768
33769 2009-02-05  Jim Meyering  <meyering@redhat.com>
33770
33771         still avoid unused-parameter warnings, but do it cleanly
33772         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33773         (get_fs_usage): Cast to void instead.
33774         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33775         (dev_from_mount_options, read_file_system_list): Cast to void.
33776         Prompted by Bruno Haible.
33777
33778 2009-02-04  Jim Meyering  <meyering@redhat.com>
33779
33780         fsusage.c: correct copyright year
33781         * lib/fsusage.c: Reflect year in which the change is pushed into
33782
33783         avoid misc. warnings
33784         * lib/fsusage.c (UNUSED_PARAM): Define.
33785         (get_fs_usage): Mark parameter "disk" as unused.
33786         * lib/getugroups.c (getgrent): Use "void" in prototype.
33787         * lib/mountlist.c: Mark unused parameters.
33788         (read_file_system_list): Declare a local with "const".
33789         * lib/nanosleep.c (getnow): Declare static.
33790         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33791
33792         dirfd: set errno upon failure
33793         * lib/dirfd.c: Include <errno.h>.
33794         Set errno to ENOTSUP when returning -1.
33795         * modules/dirfd (Depends-on): Add errno.
33796         Suggested by John Kodis <kodis@comcast.net>.
33797
33798 2009-02-01  Bruno Haible  <bruno@clisp.org>
33799
33800         Don't assume sizeof (long) >= sizeof (void *).
33801         * lib/memcmp.c: Include stdint.h.
33802         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33803         srcp2 to 'const byte *'.
33804         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33805         types to uintptr_t.
33806         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33807         * modules/memcmp (Depends-on): Add stdint.
33808         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33809
33810 2009-01-30  Eric Blake  <ebb9@byu.net>
33811
33812         fix more require-before-expand issues
33813         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33814         expand, AC_PROG_AWK.
33815         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33816
33817 2009-01-28  Eric Blake  <ebb9@byu.net>
33818
33819         version-etc: use consistent URL formatting
33820         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33821         Improve formatting.  Use fputs for string without %.
33822
33823 2009-01-28  Jim Meyering  <meyering@redhat.com>
33824
33825         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33826         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33827         "underquoted definition of NAME" from autoconf-2.59.
33828
33829 2009-01-28  Bruno Haible  <bruno@clisp.org>
33830
33831         * doc/gnulib.texi: Add "Obsolete modules" to index.
33832
33833 2009-01-28  Jim Meyering  <meyering@redhat.com>
33834
33835         useless-if-before-free: recognize more variants
33836         * build-aux/useless-if-before-free: Also recognize e.g.,
33837         if (NULL != p) free (p);
33838
33839 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33840
33841         test-getaddrinfo: skip (don't fail) this test when there's no network
33842         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33843         on the presumption that it means you lack network access.
33844
33845 2009-01-26  Jim Meyering  <meyering@redhat.com>
33846
33847         fflush: avoid warnings on modern systems
33848         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33849         pos and result, into scopes where they're used.
33850
33851 2009-01-26  Eric Blake  <ebb9@byu.net>
33852
33853         Silence warning reintroduced by recent extensions patch.
33854         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33855         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33856         autoconf.
33857
33858         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33859         * m4/00gnulib.m4: New file.
33860         * gnulib-tool (func_get_filelist): Always use it.
33861         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33862         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33863
33864 2009-01-25  Bruno Haible  <bruno@clisp.org>
33865
33866         Make test-quotearg work on MacOS X and AIX.
33867         * tests/test-quotearg.sh: New file.
33868         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33869         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33870         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33871         include <libintl.h>.
33872         (fake_locale): Remove variable.
33873         (gettext, dgettext, dcgettext): Remove functions.
33874         (main): Instead of setting a fake locale, set a real locale. Call
33875         textdomain and bindtextdomain.
33876         * modules/quotearg-tests (Files): Add the new files.
33877         (Depends-on): Add gettext, setenv, unsetenv.
33878         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33879         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33880         Augment TESTS_ENVIRONMENT.
33881
33882 2009-01-25  Bruno Haible  <bruno@clisp.org>
33883
33884         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33885         fr_FR.ISO8859-1 locale on MacOS X.
33886         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33887         ja_JP.eucJP locale on MacOS X.
33888         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33889         zh_CN.GB18030 locale on MacOS X.
33890
33891 2009-01-25  Bruno Haible  <bruno@clisp.org>
33892
33893         Avoid link errors on MacOS X 10.3.
33894         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33895         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33896
33897 2009-01-25  Bruno Haible  <bruno@clisp.org>
33898
33899         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33900         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33901         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33902         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33903         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33904         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33905         posix_spawnattr_init, posix_spawnattr_setsigmask,
33906         posix_spawnattr_setflags, posix_spawnattr_destroy.
33907
33908         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33909         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33910         * modules/execute (Files): Remove m4/posix_spawn.m4.
33911         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33912         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33913         posix_spawnattr_init, posix_spawnattr_setsigmask,
33914         posix_spawnattr_setflags, posix_spawnattr_destroy.
33915
33916 2009-01-25  Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/glthread/threadlib.c: Include <stdlib.h>.
33919
33920 2009-01-25  Bruno Haible  <bruno@clisp.org>
33921
33922         * lib/glthread/threadlib.c (dummy): New declaration.
33923
33924 2009-01-25  Bruno Haible  <bruno@clisp.org>
33925
33926         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33927         multibyte characters also for the GB18030 encoding. Don't crash when
33928         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33929
33930 2009-01-25  Bruno Haible  <bruno@clisp.org>
33931
33932         Avoid redefining 'struct random_data' on OSF/1 5.1.
33933         * lib/stdlib.in.h: Include <random.h> if it exists.
33934         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33935         HAVE_RANDOM_H. Include <random.h> when testing whether
33936         'struct random_data' exists.
33937         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33938
33939 2009-01-25  Bruno Haible  <bruno@clisp.org>
33940
33941         Don't install charset.alias on MacOS X >= 10.3.
33942         * lib/localcharset.c (DARWIN7): New macro.
33943         (get_charset_aliases): Hardcode the result for Darwin7.
33944         * modules/localcharset (install-exec-local): Don't install
33945         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33946
33947 2009-01-25  Bruno Haible  <bruno@clisp.org>
33948
33949         Don't install charset.alias on mingw and Cygwin.
33950         * modules/localcharset (install-exec-local): Don't install
33951         charset.alias on mingw and Cygwin, if the file does not yet exist.
33952         The result for these platforms is hardcoded in localcharset.c.
33953
33954 2009-01-25  Bruno Haible  <bruno@clisp.org>
33955
33956         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33957         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33958         before requiring AC_USE_SYSTEM_EXTENSIONS.
33959
33960 2009-01-25  Jim Meyering  <meyering@redhat.com>
33961
33962         c-strtod: avoid warnings
33963         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33964         "assignment discards qualifiers from pointer target type" warnings.
33965
33966 2009-01-24  Bruno Haible  <bruno@clisp.org>
33967
33968         Add support for non-UTF-8 locales on MacOS X.
33969         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33970         canonical encodings. For Darwin 7 and newer, don't map traditional
33971         encodings to UTF-8.
33972         Reported by Vincent Lefevre <vincent@vinc17.org>
33973         at <http://savannah.gnu.org/bugs/?25235>.
33974
33975 2009-01-24  Bruno Haible  <bruno@clisp.org>
33976
33977         * doc/gnulib.texi (Obsolete modules): New section.
33978         Reported by Mike Frysinger <vapier@gentoo.org>.
33979
33980 2009-01-24  Bruno Haible  <bruno@clisp.org>
33981
33982         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33983         (%.dvi): New rule.
33984
33985 2009-01-24  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33988         Reported by Eric Blake.
33989
33990 2009-01-24  Bruno Haible  <bruno@clisp.org>
33991
33992         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33993         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33994         Reported by Gary V. Vaughan <gary@gnu.org>.
33995
33996 2009-01-24  Bruno Haible  <bruno@clisp.org>
33997
33998         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33999
34000 2009-01-23  Bruno Haible  <bruno@clisp.org>
34001
34002         Make c-strtod, c-strtold usable in libraries.
34003         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34004         (C_STRTOD): Call strdup instead of xstrdup.
34005         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34006         * modules/c-strtold (Depends-on): Likewise.
34007         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34008         * NEWS: Mention the change.
34009         Reported by Michael Gold <mgold@ncf.ca>.
34010
34011 2009-01-23  Jim Meyering  <meyering@redhat.com>
34012
34013         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34014         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34015         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34016
34017 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34018
34019         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34020         GNU CoreUtils.
34021         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34022         * modules/version-etc (Description): Update.
34023
34024 2009-01-22  Bruno Haible  <bruno@clisp.org>
34025
34026         Cache the C locale object.
34027         * lib/c-strtod.c (c_locale_cache): New variable.
34028         (c_locale): New function.
34029         (C_STRTOD): Use it, and don't call freelocale.
34030         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34031         Suggested by Paolo Bonzini.
34032
34033 2009-01-21  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34036         conditions other than overflow.
34037
34038 2009-01-21  Bruno Haible  <bruno@clisp.org>
34039
34040         * lib/c-strtod.c: Include errno.h.
34041         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34042         value from STRTOD_L and STRTOD.
34043
34044 2009-01-21  Bruno Haible  <bruno@clisp.org>
34045         and Jim Meyering  <meyering@redhat.com>
34046
34047         nanosleep: skip configure test (fail it) for apple universal builds
34048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34049         universal builds, assume that nanosleep does not work.
34050         * modules/nanosleep (Depends-on): Add multiarch.
34051
34052         mktime: skip configure test (fail it) for apple universal builds
34053         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34054         universal builds, assume that mktime does not work.
34055         * modules/mktime (Depends-on): Add multiarch.
34056
34057 2009-01-21  Eric Blake  <ebb9@byu.net>
34058
34059         multiarch: avoid expand-before-require warning
34060         * modules/multiarch (configure.ac): Require, rather than expand,
34061         gl_MULTIARCH.
34062         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34063         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34064         enforce that all clients require it.  Partial reversion of
34065         2008-12-29 patch.
34066
34067         error: avoid expand-before-require warning
34068         * modules/errno (configure.ac): Require, rather than expand,
34069         gl_HEADER_ERRNO_H.
34070         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34071         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34072         enforce that all clients require it.
34073
34074         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34075         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34076         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34077         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34078
34079 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34080
34081         Revert:
34082         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34083
34084         regex: do not depend on obsolete modules.
34085         * modules/regex: Remove memcmp and memmove.
34086
34087 2009-01-20  Bruno Haible  <bruno@clisp.org>
34088
34089         Make the 'link' module link on Windows NT 4.
34090         * lib/link.c (_WIN32_WINNT): Don't define.
34091         (CreateHardLinkFuncType): New type.
34092         (CreateHardLinkFunc, initialized): New variables.
34093         (initialize): New function.
34094         (link): Invoke CreateHardLink indirectly through the function pointer.
34095
34096 2009-01-20  Bruno Haible  <bruno@clisp.org>
34097
34098         Fix compilation failure on mingw.
34099         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34100
34101 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34102
34103         * doc/c-strtod.texi: Mention a couple of restrictions.
34104
34105 2009-01-20  Jim Meyering  <meyering@redhat.com>
34106
34107         gettimeofday: move more declarations out of functions
34108         * lib/gettimeofday.c: Move extern declarations of tzset and
34109         gmtime out of containing functions.  Prompted by Bruno Haible.
34110
34111 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34112
34113         regex: do not depend on obsolete modules.
34114         * modules/regex: Remove memcmp and memmove.
34115
34116 2009-01-19  Bruno Haible  <bruno@clisp.org>
34117
34118         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34119         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34120         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34121         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34122         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34123
34124 2009-01-19  Bruno Haible  <bruno@clisp.org>
34125
34126         * tests/test-link.c: Include <errno.h>.
34127         (main): Exit with code 77 when a hard link cannot be created due to
34128         the file system.
34129         * tests/test-link.sh: Skip test when a hard link cannot be created due
34130         to the file system.
34131         Suggested by Eric Blake.
34132
34133 2009-01-19  Martin Lambers  <marlam@marlam.de>
34134
34135         * modules/link-tests: New file.
34136         * tests/test-link.sh: New file.
34137         * tests/test-link.c: New file.
34138
34139 2009-01-19  Eric Blake  <ebb9@byu.net>
34140
34141         doc: mention another function added in cygwin 1.7.0
34142         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34143         Another new function in cygwin 1.7.
34144
34145 2009-01-19  Bruno Haible  <bruno@clisp.org>
34146
34147         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34148         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34149         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34150         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34151         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34152         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34153         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34154         * m4/md4.m4 (gl_MD4): Likewise.
34155         * m4/md5.m4 (gl_MD5): Likewise.
34156         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34157         * m4/sha1.m4 (gl_SHA1): Likewise.
34158         * m4/sha256.m4 (gl_SHA256): Likewise.
34159         * m4/sha512.m4 (gl_SHA512): Likewise.
34160
34161 2009-01-19  Bruno Haible  <bruno@clisp.org>
34162
34163         * modules/uniname/uniname-tests (Depends-on): Add progname.
34164         * tests/uniname/test-uninames.c: Include progname.h.
34165         (main): Call set_program_name.
34166
34167         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34168         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34169         (main): Call set_program_name.
34170
34171         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34172         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34173         (main): Call set_program_name.
34174
34175         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34176         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34177         (main): Call set_program_name.
34178
34179         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34180         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34181         (main): Call set_program_name.
34182
34183         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34184         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34185         (main): Call set_program_name.
34186
34187         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34188         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34189         (main): Call set_program_name.
34190
34191         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34192         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34193         (main): Call set_program_name.
34194
34195         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34196         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34197         (main): Call set_program_name.
34198
34199 2009-01-19  Eric Blake  <ebb9@byu.net>
34200
34201         test-unistd: test previous patch
34202         * tests/test-unistd.c: Test *_FILENO macros.
34203
34204         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34205         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34206         Guarantee a definition.
34207         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34208         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34209         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34210         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34211         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34212         Likewise.
34213         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34214         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34215         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34216         Likewise.
34217         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34218         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34219         (STDERR_FILENO): Likewise.
34220         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34221         (STDERR_FILENO): Likewise.
34222         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34223         (STDERR_FILENO): Likewise.
34224         Reported by Elbert Pol.
34225
34226 2009-01-19  Eric Blake  <ebb9@byu.net>
34227
34228         doc: mention more functions added in cygwin 1.7.0
34229         * doc/posix-functions/abort.texi (abort): Update wording related
34230         to cygwin.
34231         * doc/posix-functions/daylight.texi (daylight): Likewise.
34232         * doc/posix-functions/optarg.texi (optarg): Likewise.
34233         * doc/posix-functions/optarg.texi (opterr): Likewise.
34234         * doc/posix-functions/optarg.texi (optind): Likewise.
34235         * doc/posix-functions/optarg.texi (optopt): Likewise.
34236         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34237         worked in 1.5.x, and was withdrawn in 1.7.
34238         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34239         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34240         cygwin versions.
34241         * doc/posix-functions/perror.texi (perror): Likewise.
34242         * doc/posix-functions/printf.texi (printf): Likewise.
34243         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34244         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34245         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34246         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34247         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34248         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34249         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34250         Likewise.
34251         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34252         Likewise.
34253         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34254         this function.
34255         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34256         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34257         Likewise.
34258         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34259         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34260         * doc/posix-functions/confstr.texi (confstr): Likewise.
34261         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34262         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34263         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34264         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34265         * doc/posix-functions/fputws.texi (fputws): Likewise.
34266         * doc/posix-functions/fwide.texi (fwide): Likewise.
34267         * doc/posix-functions/getwc.texi (getwc): Likewise.
34268         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34269         * doc/posix-functions/putwc.texi (putwc): Likewise.
34270         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34271         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34272         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34273         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34274         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34275         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34276         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34277         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34278         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34279         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34280         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34281
34282 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34283
34284         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34285         * lib/ioctl.c: Include <sys/ioctl.h>.
34286
34287 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34288
34289         * modules/getdate-tests (Depends-on): Add progname.
34290         * tests/test-getdate.c: Use progname module, to avoid link errors
34291         on non-glibc systems.
34292
34293 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34294
34295         * modules/filenamecat-tests (Depends-on): Add progname.
34296         * modules/fstrcmp-tests (Depends-on): Likewise.
34297
34298         * tests/test-filenamecat.c: Use progname module, to avoid link
34299         errors on non-glibc systems.
34300         * tests/test-fstrcmp.c: Likewise.
34301
34302 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34303
34304         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34305         * lib/gettimeofday.c: Move extern declaration out of function.
34306
34307 2009-01-18  Bruno Haible  <bruno@clisp.org>
34308
34309         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34310         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34311         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34312
34313 2009-01-18  Bruno Haible  <bruno@clisp.org>
34314
34315         * lib/strftime.c (MEMPCPY): Remove unused macro.
34316         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34317
34318 2009-01-18  Martin Lambers  <marlam@marlam.de>
34319
34320         New module 'link'.
34321         * lib/unistd.in.h (link): New declaration.
34322         * lib/link.c: New file.
34323         * m4/link.m4: New file.
34324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34325         HAVE_LINK.
34326         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34327         * modules/link: New file.
34328         * doc/posix-functions/link.texi: Mention the new module.
34329
34330 2009-01-18  Bruno Haible  <bruno@clisp.org>
34331
34332         * tests/test-avltree_list.c (main): Call set_program_name.
34333         * tests/test-avltree_oset.c (main): Likewise.
34334         * tests/test-obstack-printf.c: Include progname.h.
34335         (main): Call set_program_name.
34336         * tests/test-quotearg.c: Include progname.h.
34337         (main): Call set_program_name.
34338         * tests/test-xmemdup0.c: Include progname.h.
34339         (main): Call set_program_name.
34340
34341 2009-01-18  Bruno Haible  <bruno@clisp.org>
34342
34343         New module 'alphasort'.
34344         * lib/dirent.in.h (alphasort): New declaration.
34345         * lib/alphasort.c: New file, from glibc with modifications.
34346         * m4/alphasort.m4: New file.
34347         * modules/alphasort: New file.
34348         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34349         HAVE_ALPHASORT.
34350         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34351         HAVE_ALPHASORT.
34352         * doc/posix-functions/alphasort.texi: Mention the new module and the
34353         portability problems.
34354
34355 2009-01-18  Bruno Haible  <bruno@clisp.org>
34356
34357         New module 'scandir'.
34358         * lib/dirent.in.h (scandir): New declaration.
34359         * lib/scandir.c: New file, from glibc with modifications.
34360         * m4/scandir.m4: New file.
34361         * modules/scandir: New file.
34362         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34363         HAVE_SCANDIR.
34364         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34365         HAVE_SCANDIR.
34366         * doc/posix-functions/scandir.texi: Mention the new module and the
34367         portability problems.
34368
34369 2009-01-17  Bruno Haible  <bruno@clisp.org>
34370
34371         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34372         Update documentation.
34373         (func_remove_suffix): Escape all dots in the suffix. Update
34374         documentation.
34375         (func_filter_filelist): Update documentation.
34376         Reported by Ralf Wildenhues.
34377
34378 2009-01-17  Bruno Haible  <bruno@clisp.org>
34379
34380         * modules/dprintf-posix-tests: New file.
34381         * tests/test-dprintf-posix.sh: New file.
34382         * tests/test-dprintf-posix.c: New file.
34383
34384         New modules 'dprintf', 'dprintf-posix'.
34385         * lib/stdio.in.h (dprintf): New declaration.
34386         * lib/dprintf.c: New file.
34387         * m4/dprintf.m4: New file.
34388         * m4/dprintf-posix.m4: New file.
34389         * modules/dprintf: New file.
34390         * modules/dprintf-posix: New file.
34391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34392         HAVE_DPRINTF, REPLACE_DPRINTF.
34393         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34394         HAVE_DPRINTF, REPLACE_DPRINTF.
34395         * doc/posix-functions/dprintf.texi: Mention the new modules.
34396
34397 2009-01-17  Bruno Haible  <bruno@clisp.org>
34398
34399         * modules/vdprintf-posix-tests: New file.
34400         * tests/test-vdprintf-posix.sh: New file.
34401         * tests/test-vdprintf-posix.c: New file.
34402
34403         New modules 'vdprintf', 'vdprintf-posix'.
34404         * lib/stdio.in.h (vdprintf): New declaration.
34405         * lib/vdprintf.c: New file.
34406         * m4/vdprintf.m4: New file.
34407         * m4/vdprintf-posix.m4: New file.
34408         * modules/vdprintf: New file.
34409         * modules/vdprintf-posix: New file.
34410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34411         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34412         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34413         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34414         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34415
34416 2009-01-17  Bruno Haible  <bruno@clisp.org>
34417
34418         Fix replacement of fopen on mingw.
34419         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34420         mingw.
34421
34422 2009-01-17  Bruno Haible  <bruno@clisp.org>
34423
34424         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34425         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34426
34427 2009-01-17  Bruno Haible  <bruno@clisp.org>
34428
34429         Avoid test-fflush2.sh failure on mingw.
34430         * tests/test-fflush2.c: Include binary-io.h.
34431         (main): Put standard input into binary mode.
34432         * modules/fflush-tests (Depends-on): Add binary-io.
34433
34434 2009-01-17  Bruno Haible  <bruno@clisp.org>
34435
34436         * lib/wchar.in.h: In another particular situation, include only the
34437         system's <wchar.h> file.
34438         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34439         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34440         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34441
34442 2009-01-17  Bruno Haible  <bruno@clisp.org>
34443
34444         Support for stripping executables in --enable-relocatable.
34445         * build-aux/install-reloc: Expect one more argument, or an environment
34446         variable RELOC_STRIP_PROG. If set, strip the destination program and
34447         its wrapper.
34448         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34449         RELOC_STRIP_PROG.
34450         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34451         to set RELOCATABLE_STRIP.
34452         * NEWS: Mention the new Makefile requirement.
34453
34454 2009-01-17  Bruno Haible  <bruno@clisp.org>
34455
34456         * build-aux/install-reloc: Remove debugging information left over by
34457         C compiler on MacOS X.
34458
34459 2009-01-17  Bruno Haible  <bruno@clisp.org>
34460
34461         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34462         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34463         _NSGetExecutablePath.
34464
34465 2009-01-16  Jim Meyering  <meyering@redhat.com>
34466
34467         strerror: avoid warnings about discarding "const"
34468         * lib/strerror.c (rpl_strerror): Instead of returning a const
34469         string from each and every "case", use a variable, and add a single
34470         cast after the switch.
34471
34472 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34473
34474         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34475
34476 2009-01-16  Bruno Haible  <bruno@clisp.org>
34477
34478         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34479         array initializer syntax that also works in C++ mode.
34480         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34481
34482 2009-01-16  Jim Meyering  <meyering@redhat.com>
34483
34484         poll: suppress a warning
34485         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34486         to ignore "...unsigned expression < 0 is always false" warnings.
34487
34488 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34489
34490         poll: remove declarations of unused variables
34491         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34492         sockbuf and optlen.
34493
34494 2009-01-15  Bruno Haible  <bruno@clisp.org>
34495
34496         Make fflush-after-ungetc POSIX compliant on BSD systems.
34497         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34498         (clear_ungetc_buffer): Implement also for other systems.
34499         (rpl_fflush): On glibc systems, invoke
34500         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34501         clear_ungetc_buffer after fetching the stream's position, not before.
34502
34503 2009-01-15  Bruno Haible  <bruno@clisp.org>
34504
34505         Make fflush-after-ungetc POSIX compliant on glibc systems.
34506         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34507         after ungetc.
34508         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34509         (rpl_fflush): On glibc systems, simply call the system's fflush
34510         function after clearing the ungetc buffer.
34511         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34512         Instead, lseek only to the end of file, then use the system's fseeko
34513         for the rest. On glibc systems, reset the EOF indicator bit.
34514
34515 2009-01-15  Jim Meyering  <meyering@redhat.com>
34516
34517         openmp.m4: revert quote-adding change, for portability to older autoconf
34518         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34519         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34520         Simon Josefsson noticed the problem when using autoconf-2.61.
34521
34522 2009-01-15  Bruno Haible  <bruno@clisp.org>
34523
34524         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34525         * tests/test-fflush2.c (ASSERT): Always fail.
34526         (main): Add two tests for fflush() after ungetc(), taking into account
34527         the Austin Group's clarification.
34528         Suggested by Eric Blake.
34529
34530 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34531
34532         mktime.m4: remove K&R-style function prototypes
34533         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34534         for the Sun C++ compiler.
34535
34536 2009-01-14  Bruno Haible  <bruno@clisp.org>
34537
34538         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34539         while including <wchar.h>.
34540         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34541         the system's <wchar.h> file.
34542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34543
34544 2009-01-14  Bruno Haible  <bruno@clisp.org>
34545
34546         * m4/csharp.m4: Don't mention gettext on the serial number line.
34547         * m4/csharpexec.m4: Likewise.
34548         * m4/eaccess.m4: Likewise.
34549         * m4/javaexec.m4: Likewise.
34550         * m4/sig_atomic_t.m4: Likewise.
34551         * m4/tmpdir.m4: Likewise.
34552         * m4/intldir.m4: Bump gettext version.
34553         * m4/lib-ld.m4: Likewise.
34554
34555 2009-01-14  Bruno Haible  <bruno@clisp.org>
34556
34557         * lib/progname.c (set_program_name): Add more comments.
34558         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34559
34560 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34561
34562         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34563         were sys/stat.h does not define it.
34564
34565 2009-01-14  Jim Meyering  <meyering@redhat.com>
34566
34567         many *.m4 files: improve m4 quoting
34568         99% of this change was performed by running the following commands:
34569         git ls-files | grep '\.m4$' | xargs perl -pi \
34570           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34571           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34572           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34573           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34574         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34575         The remainder were to add Copyright dates, increment serial numbers,
34576         undo some changes in comments, exclude m4/intl.m4, and add quotes
34577         around the "1" in ",1" where the unusual spacing prohibited the
34578         above regexps from doing the job.  For more details, see
34579         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34580         * m4/acl.m4: Modified.
34581         * m4/afs.m4: Likewise.
34582         * m4/alloca.m4: Likewise.
34583         * m4/argp.m4: Likewise.
34584         * m4/argz.m4: Likewise.
34585         * m4/atexit.m4: Likewise.
34586         * m4/bison-i18n.m4: Likewise.
34587         * m4/bison.m4: Likewise.
34588         * m4/byteswap.m4: Likewise.
34589         * m4/c-stack.m4: Likewise.
34590         * m4/c-strtod.m4: Likewise.
34591         * m4/calloc.m4: Likewise.
34592         * m4/canonicalize-lgpl.m4: Likewise.
34593         * m4/chown.m4: Likewise.
34594         * m4/clock_time.m4: Likewise.
34595         * m4/codeset.m4: Likewise.
34596         * m4/copy-file.m4: Likewise.
34597         * m4/csharp.m4: Likewise.
34598         * m4/csharpcomp.m4: Likewise.
34599         * m4/csharpexec.m4: Likewise.
34600         * m4/d-ino.m4: Likewise.
34601         * m4/d-type.m4: Likewise.
34602         * m4/dirfd.m4: Likewise.
34603         * m4/double-slash-root.m4: Likewise.
34604         * m4/eaccess.m4: Likewise.
34605         * m4/eealloc.m4: Likewise.
34606         * m4/environ.m4: Likewise.
34607         * m4/errno_h.m4: Likewise.
34608         * m4/euidaccess.m4: Likewise.
34609         * m4/execute.m4: Likewise.
34610         * m4/fatal-signal.m4: Likewise.
34611         * m4/fchdir.m4: Likewise.
34612         * m4/fcntl_h.m4: Likewise.
34613         * m4/fileblocks.m4: Likewise.
34614         * m4/filenamecat.m4: Likewise.
34615         * m4/findprog.m4: Likewise.
34616         * m4/flexmember.m4: Likewise.
34617         * m4/fnmatch.m4: Likewise.
34618         * m4/fopen.m4: Likewise.
34619         * m4/fpending.m4: Likewise.
34620         * m4/fprintf-posix.m4: Likewise.
34621         * m4/free.m4: Likewise.
34622         * m4/frexp.m4: Likewise.
34623         * m4/frexpl.m4: Likewise.
34624         * m4/fsusage.m4: Likewise.
34625         * m4/ftruncate.m4: Likewise.
34626         * m4/gc-camellia.m4: Likewise.
34627         * m4/gc-random.m4: Likewise.
34628         * m4/gc.m4: Likewise.
34629         * m4/getaddrinfo.m4: Likewise.
34630         * m4/getcwd-abort-bug.m4: Likewise.
34631         * m4/getcwd-path-max.m4: Likewise.
34632         * m4/getdate.m4: Likewise.
34633         * m4/getdomainname.m4: Likewise.
34634         * m4/getgroups.m4: Likewise.
34635         * m4/gethostname.m4: Likewise.
34636         * m4/gethrxtime.m4: Likewise.
34637         * m4/getline.m4: Likewise.
34638         * m4/getloadavg.m4: Likewise.
34639         * m4/getndelim2.m4: Likewise.
34640         * m4/getpass.m4: Likewise.
34641         * m4/gettext.m4: Likewise.
34642         * m4/gettime.m4: Likewise.
34643         * m4/gettimeofday.m4: Likewise.
34644         * m4/gnulib-common.m4: Likewise.
34645         * m4/group-member.m4: Likewise.
34646         * m4/host-os.m4: Likewise.
34647         * m4/iconv.m4: Likewise.
34648         * m4/iconv_open.m4: Likewise.
34649         * m4/inet_ntop.m4: Likewise.
34650         * m4/inet_pton.m4: Likewise.
34651         * m4/inline.m4: Likewise.
34652         * m4/intldir.m4: Likewise.
34653         * m4/intlmacosx.m4: Likewise.
34654         * m4/intmax.m4: Likewise.
34655         * m4/intmax_t.m4: Likewise.
34656         * m4/inttypes.m4: Likewise.
34657         * m4/inttypes_h.m4: Likewise.
34658         * m4/inttypes-pri.m4: Likewise.
34659         * m4/isapipe.m4: Likewise.
34660         * m4/isnand.m4: Likewise.
34661         * m4/isnanf.m4: Likewise.
34662         * m4/isnanl.m4: Likewise.
34663         * m4/javacomp.m4: Likewise.
34664         * m4/javaexec.m4: Likewise.
34665         * m4/jm-winsz1.m4: Likewise.
34666         * m4/jm-winsz2.m4: Likewise.
34667         * m4/lchown.m4: Likewise.
34668         * m4/lcmessage.m4: Likewise.
34669         * m4/ldexpl.m4: Likewise.
34670         * m4/lib-ld.m4: Likewise.
34671         * m4/lib-link.m4: Likewise.
34672         * m4/libsigsegv.m4: Likewise.
34673         * m4/link-follow.m4: Likewise.
34674         * m4/localcharset.m4: Likewise.
34675         * m4/locale-fr.m4: Likewise.
34676         * m4/locale-ja.m4: Likewise.
34677         * m4/locale-tr.m4: Likewise.
34678         * m4/locale-zh.m4: Likewise.
34679         * m4/lock.m4: Likewise.
34680         * m4/longlong.m4: Likewise.
34681         * m4/ls-mntd-fs.m4: Likewise.
34682         * m4/lstat.m4: Likewise.
34683         * m4/malloc.m4: Likewise.
34684         * m4/mathl.m4: Likewise.
34685         * m4/mbrtowc.m4: Likewise.
34686         * m4/mbstate_t.m4: Likewise.
34687         * m4/mbswidth.m4: Likewise.
34688         * m4/memchr.m4: Likewise.
34689         * m4/memcmp.m4: Likewise.
34690         * m4/memcpy.m4: Likewise.
34691         * m4/memmem.m4: Likewise.
34692         * m4/memmove.m4: Likewise.
34693         * m4/mempcpy.m4: Likewise.
34694         * m4/memrchr.m4: Likewise.
34695         * m4/memset.m4: Likewise.
34696         * m4/minmax.m4: Likewise.
34697         * m4/mkdir-slash.m4: Likewise.
34698         * m4/mkdtemp.m4: Likewise.
34699         * m4/mktime.m4: Likewise.
34700         * m4/mmap-anon.m4: Likewise.
34701         * m4/mountlist.m4: Likewise.
34702         * m4/nanosleep.m4: Likewise.
34703         * m4/nls.m4: Likewise.
34704         * m4/nocrash.m4: Likewise.
34705         * m4/open.m4: Likewise.
34706         * m4/openat.m4: Likewise.
34707         * m4/openmp.m4: Likewise.
34708         * m4/pathmax.m4: Likewise.
34709         * m4/perl.m4: Likewise.
34710         * m4/physmem.m4: Likewise.
34711         * m4/pipe.m4: Likewise.
34712         * m4/po.m4: Likewise.
34713         * m4/poll.m4: Likewise.
34714         * m4/posixtm.m4: Likewise.
34715         * m4/posixver.m4: Likewise.
34716         * m4/printf-frexp.m4: Likewise.
34717         * m4/printf-frexpl.m4: Likewise.
34718         * m4/printf-posix.m4: Likewise.
34719         * m4/printf-posix-rpl.m4: Likewise.
34720         * m4/printf.m4: Likewise.
34721         * m4/progtest.m4: Likewise.
34722         * m4/putenv.m4: Likewise.
34723         * m4/readline.m4: Likewise.
34724         * m4/readlink.m4: Likewise.
34725         * m4/readutmp.m4: Likewise.
34726         * m4/realloc.m4: Likewise.
34727         * m4/regex.m4: Likewise.
34728         * m4/relocatable.m4: Likewise.
34729         * m4/relocatable-lib.m4: Likewise.
34730         * m4/rename-dest-slash.m4: Likewise.
34731         * m4/rename.m4: Likewise.
34732         * m4/rmdir-errno.m4: Likewise.
34733         * m4/rmdir.m4: Likewise.
34734         * m4/roundf.m4: Likewise.
34735         * m4/roundl.m4: Likewise.
34736         * m4/rpmatch.m4: Likewise.
34737         * m4/save-cwd.m4: Likewise.
34738         * m4/selinux-selinux-h.m4: Likewise.
34739         * m4/setenv.m4: Likewise.
34740         * m4/settime.m4: Likewise.
34741         * m4/sig2str.m4: Likewise.
34742         * m4/sig_atomic_t.m4: Likewise.
34743         * m4/signalblocking.m4: Likewise.
34744         * m4/signbit.m4: Likewise.
34745         * m4/sigpipe.m4: Likewise.
34746         * m4/sockets.m4: Likewise.
34747         * m4/sockpfaf.m4: Likewise.
34748         * m4/st_dm_mode.m4: Likewise.
34749         * m4/stat-time.m4: Likewise.
34750         * m4/stdbool.m4: Likewise.
34751         * m4/stdint.m4: Likewise.
34752         * m4/stdint_h.m4: Likewise.
34753         * m4/stpcpy.m4: Likewise.
34754         * m4/stpncpy.m4: Likewise.
34755         * m4/strcase.m4: Likewise.
34756         * m4/strchrnul.m4: Likewise.
34757         * m4/strcspn.m4: Likewise.
34758         * m4/strdup.m4: Likewise.
34759         * m4/strftime.m4: Likewise.
34760         * m4/strndup.m4: Likewise.
34761         * m4/strnlen.m4: Likewise.
34762         * m4/strpbrk.m4: Likewise.
34763         * m4/strptime.m4: Likewise.
34764         * m4/strsep.m4: Likewise.
34765         * m4/strtod.m4: Likewise.
34766         * m4/strtoimax.m4: Likewise.
34767         * m4/strtok_r.m4: Likewise.
34768         * m4/strtol.m4: Likewise.
34769         * m4/strtoll.m4: Likewise.
34770         * m4/strtoul.m4: Likewise.
34771         * m4/strtoull.m4: Likewise.
34772         * m4/strtoumax.m4: Likewise.
34773         * m4/strverscmp.m4: Likewise.
34774         * m4/threadlib.m4: Likewise.
34775         * m4/timegm.m4: Likewise.
34776         * m4/tm_gmtoff.m4: Likewise.
34777         * m4/tmpdir.m4: Likewise.
34778         * m4/tmpfile.m4: Likewise.
34779         * m4/tzset.m4: Likewise.
34780         * m4/uintmax_t.m4: Likewise.
34781         * m4/unlinkdir.m4: Likewise.
34782         * m4/unlocked-io.m4: Likewise.
34783         * m4/uptime.m4: Likewise.
34784         * m4/userspec.m4: Likewise.
34785         * m4/utimbuf.m4: Likewise.
34786         * m4/utime.m4: Likewise.
34787         * m4/utimes-null.m4: Likewise.
34788         * m4/utimes.m4: Likewise.
34789         * m4/vararrays.m4: Likewise.
34790         * m4/vasnprintf.m4: Likewise.
34791         * m4/vfprintf-posix.m4: Likewise.
34792         * m4/vprintf-posix.m4: Likewise.
34793         * m4/wait-process.m4: Likewise.
34794         * m4/wchar_t.m4: Likewise.
34795         * m4/wint_t.m4: Likewise.
34796         * m4/write-any-file.m4: Likewise.
34797         * m4/yield.m4: Likewise.
34798
34799 2009-01-13  Bruno Haible  <bruno@clisp.org>
34800
34801         Avoid test-copy-file.sh failures when ACL support insufficient.
34802         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34803         TESTS_ENVIRONMENT.
34804         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34805         Reported by Jim Meyering.
34806
34807 2009-01-13  Bruno Haible  <bruno@clisp.org>
34808
34809         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34810         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34811         * modules/unistdio/u8-printf-parse (Files): Likewise.
34812         * modules/unistdio/u32-printf-parse (Files): Likewise.
34813         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34814
34815 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34816
34817         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34818         and m4/inttypes_h.m4 too.
34819
34820 2009-01-12  Eric Blake  <ebb9@byu.net>
34821
34822         tests: IRIX 6.2 cc can't compile -0.0 into .data
34823         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34824         rather than at compile-time.
34825         * tests/test-floorl.c (minus_zero): Likewise.
34826         * tests/test-frexpl.c (minus_zero): Likewise.
34827         * tests/test-isnan.c (minus_zerol): Likewise.
34828         * tests/test-isnanl.h (minus_zero): Likewise.
34829         * tests/test-ldexpl.c (minus_zero): Likewise.
34830         * tests/test-roundl.c (minus_zero): Likewise.
34831         * tests/test-signbit.c (minus_zerol): Likewise.
34832         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34833         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34834         * tests/test-truncl.c (minus_zero): Likewise.
34835         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34836         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34837         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34838
34839 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34840
34841         regex: fix glibc bug 9697
34842         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34843         handling.
34844
34845 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34846
34847         regex: fix glibc bug 697
34848         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34849         being NULL also if there are no backreferences.
34850
34851 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34852
34853         regex: merge glibc changes
34854         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34855         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34856         re_string_skip_chars, re_string_reconstruct): Likewise.
34857         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34858
34859 2009-01-07  Jim Meyering  <meyering@redhat.com>
34860
34861         poll: filter through cppi
34862         * lib/poll.c: Indent cpp directives to reflect nesting.
34863
34864 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34865
34866         poll: don't return uninitialized
34867         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34868
34869 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34870
34871         avoid compile failure on AIX 6.1
34872         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34873         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34874
34875 2009-01-04  Jim Meyering  <meyering@redhat.com>
34876
34877         remove duplicate inclusion of <stdio.h>
34878         * tests/test-fprintf-posix.c: Likewise.
34879         * tests/test-printf-posix.c: Likewise.
34880         * tests/test-snprintf-posix.c: Likewise.
34881         * tests/test-sprintf-posix.c: Likewise.
34882         * tests/test-vasprintf-posix.c: Likewise.
34883         * tests/test-vfprintf-posix.c: Likewise.
34884         * tests/test-vprintf-posix.c: Likewise.
34885         * tests/test-vsnprintf-posix.c: Likewise.
34886         * tests/test-vsprintf-posix.c: Likewise.
34887
34888 2009-01-03  Jim Meyering  <meyering@redhat.com>
34889
34890         gnulib-tool: fix sed-based filtering
34891         * gnulib-tool (func_filter_filelist): Remove extra backslash
34892         in sed_fff_filter definition.
34893
34894 2009-01-02  Jim Meyering  <meyering@redhat.com>
34895
34896         strftime: avoid compilation failure on Solaris 2.6
34897         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34898         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34899         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34900         be available.  Reported by Tom G. Christensen.  Details in
34901         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34902
34903 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34904             Bruno Haible  <bruno@clisp.org>
34905
34906         Speed up gnulib-tool by doing more string processing through shell
34907         built-ins.
34908         * gnulib-tool (fast_func_append): New variable.
34909         (func_remove_prefix, func_remove_suffix): New functions.
34910         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34911         (func_filter_filelist): New function.
34912         (func_get_dependencies): Use func_remove_suffix instead of sed.
34913         (func_get_automake_snippet): Use func_filter_filelist instead of a
34914         subshell and sed invocation.
34915
34916 2009-01-01  Bruno Haible  <bruno@clisp.org>
34917
34918         Fix a security bug.
34919         * gnulib-tool (func_import, import, update): Don't allow the characters
34920         '"', '$', '`', '\' in macro arguments that become part of commands that
34921         are evaluated.
34922
34923 2009-01-01  Bruno Haible  <bruno@clisp.org>
34924
34925         * gnulib-tool (func_reset_sigpipe): Add more comments.
34926
34927 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34928
34929         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34930         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34931         already know the answer.
34932
34933 2009-01-01  Jim Meyering  <meyering@redhat.com>
34934
34935         * lib/version-etc.c (version_etc_va): Update copyright year.
34936
34937 2008-12-30  Bruno Haible  <bruno@clisp.org>
34938
34939         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34940         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34941         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34942
34943 2008-12-29  Eric Blake  <ebb9@byu.net>
34944
34945         multiarch: avoid autoconf AC_REQUIRE bug
34946         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34947         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34948         2.63 and older.
34949         Reported by Bruno Haible, and analyzed in
34950         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34951
34952 2008-12-29  Bruno Haible  <bruno@clisp.org>
34953
34954         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34955         files in subdirectories correctly.
34956         Reported by Ralf Wildenhues.
34957
34958 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34959
34960         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34961         rather than 'join FILE -', for Solaris join.
34962
34963 2008-12-29  Bruno Haible  <bruno@clisp.org>
34964
34965         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34966         quoting.
34967         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34968         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34969         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34970         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34971         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34972         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34973         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34974         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34975         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34976         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34977         * m4/nls.m4 (AM_NLS): Likewise.
34978         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34979         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34980         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34981         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34982         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34983         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34984         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34985         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34986         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34987         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34988         * m4/xsize.m4 (gl_XSIZE): Likewise.
34989         Suggested by Jim Meyering.
34990
34991 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34992
34993         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34994         * lib/parse-duration.c: use a switch instead of cascading if's.
34995
34996 2008-12-29  Eric Blake  <ebb9@byu.net>
34997
34998         wchar.h: supply WEOF on Irix 5.3
34999         * lib/wchar.in.h (wint_t): Also supply WEOF.
35000         * lib/wctype.in.h (wint_t): Likewise.
35001         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35002         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35003         Reported by Tom G. Christensen.
35004
35005 2008-12-26  Bruno Haible  <bruno@clisp.org>
35006
35007         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35008         i486, i586, i686.
35009
35010 2008-12-26  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35013
35014 2008-12-26  Bruno Haible  <bruno@clisp.org>
35015
35016         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35017         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35018         not __STDC_CONSTANT_MACROS.
35019         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35020
35021 2008-12-25  Bruno Haible  <bruno@clisp.org>
35022
35023         Add support for universal builds to vasnprintf.
35024         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35025         universal builds, guess no.
35026         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35027         * modules/vasprintf-posix (Depends-on): Likewise.
35028         * modules/fprintf-posix (Depends-on): Likewise.
35029         * modules/vfprintf-posix (Depends-on): Likewise.
35030         * modules/snprintf-posix (Depends-on): Likewise.
35031         * modules/vsnprintf-posix (Depends-on): Likewise.
35032         * modules/sprintf-posix (Depends-on): Likewise.
35033         * modules/vsprintf-posix (Depends-on): Likewise.
35034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35036         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35040         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35041
35042         Add support for universal builds to <inttypes.h>.
35043         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35044         _SCNu64_PREFIX): In Apple
35045         universal builds, define directly, using _LP64.
35046         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35047         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35048         * modules/inttypes (Depends-on): Add multiarch.
35049         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35050
35051         Add support for universal builds to <stdint.h>.
35052         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35053         universal builds, define directly, using _LP64.
35054         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35055         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35056         and size_t.
35057         * modules/stdint (Depends-on): Add multiarch.
35058         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35059
35060         New module 'multiarch'.
35061         * modules/multiarch: New file.
35062         * m4/multiarch.m4: New file.
35063
35064 2008-12-25  Bruno Haible  <bruno@clisp.org>
35065
35066         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35067
35068 2008-12-25  Bruno Haible  <bruno@clisp.org>
35069
35070         * modules/btowc (License): Relicense under LGPLv2+.
35071         * modules/mbsinit (License): Likewise.
35072         * modules/mbrtowc (License): Likewise.
35073         * modules/wcrtomb (License): Likewise.
35074         * modules/streq (License): Likewise.
35075         Reported by David Lutterkort <lutter@redhat.com>.
35076
35077 2008-12-23  Bruno Haible  <bruno@clisp.org>
35078
35079         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35080
35081 2008-12-23  Bruno Haible  <bruno@clisp.org>
35082
35083         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35084         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35085         GETADDRINFO_LIB, not in LIBS.
35086         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35087         * modules/canon-host (Link): Likewise.
35088         * NEWS: Mention the change.
35089         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35090         GETADDRINFO_LIB.
35091
35092 2008-12-22  Bruno Haible  <bruno@clisp.org>
35093
35094         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35095         * doc/posix-functions/iswalpha_l.texi: Likewise.
35096         * doc/posix-functions/iswblank_l.texi: Likewise.
35097         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35098         * doc/posix-functions/iswctype_l.texi: Likewise.
35099         * doc/posix-functions/iswdigit_l.texi: Likewise.
35100         * doc/posix-functions/iswgraph_l.texi: Likewise.
35101         * doc/posix-functions/iswlower_l.texi: Likewise.
35102         * doc/posix-functions/iswprint_l.texi: Likewise.
35103         * doc/posix-functions/iswpunct_l.texi: Likewise.
35104         * doc/posix-functions/iswspace_l.texi: Likewise.
35105         * doc/posix-functions/iswupper_l.texi: Likewise.
35106         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35107         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35108         * doc/posix-functions/open_wmemstream.texi: Likewise.
35109         * doc/posix-functions/swscanf.texi: Likewise.
35110         * doc/posix-functions/towctrans_l.texi: Likewise.
35111         * doc/posix-functions/towlower.texi: Likewise.
35112         * doc/posix-functions/towlower_l.texi: Likewise.
35113         * doc/posix-functions/towupper.texi: Likewise.
35114         * doc/posix-functions/towupper_l.texi: Likewise.
35115         * doc/posix-functions/vfwprintf.texi: Likewise.
35116         * doc/posix-functions/vfwscanf.texi: Likewise.
35117         * doc/posix-functions/vswscanf.texi: Likewise.
35118         * doc/posix-functions/vwprintf.texi: Likewise.
35119         * doc/posix-functions/vwscanf.texi: Likewise.
35120         * doc/posix-functions/wcpcpy.texi: Likewise.
35121         * doc/posix-functions/wcpncpy.texi: Likewise.
35122         * doc/posix-functions/wcscasecmp.texi: Likewise.
35123         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35124         * doc/posix-functions/wcscoll_l.texi: Likewise.
35125         * doc/posix-functions/wcsdup.texi: Likewise.
35126         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35127         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35128         * doc/posix-functions/wcsnlen.texi: Likewise.
35129         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35130         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35131         * doc/posix-functions/wctrans_l.texi: Likewise.
35132         * doc/posix-functions/wctype_l.texi: Likewise.
35133         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35134         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35135         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35136         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35137         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35138         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35139         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35140         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35141         * doc/glibc-functions/wcschrnul.texi: Likewise.
35142         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35143         * doc/glibc-functions/wcstod_l.texi: Likewise.
35144         * doc/glibc-functions/wcstof_l.texi: Likewise.
35145         * doc/glibc-functions/wcstol_l.texi: Likewise.
35146         * doc/glibc-functions/wcstold_l.texi: Likewise.
35147         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35148         * doc/glibc-functions/wcstoq.texi: Likewise.
35149         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35150         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35151         * doc/glibc-functions/wcstouq.texi: Likewise.
35152         * doc/glibc-functions/wmempcpy.texi: Likewise.
35153
35154 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35155             Eric Blake  <ebb9@byu.net>
35156             Paolo Bonzini  <bonzini@gnu.org>
35157             Bruno Haible  <bruno@clisp.org>
35158
35159         Make c-stack work on Haiku.
35160         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35161         (c_stack_action): Use SA_ONSTACK flag.
35162
35163 2008-12-22  Bruno Haible  <bruno@clisp.org>
35164
35165         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35166
35167 2008-12-22  Bruno Haible  <bruno@clisp.org>
35168
35169         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35170         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35171         being overridden.
35172         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35173         New macros.
35174         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35176         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35177         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35178
35179 2008-12-22  Bruno Haible  <bruno@clisp.org>
35180
35181         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35182         from test code.
35183
35184 2008-12-22  Eric Blake  <ebb9@byu.net>
35185
35186         Avoid gcc warnings on cygwin.
35187         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35188         Avoid unused variable.
35189         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35190         Likewise.
35191
35192 2008-12-22  Bruno Haible  <bruno@clisp.org>
35193
35194         Remove HAVE_MBRTOWC conditionals.
35195         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35196         (mbscasecmp): Assume mbrtowc function.
35197         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35198         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35199         * lib/mbschr.c: Include mbuiter.h unconditionally.
35200         (mbschr): Assume mbrtowc function.
35201         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35202         (mbscspn): Assume mbrtowc function.
35203         * lib/mbslen.c: Include mbuiter.h unconditionally.
35204         (mbslen): Assume mbrtowc function.
35205         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35206         (mbsncasecmp): Assume mbrtowc function.
35207         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35208         (mbsnlen): Assume mbrtowc function.
35209         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35210         (mbspbrk): Assume mbrtowc function.
35211         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35212         (mbspcasecmp): Assume mbrtowc function.
35213         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35214         (mbsrchr): Assume mbrtowc function.
35215         * lib/mbssep.c: Include mbuiter.h unconditionally.
35216         (mbssep): Assume mbrtowc function.
35217         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35218         (mbsspn): Assume mbrtowc function.
35219         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35220         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35221         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35222         (mbstok_r): Assume mbrtowc function.
35223         * lib/propername.c: Include mbuiter.h unconditionally.
35224         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35225         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35226         (trim2): Assume mbrtowc function.
35227         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35228         (mbsnwidth): Assume mbrtowc function.
35229         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35230         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35231         fallback definitions.
35232         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35233
35234 2008-12-22  Bruno Haible  <bruno@clisp.org>
35235
35236         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35237
35238 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35239
35240         * modules/regex: Request emulations for the mb*/wc* functions we need.
35241         * m4/regex.m4: Don't look for those functions here.
35242         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35243
35244 2008-12-22  Bruno Haible  <bruno@clisp.org>
35245
35246         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35247
35248 2008-12-21  Bruno Haible  <bruno@clisp.org>
35249
35250         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35251         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35252         (Include): Remove conditionalization.
35253         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35254         (Include): Remove conditionalization.
35255         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35256         (Include): Remove conditionalization.
35257         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35258         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35259         * NEWS: Mention the change.
35260         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35261         via Sergey Poznyakoff <gray@gnu.org.ua>.
35262
35263 2008-12-21  Bruno Haible  <bruno@clisp.org>
35264
35265         * MODULES.html.sh (Extended multibyte and wide character utilities
35266         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35267         wcrtomb, wcsrtombs.
35268         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35269         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35270         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35271         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35272
35273 2008-12-21  Bruno Haible  <bruno@clisp.org>
35274
35275         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35276
35277 2008-12-21  Bruno Haible  <bruno@clisp.org>
35278
35279         * modules/wcsnrtombs-tests: New file.
35280         * tests/test-wcsnrtombs1.sh: New file.
35281         * tests/test-wcsnrtombs2.sh: New file.
35282         * tests/test-wcsnrtombs3.sh: New file.
35283         * tests/test-wcsnrtombs4.sh: New file.
35284         * tests/test-wcsnrtombs.c: New file.
35285
35286         New module 'wcsnrtombs'.
35287         * lib/wchar.in.h (wcsnrtombs): New declaration.
35288         * lib/wcsnrtombs.c: New file.
35289         * lib/wcsrtombs-state.c: New file.
35290         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35291         (internal_state): Remove variable.
35292         * m4/wcsnrtombs.m4: New file.
35293         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35294         compilation units.
35295         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35296         HAVE_WCSNRTOMBS.
35297         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35298         HAVE_WCSNRTOMBS.
35299         * modules/wcsnrtombs: New file.
35300         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35301         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35302
35303 2008-12-21  Bruno Haible  <bruno@clisp.org>
35304
35305         * modules/wcsrtombs-tests: New file.
35306         * tests/test-wcsrtombs1.sh: New file.
35307         * tests/test-wcsrtombs2.sh: New file.
35308         * tests/test-wcsrtombs3.sh: New file.
35309         * tests/test-wcsrtombs4.sh: New file.
35310         * tests/test-wcsrtombs.c: New file.
35311
35312         New module 'wcsrtombs'.
35313         * lib/wchar.in.h (wcsrtombs): New declaration.
35314         * lib/wcsrtombs.c: New file.
35315         * m4/wcsrtombs.m4: New file.
35316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35317         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35319         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35320         * modules/wcsrtombs: New file.
35321         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35322         bugs.
35323
35324 2008-12-21  Bruno Haible  <bruno@clisp.org>
35325
35326         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35327         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35328         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35329         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35330         if not correct.
35331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35332         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35333         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35334         m4/locale-zh.m4, m4/codeset.m4.
35335         * doc/posix-functions/wcrtomb.texi: Document the bug.
35336
35337 2008-12-21  Bruno Haible  <bruno@clisp.org>
35338
35339         Work around a btowc() bug on IRIX 6.5.
35340         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35341         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35342         REPLACE_WTOBC if not.
35343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35344         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35345         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35346
35347 2008-12-21  Bruno Haible  <bruno@clisp.org>
35348
35349         * modules/wcrtomb-tests: New file.
35350         * tests/test-wcrtomb.sh: New file.
35351         * tests/test-wcrtomb.c: New file.
35352
35353         New module 'wcrtomb'.
35354         * lib/wchar.in.h (wcrtomb): New declaration.
35355         * lib/wcrtomb.c: New file.
35356         * m4/wcrtomb.m4: New file.
35357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35358         HAVE_WCRTOMB.
35359         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35360         HAVE_WCRTOMB.
35361         * modules/wcrtomb: New file.
35362         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35363
35364 2008-12-21  Bruno Haible  <bruno@clisp.org>
35365
35366         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35367         * modules/mbsrtowcs (Files): Likewise.
35368         * modules/wctob (Files): Likewise.
35369         * modules/c-strcase-tests (Files): Likewise.
35370         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35371         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35372         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35373         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35374         * modules/vasnprintf-posix-tests (Files): Likewise.
35375
35376 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35377
35378         gitlog-to-changelog: pass all command-line arguments to git-log
35379         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35380         it is sometimes convenient to filter the commits in various ways.
35381         gitlog-to-changelog only allows --since to specify a start date,
35382         but git-log itself supports many other filtering mechanisms.
35383         At the moment, I want to filter by branch name.  Rather than
35384         adding a --branch option to gitlog-to-changelog, it seems more
35385         flexible to simply pass all options directly to git-log and let
35386         git do the work.  Notice that this effectively makes --since a
35387         redundant option for gitlog-to-changelog, but removing it would
35388         require current usage to change since calls would then require
35389         an additional '--'.
35390
35391 2008-12-21  Bruno Haible  <bruno@clisp.org>
35392
35393         * modules/mbsnrtowcs-tests: New file.
35394         * tests/test-mbsnrtowcs1.sh: New file.
35395         * tests/test-mbsnrtowcs2.sh: New file.
35396         * tests/test-mbsnrtowcs3.sh: New file.
35397         * tests/test-mbsnrtowcs4.sh: New file.
35398         * tests/test-mbsnrtowcs.c: New file.
35399
35400         New module 'mbsnrtowcs'.
35401         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35402         * lib/mbsnrtowcs.c: New file.
35403         * lib/mbsrtowcs-state.c: New file.
35404         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35405         (internal_state): Remove variable.
35406         * m4/mbsnrtowcs.m4: New file.
35407         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35408         compilation units.
35409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35410         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35411         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35412         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35413         * modules/mbsnrtowcs: New file.
35414         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35415         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35416         portability problem.
35417
35418 2008-12-21  Bruno Haible  <bruno@clisp.org>
35419
35420         Work around mbsrtowcs bug.
35421         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35422         (gl_FUNC_MBSRTOWCS): Invoke it.
35423         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35424         m4/locale-zh.m4.
35425         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35426
35427 2008-12-21  Bruno Haible  <bruno@clisp.org>
35428
35429         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35430
35431 2008-12-21  Bruno Haible  <bruno@clisp.org>
35432
35433         Update doc for AIX.
35434         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35435         16-bit wchar_t type.
35436         * doc/posix-functions/btowc.texi: Likewise.
35437         * doc/posix-functions/fgetwc.texi: Likewise.
35438         * doc/posix-functions/fgetws.texi: Likewise.
35439         * doc/posix-functions/fputwc.texi: Likewise.
35440         * doc/posix-functions/fputws.texi: Likewise.
35441         * doc/posix-functions/fwide.texi: Likewise.
35442         * doc/posix-functions/fwprintf.texi: Likewise.
35443         * doc/posix-functions/fwscanf.texi: Likewise.
35444         * doc/posix-functions/getwchar.texi: Likewise.
35445         * doc/posix-functions/getwc.texi: Likewise.
35446         * doc/posix-functions/iswalnum.texi: Likewise.
35447         * doc/posix-functions/iswalpha.texi: Likewise.
35448         * doc/posix-functions/iswblank.texi: Likewise.
35449         * doc/posix-functions/iswcntrl.texi: Likewise.
35450         * doc/posix-functions/iswctype.texi: Likewise.
35451         * doc/posix-functions/iswdigit.texi: Likewise.
35452         * doc/posix-functions/iswgraph.texi: Likewise.
35453         * doc/posix-functions/iswlower.texi: Likewise.
35454         * doc/posix-functions/iswprint.texi: Likewise.
35455         * doc/posix-functions/iswpunct.texi: Likewise.
35456         * doc/posix-functions/iswspace.texi: Likewise.
35457         * doc/posix-functions/iswupper.texi: Likewise.
35458         * doc/posix-functions/iswxdigit.texi: Likewise.
35459         * doc/posix-functions/mbrtowc.texi: Likewise.
35460         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35461         * doc/posix-functions/mbstowcs.texi: Likewise.
35462         * doc/posix-functions/mbtowc.texi: Likewise.
35463         * doc/posix-functions/putwchar.texi: Likewise.
35464         * doc/posix-functions/putwc.texi: Likewise.
35465         * doc/posix-functions/swprintf.texi: Likewise.
35466         * doc/posix-functions/tolower.texi: Likewise.
35467         * doc/posix-functions/toupper.texi: Likewise.
35468         * doc/posix-functions/towctrans.texi: Likewise.
35469         * doc/posix-functions/ungetwc.texi: Likewise.
35470         * doc/posix-functions/vswprintf.texi: Likewise.
35471         * doc/posix-functions/wcrtomb.texi: Likewise.
35472         * doc/posix-functions/wcscat.texi: Likewise.
35473         * doc/posix-functions/wcschr.texi: Likewise.
35474         * doc/posix-functions/wcscmp.texi: Likewise.
35475         * doc/posix-functions/wcscoll.texi: Likewise.
35476         * doc/posix-functions/wcscpy.texi: Likewise.
35477         * doc/posix-functions/wcscspn.texi: Likewise.
35478         * doc/posix-functions/wcsftime.texi: Likewise.
35479         * doc/posix-functions/wcslen.texi: Likewise.
35480         * doc/posix-functions/wcsncat.texi: Likewise.
35481         * doc/posix-functions/wcsncmp.texi: Likewise.
35482         * doc/posix-functions/wcsncpy.texi: Likewise.
35483         * doc/posix-functions/wcspbrk.texi: Likewise.
35484         * doc/posix-functions/wcsrchr.texi: Likewise.
35485         * doc/posix-functions/wcsrtombs.texi: Likewise.
35486         * doc/posix-functions/wcsspn.texi: Likewise.
35487         * doc/posix-functions/wcsstr.texi: Likewise.
35488         * doc/posix-functions/wcstod.texi: Likewise.
35489         * doc/posix-functions/wcstof.texi: Likewise.
35490         * doc/posix-functions/wcstoimax.texi: Likewise.
35491         * doc/posix-functions/wcstok.texi: Likewise.
35492         * doc/posix-functions/wcstold.texi: Likewise.
35493         * doc/posix-functions/wcstoll.texi: Likewise.
35494         * doc/posix-functions/wcstol.texi: Likewise.
35495         * doc/posix-functions/wcstombs.texi: Likewise.
35496         * doc/posix-functions/wcstoull.texi: Likewise.
35497         * doc/posix-functions/wcstoul.texi: Likewise.
35498         * doc/posix-functions/wcstoumax.texi: Likewise.
35499         * doc/posix-functions/wcswidth.texi: Likewise.
35500         * doc/posix-functions/wcsxfrm.texi: Likewise.
35501         * doc/posix-functions/wctob.texi: Likewise.
35502         * doc/posix-functions/wctomb.texi: Likewise.
35503         * doc/posix-functions/wctrans.texi: Likewise.
35504         * doc/posix-functions/wctype.texi: Likewise.
35505         * doc/posix-functions/wcwidth.texi: Likewise.
35506         * doc/posix-functions/wmemchr.texi: Likewise.
35507         * doc/posix-functions/wmemcmp.texi: Likewise.
35508         * doc/posix-functions/wmemcpy.texi: Likewise.
35509         * doc/posix-functions/wmemmove.texi: Likewise.
35510         * doc/posix-functions/wmemset.texi: Likewise.
35511         * doc/posix-functions/wprintf.texi: Likewise.
35512         * doc/posix-functions/wscanf.texi: Likewise.
35513
35514 2008-12-21  Bruno Haible  <bruno@clisp.org>
35515
35516         Update doc for HP-UX 11.11.
35517         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35518         in HP-UX version 11.00, not in all versions of HP-UX 11.
35519         * doc/posix-functions/fwide.texi: Likewise.
35520         * doc/posix-functions/fwprintf.texi: Likewise.
35521         * doc/posix-functions/fwscanf.texi: Likewise.
35522         * doc/posix-functions/inet_ntop.texi: Likewise.
35523         * doc/posix-functions/inet_pton.texi: Likewise.
35524         * doc/posix-functions/mbrlen.texi: Likewise.
35525         * doc/posix-functions/mbrtowc.texi: Likewise.
35526         * doc/posix-functions/mbsinit.texi: Likewise.
35527         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35528         * doc/posix-functions/swprintf.texi: Likewise.
35529         * doc/posix-functions/swscanf.texi: Likewise.
35530         * doc/posix-functions/towctrans.texi: Likewise.
35531         * doc/posix-functions/vfwprintf.texi: Likewise.
35532         * doc/posix-functions/vswprintf.texi: Likewise.
35533         * doc/posix-functions/vwprintf.texi: Likewise.
35534         * doc/posix-functions/wcrtomb.texi: Likewise.
35535         * doc/posix-functions/wcsrtombs.texi: Likewise.
35536         * doc/posix-functions/wcsstr.texi: Likewise.
35537         * doc/posix-functions/wctob.texi: Likewise.
35538         * doc/posix-functions/wctrans.texi: Likewise.
35539         * doc/posix-functions/wmemchr.texi: Likewise.
35540         * doc/posix-functions/wmemcmp.texi: Likewise.
35541         * doc/posix-functions/wmemcpy.texi: Likewise.
35542         * doc/posix-functions/wmemmove.texi: Likewise.
35543         * doc/posix-functions/wmemset.texi: Likewise.
35544         * doc/posix-functions/wprintf.texi: Likewise.
35545         * doc/posix-functions/wscanf.texi: Likewise.
35546
35547 2008-12-21  Bruno Haible  <bruno@clisp.org>
35548
35549         Work around a portability problem.
35550         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35551         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35552
35553 2008-12-20  Bruno Haible  <bruno@clisp.org>
35554
35555         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35556         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35557         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35559         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35560
35561         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35562         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35563         set.
35564         (GNULIB_defined_mbstate_t): New macro.
35565         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35566         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35567         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35568         reuses the system's mbrtowc function but works around the bugs.
35569         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35570         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35571         macros.
35572         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35573         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35574         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35575         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35576         REPLACE_MBSINIT if mbsinit needs to be overridden.
35577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35578         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35579         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35580         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35581         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35582         m4/locale-zh.m4.
35583         (Depends): Add mbsinit.
35584         * modules/mbsinit (Depends): Add mbrtowc.
35585         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35586
35587 2008-12-20  Bruno Haible  <bruno@clisp.org>
35588
35589         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35590         so that there are no conversion errors on AIX.
35591         * tests/test-mbsrtowcs.c (main): LIkewise.
35592
35593 2008-12-20  Bruno Haible  <bruno@clisp.org>
35594
35595         Work around wctob bug on Solaris <= 9.
35596         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35597         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35599         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35600         * modules/wctob (Files): Add m4/locale-fr.m4.
35601         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35602
35603 2008-12-20  Bruno Haible  <bruno@clisp.org>
35604
35605         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35606         /dev/null.
35607         * tests/test-select-in.sh: Likewise.
35608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35609
35610 2008-12-20  Bruno Haible  <bruno@clisp.org>
35611
35612         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35613         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35614         Cygwin 1.5.x.
35615
35616 2008-12-20  Bruno Haible  <bruno@clisp.org>
35617
35618         Ensure mbstate_t is defined on HP-UX 11.11.
35619         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35620         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35621         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35622         AC_USE_SYSTEM_EXTENSIONS.
35623         * modules/fnmatch (Depends-on): Add extensions.
35624         * modules/mbrlen (Depends-on): Likewise.
35625         * modules/mbrtowc (Depends-on): Likewise.
35626         * modules/mbsinit (Depends-on): Likewise.
35627         * modules/mbsrtowcs (Depends-on): Likewise.
35628         * modules/mbswidth (Depends-on): Likewise.
35629         * modules/quotearg (Depends-on): Likewise.
35630         * modules/strftime (Depends-on): Likewise.
35631
35632 2008-12-20  Bruno Haible  <bruno@clisp.org>
35633
35634         Ensure wctob is declared on IRIX 6.5.
35635         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35636         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35637         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35639         of HAVE_WCTOB.
35640         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35641         HAVE_WCTOB.
35642         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35643
35644 2008-12-19  Bruno Haible  <bruno@clisp.org>
35645
35646         * modules/mbsrtowcs-tests: New file.
35647         * tests/test-mbsrtowcs1.sh: New file.
35648         * tests/test-mbsrtowcs2.sh: New file.
35649         * tests/test-mbsrtowcs3.sh: New file.
35650         * tests/test-mbsrtowcs4.sh: New file.
35651         * tests/test-mbsrtowcs.c: New file.
35652
35653         New module 'mbsrtowcs'.
35654         * lib/wchar.in.h (mbsrtowcs): New declaration.
35655         * lib/mbsrtowcs.c: New file.
35656         * m4/mbsrtowcs.m4: New file.
35657         * modules/mbsrtowcs: New file.
35658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35659         HAVE_MBSRTOWCS.
35660         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35661         HAVE_MBSRTOWCS.
35662         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35663
35664 2008-12-19  Bruno Haible  <bruno@clisp.org>
35665
35666         New module 'mbrlen'.
35667         * lib/wchar.in.h (mbrlen): New declaration.
35668         * lib/mbrlen.c: New file.
35669         * m4/mbrlen.m4: New file.
35670         * modules/mbrlen: New file.
35671         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35672         HAVE_MBRLEN.
35673         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35674         HAVE_MBRLEN.
35675         * doc/posix-functions/mbrlen.texi: Document the new module.
35676
35677 2008-12-19  Bruno Haible  <bruno@clisp.org>
35678
35679         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35680         * modules/mbrtowc (Depends-on): Add verify.
35681         Suggested by Paul Eggert.
35682
35683 2008-12-18  Bruno Haible  <bruno@clisp.org>
35684
35685         * modules/mbsinit-tests: New file.
35686         * tests/test-mbsinit.sh: New file.
35687         * tests/test-mbsinit.c: New file.
35688
35689 2008-12-18  Bruno Haible  <bruno@clisp.org>
35690
35691         * modules/mbrtowc-tests: New file.
35692         * tests/test-mbrtowc1.sh: New file.
35693         * tests/test-mbrtowc2.sh: New file.
35694         * tests/test-mbrtowc3.sh: New file.
35695         * tests/test-mbrtowc4.sh: New file.
35696         * tests/test-mbrtowc.c: New file.
35697
35698         New module 'mbrtowc'.
35699         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35700         mbsinit and mbrtowc.
35701         (mbrtowc): New declaration.
35702         * lib/mbrtowc.c: New file.
35703         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35704         * modules/mbrtowc: New file.
35705         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35706         HAVE_MBRTOWC.
35707         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35708         HAVE_MBRTOWC.
35709         * doc/posix-functions/mbrtowc.texi: Document the new module.
35710
35711 2008-12-18  Bruno Haible  <bruno@clisp.org>
35712
35713         New module 'wctob'.
35714         * lib/wchar.in.h (wctob): New declaration.
35715         * lib/wctob.c: New file.
35716         * m4/wctob.m4: New file.
35717         * modules/wctob: New file.
35718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35719         HAVE_WCTOB.
35720         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35721         * doc/posix-functions/wctob.texi: Document the new module.
35722
35723 2008-12-18  Bruno Haible  <bruno@clisp.org>
35724
35725         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35726         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35727
35728 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35729
35730         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35731         G. Christensen" <tgc@jupiterrise.com>.
35732
35733         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35734         G. Christensen" <tgc@jupiterrise.com>.
35735
35736         * lib/flock.c: Need to include string.h.  Reported by "Tom
35737         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35738         <ebb9@byu.net>.
35739
35740 2008-12-18  Bruno Haible  <bruno@clisp.org>
35741
35742         * m4/locale-ja.m4: New file, from GNU gettext.
35743
35744 2008-12-17  Bruno Haible  <bruno@clisp.org>
35745
35746         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35747         Suggested by Eric Blake.
35748
35749 2008-12-17  Bruno Haible  <bruno@clisp.org>
35750
35751         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35752
35753 2008-12-17  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35756         * modules/mbsinit (Depends-on): Add verify.
35757         Suggested by Paul Eggert.
35758
35759 2008-12-17  Bruno Haible  <bruno@clisp.org>
35760
35761         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35762         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35763         gl_FUNC_MBRTOWC.
35764         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35765         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35766         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35767         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35768         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35769         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35770         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35771         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35772         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35773         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35774         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35775         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35776         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35777         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35778         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35779         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35780         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35781         * modules/trim (configure.ac): Likewise.
35782
35783 2008-12-17  Bruno Haible  <bruno@clisp.org>
35784
35785         * modules/btowc-tests: New file.
35786         * tests/test-btowc1.sh: New file.
35787         * tests/test-btowc2.sh: New file.
35788         * tests/test-btowc.c: New file.
35789
35790         New module 'btowc'.
35791         * lib/wchar.in.h (btowc): New declaration.
35792         * lib/btowc.c: New file.
35793         * m4/btowc.m4: New file.
35794         * modules/btowc: New file.
35795         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35796         HAVE_BTOWC.
35797         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35798         * doc/posix-functions/btowc.texi: Document the new module.
35799
35800 2008-12-17  Bruno Haible  <bruno@clisp.org>
35801
35802         New module 'mbsinit'.
35803         * lib/wchar.in.h (mbsinit): New declaration.
35804         * lib/mbsinit.c: New file.
35805         * m4/mbsinit.m4: New file.
35806         * modules/mbsinit: New file.
35807         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35808         HAVE_MBSINIT.
35809         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35810         HAVE_MBSINIT.
35811         * doc/posix-functions/mbsinit.texi: Document the new module.
35812
35813 2008-12-16  Bruno Haible  <bruno@clisp.org>
35814
35815         * lib/unistd.in.h: Add comment.
35816         * tests/test-environ.c: Don't include <stdlib.h>.
35817
35818 2008-12-16  Bruno Haible  <bruno@clisp.org>
35819
35820         * lib/parse-duration.h (parse_duration): Document return value
35821         convention.
35822         * lib/parse-duration.c: Include specification header first. Add
35823         comments.
35824         (_): Remove macro.
35825         (parse_year_month_day, parse_hour_minute_second): Move side effects
35826         outside of strchr call.
35827         (parse_non_iso8601): Move side effects outside of isspace call.
35828         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35829         call.
35830
35831 2008-12-16  Bruno Haible  <bruno@clisp.org>
35832
35833         * tests/test-parse-duration.sh: Produce no output when the test
35834         succeeds.
35835
35836 2008-12-16  Bruno Haible  <bruno@clisp.org>
35837
35838         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35839         expressions.
35840
35841 2008-12-15  Bruno Haible  <bruno@clisp.org>
35842
35843         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35844         * doc/glibc-functions/flistxattr.texi: Likewise.
35845         * doc/glibc-functions/fopencookie.texi: Likewise.
35846         * doc/glibc-functions/fremovexattr.texi: Likewise.
35847         * doc/glibc-functions/fsetxattr.texi: Likewise.
35848         * doc/glibc-functions/getxattr.texi: Likewise.
35849         * doc/glibc-functions/lgetxattr.texi: Likewise.
35850         * doc/glibc-functions/listxattr.texi: Likewise.
35851         * doc/glibc-functions/llistxattr.texi: Likewise.
35852         * doc/glibc-functions/lremovexattr.texi: Likewise.
35853         * doc/glibc-functions/lsetxattr.texi: Likewise.
35854         * doc/glibc-functions/removexattr.texi: Likewise.
35855         * doc/glibc-functions/setxattr.texi: Likewise.
35856         * doc/posix-functions/open_memstream.texi: Likewise.
35857
35858 2008-12-15  Eric Blake  <ebb9@byu.net>
35859
35860         Update doc for cygwin 1.7.
35861         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35862         functions.
35863         * doc/posix-functions/fchmodat.texi: Likewise.
35864         * doc/posix-functions/fchownat.texi: Likewise.
35865         * doc/posix-functions/fdopendir.texi: Likewise.
35866         * doc/posix-functions/fmemopen.texi: Likewise.
35867         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35868         * doc/posix-functions/fstatat.texi: Likewise.
35869         * doc/posix-functions/futimens.texi: Likewise.
35870         * doc/posix-functions/gai_strerror.texi: Likewise.
35871         * doc/posix-functions/getaddrinfo.texi: Likewise.
35872         * doc/posix-functions/getnameinfo.texi: Likewise.
35873         * doc/posix-functions/if_freenameindex.texi: Likewise.
35874         * doc/posix-functions/if_indextoname.texi: Likewise.
35875         * doc/posix-functions/if_nameindex.texi: Likewise.
35876         * doc/posix-functions/if_nametoindex.texi: Likewise.
35877         * doc/posix-functions/insque.texi: Likewise.
35878         * doc/posix-functions/linkat.texi: Likewise.
35879         * doc/posix-functions/llrint.texi: Likewise.
35880         * doc/posix-functions/llrintf.texi: Likewise.
35881         * doc/posix-functions/llrintl.texi: Likewise.
35882         * doc/posix-functions/lockf.texi: Likewise.
35883         * doc/posix-functions/lrintl.texi: Likewise.
35884         * doc/posix-functions/mkdirat.texi: Likewise.
35885         * doc/posix-functions/mkfifoat.texi: Likewise.
35886         * doc/posix-functions/mknodat.texi: Likewise.
35887         * doc/posix-functions/mq_close.texi: Likewise.
35888         * doc/posix-functions/mq_getattr.texi: Likewise.
35889         * doc/posix-functions/mq_notify.texi: Likewise.
35890         * doc/posix-functions/mq_open.texi: Likewise.
35891         * doc/posix-functions/mq_receive.texi: Likewise.
35892         * doc/posix-functions/mq_send.texi: Likewise.
35893         * doc/posix-functions/mq_setattr.texi: Likewise.
35894         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35895         * doc/posix-functions/mq_timedsend.texi: Likewise.
35896         * doc/posix-functions/mq_unlink.texi: Likewise.
35897         * doc/posix-functions/open_memstream.texi: Likewise.
35898         * doc/posix-functions/openat.texi: Likewise.
35899         * doc/posix-functions/posix_fadvise.texi: Likewise.
35900         * doc/posix-functions/posix_fallocate.texi: Likewise.
35901         * doc/posix-functions/posix_madvise.texi: Likewise.
35902         * doc/posix-functions/posix_memalign.texi: Likewise.
35903         * doc/posix-functions/posix_openpt.texi: Likewise.
35904         * doc/posix-functions/readlinkat.texi: Likewise.
35905         * doc/posix-functions/remque.texi: Likewise.
35906         * doc/posix-functions/renameat.texi: Likewise.
35907         * doc/posix-functions/rintl.texi: Likewise.
35908         * doc/posix-functions/sem_unlink.texi: Likewise.
35909         * doc/posix-functions/shm_open.texi: Likewise.
35910         * doc/posix-functions/shm_unlink.texi: Likewise.
35911         * doc/posix-functions/signgam.texi: Likewise.
35912         * doc/posix-functions/sigset.texi: Likewise.
35913         * doc/posix-functions/stpcpy.texi: Likewise.
35914         * doc/posix-functions/stpncpy.texi: Likewise.
35915         * doc/posix-functions/strerror.texi: Likewise.
35916         * doc/posix-functions/strtod.texi: Likewise.
35917         * doc/posix-functions/symlinkat.texi: Likewise.
35918         * doc/posix-functions/unlinkat.texi: Likewise.
35919         * doc/posix-functions/utimensat.texi: Likewise.
35920         * doc/glibc-functions/bindresvport.texi: Likewise.
35921         * doc/glibc-functions/dn_expand.texi: Likewise.
35922         * doc/glibc-functions/exp10.texi: Likewise.
35923         * doc/glibc-functions/exp10f.texi: Likewise.
35924         * doc/glibc-functions/fgetxattr.texi: Likewise.
35925         * doc/glibc-functions/flistxattr.texi: Likewise.
35926         * doc/glibc-functions/fopencookie.texi: Likewise.
35927         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35928         * doc/glibc-functions/fremovexattr.texi: Likewise.
35929         * doc/glibc-functions/fsetxattr.texi: Likewise.
35930         * doc/glibc-functions/getifaddrs.texi: Likewise.
35931         * doc/glibc-functions/getxattr.texi: Likewise.
35932         * doc/glibc-functions/lgetxattr.texi: Likewise.
35933         * doc/glibc-functions/listxattr.texi: Likewise.
35934         * doc/glibc-functions/llistxattr.texi: Likewise.
35935         * doc/glibc-functions/lremovexattr.texi: Likewise.
35936         * doc/glibc-functions/lsetxattr.texi: Likewise.
35937         * doc/glibc-functions/pow10.texi: Likewise.
35938         * doc/glibc-functions/pow10f.texi: Likewise.
35939         * doc/glibc-functions/rcmd_af.texi: Likewise.
35940         * doc/glibc-functions/removexattr.texi: Likewise.
35941         * doc/glibc-functions/res_init.texi: Likewise.
35942         * doc/glibc-functions/res_mkquery.texi: Likewise.
35943         * doc/glibc-functions/res_query.texi: Likewise.
35944         * doc/glibc-functions/res_querydomain.texi: Likewise.
35945         * doc/glibc-functions/res_send.texi: Likewise.
35946         * doc/glibc-functions/rresvport_af.texi: Likewise.
35947         * doc/glibc-functions/setxattr.texi: Likewise.
35948         * doc/glibc-functions/strcasestr.texi: Likewise.
35949
35950 2008-12-15  Bruno Haible  <bruno@clisp.org>
35951
35952         Fix compilation error on OSF/1 4.0.
35953         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35954         <sys/time.h>, simply delegate to the system header.
35955         Reported by Daniel Richard G. <oss@teragram.com>.
35956
35957 2008-12-15  Bruno Haible  <bruno@clisp.org>
35958
35959         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35960         * doc/posix-functions/fchmodat.texi: Likewise.
35961         * doc/posix-functions/fchownat.texi: Likewise.
35962         * doc/posix-functions/fdopendir.texi: Likewise.
35963         * doc/posix-functions/fstatat.texi: Likewise.
35964         * doc/posix-functions/mkdirat.texi: Likewise.
35965         * doc/posix-functions/unlinkat.texi: Likewise.
35966
35967 2008-12-14  Bruno Haible  <bruno@clisp.org>
35968
35969         Update doc for POSIX:2008.
35970         * doc/posix-functions/faccessat.texi: New file.
35971         * doc/posix-functions/fchmodat.texi: New file.
35972         * doc/posix-functions/fchownat.texi: New file.
35973         * doc/posix-functions/fdopendir.texi: New file.
35974         * doc/posix-functions/fstatat.texi: New file.
35975         * doc/posix-functions/futimens.texi: New file.
35976         * doc/posix-functions/linkat.texi: New file.
35977         * doc/posix-functions/mkdirat.texi: New file.
35978         * doc/posix-functions/mkfifoat.texi: New file.
35979         * doc/posix-functions/mknodat.texi: New file.
35980         * doc/posix-functions/open_wmemstream.texi: New file.
35981         * doc/posix-functions/openat.texi: New file.
35982         * doc/posix-functions/psiginfo.texi: New file.
35983         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35984         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35985         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35986         * doc/posix-functions/readlinkat.texi: New file.
35987         * doc/posix-functions/renameat.texi: New file.
35988         * doc/posix-functions/strerror_l.texi: New file.
35989         * doc/posix-functions/symlinkat.texi: New file.
35990         * doc/posix-functions/unlinkat.texi: New file.
35991         * doc/posix-functions/utimensat.texi: New file.
35992         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35993
35994 2008-12-14  Bruno Haible  <bruno@clisp.org>
35995
35996         Update doc for POSIX:2008.
35997         * doc/posix-functions/alphasort.texi: Renamed from
35998         doc/glibc-functions/alphasort.texi.
35999         * doc/posix-functions/dirfd.texi: Renamed from
36000         doc/glibc-functions/dirfd.texi.
36001         * doc/posix-functions/dprintf.texi: Renamed from
36002         doc/glibc-functions/dprintf.texi.
36003         * doc/posix-functions/duplocale.texi: Renamed from
36004         doc/glibc-functions/duplocale.texi.
36005         * doc/posix-functions/fexecve.texi: Renamed from
36006         doc/glibc-functions/fexecve.texi.
36007         * doc/posix-functions/fmemopen.texi: Renamed from
36008         doc/glibc-functions/fmemopen.texi.
36009         * doc/posix-functions/freelocale.texi: Renamed from
36010         doc/glibc-functions/freelocale.texi.
36011         * doc/posix-functions/getdate_err.texi: Renamed from
36012         doc/glibc-functions/getdate_err.texi.
36013         * doc/posix-functions/isalnum_l.texi: Renamed from
36014         doc/glibc-functions/isalnum_l.texi.
36015         * doc/posix-functions/isalpha_l.texi: Renamed from
36016         doc/glibc-functions/isalpha_l.texi.
36017         * doc/posix-functions/isblank_l.texi: Renamed from
36018         doc/glibc-functions/isblank_l.texi.
36019         * doc/posix-functions/iscntrl_l.texi: Renamed from
36020         doc/glibc-functions/iscntrl_l.texi.
36021         * doc/posix-functions/isdigit_l.texi: Renamed from
36022         doc/glibc-functions/isdigit_l.texi.
36023         * doc/posix-functions/isgraph_l.texi: Renamed from
36024         doc/glibc-functions/isgraph_l.texi.
36025         * doc/posix-functions/islower_l.texi: Renamed from
36026         doc/glibc-functions/islower_l.texi.
36027         * doc/posix-functions/isprint_l.texi: Renamed from
36028         doc/glibc-functions/isprint_l.texi.
36029         * doc/posix-functions/ispunct_l.texi: Renamed from
36030         doc/glibc-functions/ispunct_l.texi.
36031         * doc/posix-functions/isspace_l.texi: Renamed from
36032         doc/glibc-functions/isspace_l.texi.
36033         * doc/posix-functions/isupper_l.texi: Renamed from
36034         doc/glibc-functions/isupper_l.texi.
36035         * doc/posix-functions/iswalnum_l.texi: Renamed from
36036         doc/glibc-functions/iswalnum_l.texi.
36037         * doc/posix-functions/iswalpha_l.texi: Renamed from
36038         doc/glibc-functions/iswalpha_l.texi.
36039         * doc/posix-functions/iswblank_l.texi: Renamed from
36040         doc/glibc-functions/iswblank_l.texi.
36041         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36042         doc/glibc-functions/iswcntrl_l.texi.
36043         * doc/posix-functions/iswctype_l.texi: Renamed from
36044         doc/glibc-functions/iswctype_l.texi.
36045         * doc/posix-functions/iswdigit_l.texi: Renamed from
36046         doc/glibc-functions/iswdigit_l.texi.
36047         * doc/posix-functions/iswgraph_l.texi: Renamed from
36048         doc/glibc-functions/iswgraph_l.texi.
36049         * doc/posix-functions/iswlower_l.texi: Renamed from
36050         doc/glibc-functions/iswlower_l.texi.
36051         * doc/posix-functions/iswprint_l.texi: Renamed from
36052         doc/glibc-functions/iswprint_l.texi.
36053         * doc/posix-functions/iswpunct_l.texi: Renamed from
36054         doc/glibc-functions/iswpunct_l.texi.
36055         * doc/posix-functions/iswspace_l.texi: Renamed from
36056         doc/glibc-functions/iswspace_l.texi.
36057         * doc/posix-functions/iswupper_l.texi: Renamed from
36058         doc/glibc-functions/iswupper_l.texi.
36059         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36060         doc/glibc-functions/iswxdigit_l.texi.
36061         * doc/posix-functions/isxdigit_l.texi: Renamed from
36062         doc/glibc-functions/isxdigit_l.texi.
36063         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36064         doc/glibc-functions/mbsnrtowcs.texi.
36065         * doc/posix-functions/mkdtemp.texi: Renamed from
36066         doc/glibc-functions/mkdtemp.texi.
36067         * doc/posix-functions/newlocale.texi: Renamed from
36068         doc/glibc-functions/newlocale.texi.
36069         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36070         doc/glibc-functions/nl_langinfo_l.texi.
36071         * doc/posix-functions/open_memstream.texi: Renamed from
36072         doc/glibc-functions/open_memstream.texi.
36073         * doc/posix-functions/opterr.texi: Renamed from
36074         doc/glibc-functions/opterr.texi.
36075         * doc/posix-functions/optind.texi: Renamed from
36076         doc/glibc-functions/optind.texi.
36077         * doc/posix-functions/optopt.texi: Renamed from
36078         doc/glibc-functions/optopt.texi.
36079         * doc/posix-functions/psignal.texi: Renamed from
36080         doc/glibc-functions/psignal.texi.
36081         * doc/posix-functions/scandir.texi: Renamed from
36082         doc/glibc-functions/scandir.texi.
36083         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36084         doc/glibc-functions/sched_get_priority_min.texi.
36085         * doc/posix-functions/signgam.texi: Renamed from
36086         doc/glibc-functions/signgam.texi.
36087         * doc/posix-functions/stpcpy.texi: Renamed from
36088         doc/glibc-functions/stpcpy.texi.
36089         * doc/posix-functions/stpncpy.texi: Renamed from
36090         doc/glibc-functions/stpncpy.texi.
36091         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36092         doc/glibc-functions/strcasecmp_l.texi.
36093         * doc/posix-functions/strcoll_l.texi: Renamed from
36094         doc/glibc-functions/strcoll_l.texi.
36095         * doc/posix-functions/strfmon_l.texi: Renamed from
36096         doc/glibc-functions/strfmon_l.texi.
36097         * doc/posix-functions/strftime_l.texi: Renamed from
36098         doc/glibc-functions/strftime_l.texi.
36099         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36100         doc/glibc-functions/strncasecmp_l.texi.
36101         * doc/posix-functions/strndup.texi: Renamed from
36102         doc/glibc-functions/strndup.texi.
36103         * doc/posix-functions/strnlen.texi: Renamed from
36104         doc/glibc-functions/strnlen.texi.
36105         * doc/posix-functions/strsignal.texi: Renamed from
36106         doc/glibc-functions/strsignal.texi.
36107         * doc/posix-functions/strxfrm_l.texi: Renamed from
36108         doc/glibc-functions/strxfrm_l.texi.
36109         * doc/posix-functions/timer_gettime.texi: Renamed from
36110         doc/glibc-functions/timer_gettime.texi.
36111         * doc/posix-functions/tolower_l.texi: Renamed from
36112         doc/glibc-functions/tolower_l.texi.
36113         * doc/posix-functions/toupper_l.texi: Renamed from
36114         doc/glibc-functions/toupper_l.texi.
36115         * doc/posix-functions/towctrans_l.texi: Renamed from
36116         doc/glibc-functions/towctrans_l.texi.
36117         * doc/posix-functions/towlower_l.texi: Renamed from
36118         doc/glibc-functions/towlower_l.texi.
36119         * doc/posix-functions/towupper_l.texi: Renamed from
36120         doc/glibc-functions/towupper_l.texi.
36121         * doc/posix-functions/uselocale.texi: Renamed from
36122         doc/glibc-functions/uselocale.texi.
36123         * doc/posix-functions/vdprintf.texi: Renamed from
36124         doc/glibc-functions/vdprintf.texi.
36125         * doc/posix-functions/wcpcpy.texi:
36126         Renamed from doc/glibc-functions/wcpcpy.texi.
36127         * doc/posix-functions/wcpncpy.texi: Renamed from
36128         doc/glibc-functions/wcpncpy.texi.
36129         * doc/posix-functions/wcscasecmp.texi: Renamed from
36130         doc/glibc-functions/wcscasecmp.texi.
36131         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36132         doc/glibc-functions/wcscasecmp_l.texi.
36133         * doc/posix-functions/wcscoll_l.texi: Renamed from
36134         doc/glibc-functions/wcscoll_l.texi.
36135         * doc/posix-functions/wcsdup.texi: Renamed from
36136         doc/glibc-functions/wcsdup.texi.
36137         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36138         doc/glibc-functions/wcsncasecmp.texi.
36139         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36140         doc/glibc-functions/wcsncasecmp_l.texi.
36141         * doc/posix-functions/wcsnlen.texi: Renamed from
36142         doc/glibc-functions/wcsnlen.texi.
36143         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36144         doc/glibc-functions/wcsnrtombs.texi.
36145         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36146         doc/glibc-functions/wcsxfrm_l.texi.
36147         * doc/posix-functions/wctrans_l.texi: Renamed from
36148         doc/glibc-functions/wctrans_l.texi.
36149         * doc/posix-functions/wctype_l.texi: Renamed from
36150         doc/glibc-functions/wctype_l.texi.
36151         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36152         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36153         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36154         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36155         these subsections.
36156         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36157         Remove sections.
36158
36159 2008-12-14  Bruno Haible  <bruno@clisp.org>
36160
36161         Update doc for POSIX:2008.
36162         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36163
36164 2008-12-14  Bruno Haible  <bruno@clisp.org>
36165
36166         Update doc for POSIX:2008.
36167         * doc/pastposix-functions/bcmp.texi: Renamed from
36168         doc/posix-functions/bcmp.texi.
36169         * doc/pastposix-functions/bcopy.texi: Renamed from
36170         doc/posix-functions/bcopy.texi.
36171         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36172         doc/posix-functions/bsd_signal.texi.
36173         * doc/pastposix-functions/bzero.texi: Renamed from
36174         doc/posix-functions/bzero.texi.
36175         * doc/pastposix-functions/ecvt.texi: Renamed from
36176         doc/posix-functions/ecvt.texi.
36177         * doc/pastposix-functions/fcvt.texi: Renamed from
36178         doc/posix-functions/fcvt.texi.
36179         * doc/pastposix-functions/ftime.texi: Renamed from
36180         doc/posix-functions/ftime.texi.
36181         * doc/pastposix-functions/gcvt.texi: Renamed from
36182         doc/posix-functions/gcvt.texi.
36183         * doc/pastposix-functions/getcontext.texi: Renamed from
36184         doc/posix-functions/getcontext.texi.
36185         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36186         doc/posix-functions/gethostbyaddr.texi.
36187         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36188         doc/posix-functions/gethostbyname.texi.
36189         * doc/pastposix-functions/getwd.texi: Renamed from
36190         doc/posix-functions/getwd.texi.
36191         * doc/pastposix-functions/h_errno.texi: Renamed from
36192         doc/posix-functions/h_errno.texi.
36193         * doc/pastposix-functions/index.texi: Renamed from
36194         doc/posix-functions/index.texi.
36195         * doc/pastposix-functions/makecontext.texi: Renamed from
36196         doc/posix-functions/makecontext.texi.
36197         * doc/pastposix-functions/mktemp.texi: Renamed from
36198         doc/posix-functions/mktemp.texi.
36199         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36200         doc/posix-functions/pthread_attr_getstackaddr.texi.
36201         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36202         doc/posix-functions/pthread_attr_setstackaddr.texi.
36203         * doc/pastposix-functions/rindex.texi: Renamed from
36204         doc/posix-functions/rindex.texi.
36205         * doc/pastposix-functions/scalb.texi: Renamed from
36206         doc/posix-functions/scalb.texi.
36207         * doc/pastposix-functions/setcontext.texi: Renamed from
36208         doc/posix-functions/setcontext.texi.
36209         * doc/pastposix-functions/swapcontext.texi: Renamed from
36210         doc/posix-functions/swapcontext.texi.
36211         * doc/pastposix-functions/ualarm.texi: Renamed from
36212         doc/posix-functions/ualarm.texi.
36213         * doc/pastposix-functions/usleep.texi: Renamed from
36214         doc/posix-functions/usleep.texi.
36215         * doc/pastposix-functions/vfork.texi: Renamed from
36216         doc/posix-functions/vfork.texi.
36217         * doc/pastposix-functions/wcswcs.texi: Renamed from
36218         doc/posix-functions/wcswcs.texi.
36219         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36220         (Function Substitutes): Update.
36221
36222 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36223
36224         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36225         m4/strerror.m4.
36226
36227 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36228             Bruno Haible  <bruno@clisp.org>
36229
36230         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36231
36232 2008-12-13  Bruno Haible  <bruno@clisp.org>
36233
36234         * modules/strtoull (Depends-on): Remove unistd.
36235
36236 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36237
36238         * modules/strtoull (Depends-on): Add stdlib.
36239
36240 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36241
36242         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36243
36244 2008-12-10  Jim Meyering  <meyering@redhat.com>
36245
36246         gl_ASSERT: don't say assertions are disabled when they're not
36247         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36248         "checking whether to enable assertions... no", when they are in
36249         fact enabled.  This is solely a bug in the output of configure.
36250         In spite of saying "no", NDEBUG was not defined in that case.
36251         Also, as noted by Eric Blake, leave assertions enabled upon
36252         --enable-assert=INVALID.
36253
36254 2008-12-10  Bruno Haible  <bruno@clisp.org>
36255
36256         Change MODULES.html to refer to POSIX:2008 where possible.
36257         * MODULES.html.sh (POSIX2008_URL): New variable.
36258         (posix_headers): Remove sys/timeb, ucontext.
36259         (posix2001_headers): New variable.
36260         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36261         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36262         index, makecontext, mktemp, pthread_attr_getstackaddr,
36263         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36264         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36265         (posix2001_functions): New variable.
36266         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36267         otherwise.
36268
36269 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36270
36271         add missing include to parse-duration.c
36272         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36273         * modules/parse-duration (Depends-on): Add xalloc.
36274
36275         fix sed script reading maint.mk
36276         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36277         (syntax-check-rules): Use it.
36278
36279 2008-12-09  Bruno Haible  <bruno@clisp.org>
36280
36281         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36282         MacOS X 10.4/PowerPC.
36283         Reported by Simon Josefsson.
36284
36285 2008-12-08  Jim Meyering  <meyering@redhat.com>
36286
36287         work around mingw's lack of some S_IF definitions
36288         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36289         Reported by Simon Josefsson.
36290
36291 2008-12-08  Bruno Haible  <bruno@clisp.org>
36292
36293         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36294         applied to variables. Needed on MacOS X 10.4/PowerPC.
36295         Reported by Simon Josefsson.
36296
36297 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36298         and Eric Blake  <ebb9@byu.net>
36299
36300         assert: honor --enable-assert
36301         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36302         order to honor --enable-assert, rather than treating it as a
36303         synonym for --disable-assert.
36304
36305 2008-12-08  Jim Meyering  <meyering@redhat.com>
36306
36307         * lib/posixtm.c: Remove now-useless declaration of mktime.
36308
36309         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36310
36311 2008-12-07  Bruno Haible  <bruno@clisp.org>
36312
36313         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36314         test_once): Mark functions as static.
36315         * tests/test-tls.c (test_tls): Likewise.
36316
36317 2008-12-07  Bruno Haible  <bruno@clisp.org>
36318
36319         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36320         iconv_register_autodetect.
36321
36322 2008-12-07  Jim Meyering  <meyering@redhat.com>
36323
36324         posixtm.c: avoid a warning
36325         * lib/posixtm.c (posixtime): Don't initialize tm0.
36326         It's no longer needed to placate gcc4's -Wuninitialized,
36327         and the attempt to placate would elicit a new warning.
36328
36329         unicodeio.c: mark unused parameters
36330         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36331         (fallback_failure_callback): Likewise.
36332
36333 2008-12-07  Bruno Haible  <bruno@clisp.org>
36334
36335         * gnulib-tool (func_create_testdir): When building the tests
36336         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36337         Reported by Simon Josefsson.
36338
36339 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36340
36341         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36342
36343 2008-12-06  Bruno Haible  <bruno@clisp.org>
36344
36345         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36346         Suggested by Eric Blake.
36347
36348 2008-12-06  Bruno Haible  <bruno@clisp.org>
36349
36350         Fix a c-stack test failure on MacOS X.
36351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36352         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36353         handler for SIGBUS as well.
36354         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36355         install a signal handler for SIGBUS as well.
36356         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36357
36358 2008-12-06  Bruno Haible  <bruno@clisp.org>
36359
36360         Advocacy documentation.
36361         * doc/gnulib-intro.texi (Benefits): New section.
36362         * doc/gnulib.texi: Update.
36363
36364 2008-12-06  Bruno Haible  <bruno@clisp.org>
36365
36366         Document the 'manywarnings' module.
36367         * doc/manywarnings.texi: New file.
36368         * doc/gnulib.texi: Include it.
36369
36370 2008-12-05  Eric Blake  <ebb9@byu.net>
36371
36372         tests: silence some gcc warnings
36373         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36374         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36375         type mismatches.
36376
36377 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36378             Bruno Haible  <bruno@clisp.org>
36379
36380         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36381
36382 2008-11-29  Jim Meyering  <meyering@redhat.com>
36383
36384         unicodeio.c: mark unused parameters
36385         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36386         (fallback_failure_callback): Likewise.
36387
36388         fts: fix a thinko
36389         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36390         (set_stat_type): Return S_IF*-valued "type" directly.
36391         Prompted by James Youngman's spotting a related bug.
36392         Confirmed by further testing through find.
36393
36394         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36395         * lib/fts.c (D_TYPE): Define.
36396         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36397         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36398         (s_ifmt_shift_bits): New function.
36399         (set_stat_type): New function.
36400         (fts_build): When not calling fts_stat, call set_stat_type
36401         to propagate dirent.d_type info to fts_read caller.
36402         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36403         fts_statp->st_mode type information may be valid.
36404
36405 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36406
36407         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36408         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36409         <sds@gnu.org>.
36410
36411 2008-11-20  Bruno Haible  <bruno@clisp.org>
36412
36413         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36414         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36415         INCLUDE_NEXT.
36416         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36417         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36418         * modules/math (Makefile.am): Substitute
36419         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36421
36422 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36423             Bruno Haible  <bruno@clisp.org>
36424
36425         * lib/stdint.in.h: Define all type macros so that their expansion is
36426         a single typedef'ed token. Fixes a compilation failure in Boost which
36427         does "using ::int8_t;".
36428
36429 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36430
36431         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36432         gl_MANYWARN_ALL_GCC.
36433         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36434         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36435         * modules/manywarnings: New file.
36436         * MODULES.html.sh: Mention manywarnings module.
36437
36438 2008-11-18  Bruno Haible  <bruno@clisp.org>
36439
36440         * doc/gnulib-tool.texi (Unit tests): New section.
36441
36442 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36443
36444         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36445         paths like 'lib/po/foo.po'.
36446
36447 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36448
36449         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36450         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36451
36452 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36453
36454         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36455         parameter works.
36456
36457 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36458
36459         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36460
36461 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36462
36463         * modules/parse-duration-tests: New file.
36464         * tests/test-parse-duration.sh: New file.
36465         * tests/test-parse-duration.c: New file.
36466
36467         New module 'parse-duration'.
36468         * lib/parse-duration.h: New file.
36469         * lib/parse-duration.c: New file.
36470         * modules/parse-duration: New file.
36471
36472 2008-11-17  Bruno Haible  <bruno@clisp.org>
36473
36474         * tests/test-select-out.sh: Comment out the first pipe test.
36475         Reported by Simon Josefsson.
36476
36477 2008-11-17  Bruno Haible  <bruno@clisp.org>
36478
36479         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36480         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36481         gl_HOSTENT.
36482
36483 2008-11-17  Bruno Haible  <bruno@clisp.org>
36484
36485         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36486         -lnetwork and -lnet. Needed for Haiku and BeOS.
36487
36488 2008-11-16  Bruno Haible  <bruno@clisp.org>
36489
36490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36491
36492 2008-11-16  Bruno Haible  <bruno@clisp.org>
36493
36494         Avoid test failure on Haiku.
36495         * tests/test-fsync.c: Include <errno.h>.
36496         (main): Don't require that fsync (0) fails.
36497
36498 2008-11-15  Bruno Haible  <bruno@clisp.org>
36499
36500         New module 'hostent'.
36501         * modules/hostent: New file.
36502         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36503
36504 2008-11-15  Bruno Haible  <bruno@clisp.org>
36505
36506         New module 'servent'.
36507         * modules/servent: New file.
36508         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36509
36510 2008-11-15  Bruno Haible  <bruno@clisp.org>
36511
36512         Avoid generating same test program with two different rules.
36513         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36514         test-frexp to test-frexp-nolibm.
36515         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36516         test-frexpl to test-frexpl-nolibm.
36517
36518 2008-11-15  Bruno Haible  <bruno@clisp.org>
36519
36520         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36521         $(FREXPL_LIBM).
36522
36523 2008-11-15  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/netdb.in.h: Activate the definitions also when the system's
36526         <netdb.h> has 'struct addrinfo'.
36527         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36528         EAI_OVERFLOW or AI_NUMERICSERV.
36529         * doc/posix-headers/netdb.texi: Document the problem.
36530
36531 2008-11-15  Bruno Haible  <bruno@clisp.org>
36532
36533         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36534
36535         Make the 'sched' module work on platforms where <sched.h> exists but
36536         is incomplete (such as Haiku).
36537         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36538         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36539         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36540         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36541         HAVE_STRUCT_SCHED_PARAM.
36542         * modules/sched (Depends-on): Add include_next.
36543         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36544         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36545         * doc/posix-headers/sched.texi: Document the issue.
36546
36547 2008-11-13  Jim Meyering  <meyering@redhat.com>
36548
36549         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36550         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36551         test would fail due to the difference in the Report bugs to ...
36552         line.  The expected address is empty, "<>", while the actual
36553         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36554
36555 2008-11-12  Bruno Haible  <bruno@clisp.org>
36556
36557         lstat: don't compile lstat.c on systems lacking lstat
36558         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36559         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36560         Reported by Daniel P. Berrange via Jim Meyering.
36561
36562 2008-11-12  Jim Meyering  <meyering@redhat.com>
36563
36564         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36565
36566 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36567
36568         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36569         instead.
36570
36571 2008-11-12  Bruno Haible  <bruno@clisp.org>
36572
36573         * lib/unicodeio.c: Include unistr.h.
36574         (utf8_wctomb): Remove function.
36575         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36576
36577 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36578
36579         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36580         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36581         <bruno@clisp.org>.
36582         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36583
36584 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36585
36586         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36587         * doc/gnulib.texi: Add section for warnings.
36588
36589 2008-11-11  Bruno Haible  <bruno@clisp.org>
36590
36591         * lib/sockets.h: Add a comment.
36592
36593 2008-11-11  Karl Berry  <karl@gnu.org>
36594
36595         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36596
36597 2008-11-11  Eric Blake  <ebb9@byu.net>
36598
36599         fdl.texi: avoid git symlinks
36600         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36601
36602 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36603
36604         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36605
36606 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36607
36608         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36609         (gl_WARN_ADD): Substitute $2 if literal.
36610
36611 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36612
36613         * m4/warning.m4: Remove.
36614
36615 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36616
36617         * m4/warnings.m4: Almost complete rewrite. :-)
36618
36619 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36620
36621         * modules/warnings: New module.
36622         * m4/warnings.m4: New file.
36623         * MODULES.html.sh: Mention warnings module.
36624         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36625         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36626
36627 2008-11-10  Eric Blake  <ebb9@byu.net>
36628
36629         fdl.texi: make a symlink to the latest version
36630         * doc/standards.texi: Revert today's earlier change.
36631         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36632         * doc/fdl.texi: ...and replace this with a symlink to the newer
36633         fdl-1.3.texi.
36634
36635 2008-11-10  Bruno Haible  <bruno@clisp.org>
36636
36637         * tests/test-select-fd.c (main): Accept the result file name as fourth
36638         argument.
36639         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36640         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36641
36642 2008-11-10  Bruno Haible  <bruno@clisp.org>
36643
36644         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36645         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36646         as autoconf-substituted macros.
36647         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36648         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36649         gl_NETDB_H_DEFAULTS. Set these variables.
36650         * modules/netdb (Makefile.am): Substitute these variables.
36651
36652 2008-11-10  Eric Blake  <ebb9@byu.net>
36653
36654         standards.texi: include correct file for FDL 1.3
36655         * doc/standards.texi (GNU Free Documentation License): Change
36656         include file to pull in FDL 1.3, not 1.2.
36657
36658         fdl.texi: revert accidental change to license
36659         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36660
36661 2008-11-10  Bruno Haible  <bruno@clisp.org>
36662
36663         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36664         cross-compiling guesses also when the native compile gives no result.
36665
36666 2008-11-10  Bruno Haible  <bruno@clisp.org>
36667
36668         * lib/spawni.c (__spawni): Force variable into the stack.
36669
36670 2008-11-10  Bruno Haible  <bruno@clisp.org>
36671
36672         Add support for Haiku.
36673         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36674         glibc and BeOS, but also on Haiku.
36675         * lib/fpurge.c (fpurge): Likewise.
36676         * lib/freadable.c (freadable): Likewise.
36677         * lib/freadahead.c (freadahead): Likewise.
36678         * lib/freading.c (freading): Likewise.
36679         * lib/freadptr.c (freadptr): Likewise.
36680         * lib/freadseek.c (freadptrinc): Likewise.
36681         * lib/fseeko.c (rpl_fseeko): Likewise.
36682         * lib/fseterr.c (fseterr): Likewise.
36683         * lib/fwritable.c (fwritable): Likewise.
36684         * lib/fwriting.c (fwriting): Likewise.
36685         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36686
36687 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36688
36689         * lib/config.charset: Treat Haiku like BeOS.
36690
36691 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36692
36693         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36694         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36695
36696 2008-11-08  Bruno Haible  <bruno@clisp.org>
36697
36698         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36699         AC_CACHE_CHECK.
36700
36701 2008-11-08  Bruno Haible  <bruno@clisp.org>
36702
36703         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36704
36705 2008-11-08  Bruno Haible  <bruno@clisp.org>
36706
36707         * tests/test-select-fd.c: New file.
36708         * tests/test-select-in.sh: New file.
36709         * tests/test-select-out.sh: New file.
36710         * tests/test-select-stdin.c: New file.
36711         * modules/select-tests (Files): Add the new files.
36712         (Depends-on): Add gettimeofday.
36713         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36714         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36715         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36716
36717 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36718             Bruno Haible  <bruno@clisp.org>
36719
36720         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36721
36722 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36723
36724         * build-aux/pmccabe2html: Added support for C++ source files.
36725
36726 2008-11-05  Ben Pfaff  <blp@gnu.org>
36727
36728         Fix lib/close.c build on Windows.
36729         * modules/close (Files): Add lib/w32sock.h.
36730
36731 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36732
36733         Accept Bison's NEWS format.
36734         * build-aux/announce-gen (print_news_deltas): Tweak
36735         $re_prefix.
36736
36737 2008-11-04  Bruno Haible  <bruno@clisp.org>
36738
36739         * modules/random_r (Maintainer): Add glibc.
36740
36741 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36742
36743         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36744         by karl@freefriends.org (Karl Berry).
36745         * doc/alloca.texi: Likewise.
36746         * doc/c-ctype.texi: Likewise.
36747         * doc/c-strcase.texi: Likewise.
36748         * doc/c-strcaseeq.texi: Likewise.
36749         * doc/c-strcasestr.texi: Likewise.
36750         * doc/c-strstr.texi: Likewise.
36751         * doc/c-strtod.texi: Likewise.
36752         * doc/c-strtold.texi: Likewise.
36753         * doc/ctime.texi: Likewise.
36754         * doc/error.texi: Likewise.
36755         * doc/fdl.texi: Likewise.
36756         * doc/gcd.texi: Likewise.
36757         * doc/getdate.texi: Likewise.
36758         * doc/gnulib-intro.texi: Likewise.
36759         * doc/gnulib-tool.texi: Likewise.
36760         * doc/gnulib.texi: Likewise.
36761         * doc/inet_ntoa.texi: Likewise.
36762         * doc/maintain.texi: Likewise.
36763         * doc/make-stds.texi: Likewise.
36764         * doc/quote.texi: Likewise.
36765         * doc/regexprops-generic.texi: Likewise.
36766         * doc/standards.texi: Likewise.
36767         * doc/verify.texi: Likewise.
36768         * doc/visibility.texi: Likewise.
36769         * doc/gnulib.texi (GNU Free Documentation License): Include
36770         fdl-1.3.texi instead of fdl.texi.
36771
36772 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36773
36774         * doc/fdl-1.3.texi: New file, from
36775         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36776         * modules/fdl-1.3: Add.
36777         * MODULES.html.sh: Add fdl-1.3.
36778
36779 2008-11-03  Bruno Haible  <bruno@clisp.org>
36780
36781         Make determination of absolute name of header file work with AIX xlc.
36782         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36783         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36784         preprocessing.
36785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36786         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36787
36788 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36789
36790         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36791         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36792         <ludo@gnu.org>.
36793
36794 2008-11-02  Bruno Haible  <bruno@clisp.org>
36795
36796         Mark 'strpbrk' obsolete.
36797         * modules/strpbrk (Status, Notice): New sections.
36798         * modules/strtok_r (Depends-on): Add strpbrk.
36799
36800 2008-11-02  Bruno Haible  <bruno@clisp.org>
36801
36802         Mark 'strdup' obsolete.
36803         * modules/strdup (Status, Notice): New sections.
36804         * modules/findprog (Depends-on): Add strdup.
36805         * modules/getaddrinfo (Depends-on): Likewise.
36806         * modules/localename (Depends-on): Likewise.
36807         * modules/relocatable-lib (Depends-on): Likewise.
36808         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36809         * modules/relocatable-prog (Depends-on): Likewise.
36810         * modules/trim (Depends-on): Likewise.
36811         * modules/unictype/gen-ctype (Depends-on): Likewise.
36812         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36813
36814 2008-11-02  Bruno Haible  <bruno@clisp.org>
36815
36816         Mark 'strcspn' obsolete.
36817         * modules/strcspn (Status, Notice): New sections.
36818
36819 2008-11-02  Bruno Haible  <bruno@clisp.org>
36820
36821         Mark 'rmdir' obsolete.
36822         * modules/rmdir (Status, Notice): New sections.
36823         * modules/clean-temp (Depends-on): Add rmdir.
36824         * modules/openat (Depends-on): Likewise.
36825
36826 2008-11-02  Bruno Haible  <bruno@clisp.org>
36827
36828         Mark 'raise' obsolete.
36829         * modules/raise (Status, Notice): New sections.
36830         (Include): Specify <signal.h>.
36831         * modules/stdio (Depends-on): Add raise.
36832         * modules/write (Depends-on): Likewise.
36833
36834 2008-11-02  Bruno Haible  <bruno@clisp.org>
36835
36836         Mark 'memset' obsolete.
36837         * modules/memset (Status, Notice): New sections.
36838
36839 2008-11-02  Bruno Haible  <bruno@clisp.org>
36840
36841         Mark 'memmove' obsolete.
36842         * modules/memmove (Status, Notice): New sections.
36843         * modules/argp (Depends-on): Add memmove.
36844         * modules/argz (Depends-on): Likewise.
36845         * modules/canonicalize (Depends-on): Likewise.
36846         * modules/canonicalize-lgpl (Depends-on): Likewise.
36847         * modules/fts (Depends-on): Likewise.
36848         * modules/getcwd (Depends-on): Likewise.
36849         * modules/human (Depends-on): Likewise.
36850         * modules/regex (Depends-on): Likewise.
36851         * modules/striconveh (Depends-on): Likewise.
36852         * modules/trim (Depends-on): Likewise.
36853         * modules/unistr/u8-move (Depends-on): Likewise.
36854         * modules/unistr/u16-move (Depends-on): Likewise.
36855         * modules/unistr/u32-move (Depends-on): Likewise.
36856
36857 2008-11-02  Bruno Haible  <bruno@clisp.org>
36858
36859         Mark 'memcpy' obsolete.
36860         * modules/memcpy (Status, Notice): New sections.
36861
36862 2008-11-02  Bruno Haible  <bruno@clisp.org>
36863
36864         Mark 'memcmp' obsolete.
36865         * modules/memcmp (Status, Notice): New sections.
36866         * modules/argmatch (Depends-on): Add memchr.
36867         * modules/backupfile (Depends-on): Likewise.
36868         * modules/c-strcasestr (Depends-on): Likewise.
36869         * modules/crypto/des (Depends-on): Likewise.
36870         * modules/csharpcomp (Depends-on): Likewise.
36871         * modules/fnmatch (Depends-on): Likewise.
36872         * modules/git-merge-changelog (Depends-on): Likewise.
36873         * modules/isnand (Depends-on): Likewise.
36874         * modules/isnand-nolibm (Depends-on): Likewise.
36875         * modules/isnanf (Depends-on): Likewise.
36876         * modules/isnanf-nolibm (Depends-on): Likewise.
36877         * modules/isnanl (Depends-on): Likewise.
36878         * modules/isnanl-nolibm (Depends-on): Likewise.
36879         * modules/mbchar (Depends-on): Likewise.
36880         * modules/memcoll (Depends-on): Likewise.
36881         * modules/quotearg (Depends-on): Likewise.
36882         * modules/regex (Depends-on): Likewise.
36883         * modules/relocatable-prog (Depends-on): Likewise.
36884         * modules/same (Depends-on): Likewise.
36885         * modules/signbit (Depends-on): Likewise.
36886         * modules/strcasestr-simple (Depends-on): Likewise.
36887         * modules/unictype/gen-ctype (Depends-on): Likewise.
36888         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36889         * modules/uniname/uniname (Depends-on): Likewise.
36890         * modules/unistr/u8-cmp (Depends-on): Likewise.
36891
36892 2008-11-02  Bruno Haible  <bruno@clisp.org>
36893
36894         Mark 'memchr' obsolete.
36895         * modules/memchr (Status, Notice): New sections.
36896         * modules/argp (Depends-on): Add memchr.
36897         * modules/base64 (Depends-on): Likewise.
36898         * modules/c-strcasestr (Depends-on): Likewise.
36899         * modules/chdir-long (Depends-on): Likewise.
36900         * modules/fnmatch (Depends-on): Likewise.
36901         * modules/getsubopt (Depends-on): Likewise.
36902         * modules/git-merge-changelog (Depends-on): Likewise.
36903         * modules/glob (Depends-on): Likewise.
36904         * modules/strcasestr-simple (Depends-on): Likewise.
36905         * modules/strnlen (Depends-on): Likewise.
36906
36907 2008-11-02  Bruno Haible  <bruno@clisp.org>
36908
36909         Mark 'atexit' obsolete.
36910         * modules/atexit (Status, Notice): New sections.
36911         * modules/chdir-long (Depends-on): Add atexit.
36912         * modules/wait-process (Depends-on): Likewise.
36913
36914 2008-11-02  Bruno Haible  <bruno@clisp.org>
36915
36916         * gnulib-tool: New option --with-obsolete.
36917         (func_usage): Document it.
36918         (func_modules_transitive_closure): Drop obsolete dependencies if
36919         incobsolete is not true.
36920         (func_import): Read and save the incobsolete variable to the cache.
36921
36922 2008-11-02  Bruno Haible  <bruno@clisp.org>
36923
36924         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36925         * gnulib-tool: New option --extract-status.
36926         (func_usage): Document it.
36927         (sed_extract_prog): Recognize it.
36928         (func_get_status): New function.
36929
36930 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36931
36932         * modules/sockets (License): Change from LGPL to LGPLv2+.
36933
36934 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36935
36936         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36937
36938 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36939
36940         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36941         Mention times and sys_times.
36942         * modules/sys_times, modules/sys_times-tests: New modules.
36943         * modules/times, modules/times-tests: Likewise
36944         * m4/sys_times_h.m4: New file.
36945         * lib/sys_times.in.h: Likewise
36946         * lib/times.c: Likewise.
36947         * tests/test-sys_times.c: Likewise.
36948         * tests/test-times.c: Likewise.
36949         * doc/posix-headers/sys_times.texi: Update.
36950         * doc/posix-functions/times.texi: Update.
36951
36952 2008-10-28  Jim Meyering  <meyering@redhat.com>
36953
36954         * modules/tempname (Depends-on): Add lstat.
36955
36956         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36957
36958 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36959
36960         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36961         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36962         using idiom used elsewhere in gnulib.
36963
36964 2008-10-27  Jim Meyering  <meyering@redhat.com>
36965
36966         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36967
36968 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36969
36970         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36971         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36972         programs.
36973         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36974
36975 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36976
36977         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36978
36979 2008-10-27  Bruno Haible  <bruno@clisp.org>
36980
36981         * tests/test-lstat.c: Include <stdio.h>.
36982
36983 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36984
36985         * modules/lstat-tests: New module.
36986         * tests/test-lstat.c: New file.
36987
36988 2008-10-26  Jim Meyering  <meyering@redhat.com>
36989
36990         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36991
36992 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36993             Bruno Haible  <bruno@clisp.org>
36994
36995         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36996         * modules/configmake (Include): Add a note that the include must come
36997         after all system headers.
36998         * lib/javaversion.c: Include configmake.h after all other includes.
36999
37000 2008-10-26  Bruno Haible  <bruno@clisp.org>
37001
37002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37003         HAVE_STRUCT_RANDOM_DATA to 1.
37004         (gl_STDLIB_H): Simplify.
37005
37006 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37007
37008         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37009         substitute HAVE_STRUCT_RANDOM_DATA.
37010         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37011         random_data.
37012         * modules/stdlib (Makefile.am): Substitute
37013         HAVE_STRUCT_RANDOM_DATA.
37014
37015 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37016
37017         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37018         * doc/gnulib-intro.texi (Copyright): Likewise.
37019
37020 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37021
37022         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37023         findings.
37024
37025 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37026             Bruno Haible  <bruno@clisp.org>
37027
37028         * lib/unistd.in.h: Include <winsock2.h>.
37029         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37030         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37031         Provide dummy declarations.
37032         (gethostname): Override.
37033         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37034         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37035         gl_PREREQ_SYS_H_WINSOCK2.
37036         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37037         * doc/posix-functions/gethostname.texi: More details.
37038
37039 2008-10-25  Bruno Haible  <bruno@clisp.org>
37040
37041         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37042         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37043         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37044
37045         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37046         here ...
37047         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37048         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37049         gl_UNISTD_H_DEFAULTS.
37050
37051 2008-10-25  Eric Blake  <ebb9@byu.net>
37052
37053         signbit: avoid spurious compiler failure
37054         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37055         declarations inside function.
37056
37057 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37058             Bruno Haible  <bruno@clisp.org>
37059
37060         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37061         * modules/random_r (Depends-on): Add stdint.
37062
37063 2008-10-24  Bruno Haible  <bruno@clisp.org>
37064
37065         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37066         Eggert.
37067         * modules/strerror (License): Likewise.
37068
37069 2008-10-24  Jim Meyering  <meyering@redhat.com>
37070
37071         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37072         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37073
37074 2008-10-24  Eric Blake  <ebb9@byu.net>
37075
37076         getgroups: fix compilation when getgroups is available
37077         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37078         but with <config.h> override of getgroups disabled.
37079
37080 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37081
37082         * doc/gnulib.texi (Header files): Add note about C++ problems.
37083         Explained by Bruno Haible <bruno@clisp.org>.
37084
37085 2008-10-23  Bruno Haible  <bruno@clisp.org>
37086
37087         Define a dummy SA_NODEFER macro on Interix.
37088         * lib/signal.in.h (SA_NODEFER): Define fallback.
37089         Reported by Aleksey Cheusov <cheusov@tut.by> via
37090         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37091
37092 2008-10-23  Bruno Haible  <bruno@clisp.org>
37093
37094         * modules/freadahead (License): Change to LGPLv2+.
37095         Suggested by Simon Josefsson.
37096
37097 2008-10-23  Jim Meyering  <meyering@redhat.com>
37098
37099         random_r: new module
37100         * modules/random_r: New file.
37101         * m4/random_r.m4: New file.
37102         * lib/random_r.c: New file, from glibc.
37103         * modules/random_r-tests: New file.
37104         * tests/test-random_r.c: New file.
37105         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37106          Declare.
37107         (RAND_MAX): Define.
37108         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37109         * modules/stdlib: Substitute them, too.
37110         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37111         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37112         * doc/glibc-functions/random_r.texi: Likewise.
37113         * doc/glibc-functions/setstate_r.texi: Likewise.
37114         * doc/glibc-functions/srandom_r.texi: Likewise.
37115         * config/srclist.txt: Mention it.
37116
37117 2008-10-23  David Lutterkort  <lutter@redhat.com>
37118
37119         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37120         link requirement
37121
37122 2008-10-23  Jim Meyering  <meyering@redhat.com>
37123
37124         selinux-h: mark parameters of stub functions as intentionally unused
37125         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37126         * lib/se-context.in.h: Likewise.
37127
37128 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37129
37130         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37131
37132 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37133
37134         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37135
37136 2008-10-22  Eric Blake  <ebb9@byu.net>
37137
37138         glthread/thread: avoid compiler warning
37139         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37140         Add unreachable abort to silence compiler.
37141
37142 2008-10-22  Eric Blake  <ebb9@byu.net>
37143
37144         netdb: also supply struct addrinfo for cygwin 1.5.x
37145         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37146         older cygwin.
37147         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37148         cygwin.
37149         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37150
37151 2008-10-22  Bruno Haible  <bruno@clisp.org>
37152
37153         * users.txt: Update entry about pspp.
37154
37155 2008-10-21  Bruno Haible  <bruno@clisp.org>
37156
37157         Simplification.
37158         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37159         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37160
37161         Simplification.
37162         * lib/ioctl.c (ioctl): Don't undefine.
37163         * lib/socket.c (socket): Don't undefine.
37164
37165         Remove unused module indicator macros.
37166         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37167         GNULIB_$1 as a C macro.
37168
37169         * doc/posix-functions/close.texi: Undo last change.
37170         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37171         Windows platforms.
37172
37173 2008-10-21  Bruno Haible  <bruno@clisp.org>
37174
37175         Add gethostname() declaration to <unistd.h>.
37176         * lib/unistd.in.h (gethostname): New declaration.
37177         * lib/gethostname.c: Include <unistd.h>.
37178         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37179         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37181         and HAVE_GETHOSTNAME.
37182         * modules/gethostname (Depends-on): Add unistd.
37183         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37184         (Include): Specify <unistd.h>.
37185         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37186         HAVE_GETHOSTNAME.
37187         * tests/test-gethostname.c: Include <unistd.h> first.
37188
37189 2008-10-21  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37192         * modules/select-tests (Depends-on): Likewise.
37193         Reported by Simon Josefsson.
37194
37195 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37196
37197         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37198         * lib/accept.c: New file, based on winsock.c.
37199         * lib/bind.c: New file, based on winsock.c.
37200         * lib/connect.c: New file, based on winsock.c.
37201         * lib/getpeername.c: New file, based on winsock.c.
37202         * lib/getsockname.c: New file, based on winsock.c.
37203         * lib/getsockopt.c: New file, based on winsock.c.
37204         * lib/ioctl.c: New file, based on winsock.c.
37205         * lib/listen.c: New file, based on winsock.c.
37206         * lib/recv.c: New file, based on winsock.c.
37207         * lib/recvfrom.c: New file, based on winsock.c.
37208         * lib/send.c: New file, based on winsock.c.
37209         * lib/sendto.c: New file, based on winsock.c.
37210         * lib/setsockopt.c: New file, based on winsock.c.
37211         * lib/shutdown.c: New file, based on winsock.c.
37212         * lib/socket.c: New file, based on winsock.c.
37213         * lib/w32sock.h: New file, based on winsock.c.
37214         * lib/winsock.c: Remove file.
37215         * modules/accept: Likewise.
37216         * modules/bind: Likewise.
37217         * modules/connect: Likewise.
37218         * modules/getpeername: Likewise.
37219         * modules/getsockname: Likewise.
37220         * modules/getsockopt: Likewise.
37221         * modules/ioctl: Likewise.
37222         * modules/listen: Likewise.
37223         * modules/recv: Likewise.
37224         * modules/recvfrom: Likewise.
37225         * modules/send: Likewise.
37226         * modules/sendto: Likewise.
37227         * modules/setsockopt: Likewise.
37228         * modules/shutdown: Likewise.
37229         * modules/socket: Use socket.c instead of winsock.c.
37230         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37231         * doc/posix-functions/accept.texi: Doc fix.
37232         * doc/posix-functions/bind.texi: Doc fix.
37233         * doc/posix-functions/close.texi: Doc fix.
37234         * doc/posix-functions/connect.texi: Doc fix.
37235         * doc/posix-functions/getpeername.texi: Doc fix.
37236         * doc/posix-functions/getsockname.texi: Doc fix.
37237         * doc/posix-functions/getsockopt.texi: Doc fix.
37238         * doc/posix-functions/ioctl.texi: Doc fix.
37239         * doc/posix-functions/listen.texi: Doc fix.
37240         * doc/posix-functions/recv.texi: Doc fix.
37241         * doc/posix-functions/recvfrom.texi: Doc fix.
37242         * doc/posix-functions/send.texi: Doc fix.
37243         * doc/posix-functions/sendto.texi: Doc fix.
37244         * doc/posix-functions/setsockopt.texi: Doc fix.
37245         * doc/posix-functions/shutdown.texi: Doc fix.
37246         * doc/posix-functions/socket.texi: Doc fix.
37247
37248 2008-10-20  Bruno Haible  <bruno@clisp.org>
37249
37250         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37251         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37252         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37253         as an alias for SIGABRT.
37254         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37255         (sigaction): Map it to SIGABRT.
37256         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37257
37258 2008-10-20  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/fts.c: Don't include lstat.h.
37261         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37262
37263         Move the lstat() declaration to <sys/stat.h>.
37264         * lib/lstat.h: Remove file.
37265         * lib/sys_stat.in.h: Add special invocation convention.
37266         (lstat): New declaration.
37267         * lib/lstat.c (orig_lstat): New function.
37268         (rpl_lstat): Use orig_lstat instead of lstat.
37269         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37270         AC_C_INLINE. Set REPLACE_LSTAT.
37271         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37272         and REPLACE_LSTAT.
37273         * modules/lstat (Files): Remove lib/lstat.h.
37274         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37275         (Include): Specify <sys/stat.h> instead of lstat.h.
37276         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37277         REPLACE_LSTAT.
37278         * NEWS: Mention the change.
37279
37280 2008-10-20  Bruno Haible  <bruno@clisp.org>
37281
37282         * modules/posix_spawn-tests: New file.
37283         * tests/test-posix_spawn3.c: New file.
37284
37285 2008-10-20  Bruno Haible  <bruno@clisp.org>
37286
37287         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37288         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37289         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37290         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37291         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37292
37293 2008-10-20  Bruno Haible  <bruno@clisp.org>
37294
37295         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37296         of posix_spawn on AIX 5.3.
37297
37298 2008-10-20  Bruno Haible  <bruno@clisp.org>
37299
37300         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37301
37302 2008-10-20  Bruno Haible  <bruno@clisp.org>
37303
37304         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37305         of AC_LANG_PROGRAM.
37306
37307 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37308
37309         * lib/netdb.in.h: Don't define GNU specific constants until they
37310         are supported or needed.  Reported by Bruno Haible
37311         <bruno@clisp.org>.
37312
37313 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37314
37315         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37316
37317 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37318
37319         * lib/getaddrinfo.h: Remove file.
37320         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37321         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37322         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37323         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37324         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37325         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37326         * tests/test-getaddrinfo.c: Likewise.
37327         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37328         * NEWS: Mention change.
37329
37330 2008-10-19  Bruno Haible  <bruno@clisp.org>
37331
37332         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37333
37334 2008-10-19  Bruno Haible  <bruno@clisp.org>
37335
37336         * lib/wait-process.c: Include simply <sys/wait.h>.
37337         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37338         WIFSTOPPED): Remove fallback definitions.
37339         * modules/wait-process (Depends-on): Add sys_wait.
37340
37341         New module 'sys_wait'.
37342         * modules/sys_wait: New file.
37343         * lib/sys_wait.in.h: New file, partially copied from
37344         lib/wait-process.c.
37345         * m4/sys_wait_h.m4: New file.
37346         * doc/posix-headers/sys_wait.texi: Mention the new module.
37347
37348 2008-10-19  Bruno Haible  <bruno@clisp.org>
37349
37350         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37351
37352 2008-10-19  Bruno Haible  <bruno@clisp.org>
37353
37354         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37355         * lib/wait-process.c (WAIT_T): Remove type.
37356         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37357         (wait_subprocess): Update.
37358
37359 2008-10-19  Bruno Haible  <bruno@clisp.org>
37360
37361         New module 'atoll'.
37362         * modules/atoll: New file.
37363         * lib/stdlib.in.h (atoll): New declaration.
37364         * lib/atoll.c: New file, from glibc with modifications.
37365         * m4/atoll.m4: New file.
37366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37367         HAVE_ATOLL.
37368         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37369         * doc/posix-functions/atoll.texi: Mention the new module.
37370
37371 2008-10-19  Bruno Haible  <bruno@clisp.org>
37372
37373         Add strtoull() declaration to <stdlib.h>.
37374         * lib/stdlib.in.h (strtoull): New declaration.
37375         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37376         Set HAVE_STRTOULL.
37377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37378         HAVE_STRTOULL.
37379         * modules/strtoull (Depends-on): Add stdlib.
37380         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37381         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37382         HAVE_STRTOULL.
37383
37384 2008-10-19  Bruno Haible  <bruno@clisp.org>
37385
37386         Add strtoll() declaration to <stdlib.h>.
37387         * lib/stdlib.in.h (strtoll): New declaration.
37388         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37389         Set HAVE_STRTOLL.
37390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37391         HAVE_STRTOLL.
37392         * modules/strtoll (Depends-on): Add stdlib.
37393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37394         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37395
37396 2008-10-19  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/bcopy (Depends-on): Add strings.
37399         (Include): Specify <strings.h>.
37400
37401 2008-10-19  Bruno Haible  <bruno@clisp.org>
37402
37403         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37404
37405 2008-10-19  Bruno Haible  <bruno@clisp.org>
37406
37407         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37408         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37409         mingw.
37410
37411 2008-10-19  Bruno Haible  <bruno@clisp.org>
37412
37413         * lib/atanl.c: Don't include isnanl.h.
37414         * lib/cosl.c: Likewise.
37415         * lib/ldexpl.c: Likewise.
37416         * lib/logl.c: Likewise.
37417         * lib/sinl.c: Likewise.
37418         * lib/sqrtl.c: Likewise.
37419         * lib/tanl.c: Likewise.
37420
37421         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37422         * lib/isnanf.h: Remove file.
37423         * lib/isnand.h: Remove file.
37424         * lib/isnanl.h: Remove file.
37425         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37426         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37427         macros.
37428         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37429         HAVE_ISNANF, don't define it as a C macro.
37430         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37431         HAVE_ISNAND, don't define it as a C macro.
37432         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37433         HAVE_ISNANL, don't define it as a C macro.
37434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37435         HAVE_ISNAN[FDL].
37436         * modules/isnanf (Files): Remove lib/isnanf.h.
37437         (Depends-on): Add math.
37438         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37439         (Include): Specify <math.h> instead of isnanf.h.
37440         * modules/isnand (Files): Remove lib/isnand.h.
37441         (Depends-on): Add math.
37442         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37443         (Include): Specify <math.h> instead of isnand.h.
37444         * modules/isnanl (Files): Remove lib/isnanl.h.
37445         (Depends-on): Add math.
37446         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37447         (Include): Specify <math.h> instead of isnanl.h.
37448         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37449         HAVE_ISNAN[FDL].
37450         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37451         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37452         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37453         * NEWS: Mention the change.
37454
37455 2008-10-18  Bruno Haible  <bruno@clisp.org>
37456
37457         Add getusershell(), setusershell(), endusershell() declarations to
37458         <unistd.h>.
37459         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37460         declarations.
37461         * lib/getusershell.c: Include unistd.h.
37462         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37463         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37464         HAVE_GETUSERSHELL.
37465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37466         and HAVE_GETUSERSHELL.
37467         * modules/getusershell (Depends-on): Add unistd, extensions.
37468         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37469         (Include): Specify <unistd.h>.
37470         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37471         HAVE_GETUSERSHELL.
37472
37473 2008-10-18  Bruno Haible  <bruno@clisp.org>
37474
37475         Add a getloadavg() declaration to <stdlib.h>.
37476         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37477         getloadavg declaration.
37478         (getloadavg): New declaration.
37479         * lib/getloadavg.c: Include <stdlib.h> first.
37480         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37481         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37482         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37484         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37485         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37486         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37487         (Include): Specify <stdlib.h>.
37488         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37489         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37490
37491 2008-10-18  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/dirchownmod.c: Don't include lchmod.h.
37494
37495         Move the lchmod() declaration to <sys/stat.h>.
37496         * lib/lchmod.h: Remove file.
37497         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37498         (lchmod): New declaration, moved here from lib/lchown.h.
37499         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37500         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37501         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37502         and HAVE_LCHMOD.
37503         * modules/lchmod (Files): Remove lib/lchmod.h.
37504         (Depends-on): Add sys_stat, extensions.
37505         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37506         (Include): Specify <sys/stat.h> instead of lchmod.h.
37507         * modules/sys_stat (Depends-on): Add link-warning.
37508         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37509         definition of GL_LINK_WARNING.
37510         * NEWS: Mention the change.
37511
37512 2008-10-18  Bruno Haible  <bruno@clisp.org>
37513
37514         * lib/fchdir.c: Don't include dirfd.h.
37515         * lib/fts.c: Likewise.
37516         * lib/getcwd.c: Likewise.
37517         * lib/glob.c: Likewise.
37518
37519         Move the dirfd() declaration to <dirent.h>.
37520         * lib/dirfd.h: Remove file.
37521         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37522         (dirfd): New declaration.
37523         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37524         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37525         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37526         HAVE_DECL_DIRFD.
37527         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37528         HAVE_DECL_DIRFD.
37529         * modules/dirfd (Files): Remove lib/dirfd.h.
37530         (Depends-on): Add dirent, extensions.
37531         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37532         (Include): Specify <dirent.h> instead of dirfd.h.
37533         * modules/dirent (Depends-on): Add link-warning.
37534         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37535         definition of GL_LINK_WARNING.
37536         * NEWS: Mention the change.
37537
37538 2008-10-18  Bruno Haible  <bruno@clisp.org>
37539
37540         Move the euidaccess() declaration to <unistd.h>.
37541         * lib/euidaccess.h: Remove file.
37542         * lib/unistd.in.h (euidaccess): New declaration.
37543         * lib/euidaccess.c: Don't include euidaccess.h.
37544         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37545         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37547         and HAVE_EUIDACCESS.
37548         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37549         (Depends-on): Add unistd.
37550         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37551         (Include): Specify <unistd.h> instead of euidaccess.h.
37552         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37553         HAVE_EUIDACCESS.
37554         * NEWS: Mention the change.
37555
37556 2008-10-18  Bruno Haible  <bruno@clisp.org>
37557
37558         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37559
37560         Move the getdomainname() declaration to <unistd.h>.
37561         * lib/getdomainname.h: Remove file.
37562         * lib/unistd.in.h (getdomainname): New declaration.
37563         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37564         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37565         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37566         HAVE_GETDOMAINNAME.
37567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37568         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37569         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37570         (Depends-on): Add unistd, extensions.
37571         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37572         (Includes): Specify <unistd.h> instead of getdomainname.h.
37573         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37574         HAVE_GETDOMAINNAME.
37575         * NEWS: Mention the change.
37576
37577 2008-10-18  Bruno Haible  <bruno@clisp.org>
37578
37579         * modules/dirent: New file.
37580         * m4/dirent_h.m4: New file.
37581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37582         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37583         * modules/fchdir (Files): Remove lib/dirent.in.h.
37584         (Depends-on): Add dirent.
37585         (Makefile.am): Move rules to modules/dirent.
37586         * doc/posix-headers/dirent.texi: Mention the new module.
37587
37588 2008-10-18  Bruno Haible  <bruno@clisp.org>
37589
37590         Avoid -Wunused-parameter warnings in public gnulib header files.
37591         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37592         macro.
37593         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37594
37595 2008-10-18  Bruno Haible  <bruno@clisp.org>
37596
37597         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37598         * doc/glibc-functions/error.texi: Mention the module 'error'.
37599         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37600         * doc/glibc-functions/getdomainname.texi: Mention the module
37601         'getdomainname'.
37602         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37603         * doc/glibc-functions/getpagesize.texi: Mention the module
37604         'getpagesize'.
37605         * doc/glibc-functions/getusershell.texi: Mention the module
37606         'getusershell'.
37607         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37608         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37609         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37610         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37611         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37612         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37613         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37614         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37615         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37616         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37617         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37618         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37619         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37620         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37621
37622 2008-10-17  Bruno Haible  <bruno@clisp.org>
37623
37624         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37625         HP-UX and IRIX, use -0.0L.
37626         * tests/test-ceill.c (minus_zero): Likewise.
37627         * tests/test-floorl.c (minus_zero): Likewise.
37628         * tests/test-frexpl.c (minus_zero): Likewise.
37629         * tests/test-isnan.c (minus_zerol): Likewise.
37630         * tests/test-isnanl.h (minus_zero): Likewise.
37631         * tests/test-ldexpl.c (minus_zero): Likewise.
37632         * tests/test-roundl.c (minus_zero): Likewise.
37633         * tests/test-signbit.c (minus_zerol): Likewise.
37634         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37635         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37636         * tests/test-truncl.c (minus_zero): Likewise.
37637         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37638         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37639         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37640         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37641
37642 2008-10-17  Bruno Haible  <bruno@clisp.org>
37643
37644         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37645         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37646         that it gets activated only for gcc >= 3.0.
37647         * lib/dirent.in.h: Likewise.
37648         * lib/errno.in.h: Likewise.
37649         * lib/fcntl.in.h: Likewise.
37650         * lib/float.in.h: Likewise.
37651         * lib/iconv.in.h: Likewise.
37652         * lib/inttypes.in.h: Likewise.
37653         * lib/locale.in.h: Likewise.
37654         * lib/math.in.h: Likewise.
37655         * lib/netdb.in.h: Likewise.
37656         * lib/netinet_in.in.h: Likewise.
37657         * lib/search.in.h: Likewise.
37658         * lib/signal.in.h: Likewise.
37659         * lib/spawn.in.h: Likewise.
37660         * lib/stdarg.in.h: Likewise.
37661         * lib/stdint.in.h: Likewise.
37662         * lib/stdio.in.h: Likewise.
37663         * lib/stdlib.in.h: Likewise.
37664         * lib/string.in.h: Likewise.
37665         * lib/strings.in.h: Likewise.
37666         * lib/sys_file.in.h: Likewise.
37667         * lib/sys_ioctl.in.h: Likewise.
37668         * lib/sys_select.in.h: Likewise.
37669         * lib/sys_socket.in.h: Likewise.
37670         * lib/sys_stat.in.h: Likewise.
37671         * lib/sys_time.in.h: Likewise.
37672         * lib/sysexits.in.h: Likewise.
37673         * lib/time.in.h: Likewise.
37674         * lib/unistd.in.h: Likewise.
37675         * lib/wchar.in.h: Likewise.
37676         * lib/wctype.in.h: Likewise.
37677         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37678
37679 2008-10-17  Jim Meyering  <meyering@redhat.com>
37680
37681         ignore-value: don't depend on inline module
37682         * modules/ignore-value (Depends-on): Remove 'inline'.
37683         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37684         Suggestion from Bruno Haible.
37685
37686 2008-10-17  Bruno Haible  <bruno@clisp.org>
37687
37688         New implementation of condition variables for Win32.
37689         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37690         (gl_linked_waitqueue_t): New type.
37691         (gl_cond_t): Use it.
37692         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37693         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37694         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37695         (glthread_cond_init_func, glthread_cond_wait_func,
37696         glthread_cond_timedwait_func, glthread_cond_signal_func,
37697         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37698         Reimplemented on the basis of gl_linked_waitqueue_t.
37699         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37700         gl_waitqueue_t.
37701         (gl_rwlock_t): Update.
37702         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37703
37704 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37705
37706         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37707         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37708
37709 2008-10-17  Jim Meyering  <meyering@redhat.com>
37710
37711         ignore-value: new module
37712         * modules/ignore-value: New file.
37713         * lib/ignore-value.h: New file.
37714         * MODULES.html.sh (Compiler warning management): New section,
37715         just for this module.  More to come.
37716
37717 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37718
37719         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37720         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37721         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37722
37723 2008-10-16  Jim Meyering  <meyering@redhat.com>
37724
37725         openat-die.c: avoid 'no previous prototype' warning
37726         * lib/openat-die.c: Include "openat.h".
37727         Reported by Reuben Thomas <rrt@sc3d.org>.
37728
37729 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37730
37731         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37732         * lib/netdb.in.h: Fix typo.
37733         Reported by Bruno Haible  <bruno@clisp.org>
37734
37735         * lib/netdb.in.h: Include sys/socket.h for platforms without
37736         netdb.h, to get structures like hostent on MinGW.
37737         * modules/netdb (Depends-on): Add sys_socket.
37738
37739 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37740
37741         * modules/netdb, modules/netdb-tests: New file.
37742         * m4/netdb_h.m4: New file.
37743         * lib/netdb.in.h: Add, currently just an empty file pending
37744         definitions.
37745         * tests/test-netdb.c: New file.
37746         * doc/posix-headers/netdb.texi: Mention that we replace it if
37747         needed.
37748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37749         netdb.
37750
37751 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37752
37753         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37754         with code.
37755
37756 2008-10-13  Bruno Haible  <bruno@clisp.org>
37757
37758         * lib/glthread/cond.c (glthread_cond_wait_func,
37759         glthread_cond_timedwait_func): Add a comment.
37760
37761 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37762
37763         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37764         * tests/test-select.c: Likewise,
37765
37766 2008-10-13  Bruno Haible  <bruno@clisp.org>
37767
37768         * lib/glthread/cond.c (glthread_cond_wait_func,
37769         glthread_cond_timedwait_func): Fix variable name.
37770         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37771
37772 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37773
37774         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37775         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37776         struct sockaddr.sa_len.
37777         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37778
37779 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37780
37781         * build-aux/pmccabe2html: Add css and css_url parameters.
37782
37783 2008-10-12  Bruno Haible  <bruno@clisp.org>
37784
37785         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37786         calling aclx_get.
37787         Reported by Rainer Tammer <tammer@tammer.net>.
37788
37789 2008-10-12  Bruno Haible  <bruno@clisp.org>
37790
37791         Use msvcrt aware primitives for creation/termination of Win32 threads.
37792         * lib/glthread/thread.c: Include <process.h>.
37793         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37794         (wrapper_func): Update signature.
37795         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37796
37797 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37798             Bruno Haible  <bruno@clisp.org>
37799
37800         Provide a Win32 implementation of the 'cond' module.
37801         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37802         * lib/glthread/cond.c (glthread_cond_init_func,
37803         glthread_cond_wait_func, glthread_cond_timedwait_func,
37804         glthread_cond_signal_func, glthread_cond_broadcast_func,
37805         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37806         * modules/cond (Dependencies): Add gettimeofday.
37807
37808 2008-10-11  Bruno Haible  <bruno@clisp.org>
37809
37810         Make sleep work on older versions of mingw.
37811         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37812         only whether it exists.
37813         * doc/posix-functions/sleep.texi: Mention the problem with older
37814         versions of mingw.
37815
37816 2008-10-11  Bruno Haible  <bruno@clisp.org>
37817
37818         New module 'shutdown'.
37819         * modules/shutdown: New file.
37820         * lib/sys_socket.in.h (shutdown): New declaration.
37821         * lib/winsock.c (shutdown): New function.
37822         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37823         GNULIB_SHUTDOWN.
37824         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37825         * doc/posix-functions/shutdown.texi: Document the new module.
37826
37827 2008-10-11  Jim Meyering  <meyering@redhat.com>
37828
37829         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37830
37831 2008-10-11  Bruno Haible  <bruno@clisp.org>
37832
37833         New module 'fclose'.
37834         * modules/fclose: New file.
37835         * lib/stdio.in.h (fclose): New declaration.
37836         * lib/fclose.c: New file.
37837         * m4/fclose.m4: New file.
37838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37839         REPLACE_FCLOSE.
37840         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37841         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37842         REPLACE_FCLOSE.
37843         * modules/close (Depends-on): fclose.
37844         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37845
37846 2008-10-11  Bruno Haible  <bruno@clisp.org>
37847
37848         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37849         set errno and don't call _close.
37850
37851 2008-10-10  Bruno Haible  <bruno@clisp.org>
37852
37853         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37854         ACL, not afterwards. Fixes test failure on Cygwin.
37855
37856 2008-10-09  Ben Pfaff  <blp@gnu.org>
37857
37858         * build-aux/announce-gen: Fix gnulib version related part of usage
37859         message.  Die with a useful error message if no tarballs are
37860         found.
37861
37862 2008-10-10  Jim Meyering  <meyering@redhat.com>
37863
37864         bootstrap: use git's --depth=N option only if it's supported
37865         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37866         recognize the --depth option.  Reported by Pádraig Brady.
37867
37868 2008-10-09  Bruno Haible  <bruno@clisp.org>
37869
37870         New module 'ioctl'.
37871         * modules/ioctl: New file.
37872         * lib/sys_socket.in.h (ioctl): Remove declaration.
37873         * lib/winsock.c: Include <sys/ioctl.h>.
37874         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37875         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37876         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37877         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37878         * doc/posix-functions/ioctl.texi: Mention the new module.
37879
37880 2008-10-09  Bruno Haible  <bruno@clisp.org>
37881
37882         New module 'sys_ioctl'.
37883         * lib/sys_ioctl.in.h: New file.
37884         * m4/sys_ioctl_h.m4: New file.
37885         * modules/sys_ioctl: New file.
37886         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37887
37888 2008-10-09  Bruno Haible  <bruno@clisp.org>
37889
37890         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37891         * lib/winsock.c: Include <stdarg.h>.
37892         (rpl_ioctl): Change to second argument 'int' and then varargs.
37893
37894 2008-10-09  Bruno Haible  <bruno@clisp.org>
37895
37896         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37897         when the sys_socket module is present and the system has <winsock2.h>.
37898
37899 2008-10-09  Bruno Haible  <bruno@clisp.org>
37900
37901         * doc/posix-functions/close.texi: Mention module 'close' instead of
37902         module 'sys_socket'.
37903
37904 2008-10-09  Bruno Haible  <bruno@clisp.org>
37905
37906         * doc/glibc-headers/sys_ioctl.texi: New file.
37907         * doc/gnulib.texi: Include it.
37908
37909 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37910             Bruno Haible  <bruno@clisp.org>
37911
37912         Combine the two replacements of 'close'.
37913         * lib/sys_socket.in.h (close): Define to a reminder to include
37914         <unistd.h>.
37915         (_gl_close_fd_maybe_socket): New declaration.
37916         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37917         * lib/winsock.c (close): Remove undefinition.
37918         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37919         needed for the gnulib module 'close'.
37920         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37921         define to an error symbol or to a warning, if suitable.
37922         * lib/close.c: Include <sys/socket.h>.
37923         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37924         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37925         UNISTD_H_HAVE_WINSOCK2_H.
37926         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37928         UNISTD_H_HAVE_WINSOCK2_H.
37929         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37930         (configure.ac): Set a module indicator.
37931         (Makefile.am): Substitute GNULIB_CLOSE.
37932         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37933         * modules/poll-tests (Depends-on): Add close.
37934         * modules/select-tests (Depends-on): Likewise.
37935
37936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37937             Bruno Haible  <bruno@clisp.org>
37938
37939         New module 'close'.
37940         * modules/close: New file.
37941         * lib/unistd.in.h (close): Move declaration out of the
37942         FCHDIR_REPLACEMENT scope.
37943         (_gl_unregister_fd): New declaration.
37944         * lib/close.c: New file.
37945         * lib/fchdir.c (rpl_close): Remove function.
37946         * m4/close.m4: New file.
37947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37948         close.
37949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37950         REPLACE_CLOSE.
37951         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37952         REPLACE_CLOSE.
37953         * modules/fchdir (Depends-on): Add close.
37954
37955 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37956             Bruno Haible  <bruno@clisp.org>
37957
37958         * lib/fcntl.in.h (open): Simplify conditionals.
37959         (_gl_register_fd): New declaration.
37960         * lib/fchdir.c (rpl_open): Remove function.
37961         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37962         also.
37963         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37965         open.
37966
37967 2008-10-09  Jim Meyering  <meyering@redhat.com>
37968
37969         GNUmakefile: use the more name-space-friendly "_version"
37970         * top/GNUmakefile (_dummy): Update.
37971         (_version): Rename from "version".
37972
37973 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37974             Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37977         rpl_close.
37978         (_gl_register_fd): New function, extracted from rpl_open.
37979         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37980         (rpl_open, rpl_opendir): Use _gl_register_fd.
37981
37982 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37983
37984         Fix organization of 'open' replacement.
37985         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37986         (gl_FUNC_OPEN): Use it.
37987         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37988
37989 2008-10-08  Bruno Haible  <bruno@clisp.org>
37990
37991         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37992
37993 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37994
37995         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37996         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37997         listen).
37998
37999 2008-10-08  Eric Blake  <ebb9@byu.net>
38000
38001         GNUmakefile: add 'make version' target
38002         * top/GNUmakefile (_curr-ver): Split version update rules...
38003         (version): ...into a target.
38004
38005 2008-10-07  Bruno Haible  <bruno@clisp.org>
38006
38007         Use a more portable replacement expression for -0.0L.
38008         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38009         instead of -0.0L. Fix m4 quotation.
38010
38011         * tests/test-signbit.c: Include <float.h>.
38012         (minus_zero): New variable.
38013         (test_signbitl): Use minus_zero instead of -zero.
38014         * modules/signbit-tests (Depends-on): Add float.
38015
38016         * tests/test-ceill.c: Include <float.h>.
38017         (zero): Remove variable.
38018         (minus_zero): New variable.
38019         (main): Use minus_zero instead of -zero.
38020         * modules/ceill-tests (Depends-on): Add float.
38021
38022         * tests/test-floorl.c: Include <float.h>.
38023         (zero): Remove variable.
38024         (minus_zero): New variable.
38025         (main): Use minus_zero instead of -zero.
38026         * modules/floorl-tests (Depends-on): Add float.
38027
38028         * tests/test-roundl.c: Include <float.h>.
38029         (zero): Remove variable.
38030         (minus_zero): New variable.
38031         (main): Use minus_zero instead of -zero.
38032         * modules/roundl-tests (Depends-on): Add float.
38033
38034         * tests/test-truncl.c: Include <float.h>.
38035         (zero): Remove variable.
38036         (minus_zero): New variable.
38037         (main): Use minus_zero instead of -zero.
38038         * modules/truncl-tests (Depends-on): Add float.
38039
38040         * tests/test-frexpl.c (zero): Remove variable.
38041         (minus_zero): New variable.
38042         (main): Use minus_zero instead of -zero.
38043         * modules/frexpl-tests (Depends-on): Add float.
38044
38045         * tests/test-isnan.c (zerol): Remove variable.
38046         (minus_zerol): New variable.
38047         (test_long_double): Use minus_zerol instead of -zerol.
38048         * modules/isnan-tests (Depends-on): Add float.
38049
38050         * tests/test-isnanl.h (zero): Remove variable.
38051         (minus_zero): New variable.
38052         (main): Use minus_zero instead of -zero.
38053         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38054         * modules/isnanl-tests (Depends-on): Add float.
38055
38056         * tests/test-ldexpl.c (zero): Remove variable.
38057         (minus_zero): New variable.
38058         (main): Use minus_zero instead of -zero.
38059         * modules/ldexpl-tests (Depends-on): Add float.
38060
38061         * tests/test-snprintf-posix.h (zerol): Remove variable.
38062         (minus_zerol): New variable.
38063         (test_function): Use minus_zerol instead of -zerol.
38064         * modules/snprintf-posix-tests (Depends-on): Add float.
38065         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38066
38067         * tests/test-sprintf-posix.h (zerol): Remove variable.
38068         (minus_zerol): New variable.
38069         (test_function): Use minus_zerol instead of -zerol.
38070         * modules/sprintf-posix-tests (Depends-on): Add float.
38071         * modules/vsprintf-posix-tests (Depends-on): Add float.
38072
38073         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38074         (minus_zerol): New variable.
38075         (test_function): Use minus_zerol instead of -zerol.
38076         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38077
38078         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38079         (minus_zerol): New variable.
38080         (test_function): Use minus_zerol instead of -zerol.
38081         * modules/vasprintf-posix-tests (Depends-on): Add float.
38082
38083 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38084
38085         * MODULES.html.sh (Support for building documentation): Mention
38086         pmccabe2html.  Sort entries.
38087
38088         Add pmccabe2html module, from gnupdf.
38089         * build-aux/pmccabe.css: New file.
38090         * build-aux/pmccabe2html: New file.
38091         * m4/pmccabe2html.m4: New file.
38092         * modules/pmccabe2html: New file.
38093
38094 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38095
38096         flock: new module
38097         * MODULES.html.sh: Add to list of modules.
38098         * lib/flock.c: flock implementation for Windows and Unix systems
38099         which have fcntl.
38100         * doc/glibc-functions/flock.texi: Update documentation.
38101         * lib/sys_file.in.h: <sys/file.h> header file.
38102         * m4/flock.m4: M4 macros.
38103         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38104         * modules/flock: flock module.
38105         * modules/flock-tests: flock tests module.
38106         * modules/sys_file: sys/file.h module.
38107         * tests/test-flock.c: test suite for flock.
38108
38109 2008-10-06  Jim Meyering  <meyering@redhat.com>
38110
38111         bootstrap: check for LT_INIT more portably still ;-)
38112         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38113         Spotted by Bruno Haible.
38114
38115 2008-10-06  Eric Blake  <ebb9@byu.net>
38116
38117         test-signbit: avoid tripping Irix cc bug on -0.0L
38118         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38119         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38120         entire testsuite consistent and avoids an Irix 6.2 bug.
38121
38122 2008-10-05  Bruno Haible  <bruno@clisp.org>
38123             Jim Meyering  <jim@meyering.net>
38124
38125         Add an option for ignoring EPIPE during close_stdout.
38126         * lib/closeout.h: Include <stdbool.h>.
38127         (close_stdout_set_ignore_EPIPE): New declaration.
38128         * lib/closeout.c: Include <stdbool.h>.
38129         (ignore_EPIPE): New variable.
38130         (close_stdout_set_ignore_EPIPE): New function.
38131         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38132         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38133         failure.
38134         * modules/closeout (Depends-on): Add stdbool.
38135
38136 2008-10-05  Bruno Haible  <bruno@clisp.org>
38137
38138         * modules/accept: New file.
38139         * modules/bind: New file.
38140         * modules/connect: New file.
38141         * modules/getpeername: New file.
38142         * modules/getsockname: New file.
38143         * modules/getsockopt: New file.
38144         * modules/listen: New file.
38145         * modules/recv: New file.
38146         * modules/recvfrom: New file.
38147         * modules/send: New file.
38148         * modules/sendto: New file.
38149         * modules/setsockopt: New file.
38150         * modules/socket: New file.
38151         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38152         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38153         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38154         the particular module is requested. Add a link warning when the
38155         particular module is not requested.
38156         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38157         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38158         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38159         the particular module is requested.
38160         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38161         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38162         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38163         * modules/sys_socket (Depends-on): Add link-warning.
38164         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38165         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38166         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38167         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38168         GL_LINK_WARNING.
38169         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38170         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38171         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38172         * doc/posix-functions/getpeername.texi: Mention the new module
38173         'getpeername'.
38174         * doc/posix-functions/getsockname.texi: Mention the new module
38175         'getsockname'.
38176         * doc/posix-functions/getsockopt.texi: Mention the new module
38177         'getsockopt'.
38178         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38179         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38180         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38181         * doc/posix-functions/send.texi: Mention the new module 'send'.
38182         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38183         * doc/posix-functions/setsockopt.texi: Mention the new module
38184         'setsockopt'.
38185         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38186         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38187         listen, connect, accept.
38188         * modules/select-tests (Depends-on): Likewise.
38189
38190 2008-10-05  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/winsock.c (strerror): Remove unused #undef.
38193         (rpl_close): Remove unused local variable.
38194
38195         * modules/sys_socket (Depends-on); Add errno.
38196
38197 2008-10-05  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38200         (select): Add a link warning when the 'select' module is not used.
38201         * modules/sys_select (Depends-on): Add link-warning.
38202         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38203         Suggested by Paolo Bonzini.
38204
38205 2008-10-05  Jim Meyering  <meyering@redhat.com>
38206
38207         bootstrap: check for LT_INIT more portably
38208         * build-aux/bootstrap: Avoid using grep -E, since it's not
38209         portable enough.  Suggestion from Bruno Haible.
38210
38211 2008-10-05  Bruno Haible  <bruno@clisp.org>
38212
38213         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38214         as being fixed by gnulib.
38215
38216 2008-10-05  Bruno Haible  <bruno@clisp.org>
38217
38218         * modules/select-tests: New file, mostly copied from
38219         modules/sys_select-tests.
38220         * tests/test-select.c: New file, mostly copied from
38221         tests/test-sys_select.c.
38222         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38223         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38224         (Makefile.am): Remove test_sys_select_LDADD.
38225
38226         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38227         to an undefined symbol, for an error message.
38228         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38229         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38230         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38231         winsock-select.c here.
38232         * modules/sys_select (Files): Remove lib/winsock-select.c.
38233         (Depends-on): Remove alloca.
38234         (Makefile.am): Substitute GNULIB_SELECT.
38235         * modules/select: New file.
38236         * doc/posix-functions/select.texi: Update.
38237
38238 2008-10-05  Bruno Haible  <bruno@clisp.org>
38239
38240         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38241         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38242         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38243         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38244         getdtablesize.
38245         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38246         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38247
38248 2008-10-05  Bruno Haible  <bruno@clisp.org>
38249
38250         * modules/getdtablesize-tests: New file.
38251         * tests/test-getdtablesize.c: New file.
38252
38253         New module 'getdtablesize'.
38254         * lib/unistd.in.h (getdtablesize): New declaration.
38255         * lib/getdtablesize.c: New file.
38256         * m4/getdtablesize.m4: New file.
38257         * modules/getdtablesize: New file.
38258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38259         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38260         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38261         HAVE_GETDTABLESIZE.
38262         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38263
38264 2008-10-05  Bruno Haible  <bruno@clisp.org>
38265
38266         * modules/sched (Makefile.am): Fix typo.
38267         Reported by Simon Josefsson.
38268
38269 2008-10-05  Jim Meyering  <meyering@redhat.com>
38270
38271         bootstrap: check for LT_INIT, too
38272         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38273         are deprecated.  Suggestion from Ralf Wildenhues.
38274
38275 2008-10-05  Bruno Haible  <bruno@clisp.org>
38276
38277         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38278         overriding them by ours.
38279         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38280
38281 2008-10-05  Jim Meyering  <meyering@redhat.com>
38282
38283         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38284         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38285         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38286
38287 2008-10-04  Bruno Haible  <bruno@clisp.org>
38288
38289         * modules/dup2 (License): Change to LGPLv2+.
38290         * modules/sleep (License): Likewise.
38291         * modules/perror (License): Likewise.
38292         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38293         Blake.
38294         * modules/signal (License): Likewise.
38295         * modules/sigprocmask (License): Likewise.
38296         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38297         Meyering.
38298
38299 2008-10-04  Bruno Haible  <bruno@clisp.org>
38300
38301         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38302         Reported by Rainer Tammer <tammer@tammer.net>.
38303
38304 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38305             Bruno Haible  <bruno@clisp.org>
38306
38307         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38308         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38309         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38310
38311 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38312
38313         filevercmp: new module
38314         * lib/filevercmp.h: New function filevercmp comparing version strings.
38315         * lib/filevercmp.c: Implementation of filevercmp function.
38316         * modules/filevercmp: Module metadata.
38317         * tests/test-filevercmp.c: Unit test for new module.
38318         * modules/filevercmp-tests: Unit test metadata.
38319         * MODULES.html.sh: Add filevercmp module.
38320
38321 2008-10-03  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/c-ctype.h: Add comment.
38324         Reported by Jim Meyering.
38325
38326 2008-10-02  Bruno Haible  <bruno@clisp.org>
38327
38328         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38329
38330 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38331
38332         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38333         name of bootstrap.conf accordingly.
38334
38335 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38336
38337         * build-aux/bootstrap: Install git-merge-changelog configuration
38338         items into .gitconfig if needed.
38339
38340 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38341
38342         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38343         git repository, and initialize/update it accordingly.
38344
38345 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38346
38347         * modules/fsync-tests: New file.
38348         * tests/test-fsync.c: New file.
38349
38350         New module 'fsync'.
38351         * lib/fsync.c: New file.
38352         * m4/fsync.m4: New file.
38353         * modules/fsync: New file.
38354         * lib/unistd.in.h (fsync): New declaration.
38355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38356         GNULIB_FSYNC and HAVE_FSYNC.
38357         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38358         * MODULES.html.sh (posix_functions): Add fsync.
38359         * doc/posix-functions/fsync.texi: Mention the new module.
38360
38361 2008-10-02  Jim Meyering  <meyering@redhat.com>
38362
38363         fts.c: sync with similar code from coreutils' remove.c
38364         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38365         Guard also with "#if defined __linux__", since for now at least,
38366         this code is Linux-kernel-specific.
38367
38368 2008-10-02  Jim Meyering  <meyering@redhat.com>
38369
38370         fts: bug fixes
38371         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38372         Include <sys/vfs.h>, not <sys/statfs.h>.
38373
38374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38375         Include <sys/vfs.h>, not <sys/statfs.h>.
38376
38377 2008-10-01  Bruno Haible  <bruno@clisp.org>
38378
38379         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38381         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38382         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38383         * doc/posix-functions/posix_spawnp.texi: Likewise.
38384         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38385         whether posix_spawn actually works.
38386         * m4/pipe.m4 (gl_PIPE): Likewise.
38387         * modules/execute (Files): Add m4/posix_spawn.m4.
38388         * modules/pipe (Files): Add m4/posix_spawn.m4.
38389         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38390
38391 2008-10-01  Jim Meyering  <meyering@redhat.com>
38392
38393         remove trailing spaces
38394         * NEWS: Likewise.
38395         * lib/poll.c (poll): Likewise.
38396         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38397         * lib/winsock.c (rpl_close): Likewise.
38398         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38399         * modules/yield: Likewise.
38400         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38401         * tests/test-sys_select.c (connect_to_socket): Likewise.
38402
38403         fts.c: adjust a new interface to be more generally useful
38404         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38405         (fts_build): Adjust caller.
38406
38407 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38408
38409         * modules/cond-tests: New file.
38410         * tests/test-cond.c: New file.
38411
38412 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38413             Bruno Haible  <bruno@clisp.org>
38414
38415         * modules/cond (Dependencies): Add errno, time.
38416         * lib/glthread/cond.h: Include <time.h>.
38417         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38418         across platforms.
38419
38420 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38421             Bruno Haible  <bruno@clisp.org>
38422
38423         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38424
38425 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38426             Bruno Haible  <bruno@clisp.org>
38427
38428         * modules/tls-tests (Depends-on): Add thread, yield.
38429         (configure.ac): Remove all checks.
38430         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38431         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38432         gl_thread_self): Remove definitions. Include glthread/thread.h and
38433         glthread/yield.h instead.
38434         (test_tls): Pass an additional NULL argument to gl_thread_join.
38435
38436 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38437             Bruno Haible  <bruno@clisp.org>
38438
38439         * modules/lock-tests (Depends-on): Add thread, yield.
38440         (configure.ac): Remove all checks.
38441         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38442         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38443         gl_thread_self): Remove definitions. Include glthread/thread.h and
38444         glthread/yield.h instead.
38445         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38446         additional NULL argument to gl_thread_join.
38447
38448 2008-09-30  Bruno Haible  <bruno@clisp.org>
38449
38450         Fix the Win32 implementation of the 'thread' module.
38451         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38452         pointer type.
38453         (gl_thread_self): Invoke gl_thread_self_func.
38454         (gl_thread_self_func): New declaration.
38455         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38456         (do_init_self_key, init_self_key): New functions.
38457         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38458         Remove some fields.
38459         (running_threads, running_lock): Remove variables.
38460         (get_current_thread_handle): New function.
38461         (gl_thread_self_func, wrapper_func, glthread_create_func,
38462         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38463         simplified.
38464
38465 2008-09-30  Bruno Haible  <bruno@clisp.org>
38466
38467         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38468         files.
38469
38470 2008-09-30  Jim Meyering  <meyering@redhat.com>
38471
38472         fts.m4: correct the test for statfs.f_type
38473         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38474         when checking for statfs.f_type.
38475
38476 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38477
38478         tests: avoid some compiler warnings
38479         * tests/test-memchr.c (main): Pass NULL indirectly.
38480         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38481
38482 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38483
38484         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38485         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38486         exactly specified dayshifts.
38487         (dayshift): New rule.
38488         (rel): Add dayshift.
38489         (relative_time_table) [tomorrow, yesterday, today, now]:
38490         Use tDAY_SHIFT in place of tDAY_UNIT.
38491         * tests/test-getdate.c: Add tests for now-disallowed countable
38492         dayshifts, e.g., "4 yesterday ago".
38493
38494 2008-09-29  Bruno Haible  <bruno@clisp.org>
38495
38496         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38497         * tests/test-posix_spawn1.in.sh: Renamed from
38498         tests/test-posix_spawn.in.sh.
38499         * tests/test-posix_spawn2.c: New file.
38500         * tests/test-posix_spawn2.in.sh: New file.
38501         * modules/posix_spawnp-tests (Files): Update.
38502         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38503
38504 2008-09-29  Bruno Haible  <bruno@clisp.org>
38505
38506         Propagate effects of putenv/setenv/unsetenv to child processes.
38507         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38508         * lib/pipe.c (create_pipe): Likewise.
38509
38510 2008-09-29  Bruno Haible  <bruno@clisp.org>
38511
38512         Enable use of shell scripts as executables in mingw.
38513         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38514         run the program as a shell script.
38515         * lib/pipe.c (create_pipe): Likewise.
38516         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38517         resulting array.
38518
38519 2008-09-29  Eric Blake  <ebb9@byu.net>
38520
38521         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38522
38523 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38524
38525         * doc/posix-functions/accept.texi: Update mingw problems.
38526         * doc/posix-functions/bind.texi: Update mingw problems.
38527         * doc/posix-functions/close.texi: Update mingw problems.
38528         * doc/posix-functions/connect.texi: Update mingw problems.
38529         * doc/posix-functions/getpeername.texi: Update mingw problems.
38530         * doc/posix-functions/getsockname.texi: Update mingw problems.
38531         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38532         * doc/posix-functions/ioctl.texi: Update mingw problems.
38533         * doc/posix-functions/listen.texi: Update mingw problems.
38534         * doc/posix-functions/recv.texi: Update mingw problems.
38535         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38536         * doc/posix-functions/select.texi: Update mingw problems.
38537         * doc/posix-functions/send.texi: Update mingw problems.
38538         * doc/posix-functions/sendto.texi: Update mingw problems.
38539         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38540         * doc/posix-functions/socket.texi: Update mingw problems.
38541
38542 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38543             Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/sys_select.in.h: Include sys/time.h.
38546         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38547         * modules/sys_select: Depend on sys_time.
38548         * tests/test-sys_select.c: Test that sys/select.h defines struct
38549         timeval fully.
38550
38551 2008-09-29  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38554         * lib/sys_select.in.h: Likewise.
38555
38556 2008-09-29  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38559
38560 2008-09-29  Bruno Haible  <bruno@clisp.org>
38561
38562         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38563         Set LIBSOCKET instead of augmenting LIBS.
38564         * modules/sockets (Link): New section.
38565         * modules/sockets-tests (test_sockets_LDADD): New variable.
38566         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38567         * modules/poll-tests (test_poll_LDADD): New variable.
38568         * NEWS: Document the change.
38569
38570 2008-09-29  Bruno Haible  <bruno@clisp.org>
38571
38572         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38573         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38574         ARPA_INET_H directly.
38575         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38576
38577 2008-09-28  Bruno Haible  <bruno@clisp.org>
38578
38579         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38580         from gl_HEADER_SYS_SOCKET.
38581         (gl_HEADER_SYS_SOCKET): Invoke it.
38582         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38583
38584 2008-09-28  Bruno Haible  <bruno@clisp.org>
38585
38586         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38587         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38588         Needed on OSF/1 4.0.
38589
38590 2008-09-28  Bruno Haible  <bruno@clisp.org>
38591
38592         Override open more carefully.
38593         * lib/open.c (orig_open): New function.
38594         (rpl_open): Use orig_open instead of open.
38595         * lib/fcntl.in.h: Add special invocation convention.
38596         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38597         (gl_FUNC_OPEN): Invoke it.
38598
38599         Override freopen more carefully.
38600         * lib/freopen.c (orig_freopen): New function.
38601         (rpl_freopen): Use orig_freopen instead of freopen.
38602         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38603         (gl_FUNC_FREOPEN): Invoke it.
38604
38605         Override fopen more carefully.
38606         * lib/fopen.c (orig_fopen): New function.
38607         (rpl_fopen): Use orig_fopen instead of fopen.
38608         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38609         (gl_FUNC_FOPEN): Invoke it.
38610         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38611
38612 2008-09-28  Bruno Haible  <bruno@clisp.org>
38613
38614         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38615         SIGPIPE.
38616
38617 2008-09-28  Bruno Haible  <bruno@clisp.org>
38618
38619         * tests/test-sigaction.c (handler, main): Disable the check whether
38620         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38621         glibc systems with LinuxThreads.
38622
38623 2008-09-28  Bruno Haible  <bruno@clisp.org>
38624
38625         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38626
38627         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38628         with AIX xlc.
38629         * lib/fcntl.in.h (open): Likewise.
38630         Reported by Rainer Tammer <tammer@tammer.net>.
38631
38632 2008-09-28  Bruno Haible  <bruno@clisp.org>
38633
38634         * modules/posix_spawnp-tests: New file.
38635         * tests/test-posix_spawn.c: New file.
38636         * tests/test-posix_spawn.in.sh: New file.
38637
38638         New module 'posix_spawnp'.
38639         * modules/posix_spawnp: New file.
38640         * lib/spawnp.c: New file, from GNU libc with modifications.
38641         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38642
38643         New module 'posix_spawn'.
38644         * modules/posix_spawn: New file.
38645         * lib/spawn.c: New file, from GNU libc with modifications.
38646         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38647
38648         New module 'posix_spawnattr_destroy'.
38649         * modules/posix_spawnattr_destroy: New file.
38650         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38651         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38652         module.
38653
38654         New module 'posix_spawnattr_setsigmask'.
38655         * modules/posix_spawnattr_setsigmask: New file.
38656         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38657         modifications.
38658         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38659         new module.
38660
38661         New module 'posix_spawnattr_getsigmask'.
38662         * modules/posix_spawnattr_getsigmask: New file.
38663         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38664         modifications.
38665         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38666         new module.
38667
38668         New module 'posix_spawnattr_setsigdefault'.
38669         * modules/posix_spawnattr_setsigdefault: New file.
38670         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38671         modifications.
38672         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38673         new module.
38674
38675         New module 'posix_spawnattr_getsigdefault'.
38676         * modules/posix_spawnattr_getsigdefault: New file.
38677         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38678         modifications.
38679         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38680         new module.
38681
38682         New module 'posix_spawnattr_setschedpolicy'.
38683         * modules/posix_spawnattr_setschedpolicy: New file.
38684         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38685         modifications.
38686         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38687         new module.
38688
38689         New module 'posix_spawnattr_getschedpolicy'.
38690         * modules/posix_spawnattr_getschedpolicy: New file.
38691         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38692         modifications.
38693         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38694         new module.
38695
38696         New module 'posix_spawnattr_setschedparam'.
38697         * modules/posix_spawnattr_setschedparam: New file.
38698         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38699         modifications.
38700         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38701         new module.
38702
38703         New module 'posix_spawnattr_getschedparam'.
38704         * modules/posix_spawnattr_getschedparam: New file.
38705         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38706         modifications.
38707         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38708         new module.
38709
38710         New module 'posix_spawnattr_setpgroup'.
38711         * modules/posix_spawnattr_setpgroup: New file.
38712         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38713         modifications.
38714         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38715         module.
38716
38717         New module 'posix_spawnattr_getpgroup'.
38718         * modules/posix_spawnattr_getpgroup: New file.
38719         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38720         modifications.
38721         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38722         module.
38723
38724         New module 'posix_spawnattr_setflags'.
38725         * modules/posix_spawnattr_setflags: New file.
38726         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38727         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38728         module.
38729
38730         New module 'posix_spawnattr_getflags'.
38731         * modules/posix_spawnattr_getflags: New file.
38732         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38733         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38734         module.
38735
38736         New module 'posix_spawnattr_init'.
38737         * modules/posix_spawnattr_init: New file.
38738         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38739         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38740         module.
38741
38742         New module 'posix_spawn_file_actions_destroy'.
38743         * modules/posix_spawn_file_actions_destroy: New file.
38744         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38745         modifications.
38746         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38747         the new module.
38748
38749         New module 'posix_spawn_file_actions_addopen'.
38750         * modules/posix_spawn_file_actions_addopen: New file.
38751         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38752         modifications.
38753         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38754         the new module.
38755
38756         New module 'posix_spawn_file_actions_adddup2'.
38757         * modules/posix_spawn_file_actions_adddup2: New file.
38758         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38759         modifications.
38760         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38761         the new module.
38762
38763         New module 'posix_spawn_file_actions_addclose'.
38764         * modules/posix_spawn_file_actions_addclose: New file.
38765         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38766         modifications.
38767         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38768         the new module.
38769
38770         New module 'posix_spawn_file_actions_init'.
38771         * modules/posix_spawn_file_actions_init: New file.
38772         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38773         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38774         new module.
38775
38776         New module 'posix_spawn-internal'.
38777         * modules/posix_spawn-internal: New file.
38778         * lib/spawn_int.h: New file, from GNU libc with modifications.
38779         * lib/spawni.c: New file, from GNU libc with modifications.
38780         * m4/posix_spawn.m4: New file.
38781
38782         New module 'spawn'.
38783         * modules/spawn: New file.
38784         * lib/spawn.in.h: New file, from GNU libc with modifications.
38785         * m4/spawn_h.m4: New file.
38786         * doc/posix-headers/spawn.texi: Mention the new module.
38787
38788 2008-09-28  Bruno Haible  <bruno@clisp.org>
38789
38790         * modules/sched-tests: New file.
38791         * tests/test-sched.c: New file.
38792
38793         New module 'sched'.
38794         * modules/sched: New file.
38795         * lib/sched.in.h: New file.
38796         * m4/sched_h.m4: New file.
38797         * doc/posix-headers/sched.texi: Mention the new module.
38798
38799 2008-09-27  Eric Blake  <ebb9@byu.net>
38800
38801         Fix previous patch, and tweak references to $0.
38802         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38803         (func_version, func_gnulib_dir): Don't call this program
38804         gnulib-tool.
38805         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38806         with using $0 in function.
38807         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38808         (func_fatal_error): Reuse the name the user invoked us with.
38809
38810 2008-09-27  Bruno Haible  <bruno@clisp.org>
38811
38812         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38813         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38814         (gl_ICONV_H): Not here.
38815         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38816         instead of assigning ICONV_H directly.
38817
38818         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38820         WCHAR_H directly.
38821
38822 2008-09-27  Bruno Haible  <bruno@clisp.org>
38823
38824         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38825         * modules/arpa_inet (Depends-on): Add link-warning.
38826         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38827         * modules/unistd (Makefile.am): Likewise.
38828
38829 2008-09-26  Bruno Haible  <bruno@clisp.org>
38830
38831         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38832         variables.
38833         (func_version): Essentially copied from gnulib-tool.
38834         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38835         func_readlink): Copied from gnulib-tool.
38836
38837 2008-09-26  Bruno Haible  <bruno@clisp.org>
38838
38839         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38840         invoking git-version-gen.
38841
38842 2008-09-26  Bruno Haible  <bruno@clisp.org>
38843
38844         * posix-modules: Update to directory names changed on 2008-01-19.
38845         Remove commas in output before splitting into words. No more need to
38846         avoid 'ftruncate' since 2007-02-19.
38847
38848 2008-09-26  Bruno Haible  <bruno@clisp.org>
38849
38850         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38851
38852 2008-09-26  Bruno Haible  <bruno@clisp.org>
38853
38854         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38855         * modules/fwriteerror (Depends-on): Add errno.
38856
38857 2008-09-26  Bruno Haible  <bruno@clisp.org>
38858
38859         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38860         * tests/test-vc-list-files-cvs.sh: Likewise.
38861
38862 2008-09-26  Bruno Haible  <bruno@clisp.org>
38863
38864         * doc/posix-headers/sys_resource.texi: Reorder items.
38865
38866 2008-09-26  Jim Meyering  <meyering@redhat.com>
38867
38868         fts: tweak inode comparison function
38869         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38870         inode numbers, as documented.
38871
38872         fts: sort dirent entries on inode number before traversing
38873         This avoids a quadratic, seek-related performance penalty when
38874         operating on a directory containing many entries (measurable at 10k;
38875         3.5 hours at 2 million entries with a cold cache) on certain types
38876         of file systems, including ext3 and ext4, but not tmpfs.
38877         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38878         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38879         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38880         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38881         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38882         (fts_build): Set the stat.st_ino member from D_INO.
38883         If it is likely to be useful, sort dirent entries on inode number.
38884
38885         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38886         and the struct statfs.f_type member.
38887         * modules/fts (Depends-on): Add d-ino.
38888
38889 2008-09-26  Bruno Haible  <bruno@clisp.org>
38890
38891         * modules/sigpipe-die (Depends-on): Add sigpipe.
38892
38893         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38894         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38895         and GNULIB_STDIO_H_SIGPIPE are set.
38896         * lib/stdio-write.c: New file.
38897         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38898         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38899         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38900         REPLACE_STDIO_WRITE_FUNCS.
38901         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38902         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38903         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38904         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38905         * modules/stdio (Files): Add lib/stdio-write.c.
38906         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38907         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38908         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38909         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38910         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38911         REPLACE_FPRINTF_POSIX.
38912         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38913         REPLACE_PRINTF_POSIX.
38914         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38915         REPLACE_VFPRINTF_POSIX.
38916         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38917         REPLACE_VPRINTF_POSIX.
38918         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38919         SIGPIPE issue.
38920         * doc/posix-functions/fputc.texi: Likewise.
38921         * doc/posix-functions/fputs.texi: Likewise.
38922         * doc/posix-functions/fwrite.texi: Likewise.
38923         * doc/posix-functions/printf.texi: Likewise.
38924         * doc/posix-functions/putc.texi: Likewise.
38925         * doc/posix-functions/putchar.texi: Likewise.
38926         * doc/posix-functions/puts.texi: Likewise.
38927         * doc/posix-functions/vfprintf.texi: Likewise.
38928         * doc/posix-functions/vprintf.texi: Likewise.
38929
38930         * modules/safe-write (Depends-on): Add write.
38931
38932         * modules/sigpipe-tests: New file.
38933         * tests/test-sigpipe.c: New file.
38934         * tests/test-sigpipe.sh: New file.
38935
38936         * modules/write: New file.
38937         * lib/unistd.in.h: Include <sys/types.h>.
38938         (write): New declaration.
38939         * lib/write.c: New file.
38940         * m4/write.m4: New file.
38941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38942         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38943         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38944         GNULIB_WRITE, REPLACE_WRITE.
38945         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38946         and the SIGPIPE issue.
38947
38948         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38949         (raise): New declaration.
38950         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38951         (ext_signal): New function.
38952         (rpl_raise): New function.
38953         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38954         GNULIB_SIGNAL_H_SIGPIPE.
38955         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38956         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38957
38958         * modules/sigpipe: New file.
38959         * m4/sigpipe.m4: New file.
38960
38961 2008-09-25  Derek Price  <derek@ximbiot.com>
38962             Bruno Haible  <bruno@clisp.org>
38963
38964         * gnulib-tool (func_import): Report all license incompatibilities, not
38965         just the first one.
38966
38967 2008-09-25  Bruno Haible  <bruno@clisp.org>
38968
38969         * gnulib-tool (func_import): When computing the edits, consider not
38970         only the Makefile.ams that exist but also those that will be generated.
38971
38972 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38973
38974         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38975         fixes gnulib-tool --test warning about duplicate dependency.
38976
38977 2008-09-25  Bruno Haible  <bruno@clisp.org>
38978
38979         * gnulib-tool: Don't ask the user to perform edits in the generated
38980         Makefile.ams.
38981         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38982         apply to the Makefile.am being generated.
38983         (func_emit_tests_Makefile_am): Execute edits that apply to the
38984         Makefile.am being generated.
38985         (func_import): Setup list of Makefile.am edits before emitting the
38986         Makefile.ams, not at the end.
38987         (func_create_testdir): Update.
38988         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38989
38990 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38991
38992         * gnulib-tool (func_import): Store the --tests-base option in the
38993         comment in gnulib-cache.m4.
38994
38995 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38996
38997         * NEWS: Document increased portability that sys_select now provides.
38998
38999         * lib/sys_select.in.h: Install select wrapper.
39000         * lib/sys_socket.in.h: Use more descriptive name when there is no
39001         select wrapper.
39002         * lib/winsock-select.c: New.
39003         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39004         Require gl_HEADER_SYS_SOCKET.
39005         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39006         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39007         * tests/test-sys_select.c: Add functional tests.
39008
39009 2008-09-24  Eric Blake  <ebb9@byu.net>
39010
39011         open, fopen: close fd leak in last patch
39012         * lib/open.c (rpl_open): Close fd before returning error.
39013         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39014         * doc/posix-functions/open.texi (open): Document that Irix also
39015         has the bug.
39016         * doc/posix-functions/fopen.texi (fopen): Likewise.
39017         Reported by Paolo Bonzini.
39018
39019 2008-09-24  Bruno Haible  <bruno@clisp.org>
39020
39021         Ensure that a filename ending in a slash cannot be used to access a
39022         non-directory.
39023         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39024         to check whether it's really a directory.
39025         * lib/fopen.c: Include fcntl.h, unistd.h.
39026         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39027         and fdopen().
39028         * modules/fopen (Depends-on): Add unistd.
39029         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39030         * tests/test-fopen.c (main): Likewise.
39031         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39032         * doc/posix-functions/fopen.texi: Likewise.
39033         Reported by Eric Blake.
39034
39035 2008-09-23  Eric Blake  <ebb9@byu.net>
39036
39037         c-stack: avoid compiler optimizations when provoking overflow
39038         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39039         recursion harder to optimize, to ensure a stack overflow occurs.
39040         * tests/test-c-stack.c (recurse): Likewise.
39041         Borrowed from libsigsegv.
39042
39043         c-stack: work around Irix sigaltstack bug
39044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39045         whether sigaltstack uses wrong end of stack_t (copied in part from
39046         libsigsegv).
39047         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39048         Irix bug, without requiring an over-allocation.
39049         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39050         bug.
39051
39052         fopen: document mingw bug on directories
39053         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39054         not allowing a stream visiting a directory, even though reading
39055         from such a stream is not portable.
39056
39057 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39058
39059         * lib/poll.c: Rewrite.
39060         * modules/poll: Depend on alloca.
39061
39062 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39063
39064         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39065         instead define prototypes for a full set of wrappers.  Ensure
39066         that Cygwin does not use the compatibility code, which is only
39067         for MinGW.
39068         * lib/winsock.c: New.
39069         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39070         * modules/sys_socket: Add lib/winsock.c.
39071
39072         * modules/poll-tests: Add errno and perror.
39073         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39074
39075 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39076
39077         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39078
39079 2008-09-23  Bruno Haible  <bruno@clisp.org>
39080
39081         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39082         * doc/glibc-functions/*: Likewise.
39083
39084 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39085
39086         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39087         success.
39088
39089 2008-09-22  Eric Blake  <ebb9@byu.net>
39090             Bruno Haible  <bruno@clisp.org>
39091
39092         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39093         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39094         supply %A but mishandle pseudo-NaN.
39095         Reported by Simon Josefsson.
39096
39097 2008-09-21  Bruno Haible  <bruno@clisp.org>
39098
39099         * tests/test-lock.c (main): Tweak skip message.
39100         * tests/test-tls.c (main): Likewise.
39101
39102 2008-09-21  Bruno Haible  <bruno@clisp.org>
39103
39104         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39105         whether 'struct sigaction' has sa_sigaction here...
39106         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39107         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39108
39109 2008-09-21  Bruno Haible  <bruno@clisp.org>
39110
39111         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39112         section.
39113         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39114         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39115         the new section.
39116         (Support for obsolete systems lacking POSIX:2001): New section.
39117         (String handling <string.h>): Move strdup to the new section.
39118         Suggested by Simon Josefsson and Paolo Bonzini.
39119
39120 2008-09-21  Bruno Haible  <bruno@clisp.org>
39121
39122         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39123         exponents in %e and %g results on 'long double'. Needed for mingw's
39124         improved *printf functions.
39125         * tests/test-vasprintf-posix.c (test_function): Likewise.
39126         * tests/test-snprintf-posix.h (test_function): Likewise.
39127         * tests/test-sprintf-posix.h (test_function): Likewise.
39128         Reported by Eric Blake.
39129
39130 2008-09-21  Bruno Haible  <bruno@clisp.org>
39131
39132         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39133         * tests/test-sprintf-posix.h (test_function): Likewise.
39134
39135 2008-09-21  Bruno Haible  <bruno@clisp.org>
39136
39137         * modules/getpass (Depends-on): Add strdup-posix.
39138
39139         New module 'strdup-posix'.
39140         * modules/strdup-posix: New file.
39141         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39142         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39144         REPLACE_STRDUP.
39145         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39146         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39147         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39148         strdup-posix.
39149
39150         * modules/strdup (Depends-on): Remove malloc-posix.
39151
39152 2008-09-20  Bruno Haible  <bruno@clisp.org>
39153
39154         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39155         Wildenhues.
39156
39157 2008-09-20  Bruno Haible  <bruno@clisp.org>
39158
39159         Ensure that wint_t gets defined on IRIX 5.3.
39160         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39161         * lib/wctype.in.h (wint_t): Likewise.
39162         (__wctype_wint_t): Remove type.
39163         (isw*): Use wint_t instead of __wctype_wint_t.
39164         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39165         * modules/wchar (Files): Add m4/wint_t.m4.
39166         (Makefile.am): Substitute HAVE_WINT_T.
39167         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39168         * tests/test-wctype.c: Check that wint_t is defined.
39169         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39170         * doc/posix-headers/wctype.texi: Likewise.
39171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39172
39173 2008-09-18  Bruno Haible  <bruno@clisp.org>
39174
39175         * gnulib-tool (func_exit): Update comment.
39176
39177 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39178
39179         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39180         assumes strdup exists and does not depend on strdup to return
39181         ENOMEM on out of memory conditions.
39182
39183 2008-09-18  Bruno Haible  <bruno@clisp.org>
39184
39185         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39186         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39187         digits for the exponent.
39188
39189 2008-09-18  Jim Meyering  <meyering@redhat.com>
39190             Bruno Haible  <bruno@clisp.org>
39191
39192         * lib/vasnprintf.c (decimal_point_char): Define also if
39193         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39194
39195 2008-09-16  Bruno Haible  <bruno@clisp.org>
39196         and Eric Blake  <ebb9@byu.net>
39197
39198         vasnprintf: support Irix 5.3
39199         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39200         that mishandle long double infinity.
39201         Reported by Tom G. Christensen.
39202
39203 2008-09-16  Bruno Haible  <bruno@clisp.org>
39204
39205         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39206         Solaris 9.
39207         * doc/glibc-functions/alphasort.texi: Likewise.
39208         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39209
39210 2008-09-16  Jim Meyering  <meyering@redhat.com>
39211
39212         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39213         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39214         a umask modification leak out of a subshell.  Otherwise, the
39215         opensolaris /bin/sh would be accepted and thus cause unwarranted
39216         failures in the coreutils test suite.
39217
39218 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39219
39220         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39221         to succeed.
39222
39223 2008-09-16  Jim Meyering  <meyering@redhat.com>
39224
39225         avoid spurious test failure when library is built without ACL support
39226         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39227         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39228         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39229         * tests/test-copy-acl.sh: Likewise.
39230
39231 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39232
39233         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39234         based on character occurrence counts.
39235
39236 2008-09-15  Eric Blake  <ebb9@byu.net>
39237
39238         tests: avoid some compiler warnings
39239         * tests/test-memchr.c (main): Pass NULL indirectly.
39240         * tests/test-closein.c (main): Avoid unused variable.
39241
39242 2008-09-15  Bruno Haible  <bruno@clisp.org>
39243
39244         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39245         are missing on OpenBSD 4.0 individually.
39246         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39247
39248 2008-09-15  Bruno Haible  <bruno@clisp.org>
39249
39250         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39251         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39252         * doc/posix-functions/perror.texi: Likewise.
39253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39254         is missing.
39255         Reported by Eric Blake.
39256
39257         * lib/errno.in.h: Use replacement values >= 2000.
39258         Reported by Eric Blake.
39259
39260 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39261
39262         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39263         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39264         limit.
39265         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39266         compareseq was aborted.
39267
39268 2008-09-14  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39271         yvec_edit_count.
39272         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39273         (fstrcmp_bounded): Simplify result computation accordingly.
39274
39275 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39276
39277         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39278         (fstrcmp): Define in terms of fstrcmp_bounded.
39279         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39280         lower_bound argument.
39281         Return quickly if the result is certainly < lower_bound.
39282         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39283
39284 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39285
39286         * lib/diffseq.h (EARLY_ABORT): New macro.
39287         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39288         evaluates to true.
39289
39290 2008-09-14  Bruno Haible  <bruno@clisp.org>
39291
39292         * modules/perror-tests: New file.
39293         * tests/test-perror.sh: New file.
39294         * tests/test-perror.c: New file.
39295
39296         New module 'perror'.
39297         * lib/stdio.in.h (perror): New declaration.
39298         * lib/perror.c: New file.
39299         * m4/perror.m4: New file.
39300         * modules/perror: New file.
39301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39302         * doc/posix-functions/perror.texi: Mention the perror module.
39303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39304         REPLACE_PERROR.
39305         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39306         REPLACE_PERROR.
39307
39308 2008-09-14  Bruno Haible  <bruno@clisp.org>
39309
39310         * modules/stdio (Makefile.am): Reorder to match the order in
39311         lib/stdio.in.h.
39312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39313
39314 2008-09-13  Bruno Haible  <bruno@clisp.org>
39315
39316         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39317
39318 2008-09-13  Bruno Haible  <bruno@clisp.org>
39319
39320         Extend strerror to cover the added errno values.
39321         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39322         (rpl_strerror): Provide error messages for the added errno values and
39323         for the WSA* values.
39324         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39325         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39326         strerror.
39327         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39328         * modules/strerror (Depends-on): Add errno.
39329         * doc/posix-functions/strerror.texi: Document the change.
39330         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39331         and EOVERFLOW.
39332
39333 2008-09-13  Bruno Haible  <bruno@clisp.org>
39334
39335         * modules/EOVERFLOW: Remove file.
39336         * m4/eoverflow.m4: Remove file.
39337         * modules/EOVERFLOW-tests: Remove file.
39338         * tests/test-EOVERFLOW.c: Remove file.
39339         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39340         * modules/ftell (Depends-on): Likewise.
39341         * modules/getdelim (Depends-on): Likewise.
39342         * modules/getugroups (Depends-on): Likewise.
39343         * modules/poll (Depends-on): Likewise.
39344         * modules/snprintf (Depends-on): Likewise.
39345         * modules/sprintf-posix (Depends-on): Likewise.
39346         * modules/vasnprintf (Depends-on): Likewise.
39347         * modules/vasprintf (Depends-on): Likewise.
39348         * modules/vfprintf-posix (Depends-on): Likewise.
39349         * modules/vsnprintf (Depends-on): Likewise.
39350         * modules/vsprintf-posix (Depends-on): Likewise.
39351         * modules/xvasprintf (Depends-on): Likewise.
39352         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39353         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39354         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39355         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39356         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39357         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39358         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39359         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39360         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39361         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39362         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39363         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39364         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39365         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39366         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39367         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39368         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39369         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39370         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39371         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39372         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39373         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39374         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39375         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39376         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39377         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39378         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39379         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39380         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39381         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39382         * MODULES.html.sh: Remove EOVERFLOW.
39383         * NEWS: Mention the change.
39384
39385 2008-09-13  Bruno Haible  <bruno@clisp.org>
39386
39387         * modules/errno-tests: New file.
39388         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39389
39390         * lib/errno.in.h: New file.
39391         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39392         * modules/errno: New file.
39393         * doc/posix-headers/errno.texi: Update documentation.
39394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39395
39396 2008-09-13  Bruno Haible  <bruno@clisp.org>
39397
39398         * tests/test-poll.c: Use #if for native Windows, rather than testing
39399         __MSVCRT__.
39400
39401 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39402             Bruno Haible  <bruno@clisp.org>
39403
39404         * lib/glob.c: Don't include <pwd.h> on native Windows.
39405         (WINDOWS32): New macro.
39406         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39407
39408 2008-09-13  Bruno Haible  <bruno@clisp.org>
39409
39410         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39411         (ETIMEDOUT): Remove macro.
39412         (glthread_cond_timedwait_multithreaded): New declaration.
39413         (glthread_cond_timedwait): Use it.
39414         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39415         (glthread_cond_timedwait_multithreaded): New function.
39416
39417 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39418
39419         * modules/poll-tests: Do not check for io.h.
39420         * tests/test-poll.c: Check for __MSVCRT__ instead.
39421
39422 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39423
39424         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39425         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39426         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39427
39428 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39429
39430         * modules/poll-tests: New.
39431         * tests/test-poll.c: New.
39432
39433 2008-09-12  Eric Blake  <ebb9@byu.net>
39434
39435         frexp: test for NetBSD failure on -0.0
39436         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39437         not all, bugs from NetBSD 3.0 have been fixed.
39438         * doc/posix-functions/frexp.texi (frexp): Document bug.
39439         Reported by Thomas Klausner.
39440
39441         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39442         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39443         literal -0.0.
39444         Reported by Jonathan C. Patschke <jp@centtech.com>.
39445
39446 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39447
39448         * lib/glthread/cond.h: Use dummy implementation also if
39449         USE_WIN32_THREADS.
39450
39451 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39452
39453         * modules/fnmatch-posix (License): Change to LGPLv2+.
39454         * modules/fnmatch-gnu (License): Likewise.
39455
39456 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39457
39458         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39459
39460 2008-09-11  Jim Meyering  <meyering@redhat.com>
39461
39462         * users.txt: Add gtk-vnc.
39463
39464 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39465
39466         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39467         rotate amounts.
39468
39469         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39470         required for 16-bit and 8-bit rotates.
39471         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39472         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39473         UINT8_MAX instead of hard-coded constants.
39474         Suggested by Paul Eggert.
39475
39476 2008-09-07  Bruno Haible  <bruno@clisp.org>
39477
39478         * tests/test-striconveh.c (main): Check behaviour when converting from
39479         UTF-7.
39480
39481         Make striconveh work better with stateful encodings.
39482         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39483         that iconv does not increment the inptr when returning -1/EINVAL.
39484
39485 2008-09-07  Bruno Haible  <bruno@clisp.org>
39486
39487         * build-aux/config.rpath: Update according to libtool-2.2.6.
39488         * build-aux/config.libpath: Likewise.
39489
39490 2008-09-06  Bruno Haible  <bruno@clisp.org>
39491
39492         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39493         * lib/freadptr.c (freadptr): Likewise.
39494         * lib/freadseek.c (freadptrinc): Likewise.
39495         Reported by Simon Josefsson.
39496
39497 2008-09-06  Bruno Haible  <bruno@clisp.org>
39498
39499         * modules/freadptr (License): Change to LGPLv2+.
39500         * modules/freadseek (License): Likewise.
39501         Suggested by Eric Blake.
39502
39503         * modules/memchr2 (License): Change to LGPLv2+.
39504         Approved by Eric Blake.
39505
39506 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39507             Bruno Haible  <bruno@clisp.org>
39508
39509         Make gnulib-tool work with native 'sed' on AIX.
39510         * gnulib-tool (sed_noop): New variable.
39511         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39512         func_add_or_update, func_create_testdir): Use it to initialize sed
39513         script variables.
39514         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39515
39516 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39517             Bruno Haible  <bruno@clisp.org>
39518
39519         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39520         also works after #include directives.
39521
39522 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39523
39524         getdate.y: reject an out-of-range timezone value
39525         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39526         the range [-24...+24].  When specified with only one or two digits,
39527         * tests/test-getdate.c: Tests for the fix.
39528         * doc/getdate.texi: Document this change.
39529
39530 2008-09-03  Bruno Haible  <bruno@clisp.org>
39531
39532         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39533
39534 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39535
39536         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39537         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39538         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39539         Blake <ebb9@byu.net>.
39540
39541         * tests/test-bitrotate.c: Add more test vectors.
39542
39543 2008-09-02  Eric Blake  <ebb9@byu.net>
39544
39545         vasnprintf-posix: handle large precision via %.*d
39546         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39547         when handling it ourselves.
39548         * tests/test-vasnprintf-posix.c (test_function): Add test.
39549         * tests/test-snprintf-posix.h (test_function): Likewise.
39550         * tests/test-sprintf-posix.h (test_function): Likewise.
39551         * tests/test-vasprintf-posix.c (test_function): Likewise.
39552         Reported by Alain Guibert.
39553
39554 2008-09-01  Eric Blake  <ebb9@byu.net>
39555
39556         c-stack: make configure-time check more robust
39557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39558         successful sigaction call.
39559         Reported by Tom G. Christensen.
39560
39561 2008-09-01  Bruno Haible  <bruno@clisp.org>
39562
39563         New module 'findprog-lgpl'.
39564         * modules/findprog-lgpl: New file.
39565         * lib/findprog-lgpl.c: New file.
39566         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39567         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39568         to decide whether to use strdup or xstrdup, concatenated_filename or
39569         xconcatenated_filename.
39570
39571 2008-09-01  Bruno Haible  <bruno@clisp.org>
39572
39573         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39574         'xconcat-filename' (GPL).
39575         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39576         (License): Change to LGPLv2+.
39577         * modules/xconcat-filename: New file.
39578         * lib/concat-filename.h (concatenated_filename): Change specification.
39579         (xconcatenated_filename): New declaration.
39580         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39581         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39582         memory situations.
39583         * lib/xconcat-filename.c: New file.
39584         * NEWS: Mention the change.
39585         * lib/findprog.c: Include concat-filename.h, not filename.h.
39586         (find_in_path): Use xconcatenated_filename instead of
39587         concatenated_filename.
39588         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39589         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39590         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39591         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39592         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39593         instead of concatenated_filename.
39594         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39595         (execute_java_class): Use xconcatenated_filename instead of
39596         concatenated_filename.
39597         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39598         * modules/javacomp (Depends-on): Likewise.
39599         * modules/javaexec (Depends-on): Likewise.
39600
39601 2008-09-01  Bruno Haible  <bruno@clisp.org>
39602
39603         Split module 'filename' into 'filename' and 'concat-filename'.
39604         * modules/filename: Keep only lib/filename.h.
39605         (License): Change to LGPLv2+.
39606         * modules/concat-filename: New file, extracted from modules/filename.
39607         * lib/filename.h (concatenated_filename): Remove declaration.
39608         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39609         * lib/concat-filename.c: Include concat-filename.h.
39610         * NEWS: Mention the change.
39611
39612 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39613
39614         * lib/bitrotate.h (rotl8, rotr8): Add.
39615
39616         * modules/bitrotate (configure.ac): Need
39617         AC_REQUIRE([AC_C_INLINE]).
39618         (Description): Mention stdint.h.  Reported by Bruno Haible
39619         <bruno@clisp.org>.
39620
39621         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39622         Paolo Bonzini <bonzini@gnu.org>.
39623
39624 2008-08-31  Bruno Haible  <bruno@clisp.org>
39625
39626         Assume Solaris specific bi-arch conventions on Solaris systems.
39627         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39628         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39630         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39631         like acl_libdirstem.
39632         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39633         acl_libdirstem.
39634         * NEWS: Mention the change.
39635         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39636
39637 2008-08-31  Jim Meyering  <meyering@redhat.com>
39638
39639         * lib/strftime.h: Add comments describing the two added arguments.
39640
39641         remove duplicate #include directives
39642         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39643         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39644
39645 2008-08-31  Bruno Haible  <bruno@clisp.org>
39646
39647         New module 'sigpipe-die'.
39648         * modules/sigpipe-die: New file.
39649         * lib/sigpipe-die.h: New file.
39650         * lib/sigpipe-die.c: New file.
39651         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39652
39653 2008-08-31  Bruno Haible  <bruno@clisp.org>
39654
39655         Don't override previously installed signal handlers.
39656         * lib/fatal-signal.c (saved_sigactions): New variable.
39657         (uninstall_handlers): Reset the signal to the saved handler, not
39658         to SIG_DFL (except when ignored).
39659         (install_handlers): Save the previous handlers.
39660
39661 2008-08-30  Bruno Haible  <bruno@clisp.org>
39662
39663         * gnulib-tool (func_reset_sigpipe): New function.
39664         (func_get_automake_snippet, func_modules_transitive_closure,
39665         func_import): Invoke it before a join command that reads from stdin,
39666         to avoid "echo: write error: Broken pipe" error messages on stderr.
39667         Reported by Sam Steingold <sds@gnu.org>.
39668
39669 2008-08-30  Bruno Haible  <bruno@clisp.org>
39670
39671         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39672         Code copied from m4/open.m4.
39673         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39674         access and the filename ends in a slash. Code copied from lib/open.c.
39675         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39676         * tests/test-fopen.c (main): Check against bug with trailing slash.
39677
39678 2008-08-29  Bruno Haible  <bruno@clisp.org>
39679
39680         Avoid some "gcc -pedantic" warnings.
39681         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39682         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39683         * lib/dirent.in.h: Likewise.
39684         * lib/fcntl.in.h: Likewise.
39685         * lib/float.in.h: Likewise.
39686         * lib/iconv.in.h: Likewise.
39687         * lib/inttypes.in.h: Likewise.
39688         * lib/locale.in.h: Likewise.
39689         * lib/math.in.h: Likewise.
39690         * lib/netinet_in.in.h: Likewise.
39691         * lib/search.in.h: Likewise.
39692         * lib/signal.in.h: Likewise.
39693         * lib/stdarg.in.h: Likewise.
39694         * lib/stdint.in.h: Likewise.
39695         * lib/stdio.in.h: Likewise.
39696         * lib/stdlib.in.h: Likewise.
39697         * lib/string.in.h: Likewise.
39698         * lib/strings.in.h: Likewise.
39699         * lib/sys_select.in.h: Likewise.
39700         * lib/sys_socket.in.h: Likewise.
39701         * lib/sys_stat.in.h: Likewise.
39702         * lib/sys_time.in.h: Likewise.
39703         * lib/sysexits.in.h: Likewise.
39704         * lib/time.in.h: Likewise.
39705         * lib/unistd.in.h: Likewise.
39706         * lib/wchar.in.h: Likewise.
39707         * lib/wctype.in.h: Likewise.
39708         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39709         * modules/fchdir (Makefile.am): Likewise.
39710         * modules/fcntl (Makefile.am): Likewise.
39711         * modules/float (Makefile.am): Likewise.
39712         * modules/iconv_open (Makefile.am): Likewise.
39713         * modules/inttypes (Makefile.am): Likewise.
39714         * modules/locale (Makefile.am): Likewise.
39715         * modules/math (Makefile.am): Likewise.
39716         * modules/netinet_in (Makefile.am): Likewise.
39717         * modules/search (Makefile.am): Likewise.
39718         * modules/signal (Makefile.am): Likewise.
39719         * modules/stdarg (Makefile.am): Likewise.
39720         * modules/stdint (Makefile.am): Likewise.
39721         * modules/stdio (Makefile.am): Likewise.
39722         * modules/stdlib (Makefile.am): Likewise.
39723         * modules/string (Makefile.am): Likewise.
39724         * modules/strings (Makefile.am): Likewise.
39725         * modules/sys_select (Makefile.am): Likewise.
39726         * modules/sys_socket (Makefile.am): Likewise.
39727         * modules/sys_stat (Makefile.am): Likewise.
39728         * modules/sys_time (Makefile.am): Likewise.
39729         * modules/sysexits (Makefile.am): Likewise.
39730         * modules/time (Makefile.am): Likewise.
39731         * modules/unistd (Makefile.am): Likewise.
39732         * modules/wchar (Makefile.am): Likewise.
39733         * modules/wctype (Makefile.am): Likewise.
39734         Reported by Reuben Thomas <rrt@sc3d.org>.
39735
39736 2008-08-29  Bruno Haible  <bruno@clisp.org>
39737
39738         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39739         any more.
39740
39741 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39742
39743         * MODULES.html.sh (Misc): Add bitrotate.
39744
39745         * modules/bitrotate: New file.
39746
39747         * lib/bitrotate.h: New file.
39748
39749         * modules/bitrotate-tests: New file.
39750
39751         * tests/test-bitrotate.c: New file.
39752
39753         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39754         on the bitrotate module.
39755
39756         * lib/arctwo.c: Use new bitrotate module.
39757
39758 2008-08-29  Jim Meyering  <meyering@redhat.com>
39759
39760         bootstrap: merge changes from coreutils
39761         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39762         of copied files.  Remove a kludge, now that this is fixed.
39763         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39764         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39765         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39766
39767 2008-08-29  Bruno Haible  <bruno@clisp.org>
39768
39769         * MODULES.html.sh: Remove --cvs-urls option.
39770
39771 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39772
39773         maint.mk: adjust to file name change
39774         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39775
39776 2008-08-28  Jim Meyering  <meyering@redhat.com>
39777
39778         * modules/getndelim2 (License): Relicense to LGPLv2+.
39779         Approved by Richard Stallman for the version of 1995, and by
39780         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39781
39782 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39783
39784         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39785         dummy if one is not available.  Do not touch them if
39786         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39787         (getc_maybe_unlocked): New.
39788         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39789
39790 2008-08-26  Eric Blake  <ebb9@byu.net>
39791
39792         doc/INSTALL: resync from autoconf
39793         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39794         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39795         moving...
39796         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39797         * INSTALL: Regenerate.
39798         * INSTALL.ISO: New file.
39799         * INSTALL.UTF-8: Likewise.
39800
39801 2008-08-26  Jim Meyering  <meyering@redhat.com>
39802
39803         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39804         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39805         these definitions conditional, so that they may be overridden, too.
39806
39807 2008-08-26  Bruno Haible  <bruno@clisp.org>
39808
39809         Generate INSTALL file variants with prettier quotes.
39810         * doc/Makefile (INSTALL_PRELUDE): New macro.
39811         (INSTALL): Use it.
39812         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39813
39814 2008-08-26  Bruno Haible  <bruno@clisp.org>
39815
39816         Run makeinfo in an English locale.
39817         * doc/Makefile (MAKEINFO): New variable.
39818
39819 2008-08-26  Bruno Haible  <bruno@clisp.org>
39820
39821         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39822         Suggested by Eric Blake.
39823
39824 2008-08-25  Bruno Haible  <bruno@clisp.org>
39825
39826         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39827
39828 2008-08-25  Eric Blake  <ebb9@byu.net>
39829
39830         c-stack: test that stack overflow can be caught
39831         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39832         that platform allows handling stack overflow; at least OS/2 EMX
39833         has sigaltstack, but crashes before transferring control to
39834         handler on stack overflow.
39835         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39836         check for HAVE_STACK_OVERFLOW_HANDLING.
39837         Reported by Elbert Pol.
39838
39839 2008-08-25  Bruno Haible  <bruno@clisp.org>
39840
39841         * doc/posix-functions/strftime.texi: Fix description of strftime
39842         module.
39843
39844 2008-08-24  Bruno Haible  <bruno@clisp.org>
39845
39846         * tests/uniwidth/test-uc_width2.c: New file.
39847         * tests/uniwidth/test-uc_width2.sh: New file.
39848         * modules/uniwidth/width-tests (Files): Add the new files.
39849         (TESTS): Add uniwidth/test-uc_width2.sh.
39850         (TESTS_ENVIRONMENT): New variable.
39851         (check_PROGRAMS): Add test-uc_width2.
39852         (test_uc_width2_SOURCES): New variable.
39853
39854         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39855         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39856         not 0x00AB.
39857         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39858
39859 2008-08-22  Eric Blake  <ebb9@byu.net>
39860
39861         test-lock, test-tls: mention why a test is skipped
39862         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39863         skipped.
39864         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39865
39866         count-one-bits: relax license
39867         * modules/count-one-bits (License): Relicense to LGPLv2+.
39868         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39869
39870 2008-08-22  Andreas Schwab  <schwab@suse.de>
39871
39872         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39873         Remove spurious space in assignment.
39874
39875 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39876
39877         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39878         Paul Eggert <eggert@CS.UCLA.EDU>.
39879
39880 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39881
39882         * modules/gettext: Add m4/threadlib.m4.
39883
39884 2008-08-19  Eric Blake  <ebb9@byu.net>
39885
39886         test-c-stack: fix compilation failure on FreeBSD 5.0
39887         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39888         headers before <sys/resource.h>.
39889         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39890         the bug.
39891         Reported by Nelson H. F. Beebe.
39892
39893         strverscmp: migrate from "strverscmp.h" to <string.h>
39894         * modules/string (Makefile.am): Add new hooks.
39895         * modules/strverscmp (Files): Remove strverscmp.h.
39896         (Depends-on): Add string.
39897         (configure.ac): Add indicator.
39898         (Include): Mention new header.
39899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39900         defaults.
39901         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39902         results.
39903         * lib/strverscmp.h: Delete.
39904         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39905         * tests/test-strverscmp.c (includes): Adjust client.
39906         * lib/check-version.c (includes): Likewise.
39907         * NEWS: Document the change.
39908
39909         strverscmp: add unit test
39910         * modules/strverscmp-tests: New file.
39911         * tests/test-strverscmp.c: Likewise.
39912
39913 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39914
39915         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39916         regarding Windows crypto stuff, from Mono.
39917
39918 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39919
39920         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39921         if present, for intel RND.  Return error on failures.
39922
39923 2008-08-18  Ben Pfaff  <blp@gnu.org>
39924
39925         gitlog-to-changelog: give better diagnostic for failed pipe-open
39926         * build-aux/gitlog-to-changelog: Improve error message: suggest
39927         that the version of Git may be too old.
39928
39929 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39930
39931         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39932         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39933
39934 2008-08-18  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39937         pthread_in_use().
39938
39939 2008-08-18  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/glthread/threadlib.c: Include <pthread.h>.
39942
39943 2008-08-18  Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39946         glthread_recursive_lock_* macros.
39947         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39948         Fix syntax error.
39949
39950 2008-08-18  Bruno Haible  <bruno@clisp.org>
39951
39952         * lib/glthread/thread.c: Avoid forcing a context switch right after
39953         thread creation.
39954
39955 2008-08-17  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39958         * lib/glthread/thread.h: Provide Win32 specific implementation.
39959         * modules/thread (Files): Add lib/glthread/thread.c.
39960         (Depends-on): Add lock.
39961         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39962
39963 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39964
39965         New module 'yield'.
39966         * modules/yield: New file.
39967         * lib/glthread/yield.h: New file.
39968         * m4/yield.m4: New file.
39969         * MODULES.html.sh (Multithreading): Add yield.
39970
39971 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39972
39973         New module 'thread'.
39974         * modules/thread: New file.
39975         * lib/glthread/thread.h: New file.
39976         * m4/thread.m4: New file.
39977         * MODULES.html.sh (Multithreading): Add thread.
39978
39979 2008-08-17  Bruno Haible  <bruno@clisp.org>
39980
39981         * lib/glthread/lock.h: Include <stdlib.h> always.
39982         * lib/glthread/tls.h: Likewise.
39983         * lib/glthread/cond.h: Likewise.
39984
39985 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39986
39987         New module 'cond'.
39988         * modules/cond: New file.
39989         * lib/glthread/cond.h: New file.
39990         * lib/glthread/cond.c: New file.
39991         * m4/cond.m4: New file.
39992         * MODULES.html.sh (Multithreading): Add cond.
39993
39994 2008-08-16  Eric Blake  <ebb9@byu.net>
39995
39996         c-stack: fix regression on Irix 5.3 from 2008-06-21
39997         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39998         sa_sigaction...
39999         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40000         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40001         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40002         * modules/signal (Makefile.am): Use the value.
40003         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40004         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40005         * doc/posix-headers/signal.texi (signal.h): Document this
40006         portability issue.
40007         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40008         Reported by Tom G. Christensen.
40009
40010 2008-08-17  Bruno Haible  <bruno@clisp.org>
40011
40012         New module 'threadlib'.
40013         * modules/threadlib: New file.
40014         * lib/glthread/threadlib.c: New file, extracted from
40015         lib/glthread/lock.c.
40016         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40017         functions.
40018         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40019         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40020         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40021         macros.
40022         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40023         (gl_DISABLE_THREADS): Remove macro.
40024         * modules/lock (Files): Remove build-aux/config.rpath.
40025         (Depends-on): Remove havelib. Add threadlib.
40026         (configure.ac-early): Remove section.
40027         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40028         * modules/tls (Depends-on): Remove lock. Add threadlib.
40029         (Link): New section, copied from threadlib.
40030         * MODULES.html.sh (Multithreading): Add threadlib.
40031
40032 2008-08-14  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40035         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40036         glthread_rwlock_unlock, glthread_rwlock_destroy,
40037         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40038         glthread_recursive_lock_destroy): Define as macros always.
40039         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40040         glthread_lock_lock.
40041         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40042         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40043         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40044         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40045         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40046         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40047         (glthread_recursive_lock_lock_func): Renamed from
40048         glthread_recursive_lock_lock.
40049         (glthread_recursive_lock_unlock_func): Renamed from
40050         glthread_recursive_lock_unlock.
40051         (glthread_recursive_lock_destroy_func): Renamed from
40052         glthread_recursive_lock_destroy.
40053
40054 2008-08-14  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/glthread/lock.h: Renamed from lib/lock.h.
40057         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40058         * lib/glthread/tls.h: Renamed from lib/tls.h.
40059         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40060         * lib/fstrcmp.c: Update includes.
40061         * lib/strsignal.c: Update includes.
40062         * modules/lock (Files, Makefile.am): Update.
40063         (Include): Change to "glthread/lock.h".
40064         * modules/tls (Files, Makefile.am): Update.
40065         (Include): Change to "glthread/tls.h".
40066         * tests/test-lock.c: Update includes.
40067         * tests/test-tls.c: Update includes.
40068         * NEWS: Mention the renamed header files.
40069
40070 2008-08-11  Jim Meyering  <meyering@redhat.com>
40071
40072         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40073
40074 2008-08-11  Eric Blake  <ebb9@byu.net>
40075
40076         test-c-stack: avoid C99-ism
40077         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40078         before statement.
40079         Reported by Alain Guibert.
40080
40081 2008-08-10  Jim Meyering  <meyering@redhat.com>
40082
40083         ensure that return value of uinttostr et al are not ignored
40084         * lib/inttostr.h (__GNUC_PREREQ): Define.
40085         (__attribute_warn_unused_result__): Define.
40086         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40087
40088 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40089
40090         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40091         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40092
40093 2008-08-07  Jim Meyering  <meyering@redhat.com>
40094
40095         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40096
40097         * modules/mkstemp (License): Relicense under LGPLv2+.
40098         * modules/tempname (License): Likewise.
40099
40100 2008-08-06  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/poll.c (poll): Further micro-optimization.
40103
40104 2008-08-06  Jim Meyering  <meyering@redhat.com>
40105
40106         inet_pton.c: use locale-independent tolower
40107         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40108         (inet_pton6): Use c_tolower rather than tolower.
40109         * modules/inet_pton (Depends-on): Add c-ctype.
40110
40111 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40112
40113         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40114         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40115
40116 2008-08-06  Jim Meyering  <meyering@redhat.com>
40117
40118         * modules/inet_pton (License): Relicense under LGPLv2+.
40119
40120 2008-08-03  Bruno Haible  <bruno@clisp.org>
40121
40122         Additional non-aborting API for lock and tls.
40123         * lib/lock.h: Include <errno.h>.
40124         (glthread_lock_init): New macro/function.
40125         (gl_lock_init): Define as wrapper around glthread_lock_init.
40126         (glthread_lock_lock): New macro/function.
40127         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40128         (glthread_lock_unlock): New macro/function.
40129         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40130         (glthread_lock_destroy): New macro/function.
40131         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40132         (glthread_rwlock_init): New macro/function.
40133         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40134         (glthread_rwlock_rdlock): New macro/function.
40135         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40136         (glthread_rwlock_wrlock): New macro/function.
40137         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40138         (glthread_rwlock_unlock): New macro/function.
40139         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40140         (glthread_rwlock_destroy): New macro/function.
40141         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40142         (glthread_recursive_lock_init): New macro/function.
40143         (gl_recursive_lock_init): Define as wrapper around
40144         glthread_recursive_lock_init.
40145         (glthread_recursive_lock_lock): New macro/function.
40146         (gl_recursive_lock_lock): Define as wrapper around
40147         glthread_recursive_lock_lock.
40148         (glthread_recursive_lock_unlock): New macro/function.
40149         (gl_recursive_lock_unlock): Define as wrapper around
40150         glthread_recursive_lock_unlock.
40151         (glthread_recursive_lock_destroy): New macro/function.
40152         (gl_recursive_lock_destroy): Define as wrapper around
40153         glthread_recursive_lock_destroy.
40154         (glthread_once): New macro/function.
40155         (gl_once): Define as wrapper around glthread_once.
40156         Update function declarations.
40157         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40158         glthread_rwlock_init. Return error code.
40159         (glthread_rwlock_rdlock_multithreaded): Renamed from
40160         glthread_rwlock_rdlock. Return error code.
40161         (glthread_rwlock_wrlock_multithreaded): Renamed from
40162         glthread_rwlock_wrlock. Return error code.
40163         (glthread_rwlock_unlock_multithreaded): Renamed from
40164         glthread_rwlock_unlock. Return error code.
40165         (glthread_rwlock_destroy_multithreaded): Renamed from
40166         glthread_rwlock_destroy. Return error code.
40167         (glthread_recursive_lock_init_multithreaded): Renamed from
40168         glthread_recursive_lock_init. Return error code.
40169         (glthread_recursive_lock_lock_multithreaded): Renamed from
40170         glthread_recursive_lock_lock. Return error code.
40171         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40172         glthread_recursive_lock_unlock. Return error code.
40173         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40174         glthread_recursive_lock_destroy. Return error code.
40175         (glthread_once_call): Make static.
40176         (glthread_once_multithreaded): Renamed from glthread_once.
40177         * lib/tls.h: Include <errno.h>.
40178         (glthread_tls_key_init): New macro/function.
40179         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40180         (glthread_tls_set): New macro/function.
40181         (gl_tls_set): Define as wrapper around glthread_tls_set.
40182         (glthread_tls_key_destroy): New macro/function.
40183         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40184         Update function declarations.
40185         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40186         glthread_tls_get.
40187         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40188
40189 2008-08-04  Eric Blake  <ebb9@byu.net>
40190
40191         gnumakefile: use space, not TAB, outside of targets
40192         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40193
40194 2008-08-02  Jim Meyering  <meyering@redhat.com>
40195
40196         getdate.y: avoid locale-dependent date parsing failure
40197         In Turkish locales, getdate would fail to recognize keywords
40198         containing a lowercase "i".  The solution is not to rely on
40199         locale-sensitive case-conversion.
40200         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40201         (lookup_word): Use c_toupper in place of toupper.
40202         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40203         Reported by Vefa Bicakci <bicave@superonline.com> in
40204         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40205         * modules/getdate (Depends-on): Add c-ctype.
40206
40207 2008-08-02  Bruno Haible  <bruno@clisp.org>
40208
40209         * gnulib-tool (func_import): When updating or creating a .gitignore
40210         file, prepend each added line with a slash, and ignore leading slashes
40211         from the existing lines.
40212         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40213
40214 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40215
40216         Portability fix for GNU make 3.79.1.
40217         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40218         versions do not understand.
40219
40220 2008-08-01  Bruno Haible  <bruno@clisp.org>
40221
40222         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40223         * tests/test-isnanf.h (zero): New variable.
40224         (main): Avoid literal -0.0f.
40225         * tests/test-isnand.h (zero): New variable.
40226         (main): Avoid literal -0.0.
40227         * tests/test-isnanl.h (zero): New variable.
40228         (main): Avoid literal -0.0L.
40229         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40230         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40231         -0.0, -0.0L.
40232         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40233         (test_signbitd): Avoid literal -0.0.
40234         (test_signbitl): Avoid literal -0.0L.
40235         * tests/test-ceilf1.c (zero): New variable.
40236         (main): Avoid literal -0.0f.
40237         * tests/test-ceill.c (zero): New variable.
40238         (main): Avoid literal -0.0L.
40239         * tests/test-floorf1.c (zero): New variable.
40240         (main): Avoid literal -0.0f.
40241         * tests/test-floorl.c (zero): New variable.
40242         (main): Avoid literal -0.0L.
40243         * tests/test-roundf1.c (zero): New variable.
40244         (main): Avoid literal -0.0f.
40245         * tests/test-round1.c (zero): New variable.
40246         (main): Avoid literal -0.0.
40247         * tests/test-roundl.c (zero): New variable.
40248         (main): Avoid literal -0.0L.
40249         * tests/test-truncf1.c (zero): New variable.
40250         (main): Avoid literal -0.0f.
40251         * tests/test-trunc1.c (zero): New variable.
40252         (main): Avoid literal -0.0.
40253         * tests/test-truncl.c (zero): New variable.
40254         (main): Avoid literal -0.0L.
40255         * tests/test-frexp.c (zero): New variable.
40256         (main): Avoid literal -0.0.
40257         * tests/test-frexpl.c (zero): New variable.
40258         (main): Avoid literal -0.0L.
40259         * tests/test-ldexpl.c (zero): New variable.
40260         (main): Avoid literal -0.0L.
40261         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40262         (zerod, zerol): New variables.
40263         (test_function): Avoid literals -0.0, -0.0L.
40264         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40265         (zerod, zerol): New variables.
40266         (test_function): Avoid literals -0.0, -0.0L.
40267         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40268         (zerod, zerol): New variables.
40269         (test_function): Avoid literals -0.0, -0.0L.
40270         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40271         (zerod, zerol): New variables.
40272         (test_function): Avoid literals -0.0, -0.0L.
40273         * tests/test-strtod.c (zero): New variable.
40274         (main): Avoid literal -0.0.
40275         Reported by Jonathan C. Patschke <jp@centtech.com>.
40276
40277 2008-07-31  Jim Meyering  <meyering@redhat.com>
40278
40279         sha256.h: correct definition of SHA224_DIGEST_SIZE
40280         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40281         Reported by Paulie Pena IV <paulie4@gmail.com>.
40282         Define as 224 / 8, rather than as a literal.
40283         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40284         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40285         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40286
40287 2008-07-31  Bruno Haible  <bruno@clisp.org>
40288
40289         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40290         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40291         Reported by Jonathan Patschke <jp@centtech.com>.
40292
40293 2008-07-31  Bruno Haible  <bruno@clisp.org>
40294
40295         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40296         Reported by Paolo Bonzini <bonzini@gnu.org>.
40297
40298 2008-07-30  Eric Blake  <ebb9@byu.net>
40299
40300         test-strtod: allow compilation without -lm
40301         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40302         Reported by Dennis Clarke <blastwave@gmail.com>.
40303
40304 2008-07-28  Jim Meyering  <meyering@redhat.com>
40305
40306         bootstrap: work also when there are no .po files in po/
40307         * build-aux/bootstrap (update_po_files): Complete the change
40308         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40309
40310 2008-07-27  Jim Meyering  <meyering@redhat.com>
40311
40312         * users.txt: Add zile.
40313
40314 2008-07-26  Ben Pfaff  <blp@gnu.org>
40315
40316         Add missing dependencies on new m4/exponent[fdl].m4 files.
40317         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40318         * modules/isnand-nolibm: Add m4/exponentd.m4.
40319         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40320         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40321         m4/isnan[fdl].m4, because the macros actually used moved.
40322         Reported by Jim Meyering.
40323
40324 2008-07-14  Ben Pfaff  <blp@gnu.org>
40325
40326         Add isinf module.
40327         * lib/isinf.c: New file.
40328         * lib/math.in.h: Define isinf macro if we have decided to replace
40329         it.
40330         * m4/isinf.m4: New file.
40331         * m4/math_h.m4: Initialize and substitute variables for isinf
40332         module.
40333         * modules/isinf: New file.
40334         * modules/isinf-tests: New file.
40335         * modules/math: Add substitutions for new module.
40336         * tests/test-isinf.c: New file.
40337         * doc/posix-functions/isinf.texi: Mention new module.
40338         * MODULES.html.sh: Mention new module.
40339
40340 2008-07-14  Ben Pfaff  <blp@gnu.org>
40341
40342         Factor out some macros for use by additional modules.
40343         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40344         exponentf.m4.
40345         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40346         exponentd.m4.
40347         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40348         file exponentl.m4.
40349         * m4/exponentf.m4: New file.
40350         * m4/exponentd.m4: New file.
40351         * m4/exponentl.m4: New file.
40352         * modules/isnanf: Use new file m4/exponentf.m4.
40353         * modules/isnand: Use new file m4/exponentd.m4.
40354         * modules/isnanl: Use new file m4/exponentl.m4.
40355
40356 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40357
40358         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40359         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40360         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40361         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40362
40363         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40364         readlink on platforms without PATH_MAX.
40365
40366 2008-07-21  Eric Blake  <ebb9@byu.net>
40367
40368         Warn, not fail, on stale version.
40369         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40370
40371         Don't allow installation with stale devel version number.
40372         * top/GNUmakefile (_is-install-target): New macro.
40373         (_curr-ver): Forbid installation with stale version number.
40374
40375 2008-07-20  Bruno Haible  <bruno@clisp.org>
40376
40377         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40378         TESTS_ENVIRONMENT.
40379         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40380
40381 2008-07-20  Bruno Haible  <bruno@clisp.org>
40382
40383         * lib/c-stack.h (c_stack_action): Add documentation.
40384         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40385
40386 2008-07-20  Bruno Haible  <bruno@clisp.org>
40387
40388         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40389         * modules/readlink (License): Likewise.
40390
40391 2008-07-17  Eric Blake  <ebb9@byu.net>
40392
40393         * modules/c-stack (Link): Fix typo.
40394
40395         Make c-stack use libsigsegv, when available.
40396         * modules/c-stack (Depends-on): Add libsigsegv.
40397         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40398         needed.
40399         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40400         (segv_handler, overflow_handler, c_stack_action)
40401         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40402         implementation when libsigsegv is available, but only when using
40403         the library is necessary.
40404         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40405         comment, explaining why XSI check fails on Linux.
40406         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40407         * tests/test-c-stack2.sh: Tweak skip message.
40408         * NEWS: Document new link-time requirements.
40409
40410 2008-07-16  Eric Blake  <ebb9@byu.net>
40411
40412         c-stack: Expose false positives when not using libsigsegv.
40413         * modules/c-stack-tests (Files): Expand test.
40414         * tests/test-c-stack.c (main): Add means to conditionally trigger
40415         non-overflow SIGSEGV.
40416         * tests/test-c-stack2.sh: New file.
40417
40418 2008-07-14  Bruno Haible  <bruno@clisp.org>
40419
40420         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40421         Reported by Eric Blake.
40422
40423 2008-07-14  Sam Steingold  <sds@gnu.org>
40424             Bruno Haible  <bruno@clisp.org>
40425
40426         New module libsigsegv.
40427         * modules/libsigsegv: New file.
40428         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40429         modifications.
40430         * MODULES.html.sh (Signal handling): New section.
40431
40432 2008-07-14  Bruno Haible  <bruno@clisp.org>
40433
40434         * modules/unictype/ctype-* (Description): Add the word "function".
40435         Improves the resulting doc in MODULES.html.
40436
40437 2008-07-12  Ben Pfaff  <blp@gnu.org>
40438
40439         Add longlong module.
40440         * modules/longlong: New file.
40441
40442 2008-07-12  Bruno Haible  <bruno@clisp.org>
40443
40444         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40445         to empty.
40446
40447 2008-07-10  Ben Pfaff  <blp@gnu.org>
40448
40449         Add isnan module.
40450         * doc/posix-functions/isnan.texi: Mention new module.
40451         * lib/math.in.h: Define isnan macro if we have decided to replace
40452         it.
40453         * m4/isnan.m4: New file.
40454         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40455         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40456         also.
40457         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40458         redundancy.
40459         * m4/math_h.m4: Initialize and substitute variables for isnan
40460         module.
40461         * modules/isnan: New file.
40462         * modules/isnan-tests: New file.
40463         * modules/math: Add substitutions for new module.
40464         * tests/test-isnan.c: New file.
40465         * MODULES.html.sh: Mention new module.
40466
40467 2008-07-10  Ben Pfaff  <blp@gnu.org>
40468
40469         Add isnanf module.
40470         * lib/isnanf.m4: New file.
40471         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40472         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40473         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40474         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40475         * modules/isnanf: New file.
40476         * modules/isnanf-tests: New file.
40477         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40478         files.
40479         * tests/test-isnanf-nolibm.c: factored most of its contents into
40480         new file tests/test-isnanf.h.
40481         * tests/test-isnanf.h: New file.
40482         * tests/test-isnanf.c: New file.
40483         * MODULES.html.sh: Mention new module.
40484         * doc/glibc-functions/isnanf.texi: Mention new module.
40485
40486 2008-07-10  Ben Pfaff  <blp@gnu.org>
40487
40488         Add isnand module.
40489         * lib/isnand.h: New file.
40490         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40491         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40492         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40493         functionality also.
40494         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40495         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40496         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40497         * modules/isnand: New file.
40498         * modules/isnand-tests: New file.
40499         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40500         files.
40501         * tests/test-isnand-nolibm.c: factored most of its contents into
40502         new file tests/test-isnand.h.
40503         * tests/test-isnand.h: New file.
40504         * tests/test-isnand.c: New file.
40505         * MODULES.html.sh: Mention new module.
40506
40507 2008-07-10  Ben Pfaff  <blp@gnu.org>
40508
40509         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40510         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40511         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40512         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40513         * modules/isnanf-nolibm: Update references to renamed files.
40514         * modules/isnand-nolibm: Likewise.
40515         * modules/isnanf-nolibm-tests: Likewise.
40516         * modules/isnand-nolibm-tests: Likewise.
40517         * lib/frexp.c: Likewise.
40518         * lib/isfinite.c: Likewise.
40519         * lib/signbitd.c: Likewise.
40520         * lib/signbitf.c: Likewise.
40521         * lib/vasnprintf.c: Likewise.
40522         * tests/test-ceilf1.c: Likewise.
40523         * tests/test-ceilf2.c: Likewise.
40524         * tests/test-floorf1.c: Likewise.
40525         * tests/test-floorf2.c: Likewise.
40526         * tests/test-frexp.c: Likewise.
40527         * tests/test-round1.c: Likewise.
40528         * tests/test-round2.c: Likewise.
40529         * tests/test-roundf1.c: Likewise.
40530         * tests/test-strtod.c: Likewise.
40531         * tests/test-trunc1.c: Likewise.
40532         * tests/test-trunc2.c: Likewise.
40533         * tests/test-truncf1.c: Likewise.
40534         * tests/test-truncf2.c: Likewise.
40535         * NEWS: Mention the renamed header files.
40536
40537 2008-07-11  Jim Meyering  <meyering@redhat.com>
40538
40539         vc-list-files: make the last-resort awk code more portable
40540         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40541         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40542         does not support it.
40543
40544 2008-07-10  Eric Blake  <ebb9@byu.net>
40545
40546         Work with tar's bootstrap.
40547         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40548         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40549         an m4 comment.
40550
40551 2008-07-09  Jim Meyering  <meyering@redhat.com>
40552
40553         posix-shell.m4: fix typo that made this test malfunction
40554         * m4/posix-shell.m4: Remove capitalization in variable name.
40555
40556 2008-07-08  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/onceonly.m4: Update comments.
40559         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40560
40561 2008-07-04  Jim Meyering  <meyering@redhat.com>
40562
40563         * users.txt: Add vc-dwim.
40564         (bison, coreutils): Use the gitweb URL.
40565
40566 2008-07-03  Jim Meyering  <meyering@redhat.com>
40567
40568         * users.txt: Add libffcall.  From Sam Steingold.
40569
40570 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40571
40572         getdate.y: do not ignore TZ with relative day, month or year offset
40573         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40574         relative-date-handling, since otherwise, the latter would clobber the
40575         sole output (an updated Start value) of the tz-handling block.
40576         * tests/test-getdate.c: Tests for the fix
40577
40578 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40579
40580         Recognize 'foo_LIBRARIES += libgnu.a'.
40581         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40582         makefile snippet has already specified an installation location,
40583         also using '+='.
40584
40585 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40586
40587         getdate.y: factor out common actions
40588         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40589         Use them in place of open-coded actions.
40590
40591 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40592
40593         Add self-test for getdate module.
40594         * modules/getdate-tests: New file.
40595         * tests/test-getdate.c: New file.
40596
40597 2008-06-29  Bruno Haible  <bruno@clisp.org>
40598
40599         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40600         .gitignore.
40601         Reported by Sylvain Beucler <beuc@beuc.net>.
40602
40603 2008-06-29  Bruno Haible  <bruno@clisp.org>
40604
40605         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40606         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40607
40608 2008-06-29  Bruno Haible  <bruno@clisp.org>
40609
40610         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40611         EXTRA_DIST.
40612         Reported by Sylvain Beucler <beuc@beuc.net>.
40613
40614 2008-06-26  Jim Meyering  <meyering@redhat.com>
40615
40616         make several modules depend on the "open" module
40617         This provides slightly increased consistency when opening-for-write
40618         the name of a non-directory spelled with a trailing slash.
40619         * modules/chdir-safer: Likewise.
40620         * modules/chown: Likewise.
40621         * modules/clean-temp: Likewise.
40622         * modules/copy-file: Likewise.
40623         * modules/fchdir: Likewise.
40624         * modules/fcntl-safer: Likewise.
40625         * modules/pipe: Likewise.
40626         * modules/utime: Likewise.
40627         Prompted by Eric Blake and Bruno Haible.
40628
40629 2008-06-24  Andreas Schwab  <schwab@suse.de>
40630
40631         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40632         literals can be used as initializers for global variables.
40633
40634 2008-06-23  Eric Blake  <ebb9@byu.net>
40635
40636         Make gnulib-cache.m4 easier to diff.
40637         * gnulib-tool (func_import): Allow newlines when reading cached
40638         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40639
40640 2008-06-23  Bruno Haible  <bruno@clisp.org>
40641
40642         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40643         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40644         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40645         m4/signalblocking.m4.
40646         (gl_PREREQ_SIGACTION): Don't invoke it.
40647         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40648         gl_PREREQ_SIG_HANDLER_H.
40649         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40650         Don't check for sigaction here.
40651
40652 2008-06-23  Bruno Haible  <bruno@clisp.org>
40653
40654         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40655         (install_handlers): Don't set the SA_RESETHAND flag.
40656
40657 2008-06-23  Bruno Haible  <bruno@clisp.org>
40658
40659         * m4/sigaction.m4: Comment fixes.
40660         * lib/signal.in.h: Likewise.
40661
40662 2008-06-23  Eric Blake  <ebb9@byu.net>
40663
40664         Fix typo.
40665         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40666
40667         Avoid SA_ namespace.
40668         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40669         Reported by Ralf Wildenhues.
40670
40671         Avoid test failure due to SA_RESTORER.
40672         * tests/test-sigaction.c (SA_MASK): New macro.
40673         (main): Avoid failing due to extension flags being set.
40674         Reported by Jim Meyering.
40675
40676         Revert use of sig-handler.h in sigprocmask.c.
40677         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40678         it requires the existence of struct sigaction.
40679         * lib/sigprocmask.c (handler_t): Restore typedef.
40680         (rpl_signal, old_handlers): Use local type.
40681
40682 2008-06-22  Bruno Haible  <bruno@clisp.org>
40683
40684         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40685         conditionally.
40686         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40687
40688 2008-06-22  Bruno Haible  <bruno@clisp.org>
40689
40690         * doc/posix-functions/siginterrupt.texi: Move note.
40691
40692         * lib/signal.in.h (SA_RESTART): New macro.
40693         * lib/sigaction.c: Update comment.
40694
40695         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40696
40697         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40698         (gl_PREREQ_SIGPROCMASK): Invoke it.
40699         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40700
40701         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40702
40703         * lib/sigprocmask.c: Update a comment.
40704
40705 2008-06-21  Eric Blake  <ebb9@byu.net>
40706
40707         Use sigaction module rather than signal().
40708         * modules/c-stack (Depends-on): Add sigaction.
40709         * modules/fatal-signal (Depends-on): Likewise.
40710         * modules/nanosleep (Depends-on): Likewise.
40711         * modules/sigprocmask (Files): Add sig-handler.h.
40712         * modules/sigaction (Files): Likewise.
40713         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40714         Eggert.
40715         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40716         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40717         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40718         (init_fatal_signals): Likewise.
40719         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40720         (siginterrupt): Delete fallback.
40721         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40722         instead.
40723         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40724         siginterrupt.
40725
40726         New module sigaction, for mingw.
40727         * modules/sigaction: New module...
40728         * modules/sigaction-tests: ...and its test.
40729         * m4/sigaction.m4: New file.
40730         * lib/sigaction.c: Likewise.
40731         * tests/test-sigaction.c: Likewise.
40732         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40733         * modules/signal (Makefile.am): Likewise.
40734         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40735         needed.
40736         * doc/posix-headers/signal.texi (signal.h): Mention provided
40737         types.
40738         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40739         that sigaction is preferable.
40740         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40741         module.
40742         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40743         sigaction.
40744
40745         Improve robustness of sigprocmask by overriding signal.
40746         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40747         is in use.
40748         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40749         (SIGKILL, SIGSTOP): Provide fallbacks.
40750         (rpl_signal): Implement.
40751         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40752         signal can be called inside handlers.
40753
40754         Fix nanosleep module on mingw.
40755         * modules/nanosleep (Depends-on): Add sys_select.
40756         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40757
40758         Fix licensing of sigprocmask.
40759         * modules/raise (License): Relicense as LGPL.
40760
40761 2008-06-21  Bruno Haible  <bruno@clisp.org>
40762
40763         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40764         result if it contains question marks.
40765         Reported by Michael Geng <linux@michaelgeng.de>.
40766
40767 2008-06-19  Bruno Haible  <bruno@clisp.org>
40768
40769         Fix CVS-ism.
40770         * doc/gnulib.texi: Include updated-stamp.texi.
40771         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40772         (updated-stamp.texi): New rule.
40773         (gnulib.info): Depend on it.
40774         * doc/.gitignore: Add updated-stamp.texi.
40775         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40776
40777 2008-06-19  Bruno Haible  <bruno@clisp.org>
40778
40779         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40780         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40781
40782 2008-06-19  Eric Blake  <ebb9@byu.net>
40783
40784         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40785         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40786         Reported by Stepan Kasal.
40787
40788 2008-06-18  Bruno Haible  <bruno@clisp.org>
40789
40790         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40791         Reported by Eric Blake.
40792
40793 2008-06-18  Eric Blake  <ebb9@byu.net>
40794
40795         Work around cygwin 1.5.25 strsignal bug.
40796         * tests/test-strsignal.c: Allow for const char *.
40797         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40798
40799 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40800
40801         * users.txt: Update URL to article and add author/date
40802         information.
40803
40804 2008-06-17  Bruno Haible  <bruno@clisp.org>
40805
40806         New macro gl_DISABLE_THREADS.
40807         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40808         if the user did not pass --enable-threads or --disable-threads option.
40809         (gl_DISABLE_THREADS): New macro.
40810         Reported by Eric Blake <ebb9@byu.net>.
40811
40812 2008-06-17  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40815         when the macro ignores it.
40816         Based on a patch by Eric Blake <ebb9@byu.net>.
40817
40818 2008-06-17  Bruno Haible  <bruno@clisp.org>
40819
40820         * modules/tls (License): Change to LGPLv2+.
40821         Reported by Eric Blake.
40822
40823 2008-06-17  Eric Blake  <ebb9@byu.net>
40824
40825         Simplify c-stack prerequisites.
40826         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40828         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40829         check.
40830         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40831         <sys/resource.h>.
40832
40833         Move c-stack test into testsuite.
40834         * modules/c-stack-tests: New file.
40835         * lib/c-stack.c [DEBUG]: Move test program...
40836         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40837         fail test if sigaltstack is lacking.
40838         * tests/test-c-stack.sh: New driver file.
40839
40840 2008-06-16  Eric Blake  <ebb9@byu.net>
40841
40842         Use raise module consistently.
40843         * modules/fatal-signal (Depends-on): Add raise.
40844         * modules/sigprocmask (Depends-on): Likewise.
40845         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40846         * lib/sigprocmask.c (sigprocmask): Likewise.
40847         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40848         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40849
40850         Fix compliance bug in sigpending.
40851         * lib/sigprocmask.c (sigpending): Return pending array via
40852         parameter, not return value.
40853
40854 2008-06-14  Eric Blake  <ebb9@byu.net>
40855
40856         Improve obstack-printf test code.
40857         * tests/test-obstack-printf.c (test_function): Fix comment, and
40858         simplify usage of obstack_* in macros.  Add a test for coverage.
40859         Reported by Bruno Haible.
40860
40861 2008-06-14  Bruno Haible  <bruno@clisp.org>
40862
40863         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40864         array size as a constant, not as a const variable.
40865         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40866         AC_USE_SYSTEM_EXTENSIONS.
40867         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40868         Test whether the obstack_printf function actually exists.
40869         * modules/obstack-printf (Depends-on): Add extensions.
40870         (Include): Remove obstack.h.
40871         * modules/obstack-printf-posix (Depends-on): Add extensions.
40872         (Include): Remove obstack.h.
40873
40874 2008-06-13  Eric Blake  <ebb9@byu.net>
40875
40876         Add obstack-printf and obstack-printf-posix modules.
40877         * modules/obstack-printf: New file.
40878         * modules/obstack-printf-posix: Likewise.
40879         * MODULES.html.sh (Misc): Mention them.
40880         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40881         Likewise.
40882         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40883         Likewise.
40884         * modules/stdio (Makefile.am): Accomodate new modules.
40885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40886         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40887         Declare.
40888         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40889         functions.
40890         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40891         (gl_REPLACE_OBSTACK_PRINTF): New macros
40892         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40893         * tests/test-obstack-printf.c: New file.
40894         * modules/obstack-printf-tests: Likewise.
40895         * modules/obstack-printf-posix-tests: Likewise.
40896
40897 2008-06-11  Bruno Haible  <bruno@clisp.org>
40898
40899         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40900         * lib/open.c: Include errno.h.
40901         (open): Fail when attempting to write to a file that has a trailing
40902         slash.
40903         * tests/test-open.c (main): Test against trailing slash bug.
40904         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40905
40906 2008-06-10  Bruno Haible  <bruno@clisp.org>
40907
40908         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40909         for $? to work inside the trap command, with various /bin/sh-s.
40910         * tests/test-vc-list-files-cvs.sh: Likewise.
40911
40912 2008-06-10  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/acl-internal.h: Don't include gettext.h here.
40915         * lib/set-mode-acl.c: Include gettext.h here.
40916         * lib/copy-acl.c: Likewise.
40917
40918 2008-06-10  Bruno Haible  <bruno@clisp.org>
40919
40920         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40921         * lib/wait-process.c (wait_subprocess): Likewise.
40922         * lib/execute.h (execute): Add termsigp argument.
40923         * lib/execute.c (execute): Likewise.
40924         * lib/csharpcomp.c (compile_csharp_using_pnet,
40925         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40926         * lib/csharpexec.c (execute_csharp_using_pnet,
40927         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40928         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40929         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40930         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40931         is_jikes_present): Update.
40932         * lib/javaexec.c (execute_java_class): Update.
40933         * lib/javaversion.c (execute_and_read_line): Update.
40934         * NEWS: Document the changes.
40935         Reported by Eric Blake.
40936
40937 2008-06-10  Eric Blake  <ebb9@byu.net>
40938
40939         Add missing include.
40940         * tests/test-strstr.c (includes): Add <signal.h>.
40941         * tests/test-strcasestr.c (includes): Likewise.
40942         * tests/test-memmem.c (includes): Likewise.
40943
40944 2008-06-10  Bruno Haible  <bruno@clisp.org>
40945
40946         * lib/wait-process.c (wait_subprocess): Add an assertion.
40947
40948 2008-06-10  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40951
40952 2008-06-10  Bruno Haible  <bruno@clisp.org>
40953
40954         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40955         using alarm().
40956         * tests/test-strcasestr.c (main): Likewise.
40957         * tests/test-strstr.c (main): Likewise.
40958
40959 2008-06-09  Bruno Haible  <bruno@clisp.org>
40960
40961         Work around the Solaris 10 ACE ACLs ABI change.
40962         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40963         declare if ACL_NO_TRIVIAL is present.
40964         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40965         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40966         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40967         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40968         define if ACL_NO_TRIVIAL is present.
40969         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40970         and use the current ABI.
40971         (file_has_acl): Use same #if condition as elsewhere.
40972         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40973         in use, and use the current ABI.
40974         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40975         Reported by Jim Meyering.
40976
40977 2008-06-09  Eric Blake  <ebb9@byu.net>
40978
40979         Work around environments that (stupidly) ignore SIGALRM.
40980         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40981         before using alarm().
40982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40983         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40984         Reported by Ian Beckwith <ianb@erislabs.net>.
40985
40986         Produce autobuild blurb earlier in log.
40987         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40988
40989 2008-06-09  Jim Meyering  <meyering@redhat.com>
40990         and OndÅ™ej Vašík  <ovasik@redhat.com>
40991
40992         utimens.c: correct kernel bug work-around
40993         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40994         failure, not success, and the kernel bug we're trying to work
40995         around affects not just the utimensat call, but also the fallback
40996         futimens call.
40997         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40998         not success.
40999         [HAVE_FUTIMENS]: Use the same work-around, here.
41000
41001 2008-06-09  Jim Meyering  <meyering@redhat.com>
41002
41003         add more guards around definition of ACE_-related code
41004         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41005         ALLOW and ACE_OWNER are also defined.
41006
41007 2008-06-08  Bruno Haible  <bruno@clisp.org>
41008
41009         * lib/acl-internal.h: Add me as co-author.
41010         * lib/file-has-acl.c: Likewise.
41011         * lib/set-mode-acl.c: Likewise.
41012         * lib/copy-acl.c: Likewise.
41013
41014 2008-06-08  Bruno Haible  <bruno@clisp.org>
41015
41016         Add support for AIX ACLs.
41017         * lib/acl-internal.h (acl_nontrivial): New declaration.
41018         * lib/file-has-acl.c (acl_nontrivial): New function.
41019         (file_has_acl): Add implementation using AIX 4 ACL API.
41020         * lib/set-mode-acl.c (qset_acl): Likewise.
41021         * lib/copy-acl.c (qcopy_acl): Likewise.
41022
41023 2008-06-08  Bruno Haible  <bruno@clisp.org>
41024
41025         Add support for HP-UX ACLs.
41026         * lib/acl-internal.h (acl_nontrivial): New declaration.
41027         * lib/file-has-acl.c (acl_nontrivial): New function.
41028         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41029         * lib/set-mode-acl.c (qset_acl): Likewise.
41030         * lib/copy-acl.c (qcopy_acl): Likewise.
41031
41032 2008-06-08  Bruno Haible  <bruno@clisp.org>
41033
41034         Add support for Cygwin ACLs.
41035         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41036         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41037         the chmod_or_fchmod call.
41038         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41039
41040 2008-06-08  Bruno Haible  <bruno@clisp.org>
41041
41042         Fix bug with setuid modes in Solaris 10+ code.
41043         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41044         succeeded, when the mode contains some special bits.
41045
41046 2008-06-08  Bruno Haible  <bruno@clisp.org>
41047
41048         Add support for Solaris 7..10 ACLs.
41049         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41050         declarations.
41051         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41052         functions.
41053         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41054         * lib/set-mode-acl.c (qset_acl): Likewise.
41055         * lib/copy-acl.c (qcopy_acl): Likewise.
41056
41057 2008-06-08  Bruno Haible  <bruno@clisp.org>
41058
41059         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41060         declaration.
41061         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41062         (acl_access_nontrivial): Remove MacOS X case.
41063         (file_has_acl): Use acl_extended_nontrivial.
41064         * lib/copy-acl.c (qcopy_acl): Likewise.
41065
41066 2008-06-08  Bruno Haible  <bruno@clisp.org>
41067
41068         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41069
41070 2008-06-08  Jim Meyering  <meyering@redhat.com>
41071
41072         * modules/acl (Maintainer): Add Bruno Haible.
41073
41074 2008-06-07  Bruno Haible  <bruno@clisp.org>
41075
41076         Improve support for Tru64 ACLs.
41077         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41078         ACL on OSF/1.
41079
41080 2008-06-07  Bruno Haible  <bruno@clisp.org>
41081
41082         Add support for MacOS X ACLs.
41083         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41084         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41085         * lib/set-mode-acl.c (qset_acl): Likewise.
41086         * lib/copy-acl.c (qcopy_acl): Likewise.
41087
41088 2008-06-07  Bruno Haible  <bruno@clisp.org>
41089
41090         Fix memory leak introduced on 2008-05-22.
41091         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41092         use.
41093
41094 2008-06-07  Bruno Haible  <bruno@clisp.org>
41095
41096         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41097         to construct an empty ACL.
41098
41099 2008-06-07  Bruno Haible  <bruno@clisp.org>
41100
41101         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41102         precisely.
41103         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41104
41105 2008-06-07  Bruno Haible  <bruno@clisp.org>
41106
41107         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41108         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41109
41110 2008-06-07  Bruno Haible  <bruno@clisp.org>
41111
41112         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41113         regardless of POSIX.
41114         * doc/posix-functions/_longjmp.texi: Likewise.
41115         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41116         SystemV platform in this case.
41117
41118 2008-06-06  Eric Blake  <ebb9@byu.net>
41119
41120         Document abort() bugs.
41121         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41122
41123         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41124         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41125         sigsetjmp.
41126         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41127         siglongjmp, but only as a macro.
41128         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41129         is obsolete.
41130         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41131
41132         Tweak documentation to cover cygwin argz bugs.
41133         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41134         argz bug fix; no code change needed since no cygwin releases
41135         occurred between the last fix and the bug being tested.
41136         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41137         module and recently fixed cygwin bugs.
41138         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41139         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41140         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41141         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41142         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41143         Likewise.
41144         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41145         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41146         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41147         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41148         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41149         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41150         Likewise.
41151
41152         Avoid gcc warning on cygwin.
41153         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41154         !ACL_NO_TRIVIAL]: Avoid unused variable.
41155
41156 2008-06-05  Eric Blake  <ebb9@byu.net>
41157
41158         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41159         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41160         git-version-gen fails to come up with a version.
41161         Reported by Simon Josefsson.
41162
41163 2008-06-05  Jim Meyering  <meyering@redhat.com>
41164             Paul Eggert  <eggert@cs.ucla.edu>
41165
41166         utimens.c: work around a probable Linux kernel bug
41167         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41168         appears to be a kernel bug that causes utimensat to return 280
41169         instead of 0, indicating success.
41170
41171 2008-06-04  Bruno Haible  <bruno@clisp.org>
41172
41173         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41174         2008-06-01 commit.
41175
41176 2008-06-04  Bruno Haible  <bruno@clisp.org>
41177
41178         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41179         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41180         (file_has_acl): Use it. Save errno afterwards.
41181         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41182
41183 2008-06-03  Bruno Haible  <bruno@clisp.org>
41184
41185         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41186         draft code. Simplify #ifs.
41187         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41188         Put Solaris code after POSIX-draft code. Fix comments regarding
41189         Solaris 10, HP-UX. Mention Cygwin.
41190         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41191
41192 2008-06-03  Eric Blake  <ebb9@byu.net>
41193
41194         Provide fallback for older kernels.
41195         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41196         Provide runtime fallback if kernel lacks support.
41197         Reported by Mike Frysinger.
41198
41199 2008-06-02  Bruno Haible  <bruno@clisp.org>
41200
41201         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41202         it exists.
41203
41204 2008-06-02  Bruno Haible  <bruno@clisp.org>
41205
41206         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41207         * lib/copy-acl.c (qcopy_acl): Update comment.
41208
41209 2008-06-02  Bruno Haible  <bruno@clisp.org>
41210
41211         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41212         like ACL APIs.
41213
41214 2008-06-02  Bruno Haible  <bruno@clisp.org>
41215
41216         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41217         * tests/test-set-mode-acl.sh: Likewise.
41218         * tests/test-copy-acl.sh: Likewise.
41219         * tests/test-copy-file.sh: Likewise.
41220
41221 2008-06-02  Bruno Haible  <bruno@clisp.org>
41222
41223         * tests/test-file-has-acl.sh: Remove unused code.
41224
41225 2008-06-01  Bruno Haible  <bruno@clisp.org>
41226
41227         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41228         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41229         messages.
41230         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41231
41232 2008-06-01  Bruno Haible  <bruno@clisp.org>
41233
41234         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41235         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41236         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41237         APIs.
41238         * modules/acl-tests (configure.ac): Remove tests now contained in
41239         m4/acl.m4.
41240
41241 2008-06-02  Jim Meyering  <meyering@redhat.com>
41242
41243         announce-gen: use a better key-server host name
41244         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41245         it may be more consistently reliable.  Suggested by Werner Koch
41246         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41247
41248 2008-06-01  Bruno Haible  <bruno@clisp.org>
41249
41250         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41251         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41252
41253 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41254
41255         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41256
41257 2008-06-01  Bruno Haible  <bruno@clisp.org>
41258
41259         New ACL tests.
41260         * tests/test-file-has-acl.sh: New file.
41261         * tests/test-file-has-acl.c: New file.
41262         * tests/test-set-mode-acl.sh: New file.
41263         * tests/test-set-mode-acl.c: New file.
41264         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41265         * tests/test-copy-acl.c: New file.
41266         * modules/acl-tests: New file, based on modules/copy-file-tests.
41267         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41268         (Depends-on): Add acl-tests.
41269         (configure.ac): Remove checks.
41270         (Makefile.am): Don't create test-sameacls program here any more.
41271
41272 2008-06-01  Bruno Haible  <bruno@clisp.org>
41273
41274         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41275         * tests/test-sameacls.c: Include progname.h.
41276         (main): Invoke set_program_name. Portability fixes for MacOS X,
41277         Solaris, HP-UX.
41278
41279 2008-06-01  Bruno Haible  <bruno@clisp.org>
41280
41281         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41282         function.
41283         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41284
41285 2008-06-01  Bruno Haible  <bruno@clisp.org>
41286
41287         * modules/rpmatch (Depends-on): Add strdup.
41288
41289 2008-06-01  Bruno Haible  <bruno@clisp.org>
41290
41291         * lib/pipe.c: Include unistd-safer.h.
41292         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41293         * modules/pipe (Depends-on): Add unistd-safer.
41294
41295 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41296
41297         * modules/autobuild (configure.ac): Call AB_INIT.
41298
41299 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41300
41301         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41302         Suggested by Bruno Haible <bruno@clisp.org>.
41303
41304 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41305
41306         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41307         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41308         <bruno@clisp.org>.
41309
41310 2008-05-29  Eric Blake  <ebb9@byu.net>
41311
41312         Prefer new POSIX 200x interfaces over futimesat.
41313         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41314         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41315         when available.
41316         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41317
41318 2008-05-28  Bruno Haible  <bruno@clisp.org>
41319
41320         * modules/stpcpy (License): Change to LGPLv2+.
41321         Requested by David Lutterkort <dlutter@redhat.com>.
41322
41323 2008-05-27  Bruno Haible  <bruno@clisp.org>
41324
41325         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41326         current mingw.
41327         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41328
41329 2008-05-27  Bruno Haible  <bruno@clisp.org>
41330
41331         * modules/iconv_open (Link): New section, from module 'iconv'.
41332         * modules/striconv (Link): Likewise.
41333         * modules/striconveh (Link): Likewise.
41334         * modules/xstriconv (Link): Likewise.
41335         * modules/unicodeio (Link): Likewise.
41336         * modules/propername (Link): Likewise.
41337         Reported by Jim Meyering.
41338
41339 2008-05-26  Jim Meyering  <meyering@redhat.com>
41340
41341         sha256: do not artificially restrict buffer length to be < 2^32
41342         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41343         uint32_t to size_t.
41344         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41345         to match.
41346
41347         avoid unaligned access errors, e.g., on sparc
41348         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41349         direct access through a possibly-unaligned uint64* pointer.
41350         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41351         direct access through a possibly-unaligned uint32* pointer.
41352         Prompted by this patch from Tom "spot" Callaway:
41353         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41354
41355         sha512.c: fix typo in comment
41356         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41357
41358 2008-05-25  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41361         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41362         (Makefile.am): Update lib_SOURCES.
41363
41364 2008-05-25  Bruno Haible  <bruno@clisp.org>
41365
41366         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41367
41368 2008-05-25  Jim Meyering  <meyering@redhat.com>
41369
41370         useless-if-before-free: freed expr may have white-space differences
41371         * build-aux/useless-if-before-free: Recognize cases in which the
41372         freed expression differs from the tested one in embedded white
41373         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41374         $1 was used, so we can't make any regexp shy.  Improved tests now
41375         detect this.
41376
41377         useless-if-before-free: accept white space in the expression.
41378         * build-aux/useless-if-before-free: For now, any white space
41379         in the expression must be identical in the free argument.
41380
41381         useless-if-before-free: efficiency tweak
41382         * build-aux/useless-if-before-free: Make the expression-matching
41383         regexp "shy".
41384         Make the *outer* regexp shy, not the expr-matching one.
41385
41386         update code-in-comment to accept cast of free arg
41387         * build-aux/useless-if-before-free: Update regexp.
41388
41389 2008-05-25  Bruno Haible  <bruno@clisp.org>
41390
41391         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41392         * modules/copy-file-tests (Files, Makefile.am): Update.
41393         * tests/test-copy-file.c (func_test_copy): Update.
41394
41395 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41396
41397         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41398
41399 2008-05-23  Bruno Haible  <bruno@clisp.org>
41400
41401         Improve support for ACLs on OSF/1.
41402         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41403         Remove fallback for unknown flavors of ACLs.
41404
41405 2008-05-22  Bruno Haible  <bruno@clisp.org>
41406
41407         Add support for ACLs on OSF/1.
41408         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41409         replacements.
41410         (acl_free_text): New macro fallback.
41411         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41412         acl_free.
41413         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41414         acl_free_text function. Require AC_C_INLINE.
41415
41416 2008-05-22  Bruno Haible  <bruno@clisp.org>
41417
41418         Make copy_acl work on MacOS X 10.5.
41419         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41420         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41421         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41422         If MODE_INSIDE_ACL, don't assume that every system has the same text
41423         representation for ACLs as FreeBSD.
41424         * lib/copy-acl.c (copy_acl): Add support for platforms with
41425         !MODE_INSIDE_ACL.
41426         * lib/file-has-acl.c (file_has_acl): Likewise.
41427         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41428         FreeBSD, MacOS X, or IRIX, respectively.
41429
41430 2008-05-22  Bruno Haible  <bruno@clisp.org>
41431
41432         * lib/acl.h: Don't include <sys/acl.h>.
41433         (GETACLCNT): Move fallback to lib/acl-internal.h.
41434         * lib/acl-internal.h: Include <sys/acl.h> here.
41435         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41436
41437 2008-05-22  Bruno Haible  <bruno@clisp.org>
41438
41439         Split off copy_acl function to separate file.
41440         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41441         * lib/acl.c (copy_acl): Moved function to separate file.
41442         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41443         * modules/acl (Files): Add lib/copy-acl.c.
41444         (Makefiles.am): Augment lib_SOURCES.
41445
41446 2008-05-22  Bruno Haible  <bruno@clisp.org>
41447
41448         * modules/copy-file-tests: New file.
41449         * tests/test-copy-file.sh: New file.
41450         * tests/test-copy-file.c: New file.
41451         * tests/test-copy-file-sameacls.c: New file.
41452
41453 2008-05-22  Eric Blake  <ebb9@byu.net>
41454
41455         Avoid gcc warning.
41456         * tests/test-memcmp.c (main): Pass NULL indirectly.
41457
41458 2008-05-21  Bruno Haible  <bruno@clisp.org>
41459
41460         Add reference doc about ACLs.
41461         * doc/acl-resources.txt: New file.
41462         * doc/acl-cygwin.txt: New file.
41463
41464 2008-05-21  Bruno Haible  <bruno@clisp.org>
41465
41466         Avoid one more warning from gcc.
41467         * lib/vasnprintf.c (IF_LINT): Update comments.
41468         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41469
41470 2008-05-21  Jim Meyering  <meyering@redhat.com>
41471
41472         avoid a warning from gcc
41473         * lib/vasnprintf.c (IF_LINT): Define.
41474         (scale10_round_decimal_long_double):
41475         Use it to avoid a "may be used uninitialized" warning.
41476         (scale10_round_decimal_double): Likewise.
41477
41478 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41479
41480         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41481         declared.
41482
41483 2008-05-20  Bruno Haible  <bruno@clisp.org>
41484
41485         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41486         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41487
41488 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41489
41490         * modules/memcmp-tests: New file.
41491         * tests/test-memcmp.c: New file.
41492
41493 2008-05-19  Bruno Haible  <bruno@clisp.org>
41494
41495         * modules/propername (Notice, configure.ac): Put quoted "..." into
41496         --keyword option.
41497         * lib/propername.h: Update comments accordingly.
41498         Reported by Eric Blake.
41499
41500 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41501
41502         * modules/getpass-gnu (Depends-on): Add fseeko.
41503
41504 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41505
41506         * modules/base64-tests: New file.
41507
41508 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41509
41510         * lib/base64.c (base64_decode_ctx): If a decode context structure
41511         was passed in use it to ignore newlines.  If a context structure
41512         was _not_ passed in, continue to treat newlines as garbage (this
41513         is the historical behavior).  Formerly base64_decode.
41514         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41515         takes a decode context structure.
41516         * lib/base64.h (base64_decode): Macro for four-argument calls.
41517         (base64_decode_alloc): Likewise.
41518         * lib/base64.c (base64_decode_ctx): If a decode context structure
41519         was passed in use it to ignore newlines.  If a context structure
41520         was _not_ passed in, continue to treat newlines as garbage (this
41521         is the historical behavior).  Formerly base64_decode.
41522         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41523         takes a decode context structure.
41524         * lib/base64.h (base64_decode): Macro for four-argument calls.
41525         (base64_decode_alloc): Likewise.
41526
41527 2008-05-19  Jim Meyering  <meyering@redhat.com>
41528
41529         avoid a warning from gcc
41530         * lib/trim.c (IF_LINT): Define.
41531         (trim2): Use it to avoid a "may be used uninitialized" warning.
41532
41533         Fix doc typo.
41534         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41535
41536 2008-05-19  Bruno Haible  <bruno@clisp.org>
41537
41538         * doc/glibc-functions/getpass.texi: Document limits of other
41539         implementations.
41540
41541 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41542             Bruno Haible <bruno@clisp.org>
41543
41544         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41545
41546 2008-05-18  Bruno Haible  <bruno@clisp.org>
41547
41548         * modules/propername: New file, from GNU gettext.
41549         * lib/propername.h: New file, from GNU gettext.
41550         * lib/propername.c: New file, from GNU gettext.
41551         * MODULES.html.sh (Internationalization functions): Add propername.
41552
41553 2008-05-16  Jim Meyering  <meyering@redhat.com>
41554             Bruno Haible  <bruno@clisp.org>
41555
41556         Avoid some warnings from "gcc -Wshadow".
41557         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41558
41559 2008-05-15  Eric Blake  <ebb9@byu.net>
41560
41561         Extend previous patch to cygwin 1.7.0.
41562         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41563         fast implementation in cygwin >= 1.7.0.
41564         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41566
41567 2008-05-15  Bruno Haible  <bruno@clisp.org>
41568
41569         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41570         implementation in glibc >= 2.9.
41571         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41573
41574 2008-05-15  Bruno Haible  <bruno@clisp.org>
41575
41576         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41577         (Unicode string functions): Add unilbrk/*.
41578         Reported by Karl Berry.
41579
41580 2008-05-15  Eric Blake  <ebb9@byu.net>
41581
41582         Fix violation of <stdbool.h> replacement in regex.
41583         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41584         * lib/regexec.c (re_search_internal): Likewise.
41585         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41586
41587 2008-05-15  Jim Meyering  <meyering@redhat.com>
41588
41589         avoid distracting test output when git or cvs is not found
41590         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41591         * tests/test-vc-list-files-git.sh: Likewise.
41592
41593 2008-05-15  Eric Blake  <ebb9@byu.net>
41594
41595         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41596         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41597         glibc version.
41598         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41599         * doc/posix-functions/strstr.texi (strstr): Likewise.
41600         * lib/str-two-way.h (MAX): Sychronize with glibc.
41601
41602 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41603
41604         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41605         opr.ctx_type.
41606         (calc_first): Initialize constraint field.
41607         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41608         Fix grammar.
41609         (duplicate_node): Merge constraint field for all node types.
41610         (calc_eclosure_iter): Look at constraint field for all node types.
41611         * lib/regex_internal.c (create_cd_newstate): Don't look at
41612         opr.ctx_type.
41613
41614 2008-05-14  Bruno Haible  <bruno@clisp.org>
41615
41616         Help GCC to do better code generation.
41617         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41618         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41619         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41620         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41621         Declare with attribute 'malloc' if supported.
41622
41623 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41624
41625         use "echo STR|wc -c" rather than unportable "expr length STR"
41626         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41627         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41628
41629 2008-05-14  Jim Meyering  <meyering@redhat.com>
41630
41631         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41632         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41633         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41634         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41635         via Collin Lasse.
41636
41637 2008-05-14  Eric Blake  <ebb9@byu.net>
41638
41639         Avoid quadratic growth in gl_LIBSOURCES.
41640         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41641         Suggested by Bruno Haible.
41642
41643         Test xmemdup0.
41644         * modules/xmemdup0-tests: New file.
41645         * tests/test-xmemdup0.c: Likewise.
41646
41647 2008-05-13  Eric Blake  <ebb9@byu.net>
41648
41649         Split xmemdup0 into its own module.
41650         * modules/xmemdup0: New file.
41651         * lib/xmemdup0.h: Likewise.
41652         * lib/xmemdup0.c: Likewise.
41653         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41654         * lib/xalloc.h (xmemdup0): Remove.
41655         * lib/xmalloc.c (xmemdup0): Likewise.
41656
41657 2008-05-13  Eric Blake  <ebb9@byu.net>
41658             Bruno Haible  <bruno@clisp.org>
41659
41660         Reduce number of forks required during autoconf.
41661         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41662         and gl_LIBSOURCES_DIR.
41663         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41664         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41665         m4_syscmd per file.
41666         <m4_foreach_w>: Move...
41667         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41668
41669 2008-05-13  Eric Blake  <ebb9@byu.net>
41670
41671         * gnulib-tool: Fix various comment typos.
41672
41673 2008-05-12  Bruno Haible  <bruno@clisp.org>
41674
41675         Tailor the linebreaking algorithm.
41676         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41677
41678 2008-05-12  Bruno Haible  <bruno@clisp.org>
41679
41680         Update to Unicode 5.0.0.
41681         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41682         LBP_JV, LBP_JT. Redistribute values.
41683         (unilbrk_table): Change size.
41684         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41685         Unicode TR#14 rev. 22.
41686         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41687         LBP_JV, LBP_JT. Redistribute values.
41688         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41689         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41690         Update.
41691         * lib/unilbrk/lbrkprop1.h: Regenerated.
41692         * lib/unilbrk/lbrkprop2.h: Regenerated.
41693         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41694         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41695         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41696         Likewise.
41697         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41698         Likewise.
41699         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41700         result.
41701         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41702         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41703         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41704         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41705         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41706         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41707
41708 2008-05-11  Bruno Haible  <bruno@clisp.org>
41709
41710         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41711
41712 2008-05-11  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41715         * modules/unilbrk/gen-lbrk: New file.
41716
41717 2008-05-11  Bruno Haible  <bruno@clisp.org>
41718
41719         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41720         * m4/sha512.m4 (gl_SHA512): Likewise.
41721
41722 2008-05-11  Jim Meyering  <meyering@redhat.com>
41723
41724         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41725         * modules/crypto/sha256: New file.
41726         * modules/crypto/sha512: Likewise.
41727         * lib/sha256.c: Likewise.
41728         * lib/sha256.h: Likewise.
41729         * lib/sha512.c: Likewise.
41730         * lib/sha512.h: Likewise.
41731         * lib/u64.h: Likewise.
41732         * m4/sha256.m4: Likewise.
41733         * m4/sha512.m4: Likewise.
41734         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41735
41736 2008-05-10  Bruno Haible  <bruno@clisp.org>
41737
41738         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41739         (Input/Output <stdio.h>): Add xprintf.
41740         (Signal handling <signal.h>): Add strsignal.
41741         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41742         (Core language properties): Add func.
41743         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41744         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41745         strings.
41746         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41747         (Input/output): New section.
41748         (File system functions): Add openat-die, stat-macros.
41749         (Networking functions): Add sockets.
41750         (Unicode string functions): Add unictype/*.
41751         (Support for building libraries and executables): Add gperf.
41752         (Support for building documentation): Add agpl-3.0.
41753         (Misc): Add nocrash.
41754
41755 2008-05-10  Bruno Haible  <bruno@clisp.org>
41756
41757         * modules/unictype/gen-ctype: New file.
41758
41759 2008-05-10  Jim Meyering  <meyering@redhat.com>
41760
41761         Make chdir-safer.c more efficient on a system with no symlinks.
41762         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41763         also if ELOOP is zero.  Suggested by Bruno Haible.
41764
41765         Make chdir-safer.c slightly safer.
41766         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41767         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41768
41769         Avoid compile failure on systems without ELOOP (like mingw).
41770         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41771         Reported by Bruno Haible.
41772
41773 2008-05-10  Bruno Haible  <bruno@clisp.org>
41774
41775         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41776         (is_utf8_encoding): Use a case-insensitive comparison.
41777         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41778         streq.
41779
41780 2008-05-10  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41783         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41784         * lib/unilbrk/ulc-common.h (iconv_string_length,
41785         iconv_string_keeping_offsets): Remove declarations.
41786         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41787         Don't include <iconv.h>, streq.h, xsize.h.
41788         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41789         conversion.
41790         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41791         <iconv.h>, streq.h, xsize.h.
41792         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41793         conversion.
41794         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41795         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41796         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41797         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41798
41799 2008-05-10  Bruno Haible  <bruno@clisp.org>
41800
41801         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41802         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41803
41804         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41805         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41806
41807         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41808         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41809
41810         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41811         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41812
41813         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41814         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41815
41816         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41817         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41818
41819         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41820         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41821
41822         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41823         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41824
41825 2008-05-10  Bruno Haible  <bruno@clisp.org>
41826
41827         Split up 'linebreak' module.
41828         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41829         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41830         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41831         modifications.
41832         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41833         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41834         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41835         lib/linebreak.c.
41836         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41837         lib/linebreak.c.
41838         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41839         lib/linebreak.c.
41840         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41841         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41842         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41843         lib/linebreak.c.
41844         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41845         lib/linebreak.c.
41846         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41847         lib/linebreak.c.
41848         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41849         lib/linebreak.c.
41850         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41851         lib/linebreak.c.
41852         * modules/unilbrk/base: New file.
41853         * modules/unilbrk/tables: New file.
41854         * modules/unilbrk/u8-possible-linebreaks: New file.
41855         * modules/unilbrk/u16-possible-linebreaks: New file.
41856         * modules/unilbrk/u32-possible-linebreaks: New file.
41857         * modules/unilbrk/ulc-common: New file.
41858         * modules/unilbrk/ulc-possible-linebreaks: New file.
41859         * modules/unilbrk/u8-width-linebreaks: New file.
41860         * modules/unilbrk/u16-width-linebreaks: New file.
41861         * modules/unilbrk/u32-width-linebreaks: New file.
41862         * modules/unilbrk/ulc-width-linebreaks: New file.
41863         * lib/linebreak.h: Remove file.
41864         * lib/linebreak.c: Remove file.
41865         * m4/linebreak.m4: Remove file.
41866         * modules/linebreak: Remove file.
41867         * NEWS: Mention the changes.
41868
41869 2008-05-09  Eric Blake  <ebb9@byu.net>
41870
41871         Add xmemdup0.
41872         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41873         implementation.
41874         * lib/xmalloc.c (xmemdup0): New C implementation.
41875
41876 2008-05-08  Bruno Haible  <bruno@clisp.org>
41877
41878         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41879
41880 2008-05-07  Eric Blake  <ebb9@byu.net>
41881
41882         Support cross-compilation of <wctype.h>.
41883         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41884         AC_CACHE_CHECK.
41885
41886 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41887
41888         * build-aux/vc-list-files: Add support for bzr.
41889
41890 2008-05-03  Jim Meyering  <meyering@redhat.com>
41891
41892         avoid failed assertion with tight malloc
41893         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41894
41895 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41896
41897         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41898         are needed from arpa/inet.h.
41899         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41900         Reported by Bruno Haible.
41901
41902 2008-05-02  Jim Meyering  <meyering@redhat.com>
41903
41904         avoid compilation error on FreeBSD 6
41905         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41906
41907 2008-05-01  Jim Meyering  <meyering@redhat.com>
41908
41909         useless-if-before-free: correct --help's exit status description
41910         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41911         for one or more matches, etc.  Reported by Bruno Haible.
41912
41913         vc-list-files: make the stand-alone gnulib test work
41914         * modules/vc-list-files-tests (configure.ac):
41915         Define and AC_SUBST abs_aux_dir.
41916         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41917         $(abs_top_srcdir) to each script and having each of them
41918         duplicate the work of setting PATH, set PATH here, using
41919         the new variable, abs_aux_dir instead.
41920         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41921         * tests/test-vc-list-files-git.sh: Likewise.
41922         Reported by Bruno Haible.
41923
41924 2008-05-01  Bruno Haible  <bruno@clisp.org>
41925
41926         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41927         reallocation. Rename 'done' to 'found_delimiter'.
41928
41929 2008-05-01  Jim Meyering  <meyering@redhat.com>
41930
41931         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41932         * build-aux/vc-list-files: Use `...`, not $(...).
41933
41934 2008-04-30  Jim Meyering  <meyering@redhat.com>
41935
41936         add tests for vc-list-files
41937         * modules/vc-list-files-tests: New module.
41938         * tests/test-vc-list-files-cvs.sh: New file.
41939         * tests/test-vc-list-files-git.sh: New file.
41940
41941         avoid a warning from gcc
41942         * lib/getndelim2.c (IF_LINT): Define.
41943         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41944
41945         vc-list-files: work properly with build-aux/cvsu, too
41946         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41947         to all cvs-based clauses.
41948
41949         vc-list-files: work properly in the CVS+awk case, too
41950         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41951
41952         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41953         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41954         take more than one file argument, so .  Add quotes, just in case $dir
41955         ever contains a shell meta-character.  Prompted by Soren Hansen in
41956         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41957
41958 2008-04-29  Eric Blake  <ebb9@byu.net>
41959
41960         Optimize getndelim2 to use block operations when possible.
41961         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41962         freadseek, and memchr2.
41963         * lib/getndelim2.c (getndelim2): Use them for block reads.
41964
41965 2008-04-29  Bruno Haible  <bruno@clisp.org>
41966
41967         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41968         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41969         * modules/inet_ntop (Depends-on): Add extensions.
41970         * modules/inet_pton (Depends-on): Likewise.
41971         Reported by Simon Josefsson.
41972
41973 2008-04-29  Jim Meyering  <meyering@redhat.com>
41974
41975         When the is more than one match in a block, match all of them.
41976         * build-aux/useless-if-before-free: Iterate through each block
41977         until there are no more matches.
41978
41979         Fix broken useless-if-before-free script.
41980         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41981         the expression to match cast of argument to free-like function.
41982
41983 2008-04-29  Eric Blake  <ebb9@byu.net>
41984
41985         Use new header.
41986         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41987
41988 2008-04-29  Jim Meyering  <meyering@redhat.com>
41989
41990         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41991         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41992         by gnulib to exist and to declare e.g., inet_ntop.
41993         Don't include "inet_ntop.h", now removed.
41994
41995         * m4/arpa_inet_h.m4: Remove trailing blanks.
41996
41997 2008-04-29  Eric Blake  <ebb9@byu.net>
41998
41999         Silence valgrind on safe reads beyond potential array bounds.
42000         * lib/rawmemchr.valgrind: New file.
42001         * lib/strchrnul.valgrind: Likewise.
42002         * modules/rawmemchr (Files): Distribute new file.
42003         * modules/strchrnul (Files): Likewise.
42004         Suggested by Bruno Haible.
42005
42006 2008-04-29  Bruno Haible  <bruno@clisp.org>
42007
42008         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42009         (inet_ntop, inet_pton): Change portability warning's wording.
42010         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42011         Invoke gl_CHECK_NEXT_HEADERS.
42012         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42013         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42014         set ARPA_INET_H.
42015         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42016         * modules/arpa_inet (Description): No longer only for systems that
42017         lack it.
42018         (Depends-on): Add include_next.
42019         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42020         HAVE_ARPA_INET_H.
42021
42022 2008-04-29  Jim Meyering  <meyering@redhat.com>
42023
42024         * modules/mkdir (License): Re-license as LGPLv2+.
42025
42026 2008-04-29  Bruno Haible  <bruno@clisp.org>
42027
42028         * modules/rawmemchr (Maintainer): Set to Eric.
42029         * modules/strchrnul (Maintainer): Likewise.
42030
42031 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42032
42033         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42034         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42035
42036         * modules/arpa_inet (arpa/inet.h): Use them.
42037
42038 2008-04-28  Eric Blake  <ebb9@byu.net>
42039
42040         Test getndelim2.
42041         * modules/getndelim2-tests: New file.
42042         * tests/test-getndelim2.c: Likewise.
42043         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42044         stream.
42045         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42046
42047         * MODULES.html.sh: Document new module.
42048
42049 2008-04-20  Bruno Haible  <bruno@clisp.org>
42050
42051         * lib/c-stack.c (die): Use raise.
42052         * modules/c-stack (Depends-on): Add raise.
42053
42054 2008-04-28  Bruno Haible  <bruno@clisp.org>
42055
42056         Expect rpmatch to be declared.
42057         * lib/yesno.c (rpmatch): Remove declaration.
42058
42059         Declare rpmatch.
42060         * lib/stdlib.in.h (rpmatch): New declaration.
42061         * lib/rpmatch.c: Include <stdlib.h> first.
42062         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42063         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42065         HAVE_RPMATCH.
42066         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42067         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42068         (Include): Set to <stdlib.h>.
42069         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42070         HAVE_RPMATCH.
42071         * NEWS: Document the change.
42072
42073 2008-04-28  Bruno Haible  <bruno@clisp.org>
42074
42075         Change rpmatch to use nl_langinfo when appropriate.
42076         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42077         (N_): New macro.
42078         (localized_pattern): New function/macro.
42079         (try): Remove match, nomatch arguments. Copy the pattern into safe
42080         memory before caching it.
42081         (rpmatch): Use localized_pattern. Add translator comments.
42082         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42083         Suggested by Eric Blake.
42084         * modules/rpmatch (Depends-on): Add stdbool.
42085
42086 2008-04-28  Eric Blake  <ebb9@byu.net>
42087
42088         Add rawmemchr module, matching glibc.
42089         * modules/string (Makefile.am): New indicator.
42090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42091         * lib/string.in.h (rawmemchr): Declare when appropriate.
42092         * modules/rawmemchr: New file.
42093         * m4/rawmemchr.m4: Likewise.
42094         * lib/rawmemchr.c: Likewise.
42095         * modules/rawmemchr-tests: Likewise.
42096         * tests/test-rawmemchr.c: Likewise.
42097         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42098         module.
42099         * modules/strchrnul (Depends-on): Add rawmemchr.
42100         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42101
42102         Whitespace cleanup.
42103         * tests/test-strchrnul.c: Reindent.
42104         * lib/strchrnul.c: Likewise.
42105
42106         Optimize and test strchrnul.
42107         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42108         * modules/strchrnul-tests: New file.
42109         * tests/test-strchrnul.c: Likewise.
42110
42111         Remove intprops dependency.
42112         * modules/memchr (Depends-on): Remove intprops.
42113         * modules/memrchr (Depends-on): Likewise.
42114         * modules/memchr2 (Depends-on): Likewise.
42115         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42116         * lib/memrchr.c (__memrchr): Likewise.
42117         * lib/memrchr2.c (memchr2): Likewise.
42118         Reported by Simon Josefsson.
42119
42120 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42121
42122         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42123         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42124
42125 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42126
42127         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42128
42129         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42130
42131         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42132
42133         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42134         declarations.
42135         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42136
42137         * m4/inet_pton.m4: Don't check for header files.
42138
42139         * m4/inet_ntop.m4: Don't check for header files.
42140
42141 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42142
42143         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42144         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42145         trigger for cygwin).
42146         Reported by Bruno Haible  <bruno@clisp.org>.
42147
42148 2008-04-28  Bruno Haible  <bruno@clisp.org>
42149
42150         * doc/posix-functions/strdup.texi: Mention mingw problem.
42151
42152 2008-04-27  Bruno Haible  <bruno@clisp.org>
42153
42154         * modules/stat-time-tests (Depends-on): Add sleep.
42155         * tests/test-stat-time.c (force_unlink): New function.
42156         (cleanup): Use it.
42157         (test_mtime): Remove the ctime related tests.
42158         (test_ctime): New function, containing the ctime related tests.
42159         (main): Call test_ctime, except on native Windows platforms.
42160
42161 2008-04-27  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/rpmatch.c (rpmatch): Add some comments.
42164         Reported by James Youngman <jay@gnu.org>.
42165
42166 2008-04-27  Bruno Haible  <bruno@clisp.org>
42167
42168         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42169         quiet NaNs.
42170
42171 2008-04-27  Bruno Haible  <bruno@clisp.org>
42172
42173         Make test-yesno.sh work on mingw.
42174         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42175         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42176         (main): Set stdin to binary mode.
42177         * modules/yesno-tests (Depends-on): Add binary-io.
42178
42179 2008-04-27  Bruno Haible  <bruno@clisp.org>
42180
42181         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42182         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42183         argument that lie outside the IEEE 854 domain.
42184         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42185         (gl_ISFINITE): Use it.
42186         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42187
42188 2008-04-27  Bruno Haible  <bruno@clisp.org>
42189
42190         Allow local renaming in config.h.
42191         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42192
42193 2008-04-27  Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/memchr.c (__memchr): Change type of 'i'.
42196         * lib/memchr2.c (memchr2): Likewise.
42197
42198 2008-04-26  Eric Blake  <ebb9@byu.net>
42199         and Bruno Haible  <bruno@clisp.org>
42200
42201         Optimize and test memrchr.
42202         * modules/memrchr (Depends-on): Add intprops.
42203         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42204         * modules/memrchr-tests: New file.
42205         * tests/test-memrchr.c: New file.
42206
42207 2008-04-26  Bruno Haible  <bruno@clisp.org>
42208
42209         Add tentative support for DragonFly BSD.
42210         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42211         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42212         fp.
42213         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42214         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42215         * lib/fpurge.c (fpurge): Likewise.
42216         * lib/freadable.c (freaadable): Likewise.
42217         * lib/freadahead.c (freadahead): Likewise.
42218         * lib/freading.c (freading): Likewise.
42219         * lib/freadptr.c (freadptr): Likewise.
42220         * lib/freadseek.c (freadptrinc): Likewise.
42221         * lib/fseeko.c (fseeko): Likewise.
42222         * lib/fseterr.c (fseterr): Likewise.
42223         * lib/fwritable.c (fwritable): Likewise.
42224         * lib/fwriting.c (fwriting): Likewise.
42225
42226 2008-04-26  Bruno Haible  <bruno@clisp.org>
42227
42228         * lib/stdio-impl.h: New file.
42229         * lib/fbufmode.c: Include stdio-impl.h.
42230         (fbufmode): Use fp_, remove redundant #defines.
42231         * lib/fflush.c: Include stdio-impl.h.
42232         (clear_ungetc_buffer): Remove redundant #defines.
42233         * lib/fpurge.c: Include stdio-impl.h.
42234         (fpurge): Remove redundant #defines.
42235         * lib/freadable.c: Include stdio-impl.h.
42236         (freadable): Remove redundant #defines.
42237         * lib/freadahead.c: Include stdio-impl.h.
42238         (freadahead): Remove redundant #defines.
42239         * lib/freading.c: Include stdio-impl.h.
42240         (freading): Remove redundant #defines.
42241         * lib/freadptr.c: Include stdio-impl.h.
42242         (freadptr): Remove redundant #defines.
42243         * lib/freadseek.c: Include stdio-impl.h.
42244         (freadptrinc): Remove redundant #defines.
42245         * lib/fseeko.c: Include stdio-impl.h.
42246         (rpl_fseeko): Remove redundant #defines.
42247         * lib/fseterr.c: Include stdio-impl.h.
42248         (fseterr): Remove redundant #defines.
42249         * lib/fwritable.c: Include stdio-impl.h.
42250         (fwritable: Remove redundant #defines.
42251         * lib/fwriting.c: Include stdio-impl.h.
42252         (fwriting): Remove redundant #defines.
42253         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42254         * modules/fflush (Files): Likewise.
42255         * modules/fpurge (Files): Likewise.
42256         * modules/freadable (Files): Likewise.
42257         * modules/freadahead (Files): Likewise.
42258         * modules/freading (Files): Likewise.
42259         * modules/freadptr (Files): Likewise.
42260         * modules/freadseek (Files): Likewise.
42261         * modules/fseeko (Files): Likewise.
42262         * modules/fseterr (Files): Likewise.
42263         * modules/fwritable (Files): Likewise.
42264         * modules/fwriting (Files): Likewise.
42265
42266 2008-04-26  Bruno Haible  <bruno@clisp.org>
42267
42268         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42269         restore_seek_optimization, update_fpos_cache): New functions, extracted
42270         from rpl_fflush.
42271         (rpl_fflush): Use them.
42272         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42273         (gl_REPLACE_FFLUSH): Use it.
42274
42275 2008-04-26  Bruno Haible  <bruno@clisp.org>
42276
42277         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42278         on Solaris.
42279         * tests/test-xstrtoimax.sh: Likewise.
42280         * tests/test-xstrtoumax.sh: Likewise.
42281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42282
42283 2008-04-26  Bruno Haible  <bruno@clisp.org>
42284
42285         * modules/memchr-tests: New file.
42286         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42287
42288 2008-04-26  Eric Blake  <ebb9@byu.net>
42289             Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/memchr.c: Include intprops.h.
42292         (__memchr): Optimize parallel detection of matching bytes. Rename local
42293         variables. Add explanatory comments.
42294
42295 2008-04-26  Bruno Haible  <bruno@clisp.org>
42296
42297         Fix module 'memchr', broken since 2000-10-28.
42298         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42299
42300 2008-04-26  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42303         comments.
42304
42305 2008-04-25  Eric Blake  <ebb9@byu.net>
42306
42307         Use native fstatat on cygwin 1.7.0.
42308         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42309         first.
42310
42311 2008-04-23  Eric Blake  <ebb9@byu.net>
42312
42313         Improve memchr2 performance.
42314         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42315         NUL bytes.
42316         * modules/memchr2 (Depends-on): Use intprops.h.
42317
42318 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42319
42320         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42321         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42322         <blp@cs.stanford.edu>.
42323
42324 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42325
42326         * lib/arpa_inet.in.h: New file.
42327
42328         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42329         (Makefile.am): Sed in substitute header file.
42330
42331         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42332         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42333
42334         * modules/inet_ntop (configure.ac): Use
42335         gl_ARPA_INET_MODULE_INDICATOR.
42336
42337         * modules/inet_pton (configure.ac): Use
42338         gl_ARPA_INET_MODULE_INDICATOR.
42339
42340 2008-04-22  Jim Meyering  <meyering@redhat.com>
42341
42342         * modules/verify (License): Re-license as LGPLv2+.
42343
42344 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42345
42346         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42347         parameter to void* as per POSIX standard (MinGW uses char*).
42348
42349 2008-04-21  Bruno Haible  <bruno@clisp.org>
42350
42351         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42352         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42353         Define to replacements if REPLACE_ISWCNTRL is 1.
42354         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42355         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42356         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42357         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42358         what it fixes.
42359         * doc/posix-functions/iswalpha.texi: Likewise.
42360         * doc/posix-functions/iswblank.texi: Likewise.
42361         * doc/posix-functions/iswcntrl.texi: Likewise.
42362         * doc/posix-functions/iswdigit.texi: Likewise.
42363         * doc/posix-functions/iswgraph.texi: Likewise.
42364         * doc/posix-functions/iswlower.texi: Likewise.
42365         * doc/posix-functions/iswprint.texi: Likewise.
42366         * doc/posix-functions/iswpunct.texi: Likewise.
42367         * doc/posix-functions/iswspace.texi: Likewise.
42368         * doc/posix-functions/iswupper.texi: Likewise.
42369         * doc/posix-functions/iswxdigit.texi: Likewise.
42370         Reported by Alain Guibert.
42371
42372 2008-04-21  Bruno Haible  <bruno@clisp.org>
42373
42374         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42375         Patch by Alain Guibert.
42376
42377 2008-04-21  Bruno Haible  <bruno@clisp.org>
42378
42379         Fix test failures on mingw.
42380         * tests/test-xstrtol.c (print_no_progname): New function.
42381         (main): Install it in error_print_progname hook.
42382         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42383         * tests/test-xstrtoimax.sh: Likewise.
42384         * tests/test-xstrtoumax.sh: Likewise.
42385
42386 2008-04-21  Bruno Haible  <bruno@clisp.org>
42387
42388         Fix test failure on mingw.
42389         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42390
42391 2008-04-21  Bruno Haible  <bruno@clisp.org>
42392
42393         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42394         Actually assign a value.
42395
42396 2008-04-20  Bruno Haible  <bruno@clisp.org>
42397
42398         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42399         take 2.
42400         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42401         'canonicalize-lgpl' module is also used.
42402         * lib/canonicalize-lgpl.c: Undo last change.
42403         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42404
42405 2008-04-20  Bruno Haible  <bruno@clisp.org>
42406
42407         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42408         config.h. Provide _mkdir based fallback for mingw.
42409         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42410         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42411         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42412         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42413         rather than defining mkdir in config.h.
42414         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42415         (gl_SYS_STAT_H_DEFAULTS): New macro.
42416         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42417         HAVE_IO_H any more.
42418         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42419         HAVE_DECL_MKDIR and HAVE_IO_H.
42420
42421 2008-04-20  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/isapipe.c: Port to native Windows platforms.
42424
42425 2008-04-20  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42428
42429 2008-04-21  Eric Blake  <ebb9@byu.net>
42430
42431         Work around preprocessors that don't handle UINTMAX_MAX.
42432         * lib/memchr2.c (memchr2): Avoid embedded #if.
42433         Reported by Alain Guibert, fix suggested by Bruno Haible.
42434
42435 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42436
42437         * doc/posix-functions/strftime.texi (strftime): Explain better
42438         Windows incompatibility.  Suggested by Micah Cowan
42439         <micah@cowan.name>.
42440
42441 2008-04-20  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42444         unistr/u8-mblen.
42445
42446 2008-04-20  Bruno Haible  <bruno@clisp.org>
42447
42448         Fix test failure on platforms with non-GNU iconv.
42449         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42450         (U_TO_U8): Use it, rather than u16_to_u8.
42451         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42452         units at the end of the input string.
42453         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42454
42455 2008-04-20  Bruno Haible  <bruno@clisp.org>
42456
42457         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42458         when the resulting length is 0.
42459         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42460
42461 2008-04-20  Bruno Haible  <bruno@clisp.org>
42462
42463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42464         works.
42465         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42466
42467 2008-04-20  Bruno Haible  <bruno@clisp.org>
42468
42469         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42470         * modules/tsearch-tests (configure.ac): Test for initstate function.
42471
42472 2008-04-20  Bruno Haible  <bruno@clisp.org>
42473
42474         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42475         for nlink_t if missing.
42476         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42477
42478 2008-04-19  Bruno Haible  <bruno@clisp.org>
42479
42480         Work around snprintf bug on Linux libc5.
42481         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42483         gl_SNPRINTF_SIZE1.
42484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42485         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42486         that test failed.
42487         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42488         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42489         * modules/snprintf (Files): Add m4/printf.m4.
42490         * modules/vsnprintf (Files): Likewise.
42491         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42492         * doc/posix-functions/vsnprintf.texi: Likewise.
42493
42494 2008-04-19  Bruno Haible  <bruno@clisp.org>
42495
42496         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42497         from 0.0058 to less than 10^-7.
42498
42499 2008-04-19  Bruno Haible  <bruno@clisp.org>
42500
42501         Fix rounding when a precision is given.
42502         * lib/vasnprintf.c (is_borderline): New function.
42503         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42504         9...9x.
42505         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42506         %e, %g.
42507         * tests/test-vasprintf-posix.c (test_function): Likewise.
42508         * tests/test-snprintf-posix.h (test_function): Likewise.
42509         * tests/test-sprintf-posix.h (test_function): Likewise.
42510         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42511         * tests/test-printf-posix.h (test_function): Likewise.
42512         * tests/test-printf-posix.output: Update.
42513         Reported by John Darrington <john@darrington.wattle.id.au> via
42514         Ben Pfaff <blp@cs.stanford.edu>.
42515
42516 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42517
42518         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42519         Suggested by Bruno Haible <bruno@clisp.org>.
42520
42521 2008-04-17  Bruno Haible  <bruno@clisp.org>
42522
42523         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42524         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42525         implementation.
42526         Patch by Bruce Merry <bmerry@gmail.com>.
42527
42528 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42529
42530         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42531         doesn't work under Windows.
42532
42533 2008-04-16  Bruno Haible  <bruno@clisp.org>
42534
42535         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42536         New macros.
42537         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42538         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42539         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42540         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42541         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42542         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42543         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42544         macros.
42545         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42546         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42547         Northern Sotho, Uighur.
42548
42549 2008-04-16  Bruno Haible  <bruno@clisp.org>
42550
42551         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42552         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42553         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42554         Reported by Daniel Bergström <daniel@octocode.com>.
42555
42556 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42557             Bruno Haible  <bruno@clisp.org>
42558
42559         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42560         function.
42561         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42562         New functions, mostly extracted from gl_locale_name_default.
42563         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42564
42565 2008-04-16  Eric Blake  <ebb9@byu.net>
42566
42567         Adjust strtod detection to catch glibc 2.7 bug.
42568         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42569         Reported by John Gatewood Ham.
42570
42571 2008-04-16  Bruno Haible  <bruno@clisp.org>
42572
42573         Add tentative support for Linux libc5.
42574         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42575         * lib/fpurge.c (fpurge): Likewise.
42576         * lib/freadable.c (freadable): Likewise.
42577         * lib/freadahead.c (freadahead): Likewise.
42578         * lib/freading.c (freading): Likewise.
42579         * lib/freadptr.c (freadptr): Likewise.
42580         * lib/freadseek.c (freadptrinc): Likewise.
42581         * lib/fseeko.c (rpl_fseeko): Likewise.
42582         * lib/fseterr.c (fseterr): Likewise.
42583         * lib/fwritable.c (fwritable): Likewise.
42584         * lib/fwriting.c (fwriting): Likewise.
42585         Reported by Alain Guibert <alguibert+bts@free.fr>.
42586
42587 2008-04-15  Bruno Haible  <bruno@clisp.org>
42588
42589         * modules/mathl (configure.ac): Define module indicator.
42590
42591 2008-04-15  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/logl.c (logl): Remove unused variables.
42594
42595 2008-04-15  Bruno Haible  <bruno@clisp.org>
42596
42597         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42598         fails.
42599
42600 2008-04-15  Bruno Haible  <bruno@clisp.org>
42601
42602         * lib/trim.c (trim2): Fix argument of isspace() macro.
42603
42604 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42605
42606         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42607         to 0.
42608         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42609
42610 2008-04-14  Bruno Haible  <bruno@clisp.org>
42611
42612         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42613         AC_LANG_PROGRAM argument.
42614         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42615         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42617         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42618         * m4/math_h.m4 (gl_MATH_H): Likewise.
42619         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42620         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42621         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42622         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42623         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42624         * m4/regex.m4 (gl_REGEX): Likewise.
42625         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42626         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42628         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42629         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42630         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42632         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42633
42634 2008-04-14  Jim Meyering  <meyering@redhat.com>
42635
42636         test-strtod: fix typos: s/abs/fabs/
42637         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42638
42639 2008-04-13  Bruno Haible  <bruno@clisp.org>
42640
42641         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42642         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42643         module is also used and while not building the reloc-wrapper.
42644
42645 2008-04-13  Bruno Haible  <bruno@clisp.org>
42646
42647         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42648
42649 2008-04-13  Bruno Haible  <bruno@clisp.org>
42650
42651         Fix AIX compilation failure introduced on 2008-04-02.
42652         * tests/test-frexp.c (exp): Undefine before redefining.
42653         * tests/test-frexpl.c (exp): Likewise.
42654
42655 2008-04-13  Bruno Haible  <bruno@clisp.org>
42656
42657         Work around a HP-UX stdio bug.
42658         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42659         * tests/test-ftello.c (main): Likewise.
42660         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42661         * doc/posix-functions/ftello.texi: Likewise.
42662
42663 2008-04-13  Bruno Haible  <bruno@clisp.org>
42664
42665         Make test-signbit pass on HP-UX/hppa.
42666         * tests/test-signbit.c (minus_zerol): New variable.
42667         (test_signbitl): Use it.
42668
42669 2008-04-13  Bruno Haible  <bruno@clisp.org>
42670
42671         Make truncl work on OSF/1 4.0.
42672         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42673         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42674         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42676         HAVE_DECL_TRUNCL.
42677         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42678         HAVE_DECL_TRUNCL.
42679         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42680
42681 2008-04-13  Bruno Haible  <bruno@clisp.org>
42682
42683         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42684
42685 2008-04-13  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42688         expression, so as to avoid HP-UX 11 cc compiler bug.
42689
42690 2008-04-13  Bruno Haible  <bruno@clisp.org>
42691
42692         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42693
42694 2008-04-13  Bruno Haible  <bruno@clisp.org>
42695
42696         * lib/git-merge-changelog.c: Remove empty declaration outside of
42697         functions.
42698
42699 2008-04-13  Bruno Haible  <bruno@clisp.org>
42700
42701         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42702
42703 2008-04-13  Bruno Haible  <bruno@clisp.org>
42704
42705         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42706         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42708         also if it exists but lacks definitions of the SHUT_* macros.
42709         * modules/sys_socket (Description): Update.
42710         Reported by Elbert Pol <e.pol@chello.nl>.
42711
42712 2008-04-13  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/localcharset.c (OS2): Don't redefine if already defined.
42715         Reported by Elbert Pol <e.pol@chello.nl>.
42716
42717 2008-04-13  Bruno Haible  <bruno@clisp.org>
42718
42719         * lib/binary-io.h [__EMX__]: Include <io.h>.
42720         Reported by Elbert Pol <e.pol@chello.nl>.
42721
42722 2008-04-12  Bruno Haible  <bruno@clisp.org>
42723
42724         * lib/fpucw.h: Enable the definitions also for x86_64.
42725         Needed for NetBSD/x86_64.
42726         Reported by Thomas Klausner <tk@giga.or.at>.
42727
42728 2008-04-12  Bruno Haible  <bruno@clisp.org>
42729
42730         * tests/test-strtod.c: Include isnand.h.
42731         (main): Use isnand instead of isnan.
42732         Reported by Jim Meyering.
42733
42734 2008-04-12  Bruno Haible  <bruno@clisp.org>
42735
42736         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42737         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42738
42739 2008-04-12  Jim Meyering  <meyering@redhat.com>
42740
42741         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42742
42743 2008-04-12  Bruno Haible  <bruno@clisp.org>
42744
42745         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42746         Reported by Elbert Pol <e.pol@chello.nl>.
42747
42748 2008-04-12  Eric Blake  <ebb9@byu.net>
42749
42750         Work around Solaris 10 math.h bug.
42751         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42752         (gl_MATH_H_DEFAULTS): Set up default.
42753         * modules/math (Makefile.am): Replace new indicators.
42754         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42755         * tests/test-math.c (main): Test this.
42756         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42757         * doc/posix-headers/math.texi (math.h): Mention bug.
42758         Reported by Nelson H. F. Beebe and Jim Meyering.
42759
42760 2008-04-11  Bruno Haible  <bruno@clisp.org>
42761
42762         Adapt to future versions of Apple GCC.
42763         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42764         Reported by Peter O'Gorman <peter@pogma.com>.
42765
42766 2008-04-11  Bruno Haible  <bruno@clisp.org>
42767
42768         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42769
42770 2008-04-11  Bruno Haible  <bruno@clisp.org>
42771
42772         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42773
42774         * modules/getaddrinfo-tests (Makefile.am): Define
42775         test_getaddrinfo_LDADD.
42776
42777 2008-04-11  Bruno Haible  <bruno@clisp.org>
42778
42779         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42780         (init): Fix syntax error.
42781         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42782         is declared.
42783
42784 2008-04-11  Bruno Haible  <bruno@clisp.org>
42785
42786         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42787         * modules/glob (Depends-on): Add stdbool.
42788
42789 2008-04-11  Bruno Haible  <bruno@clisp.org>
42790
42791         * lib/trim.c: Include <string.h>.
42792
42793 2008-04-11  Eric Blake  <ebb9@byu.net>
42794
42795         Avoid compile failure on OS/2.
42796         * lib/regex_internal.h (internal_function): Disable optimization
42797         on OS/2 (__EMX__), where it caused compiler error.
42798         Reported by Elbert Pol.
42799
42800 2008-04-11  Bruno Haible  <bruno@clisp.org>
42801
42802         Flush the standard error stream before aborting. Needed on mingw.
42803         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42804         * tests/test-array_list.c (ASSERT): Likewise.
42805         * tests/test-array_oset.c (ASSERT): Likewise.
42806         * tests/test-avltree_list.c (ASSERT): Likewise.
42807         * tests/test-avltree_oset.c (ASSERT): Likewise.
42808         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42809         * tests/test-binary-io.c (ASSERT): Likewise.
42810         * tests/test-byteswap.c (ASSERT): Likewise.
42811         * tests/test-c-ctype.c (ASSERT): Likewise.
42812         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42813         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42814         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42815         * tests/test-c-strstr.c (ASSERT): Likewise.
42816         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42817         * tests/test-canonicalize.c (ASSERT): Likewise.
42818         * tests/test-carray_list.c (ASSERT): Likewise.
42819         * tests/test-ceilf1.c (ASSERT): Likewise.
42820         * tests/test-ceilf2.c (ASSERT): Likewise.
42821         * tests/test-ceill.c (ASSERT): Likewise.
42822         * tests/test-count-one-bits.c (ASSERT): Likewise.
42823         * tests/test-fbufmode.c (ASSERT): Likewise.
42824         * tests/test-fflush2.c (ASSERT): Likewise.
42825         * tests/test-floorf1.c (ASSERT): Likewise.
42826         * tests/test-floorf2.c (ASSERT): Likewise.
42827         * tests/test-floorl.c (ASSERT): Likewise.
42828         * tests/test-fopen.c (ASSERT): Likewise.
42829         * tests/test-fpending.c (ASSERT): Likewise.
42830         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42831         * tests/test-fpurge.c (ASSERT): Likewise.
42832         * tests/test-freadable.c (ASSERT): Likewise.
42833         * tests/test-freadahead.c (ASSERT): Likewise.
42834         * tests/test-freading.c (ASSERT): Likewise.
42835         * tests/test-freadptr.c (ASSERT): Likewise.
42836         * tests/test-freadptr2.c (ASSERT): Likewise.
42837         * tests/test-freadseek.c (ASSERT): Likewise.
42838         * tests/test-freopen.c (ASSERT): Likewise.
42839         * tests/test-frexp.c (ASSERT): Likewise.
42840         * tests/test-frexpl.c (ASSERT): Likewise.
42841         * tests/test-fseek.c (ASSERT): Likewise.
42842         * tests/test-fseeko.c (ASSERT): Likewise.
42843         * tests/test-fstrcmp.c (ASSERT): Likewise.
42844         * tests/test-ftell.c (ASSERT): Likewise.
42845         * tests/test-ftello.c (ASSERT): Likewise.
42846         * tests/test-func.c (ASSERT): Likewise.
42847         * tests/test-fwritable.c (ASSERT): Likewise.
42848         * tests/test-fwriting.c (ASSERT): Likewise.
42849         * tests/test-getdelim.c (ASSERT): Likewise.
42850         * tests/test-getline.c (ASSERT): Likewise.
42851         * tests/test-i-ring.c (ASSERT): Likewise.
42852         * tests/test-iconv-utf.c (ASSERT): Likewise.
42853         * tests/test-iconv.c (ASSERT): Likewise.
42854         * tests/test-isfinite.c (ASSERT): Likewise.
42855         * tests/test-isnand.c (ASSERT): Likewise.
42856         * tests/test-isnanf.c (ASSERT): Likewise.
42857         * tests/test-isnanl.h (ASSERT): Likewise.
42858         * tests/test-ldexpl.c (ASSERT): Likewise.
42859         * tests/test-linked_list.c (ASSERT): Likewise.
42860         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42861         * tests/test-localename.c (ASSERT): Likewise.
42862         * tests/test-lseek.c (ASSERT): Likewise.
42863         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42864         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42865         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42866         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42867         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42868         * tests/test-mbschr.c (ASSERT): Likewise.
42869         * tests/test-mbscspn.c (ASSERT): Likewise.
42870         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42871         * tests/test-mbspbrk.c (ASSERT): Likewise.
42872         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42873         * tests/test-mbsrchr.c (ASSERT): Likewise.
42874         * tests/test-mbsspn.c (ASSERT): Likewise.
42875         * tests/test-mbsstr1.c (ASSERT): Likewise.
42876         * tests/test-mbsstr2.c (ASSERT): Likewise.
42877         * tests/test-mbsstr3.c (ASSERT): Likewise.
42878         * tests/test-memchr2.c (ASSERT): Likewise.
42879         * tests/test-memmem.c (ASSERT): Likewise.
42880         * tests/test-open.c (ASSERT): Likewise.
42881         * tests/test-printf-frexp.c (ASSERT): Likewise.
42882         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42883         * tests/test-printf-posix.c (ASSERT): Likewise.
42884         * tests/test-quotearg.c (ASSERT): Likewise.
42885         * tests/test-rbtree_list.c (ASSERT): Likewise.
42886         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42887         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42888         * tests/test-round1.c (ASSERT): Likewise.
42889         * tests/test-roundf1.c (ASSERT): Likewise.
42890         * tests/test-roundl.c (ASSERT): Likewise.
42891         * tests/test-signbit.c (ASSERT): Likewise.
42892         * tests/test-sleep.c (ASSERT): Likewise.
42893         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42894         * tests/test-snprintf.c (ASSERT): Likewise.
42895         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42896         * tests/test-stat-time.c (ASSERT): Likewise.
42897         * tests/test-strcasestr.c (ASSERT): Likewise.
42898         * tests/test-strerror.c (ASSERT): Likewise.
42899         * tests/test-striconv.c (ASSERT): Likewise.
42900         * tests/test-striconveh.c (ASSERT): Likewise.
42901         * tests/test-striconveha.c (ASSERT): Likewise.
42902         * tests/test-strsignal.c (ASSERT): Likewise.
42903         * tests/test-strstr.c (ASSERT): Likewise.
42904         * tests/test-strtod.c (ASSERT): Likewise.
42905         * tests/test-trunc1.c (ASSERT): Likewise.
42906         * tests/test-trunc2.c (ASSERT): Likewise.
42907         * tests/test-truncf1.c (ASSERT): Likewise.
42908         * tests/test-truncf2.c (ASSERT): Likewise.
42909         * tests/test-truncl.c (ASSERT): Likewise.
42910         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42911         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42912         * tests/test-vasnprintf.c (ASSERT): Likewise.
42913         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42914         * tests/test-vasprintf.c (ASSERT): Likewise.
42915         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42916         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42917         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42918         * tests/test-vsnprintf.c (ASSERT): Likewise.
42919         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42920         * tests/test-wcwidth.c (ASSERT): Likewise.
42921         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42922         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42923         * tests/test-xvasprintf.c (ASSERT): Likewise.
42924         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42925         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42926         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42927         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42928         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42929         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42930         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42931         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42932         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42933         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42934         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42935         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42936         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42937         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42938         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42939         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42940         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42941         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42942         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42943         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42944         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42945         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42946         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42947         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42948         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42949         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42950         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42951         * tests/unictype/test-combining.c (ASSERT): Likewise.
42952         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42953         * tests/unictype/test-digit.c (ASSERT): Likewise.
42954         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42955         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42956         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42957         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42958         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42959         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42960         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42961         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42962         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42963         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42964         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42965         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42966         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42967         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42968         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42969         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42970         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42971         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42972         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42973         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42974         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42975         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42976         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42977         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42978         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42979         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42980         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42981         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42982         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42983         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42984         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42985         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42986         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42987         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42988         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42989         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42990         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42991         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42992         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42993         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42994         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42995         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42996         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42997         Reported by Eric Blake.
42998
42999 2008-04-11  Bruno Haible  <bruno@clisp.org>
43000
43001         * lib/wchar.in.h: Tweak comment.
43002
43003 2008-04-11  Bruno Haible  <bruno@clisp.org>
43004
43005         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43006         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43007         gl_COMMON.
43008         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43009
43010 2008-04-11  Bruno Haible  <bruno@clisp.org>
43011
43012         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43013
43014 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43015
43016         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43017         of attempting to use non-existing /dev/*random.  Based on patch
43018         from Adam Strzelecki <ono@java.pl> in
43019         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43020
43021 2008-04-08  Bruno Haible  <bruno@clisp.org>
43022
43023         Add tentative support for emx+gcc.
43024         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43025         * lib/fpurge.c (fpurge): Likewise.
43026         * lib/freadable.c (freadable): Likewise.
43027         * lib/freadahead.c (freadahead): Likewise.
43028         * lib/freading.c (freading): Likewise.
43029         * lib/freadptr.c (freadptr): Likewise.
43030         * lib/freadseek.c (freadptrinc): Likewise.
43031         * lib/fseeko.c (rpl_fseeko): Likewise.
43032         * lib/fseterr.c (fseterr): Likewise.
43033         * lib/fwritable.c (fwritable): Likewise.
43034         * lib/fwriting.c (fwriting): Likewise.
43035         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43036
43037 2008-04-09  Eric Blake  <ebb9@byu.net>
43038
43039         Avoid some autoconf warnings.
43040         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43041         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43042         * m4/afs.m4 (gl_AFS): Likewise.
43043         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43044         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43045         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43046         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43047         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43048         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43049         (AC_CHECK_DECLS_ONCE): Likewise.
43050         Rename file...
43051         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43052         gnulib-tool requires autoconf 2.59 or better.
43053         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43054
43055 2008-04-08  Eric Blake  <ebb9@byu.net>
43056
43057         Use 'git describe --match' if present (added in git 1.5.5).
43058         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43059         if possible.
43060
43061 2008-04-08  Bruno Haible  <bruno@clisp.org>
43062
43063         Add tentative support for OpenServer.
43064         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43065         _ptr, _cnt.
43066         * lib/fpurge.c (fpurge): Likewise.
43067         * lib/freadable.c (freadable): Likewise.
43068         * lib/freadahead.c (freadahead): Likewise.
43069         * lib/freading.c (freading): Likewise.
43070         * lib/freadptr.c (freadptr): Likewise.
43071         * lib/freadseek.c (freadptrinc): Likewise.
43072         * lib/fseeko.c (rpl_fseeko): Likewise.
43073         * lib/fseterr.c (fseterr): Likewise.
43074         * lib/fwritable.c (fwritable): Likewise.
43075         * lib/fwriting.c (fwriting): Likewise.
43076         Reported by Roger Cornelius <rac@tenzing.org> and
43077         Brian K. White <brian@aljex.com>.
43078
43079 2008-04-06  Jim Meyering  <meyering@redhat.com>
43080
43081         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43082
43083 2008-04-06  Bruno Haible  <bruno@clisp.org>
43084
43085         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43086         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43087         * tests/test-printf-posix.sh: Likewise.
43088         * tests/test-vfprintf-posix.sh: Likewise.
43089         * tests/test-vprintf-posix.sh: Likewise.
43090         * tests/test-xprintf-posix.sh: Likewise.
43091
43092 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43093
43094         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43095         hide error from 'ls', needed on OS/2.
43096         Report by Elbert Pol <elbert.pol@gmail.com>.
43097
43098 2008-04-04  Eric Blake  <ebb9@byu.net>
43099
43100         Make test-fseeko.c failures meaningful.
43101         * tests/test-fseeko.c: Print line number on failure.
43102         * tests/test-fseek.c: Likewise.
43103         Reported by Nelson H. F. Beebe.
43104
43105         Improve strtod bug detection check.
43106         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43107         required for Solaris 10.
43108         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43109
43110 2008-04-04  Bruno Haible  <bruno@clisp.org>
43111
43112         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43113         by m4/setenv.m4.
43114
43115 2008-04-03  Eric Blake  <ebb9@byu.net>
43116
43117         Ensure sane .version contents.
43118         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43119         version string.
43120         * build-aux/git-version-gen: Improve documentation.
43121
43122         Make GNU make output nicer.
43123         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43124         MAKECMDGOALS to enforce message for all command line targets.  Set
43125         srcdir for use in maint.mk.
43126
43127         Another maintainer tweak.
43128         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43129         a target that regenerates version.
43130
43131 2008-04-03  Jim Meyering  <meyering@redhat.com>
43132
43133         vc-list-files: don't cause coreutils "make po-check" failure
43134         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43135
43136 2008-04-03  Eric Blake  <ebb9@byu.net>
43137
43138         Allow VPATH usage of vc-list-files.
43139         * build-aux/vc-list-files (scriptversion): Add timestamp.
43140         (options): Add --help, --version, -C.
43141         (CVS): Support installed cvsu.
43142
43143 2008-04-02  Bruno Haible  <bruno@clisp.org>
43144
43145         Avoid some "statement with no effect" warnings from gcc.
43146         * tests/test-wctype.c (main): Explicitly ignore unused values.
43147         Reported by Jim Meyering.
43148
43149 2008-04-02  Jim Meyering  <meyering@redhat.com>
43150
43151         Avoid some warnings from "gcc -Wshadow".
43152         * tests/test-frexp.c (exp): Define to a different identifier.
43153         * tests/test-frexpl.c (exp): Likewise.
43154
43155 2008-04-03  Jim Meyering  <meyering@redhat.com>
43156
43157         bootstrap: remove dangling *.[ch] symlinks from lib
43158         * build-aux/bootstrap [dangling symlink removal]: Move find's
43159         -depth option to precede all others, to avoid a warning.
43160         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43161
43162 2008-04-02  Bruno Haible  <bruno@clisp.org>
43163
43164         Avoid some warnings from "gcc -Wshadow".
43165         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43166         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43167         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43168         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43169         Reported by Jim Meyering.
43170
43171 2008-04-01  Bruno Haible  <bruno@clisp.org>
43172
43173         Fix test to work on IRIX 6.5 with cc.
43174         * tests/test-math.c (numeric_equal): New function.
43175         (main): Use it.
43176
43177 2008-04-01  Bruno Haible  <bruno@clisp.org>
43178
43179         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43180
43181 2008-04-01  Bruno Haible  <bruno@clisp.org>
43182
43183         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43184         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43185         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43186         (Depends-on): Remove math.
43187
43188         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43189         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43190         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43191         (Depends-on): Remove math.
43192
43193         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43194         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43195         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43196         (Depends-on): Remove math.
43197         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43198         (Depends-on): Remove math.
43199
43200         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43201         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43202         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43203         (Depends-on): Remove math.
43204         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43205         (Depends-on): Remove math.
43206
43207         * tests/test-round1.c: Include nan.h.
43208         (main): Use NaNd instead of NAN.
43209         * modules/round-tests (Files): Add tests/nan.h.
43210
43211         * tests/test-trunc1.c: Include nan.h.
43212         (main): Use NaNd instead of NAN.
43213         * modules/trunc-tests (Files): Add tests/nan.h.
43214
43215         * tests/test-roundf1.c: Include nan.h.
43216         (main): Use NaNf instead of NAN.
43217         * modules/roundf-tests (Files): Add tests/nan.h.
43218
43219         * tests/test-truncf1.c: Include nan.h.
43220         (main): Use NaNf instead of NAN.
43221         * modules/truncf-tests (Files): Add tests/nan.h.
43222
43223         * tests/test-ceilf1.c: Include nan.h.
43224         (main): Use NaNf instead of NAN.
43225         * modules/ceilf-tests (Files): Add tests/nan.h.
43226
43227         * tests/test-floorf1.c: Include nan.h.
43228         (main): Use NaNf instead of NAN.
43229         * modules/floorf-tests (Files): Add tests/nan.h.
43230
43231         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43232         (main): Use NaNf instead of NAN.
43233         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43234
43235         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43236         (main): Use NaNd instead of NAN.
43237         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43238
43239         * tests/test-frexp.c: Include nan.h.
43240         (main): Use NaNd instead of NAN.
43241         * modules/frexp-tests (Files): Add tests/nan.h.
43242
43243         * lib/isnan.c: Don't include <math.h>.
43244         (FUNC): Don't use NAN macro.
43245         * modules/isnand-nolibm (Depends-on): Remove math.
43246         * modules/isnanf-nolibm (Depends-on): Remove math.
43247         * modules/isnanl (Depends-on): Remove math.
43248         * modules/isnanl-nolibm (Depends-on): Remove math.
43249
43250         * tests/nan.h: New file.
43251
43252 2008-04-01  Eric Blake  <ebb9@byu.net>
43253
43254         Fix typos.
43255         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43256         values to be the right type.
43257
43258         For now, cater to gnulib strtod inaccuracies.
43259         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43260         fractional results.  While not as nice from a QoI perspective, it
43261         is a quicker patch than correctly implementing decimal to binary
43262         rounding.
43263
43264 2008-03-31  Eric Blake  <ebb9@byu.net>
43265
43266         Guarantee a definition of NAN.
43267         * lib/math.in.h (NAN): Define if missing.
43268         * tests/test-math.c (main): Test it.
43269         * doc/posix-headers/math.texi (math.h): Document this.
43270         * lib/isnan.c (rpl_isnand): Use it.
43271         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43272         * tests/test-floorf1.c (NaN): Likewise.
43273         * tests/test-frexp.c (NaN): Likewise.
43274         * tests/test-isnand.c (NaN): Likewise.
43275         * tests/test-isnanf.c (NaN): Likewise.
43276         * tests/test-round1.c (NaN): Likewise.
43277         * tests/test-roundf1.c (NaN): Likewise.
43278         * tests/test-snprintf-posix.h (NaN): Likewise.
43279         * tests/test-sprintf-posix.h (NaN): Likewise.
43280         * tests/test-trunc1.c (NaN): Likewise.
43281         * tests/test-truncf1.c (NaN): Likewise.
43282         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43283         * tests/test-vasprintf-posix.c (NaN): Likewise.
43284         * modules/isnand-nolibm (Depends-on): Add math.
43285         * modules/isnanf-nolibm (Depends-on): Likewise.
43286         * modules/isnanl (Depends-on): Likewise.
43287         * modules/isnanl-nolibm (Depends-on): Likewise.
43288         * modules/snprintf-posix-tests (Depends-on): Likewise.
43289         * modules/sprintf-posix-tests (Depends-on): Likewise.
43290         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43291         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43292         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43293         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43294
43295 2008-03-31  Bruno Haible  <bruno@clisp.org>
43296
43297         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43298         * doc/posix-functions/strtod.texi: Likewise.
43299
43300 2008-03-31  Bruno Haible  <bruno@clisp.org>
43301
43302         * tests/test-strtod.c (main): Don't use C99 syntax.
43303
43304 2008-03-31  Bruno Haible  <bruno@clisp.org>
43305
43306         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43307         Reported by Eric Blake.
43308
43309 2008-03-31  Jim Meyering  <meyering@redhat.com>
43310
43311         Don't compare actual signbit return values.
43312         * tests/test-strtod.c (main): Rather, compare only their
43313         zero/non-zero nature.
43314
43315 2008-03-31  Eric Blake  <ebb9@byu.net>
43316
43317         More strtod documentation.
43318         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43319         failures as distinct bugs.
43320
43321 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43324         Problem reported by Erik Benada in
43325         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43326
43327 2008-03-30  Bruno Haible  <bruno@clisp.org>
43328
43329         * tests/test-strtod.c: Add comments about which assertion fails on which
43330         platform.
43331         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43332
43333 2008-03-30  Eric Blake  <ebb9@byu.net>
43334
43335         Test signbit behavior on zeros.
43336         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43337         (test_signbitd, test_signbitl): Likewise.
43338
43339         More strtod touchups.
43340         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43341         sign of negative underflow, for now.  Use .5, not .1.
43342         * doc/posix-functions/strtod.texi (strtod): Mention these
43343         limitations.
43344         Reported by Jim Meyering.
43345
43346 2008-03-30  Bruno Haible  <bruno@clisp.org>
43347
43348         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43349         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43350
43351 2008-03-30  Bruno Haible  <bruno@clisp.org>
43352
43353         Avoid failure when attempting to return empty iconv results on some
43354         platforms.
43355         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43356         allocation, don't report ENOMEM when the resulting string is empty.
43357
43358 2008-03-30  Bruno Haible  <bruno@clisp.org>
43359
43360         Fix buffer overrun.
43361         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43362         Don't consider the width for tmp_length. Check count against tmp_length
43363         before doing the padding. Ensure enough allocation during padding.
43364
43365 2008-03-30  Eric Blake  <ebb9@byu.net>
43366
43367         strtod touchups.
43368         * lib/strtod.c (strtod): Avoid compiler warnings.
43369         Reported by Jim Meyering.
43370
43371 2008-03-30  Bruno Haible  <bruno@clisp.org>
43372
43373         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43374         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43375         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43376         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43377         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43378         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43379         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43380         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43381
43382         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43383         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43384         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43385         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43386         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43387         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43388         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43389         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43390
43391         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43392         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43393         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43394         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43395         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43396         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43397         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43398         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43399
43400         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43401         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43402
43403         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43404         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43405
43406         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43407         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43408
43409         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43410         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43411         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43412
43413         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43415         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43416
43417         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43418         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43419         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43420
43421         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43423         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43424
43425         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43426         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43428         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43429         (Depends-on): Add EOVERFLOW.
43430         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43431         (Depends-on): Add EOVERFLOW.
43432         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43433         (Depends-on): Add EOVERFLOW.
43434         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43435         (Depends-on): Add EOVERFLOW.
43436         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43437         (Depends-on): Add EOVERFLOW.
43438         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43439         (Depends-on): Add EOVERFLOW.
43440         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43441         (Depends-on): Add EOVERFLOW.
43442         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43443         (Depends-on): Add EOVERFLOW.
43444
43445         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43447         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43448
43449         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43451         * modules/snprintf (Depends-on): Add EOVERFLOW.
43452
43453         * lib/poll.c (EOVERFLOW): Remove fallback.
43454         * modules/poll (Depends-on): Add EOVERFLOW.
43455
43456         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43457         * modules/getugroups (Depends-on): Add EOVERFLOW.
43458
43459         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43460         * modules/getdelim (Depends-on): Add EOVERFLOW.
43461
43462         * lib/ftell.c (EOVERFLOW): Remove fallback.
43463         * modules/ftell (Depends-on): Add EOVERFLOW.
43464
43465         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43466         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43467         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43468
43469         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43470
43471         * modules/EOVERFLOW-tests: New file.
43472         * tests/test-EOVERFLOW.c: New file.
43473
43474         * modules/EOVERFLOW: New file.
43475         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43476
43477 2008-03-30  Bruno Haible  <bruno@clisp.org>
43478
43479         Fix bug introduced on 2007-06-10.
43480         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43481         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43482
43483 2008-03-30  Bruno Haible  <bruno@clisp.org>
43484
43485         Improve freadseek's efficiency after ungetc.
43486         * lib/freadseek.c: Include freadahead.h.
43487         (freadptrinc): New function, extracted from freadseek.
43488         (freadseek): Use it in a loop. Use freadahead to determine the number
43489         of loop iterations.
43490         * modules/freadseek (Depends-on): Add freadahead.
43491         (configure.ac): Require AC_C_INLINE.
43492
43493 2008-03-30  Bruno Haible  <bruno@clisp.org>
43494
43495         * lib/freadseek.c (freadseek): Don't ignore the return value of
43496         freadptr.
43497
43498 2008-03-29  Eric Blake  <ebb9@byu.net>
43499
43500         Add hex float support.
43501         * modules/strtod (Depends-on): Add c-ctype.
43502         (Link): Mention POW_LIB.
43503         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43504         whitespace between 'e' and exponent.
43505         * tests/test-strtod.c (main): Enable hex float tests.
43506         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43507         now provides.
43508
43509         Document various strtod bugs, with some fixes.
43510         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43511         "-0x", "inf", "nan", and hex constants.
43512         * doc/posix-functions/atof.texi (atof): Likewise.
43513         * modules/stdlib (Makefile.am): Support strtod.
43514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43515         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43516         detect additional strtod bugs.
43517         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43518         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43519         bool where appropriate.  Parse 'inf' and 'nan'.
43520         * tests/test-strtod.c: New file.
43521         * modules/strtod (Depends-on): Add stdbool, stdlib.
43522         (configure.ac): Turn on module indicator.
43523         * modules/strtod-tests: New module.
43524
43525 2008-03-29  Eric Blake  <ebb9@byu.net>
43526
43527         Fix ftell on mingw.
43528         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43529         * modules/ftell-tests (Depends-on): Add binary-io.
43530         * modules/ftello-tests (Depends-on): Likewise.
43531         * tests/test-ftell.c (main): Enhance test to cover behavior after
43532         ungetc.  Enforce binary mode.
43533         * tests/test-ftello.c (main): Likewise.
43534
43535         Pass test-freadseek on cygwin.
43536         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43537         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43538         ungetc buffer.
43539
43540         * tests/test-fflush2.c (main): Fix typo.
43541
43542 2008-03-29  Bruno Haible  <bruno@clisp.org>
43543
43544         * tests/test-fflush2.c (main): Temporarily disable the contents of
43545         this test.
43546         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43547         Reported by Eric Blake.
43548
43549 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43550
43551         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43552         (GC_SHA224_DIGEST_SIZE): Add.
43553
43554         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43555         (gc_hash_digest_length): Likewise.
43556         (gc_hash_buffer): Likewise.
43557
43558 2008-03-25  Bruno Haible  <bruno@clisp.org>
43559
43560         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43561         detail which gettext release to use.
43562         Reported by Simon Josefsson.
43563
43564 2008-03-26  Jim Meyering  <meyering@redhat.com>
43565
43566         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43567         * modules/gnumakefile (clean-GNUmakefile): Also, use
43568         test ... && ... || : syntax rather than if-then ... fi.
43569
43570         gnumakefile: Don't double-quote-expand $(VPATH) value.
43571         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43572
43573 2008-03-24  Eric Blake  <ebb9@byu.net>
43574
43575         Alter GNUmakefile to install into top directory.
43576         * modules/maintainer-makefile: Split, and add dependency...
43577         * modules/gnumakefile: to this new module.
43578         * build-aux/GNUmakefile: Move...
43579         * top/GNUmakefile: ...here.
43580         * build-aux/maint.mk: Move...
43581         * top/maint.mk: ...here.
43582         * MODULES.html.sh (Support for maintaining...): Document new
43583         module.
43584
43585 2008-03-23  Bruno Haible  <bruno@clisp.org>
43586
43587         * gnulib-tool: New options --vc-files, --no-vc-files.
43588         (func_usage): Document them.
43589         (vc_files): New variable.
43590         (func_import): Consider vc_files.
43591         (func_create_testdir): Set vc_files to empty.
43592         Suggested by Jim Meyering and Karl Berry.
43593
43594 2008-03-23  Bruno Haible  <bruno@clisp.org>
43595
43596         Fix regex compilation error on HP-UX 11.
43597         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43598         * modules/regex (Files): Add m4/mbstate_t.m4.
43599         Reported by Ton Voon <ton.voon@altinity.com>.
43600
43601 2008-03-23  Bruno Haible  <bruno@clisp.org>
43602
43603         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43604
43605 2008-03-23  Eric Blake  <ebb9@byu.net>
43606             Bruno Haible  <bruno@clisp.org>
43607
43608         Install files from top/ in the destination directory.
43609         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43610         augmentation also for the files from top/.
43611         (func_import, func_create_testdir): Rewrite file names:
43612         top/filename -> filename.
43613
43614 2008-03-23  Bruno Haible  <bruno@clisp.org>
43615
43616         Tweak "gnulib --version" output.
43617         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43618
43619 2008-03-23  Bruno Haible  <bruno@clisp.org>
43620
43621         Tweak "gnulib --version" output.
43622         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43623         rather than contents of ChangeLog, when possible.
43624
43625 2008-03-21  Eric Blake  <ebb9@byu.net>
43626
43627         More --version tweaks.
43628         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43629         date of last ChangeLog entry.
43630
43631 2008-03-21  Jim Meyering  <meyering@redhat.com>
43632
43633         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43634
43635 2008-03-20  Eric Blake  <ebb9@byu.net>
43636
43637         VPATH fix.
43638         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43639
43640 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43641
43642         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43643         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43644
43645 2008-03-20  Eric Blake  <ebb9@byu.net>
43646
43647         Sync GNUmakefile with coreutils.
43648         * build-aux/GNUmakefile (have-Makefile): Rename...
43649         (_have-Makefile): ...to this, for namespace consideration.
43650         (GNUmakefile.cfg): Include, if present.
43651         (_autoreconf): Define a default.
43652         (_is-dist-target): New rule for rebuilds to pick up intra-release
43653         version.
43654         (maint-cfg.mk): Rename...
43655         (cfg.mk): ...to this.
43656
43657 2008-03-18  Jim Meyering  <meyering@redhat.com>
43658
43659         New script and module: mktempd
43660         * MODULES.html.sh (maint+release support): Add mktempd.
43661         * build-aux/mktempd: New file.
43662         * modules/mktempd: New file.
43663
43664 2008-03-15  Jim Meyering  <meyering@redhat.com>
43665
43666         Undo last change.
43667         * lib/sha1.c, lib/md5.c: 63 != ~63.
43668         Reported by Andreas Schwab.
43669
43670         sha1.c, md5.c: Hoist a redundant expression.
43671         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43672         "ctx->buflen" only once, before calling *_process_block.
43673         * lib/md5.c (md5_process_bytes): Likewise.
43674
43675 2008-03-14  Eric Blake  <ebb9@byu.net>
43676
43677         Bump copyright year in files generated by gnulib-tool.
43678         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43679         gnulib-tool, rather than hard-coding it.
43680
43681         Fix 'gnulib-tool --version' output to work with git.
43682         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43683         (startup): ...here.
43684         (func_version): Use it to invoke git-version-gen, rather than
43685         relying on CVS keyword expansion.  Modernize wording.
43686         (cvsdatestamp, last_checkin_date, version): Kill unused
43687         variables.
43688
43689 2008-03-12  Jim Meyering  <meyering@redhat.com>
43690
43691         Recognize optional cast of the argument to free.
43692         * build-aux/useless-if-before-free: Update regexps.
43693
43694         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43695
43696 2008-03-11  Bruno Haible  <bruno@clisp.org>
43697
43698         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43699         by a single package.
43700         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43701         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43702         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43703         Reported by Sam Steingold <sds@gnu.org>.
43704
43705 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43706
43707         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43708         repositories.
43709
43710 2008-03-11  Bruno Haible  <bruno@clisp.org>
43711
43712         Avoid conflicts between local macro definitions.
43713         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43714         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43715
43716 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43717             Bruno Haible  <bruno@clisp.org>
43718
43719         Make va_copy work with some version of xlc on AIX 5.1.
43720         * lib/stdarg.in.h: New file.
43721         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43722         On AIX, use a <stdarg.h> file substitute.
43723         * modules/stdarg (Files): Add lib/stdarg.in.h.
43724         (Depends-on): Add include_next.
43725         (Makefile.am): Build a stdarg.h substitute if requested.
43726         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43727
43728 2008-03-10  Bruno Haible  <bruno@clisp.org>
43729
43730         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43731         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43732         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43733
43734 2008-03-10  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/stdlib (Depends-on): Add include_next, remove
43737         absolute-header.
43738
43739 2008-03-09  Bruno Haible  <bruno@clisp.org>
43740
43741         * lib/freadahead.h (freadahead): Document more precisely.
43742         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43743         the sum of both buffer sizes.
43744         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43745         * NEWS: Document the change.
43746
43747 2008-03-09  Bruno Haible  <bruno@clisp.org>
43748
43749         Extend freadptr to return also the buffer size.
43750         * lib/freadptr.h (freadptr): Add sizep argument.
43751         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43752         (freadptr): Add sizep argument. Determine buffer size like freadahead
43753         does.
43754         * tests/test-freadptr.c: Don't include freadahead.h.
43755         (main): Adapt for new calling convention of freadptr.
43756         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43757         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43758         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43759         tests/test-freadptr2.sh.
43760         (Depends): Remove freadahead.
43761         (TESTS): Add test-freadptr2.sh.
43762         (check_PROGRAMS): Add test-freadptr2.
43763
43764 2008-03-09  Bruno Haible  <bruno@clisp.org>
43765
43766         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43767         Report and solution by Simon Josefsson.
43768
43769 2008-03-06  Bruno Haible  <bruno@clisp.org>
43770
43771         Make fflush after ungetc work on BSD platforms.
43772         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43773         * tests/test-fflush2.c: New file.
43774         * tests/test-fflush2.sh: New file.
43775         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43776         tests/test-fflush2.c.
43777         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43778         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43779
43780 2008-03-06  Eric Blake  <ebb9@byu.net>
43781
43782         Likewise for ftello.
43783         * modules/ftello (Dependencies): Add extensions.
43784         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43785
43786 2008-03-06  Bruno Haible  <bruno@clisp.org>
43787
43788         * modules/fseeko (Dependencies): Add extensions.
43789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43790         Needed on glibc systems.
43791
43792 2008-03-06  Bruno Haible  <bruno@clisp.org>
43793
43794         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43795         email address.
43796         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43797
43798 2008-03-06  Bruno Haible  <bruno@clisp.org>
43799
43800         * users.txt: Add libgnupdf.
43801
43802 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43803
43804         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43805         (Header File Substitutes, Function Substitutes,
43806         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43807         (Build robot for gnulib): Fix typo.
43808
43809 2008-03-06  Bruno Haible  <bruno@clisp.org>
43810
43811         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43812         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43813
43814 2008-03-06  Bruno Haible  <bruno@clisp.org>
43815
43816         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43817         * doc/gnulib.texi: Include it.
43818
43819 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43820
43821         * modules/func (License): Change license to unlimited; there was
43822         no LGPL parts in the module anyway.
43823
43824 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43825
43826         * modules/__func__: Renamed to modules/func.
43827         * modules/__func__-tests: Renamed to modules/func-tests.
43828         * tests/test-__func__.c: Renamed to tests/test-func.c.
43829         * m4/__func__.m4: Renamed to m4/func.m4.
43830         * doc/gnulib.texi (__func__): Section renamed to func.
43831         Suggested by Eric Blake <ebb9@byu.net>.
43832
43833 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43834
43835         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43836         about __func__.  Make example self-contained.  Suggested by Eric
43837         Blake <ebb9@byu.net>.
43838
43839         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43840         Suggested by Eric Blake <ebb9@byu.net>.
43841
43842 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43843
43844         * modules/__func__: New file.
43845         * modules/__func__-tests: New file.
43846         * tests/test-__func__.c: New file.
43847         * m4/__func__.m4: New file.
43848         * doc/gnulib.texi (__func__): Document __func__ module.
43849
43850 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43851
43852         * modules/byteswap (License): Re-license as LGPLv2+.
43853
43854 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43855
43856         * doc/Makefile: Add pdf target.
43857
43858 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43859
43860         * modules/inline (License): Use 'unlimited', since there are only
43861         *.m4 files in this module.
43862
43863 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43864             Bruno Haible  <bruno@clisp.org>
43865
43866         Add support for HP C 7.1 on OpenVMS 8.3.
43867         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43868
43869 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43870
43871         Update VMS specifics.
43872         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43873
43874 2008-03-02  Jim Meyering  <meyering@redhat.com>
43875
43876         Remove the last dependency on the "free" module.
43877         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43878         Reported by Bob Proulx.
43879
43880         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43881
43882         Remove useless "if" tests before free.  Deprecate "free" module.
43883         * doc/posix-functions/free.texi: Mention that this
43884         module is no longer useful.
43885         * modules/free (Notice): Say this module is obsolete.
43886         * modules/readutmp (Depends-on): Remove free.
43887         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43888         * lib/putenv.c (putenv): Likewise.
43889         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43890         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43891         * tests/test-c-strcasestr.c (main): Likewise.
43892         * tests/test-c-strstr.c (main): Likewise.
43893         * tests/test-mbscasestr1.c (main): Likewise.
43894         * tests/test-mbscasestr2.c (main): Likewise.
43895         * tests/test-mbsstr1.c (main): Likewise.
43896         * tests/test-mbsstr2.c (main): Likewise.
43897         * tests/test-memmem.c (main): Likewise.
43898         * tests/test-strcasestr.c (main): Likewise.
43899         * tests/test-striconv.c (main): Likewise.
43900         * tests/test-striconveh.c (main): Likewise.
43901         * tests/test-striconveha.c (main): Likewise.
43902         * tests/test-strstr.c (main): Likewise.
43903
43904         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43905
43906         bootstrap: sync from coreutils again
43907         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43908
43909 2008-03-01  Jim Meyering  <meyering@redhat.com>
43910
43911         bootstrap: sync from coreutils
43912         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43913         also when the target doesn't exist.
43914
43915 2008-03-01  Eric Blake  <ebb9@byu.net>
43916
43917         Fix bugs in last patch.
43918         * lib/memchr2.c (memchr2): Fix typo.
43919         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43920         extension.
43921         Reported by Bruce Korb.
43922
43923         New module 'memchr2'.
43924         * modules/memchr2: New file.
43925         * modules/memchr2-tests: Likewise.
43926         * lib/memchr2.h: Likewise.
43927         * lib/memchr2.c: Likewise, based on memchr.c.
43928         * tests/test-memchr2.c: New test.
43929         * MODULES.html.sh (String handling): Add memchr2.
43930
43931 2008-02-29  Bruno Haible  <bruno@clisp.org>
43932
43933         * modules/freadseek-tests: New file.
43934         * tests/test-freadseek.sh: New file.
43935         * tests/test-freadseek.c: New file.
43936
43937         New module 'freadseek'.
43938         * modules/freadseek: New file.
43939         * lib/freadseek.h: New file.
43940         * lib/freadseek.c: New file.
43941         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43942
43943 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43944
43945         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43946         wydawca.
43947
43948         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43949         program_invocation_name and program_invocation_short_name are
43950         present.
43951
43952 2008-02-28  Bruno Haible  <bruno@clisp.org>
43953
43954         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43955         * tests/test-freadptr.sh: Also test non-seekable stdin.
43956
43957 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43958
43959         * build-aux/bootstrap (source_base, m4_base)
43960         (doc_base, tests_base): New variables.
43961         (gnulib_tool_options): Do not hardcode base directories, use
43962         the above variables instead.
43963
43964 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43965
43966         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43967
43968 2008-02-28  Bruno Haible  <bruno@clisp.org>
43969
43970         * modules/freadptr-tests: New file.
43971         * tests/test-freadptr.sh: New file.
43972         * tests/test-freadptr.c: New file.
43973
43974         New module 'freadptr'.
43975         * modules/freadptr: New file.
43976         * lib/freadptr.h: New file.
43977         * lib/freadptr.c: New file.
43978         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43979
43980 2008-02-26  Karl Berry  <karl@freefriends.org>
43981
43982         Sync from Libtool:
43983         * libltdl/argz.c (argz_add, argz_count): New functions.
43984         * libltdl/argz.in.h: Declare them.
43985         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43986
43987 2008-02-22  Bruno Haible  <bruno@clisp.org>
43988
43989         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43990         is a pointer type.  Needed for HP-UX 10.
43991         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43992         * doc/posix-functions/gmtime_r.texi: Likewise.
43993         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43994
43995 2008-02-24  Bruno Haible  <bruno@clisp.org>
43996
43997         * modules/environ-tests: New file.
43998         * tests/test-environ.c: New file.
43999
44000         New module 'environ'.
44001         * modules/environ: New file.
44002         * lib/unistd.in.h (environ): New declaration.
44003         * m4/environ.m4: New file.
44004         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44005         after use.
44006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44007         HAVE_DECL_ENVIRON.
44008         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44009         HAVE_DECL_ENVIRON.
44010         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44011         wrong claim that 'environ' is missing on some systems.
44012         * modules/execute (Depends-on): Add environ.
44013         * lib/execute.c (environ): Remove fallback declaration.
44014         * modules/pipe (Depends-on): Add environ.
44015         * lib/pipe.c (environ): Remove fallback declaration.
44016         * modules/setenv (Depends-on): Add environ.
44017         * lib/setenv.c (environ): Remove fallback declaration.
44018         * modules/unsetenv (Depends-on): Add environ.
44019         * lib/unsetenv.c (environ): Remove fallback declaration.
44020         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44021         m4/environ.m4.
44022         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44023         (gl_PREREQ_UNSETENV): Likewise.
44024
44025 2008-02-24  Bruno Haible  <bruno@clisp.org>
44026
44027         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44028
44029 2008-02-20  Bob Proulx  <bob@proulx.com>
44030
44031         Enable use of older two part flavor 'git describe'.
44032         * build-aux/git-version-gen: If using the older two part flavor of
44033         git version then recreate the third part now present in the
44034         newer three part flavor of git describe.
44035
44036 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44037
44038         * lib/fts.c (fts_build): Typo correction to comment.
44039
44040 2008-02-17  Bruno Haible  <bruno@clisp.org>
44041
44042         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44043         generating no-op conflicts.
44044
44045 2008-02-17  Bruno Haible  <bruno@clisp.org>
44046
44047         Speed up by 10%.
44048         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44049         result_entries, rather than an index-based loop.
44050
44051 2008-02-17  Bruno Haible  <bruno@clisp.org>
44052
44053         Speed up by 25%.
44054         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44055         'hashcode_cached'.
44056         (entry_create): New function.
44057         (entry_hashcode): Use the cached hashcode if possible.
44058         (read_changelog_file, try_split_merged_entry): Use entry_create.
44059
44060 2008-02-17  Bruno Haible  <bruno@clisp.org>
44061
44062         Speed up from O(n^2) to O(n) for long ChangeLog files.
44063         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44064         (read_changelog_file): Change implementation of entries_reversed list
44065         to rbtreehash.
44066         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44067
44068 2008-02-17  Bruno Haible  <bruno@clisp.org>
44069
44070         New option --split-merged-entry.
44071         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44072         (find_paragraph_end, try_split_merged_entry): New functions.
44073         (long_options): Add option --split-merged-entry.
44074         (usage): Document option --split-merged-entry.
44075         (main): Implement option --split-merged-entry.
44076         Reported by Eric Blake.
44077
44078 2008-02-17  Bruno Haible  <bruno@clisp.org>
44079
44080         * lib/git-merge-changelog.c: Include c-strstr.h.
44081         (main): Support the "git pull --rebase" situation.
44082         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44083         Reported by Eric Blake.
44084
44085 2008-02-16  Eric Blake  <ebb9@byu.net>
44086
44087         Avoid doubling \ in common case of "c-maybe" quoting style.
44088         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44089         eliding outer quotes.
44090         * lib/quotearg.h: Document this.
44091         * tests/test-quotearg.c (result_strings, inputs, results_g)
44092         (flag_results, locale_results): Test it by adding a new string to
44093         each test group.
44094         (compare_strings): Test new string.
44095
44096 2008-02-13  Eric Blake  <ebb9@byu.net>
44097
44098         Avoid trigraph quoting in default output.
44099         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44100         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44101         unless explicitly requested.
44102         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44103
44104 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44105
44106         Don't rely on signed integer overflowing to negative value.
44107         * lib/getugroups.c (getugroups): Include <limits.h>.
44108         Instead, compare against INT_MAX, and increment only if the test passes.
44109
44110 2008-02-13  Jim Meyering  <meyering@redhat.com>
44111         and Eric Blake  <ebb9@byu.net>
44112
44113         Avoid shadowing warning and compile errors on Linux.
44114         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44115         forwarding macros on Linux.
44116         (dcgettext): Define a stub, for Linux.
44117         (results_g, main): Avoid warnings.
44118
44119 2008-02-12  Eric Blake  <ebb9@byu.net>
44120
44121         Silence warning in last patch.
44122         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44123
44124         Quotearg part 4: add tests, fix c-maybe colon quoting.
44125         * lib/quotearg.h: Improve documentation.
44126         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44127         escapes when adding outer quotes.  When quoting trigraphs, use
44128         valid C notation.  When quoting NUL, omit extra characters if next
44129         character is not digit.  Alter prototype.
44130         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44131         callers.
44132         * modules/quotearg-tests: New module.
44133         * tests/test-quotearg.c: New test.
44134
44135 2008-02-07  Eric Blake  <ebb9@byu.net>
44136
44137         Quotearg part 3: add flag to control outer quote elision.
44138         * lib/quotearg.h (c_maybe_quoting_style): New style.
44139         (enum quoting_flags): Better documentation of flags.
44140         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44141         c-maybe style.
44142         (quotearg_buffer_restyled): Handle new flag to elide outer
44143         quotes.
44144
44145         Quotearg part 2: add flag that can control NUL elision.
44146         * lib/quotearg.h (set_quoting_flags): New prototype.
44147         * lib/quotearg.c (struct quoting_options): Add flag field.
44148         (set_quoting_flags): New function.
44149         (quotearg_buffer_restyled): Add flags parameter.
44150         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44151         (quotearg_n_options): Set the flag, since length cannot be
44152         returned.
44153         (quoting_options_from_style): Default flags correctly.
44154
44155         Quotearg part 1: more wrappers, restore quotearg_char state.
44156         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44157         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44158         (quotearg_colon_mem): New wrappers.
44159         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44160         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44161         functions.
44162         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44163         (quotearg_colon_mem): New functions.
44164
44165 2008-02-11  Bruno Haible  <bruno@clisp.org>
44166
44167         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44168         library in the current directory: it does not work with parallel make.
44169         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44170
44171 2008-02-11  Bruno Haible  <bruno@clisp.org>
44172
44173         * .gitattributes: New file.
44174
44175 2008-02-11  Jim Meyering  <meyering@redhat.com>
44176
44177         useless-if-before-free: Fix reversed exit values.
44178         * build-aux/useless-if-before-free: Use correct values
44179         for EXIT_MATCH and EXIT_NO_MATCH.
44180
44181         * build-aux/useless-if-before-free: Close stdout carefully.
44182
44183 2008-02-10  Bruno Haible  <bruno@clisp.org>
44184
44185         New module 'git-merge-changelog'.
44186         * modules/git-merge-changelog: New file.
44187         * lib/git-merge-changelog.c: New file.
44188
44189 2008-02-10  Jim Meyering  <meyering@redhat.com>
44190
44191         useless-if-before-free: New option: --list (-l).
44192
44193         useless-if-before-free: Don't exit immediately upon open failure.
44194         * build-aux/useless-if-before-free: Exit 2 for errors.
44195         Upon failure to open a file, don't exit immediately.
44196         Rather, just warn and continue with any remaining files.
44197
44198 2008-02-10  Bruno Haible  <bruno@clisp.org>
44199
44200         New abstract list operation 'node_set_value'.
44201         * lib/gl_list.h (gl_list_node_set_value): New function.
44202         (struct gl_list_implementation): New field node_set_value.
44203         * lib/gl_list.c (gl_list_node_set_value): New function.
44204         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44205         (gl_array_list_implementation): Update.
44206         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44207         (gl_carray_list_implementation): Update.
44208         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44209         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44210         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44211         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44212         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44213         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44214         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44215         Update.
44216         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44217         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44218         (gl_sublist_list_implementation): Update.
44219
44220 2008-02-10  Bruno Haible  <bruno@clisp.org>
44221
44222         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44223         Needed when ELEMENT is #defined to 'some_type *'.
44224
44225 2008-02-10  Jim Meyering  <meyering@redhat.com>
44226
44227         New script and module: useless-if-before-free
44228         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44229         * build-aux/useless-if-before-free: New file.
44230         * modules/useless-if-before-free: New file.
44231
44232         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44233
44234         xstrtol_error: Fix typo.
44235         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44236         s/exit_failure/exit_status/.
44237
44238 2008-02-09  Jim Meyering  <meyering@redhat.com>
44239
44240         New script and module: gitlog-to-changelog
44241         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44242         * modules/gitlog-to-changelog: New file.
44243         * build-aux/gitlog-to-changelog: New file.
44244
44245 2008-02-08  Jim Meyering  <meyering@redhat.com>
44246
44247         Avoid two "parameter unused" warnings.
44248         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44249         Mark "st" as used.
44250
44251         Use "git COMMAND", not "git-COMMAND".
44252         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44253         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44254         * build-aux/git-version-gen: Use "git status", not "git-status".
44255
44256 2008-02-07  Bruno Haible  <bruno@clisp.org>
44257
44258         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44259         Avoids a crash on Windows Vista.
44260         Reported by Adam Strzelecki <ono@java.pl> via
44261         Simon Josefsson <simon@josefsson.org>.
44262
44263 2008-02-06  Bruno Haible  <bruno@clisp.org>
44264
44265         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44266         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44267         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44269         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44271         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44272         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44280         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44281         left-adjust flag.
44282         * tests/test-snprintf-posix.h (test_function): Likewise.
44283         * tests/test-sprintf-posix.h (test_function): Likewise.
44284         * tests/test-vasprintf-posix.c (test_function): Likewise.
44285         * doc/posix-functions/fprintf.texi: Update.
44286         * doc/posix-functions/printf.texi: Update.
44287         * doc/posix-functions/snprintf.texi: Update.
44288         * doc/posix-functions/sprintf.texi: Update.
44289         * doc/posix-functions/vfprintf.texi: Update.
44290         * doc/posix-functions/vprintf.texi: Update.
44291         * doc/posix-functions/vsnprintf.texi: Update.
44292         * doc/posix-functions/vsprintf.texi: Update.
44293         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44294
44295 2008-02-06  Bruno Haible  <bruno@clisp.org>
44296
44297         Fix bug introduced on 2008-01-26.
44298         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44299
44300 2008-02-06  Bruno Haible  <bruno@clisp.org>
44301
44302         Fix bug introduced on 2007-06-10.
44303         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44304         !NEED_PRINTF_FLAG_ZERO.
44305
44306 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44307
44308         getloadavg: use libperfstat on AIX5
44309         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44310
44311 2008-02-03  Bruno Haible  <bruno@clisp.org>
44312
44313         * lib/diffseq.h: Add comments about required #includes.
44314         Reported by Michael Biggs <gnulib@doubleplum.net>.
44315
44316 2008-02-01  Bruno Haible  <bruno@clisp.org>
44317
44318         * users.txt: Add gnuit.
44319
44320 2008-01-31  Bruno Haible  <bruno@clisp.org>
44321
44322         * lib/md4.c (set_uint32): Mark as inline.
44323         * lib/md5.c (set_uint32): Likewise.
44324         * lib/sha1.c (set_uint32): Likewise.
44325         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44326         * m4/md5.m4 (gl_MD5): Likewise.
44327         * m4/sha1.m4 (gl_SHA1): Likewise.
44328
44329 2008-01-31  Jim Meyering  <meyering@redhat.com>
44330
44331         Use "sizeof VAR", rather than a literal "4".
44332         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44333         * lib/md4.c (md4_read_ctx): Likewise.
44334         * lib/sha1.c (sha1_read_ctx): Likewise.
44335
44336 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44337
44338         * tests/test-sha1.c: New file, based on test-md5.c.
44339
44340         * modules/crypto/sha1-tests: New file.
44341
44342 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44343
44344         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44345
44346 2008-01-31  Jim Meyering  <meyering@redhat.com>
44347
44348         Prefer "sizeof v" over the equivalent "4".
44349         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44350         * lib/md5.c (set_uint32): Likewise.
44351         * lib/sha1.c (set_uint32): Likewise.
44352
44353 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44354
44355         * lib/sha1.c (set_uint32): Mark function as static.
44356
44357 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44358
44359         md2: clarify comments to say that alignment is not required.
44360         * lib/md2.h: Remove warning about alignment in comment.
44361         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44362         never been required.
44363
44364 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44365
44366         md4: adapt alignment constraint fix from sha1.
44367         * lib/md4.c (set_uint32): New function, from sha1.c
44368         (md4_read_ctx): Use it.
44369         (md4_finish_ctx): Doc fix.
44370         * lib/md4.h: Doc fix.
44371
44372 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44373
44374         md5: adapt alignment constraint fix from sha1.
44375         * lib/md5.c (set_uint32): New function, from sha1.c
44376         (md5_read_ctx): Use it.
44377         (md5_finish_ctx): Doc fix.
44378         * lib/md5.h: Doc fix.
44379
44380 2008-01-30  Peter Palfrader  <weasel@debian.org>
44381
44382         sha1: remove the result buffer alignment constraint
44383         * lib/sha1.c (set_uint32): New function.
44384         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44385         constraint.
44386         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44387         * lib/sha1.h: Likewise.
44388
44389 2008-01-30  Andreas Schwab  <schwab@suse.de>
44390             Bruno Haible  <bruno@clisp.org>
44391
44392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44393         correct definition of LDBL_MIN_EXP.
44394
44395 2008-01-30  Karl Berry  <karl@gnu.org>
44396
44397         * config/srclist-update: try to preserve x bit on updates.
44398         * config/srclistvars.sh: update for karl.
44399
44400 2008-01-29  Jim Meyering  <meyering@redhat.com>
44401
44402         vasnprintf.c: Avoid warning about unused label
44403         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44404         "overflow" label definition and associated code with the
44405         same cpp condition that guards the sole use of that label.
44406
44407 2008-01-26  Bruno Haible  <bruno@clisp.org>
44408
44409         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44410         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44411         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44412         * lib/isnanl-nolibm.h (isnanl): Likewise.
44413         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44414
44415 2008-01-26  Bruno Haible  <bruno@clisp.org>
44416
44417         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44418         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44419
44420 2008-01-26  Bruno Haible  <bruno@clisp.org>
44421
44422         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44423         GCC >= 4.0 built-in.
44424         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44425
44426 2008-01-26  Bruno Haible  <bruno@clisp.org>
44427
44428         Rename isnan, applicable to 'double' only, to isnand.
44429         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44430         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44431         (configure.ac): Update.
44432         (Include): Replace "isnan.h" with "isnand.h".
44433         * m4/isnand.m4: Renamed from m4/isnan.m4.
44434         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44435         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44436         instead of isnan.c.
44437         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44438         instead of HAVE_ISNAN_IN_LIBC.
44439         (isnand): Renamed from isnan.
44440         * lib/isnand.c: New file.
44441         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44442         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44443         (Makefile.am): Update.
44444         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44445         Include isnand.h instead of isnan.h.
44446         (main): Test isnand instead of isnan.
44447         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44448         isnan-nolibm.
44449         * modules/frexp (Depends-on): Likewise.
44450         * modules/frexp-tests (Depends-on): Likewise.
44451         * modules/frexp-nolibm (Depends-on): Likewise.
44452         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44453         * modules/isfinite (Depends-on): Likewise.
44454         * modules/round-tests (Depends-on): Likewise.
44455         * modules/signbit (Depends-on): Likewise.
44456         * modules/signbit-tests (Depends-on): Likewise.
44457         * modules/snprintf-posix (Depends-on): Likewise.
44458         * modules/sprintf-posix (Depends-on): Likewise.
44459         * modules/trunc-tests (Depends-on): Likewise.
44460         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44461         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44462         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44463         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44464         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44465         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44466         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44467         * modules/vasnprintf-posix (Depends-on): Likewise.
44468         * modules/vasprintf-posix (Depends-on): Likewise.
44469         * modules/vfprintf-posix (Depends-on): Likewise.
44470         * modules/vsnprintf-posix (Depends-on): Likewise.
44471         * modules/vsprintf-posix (Depends-on): Likewise.
44472         * lib/frexp.c: Include isnand.h instead of isnan.h.
44473         (ISNAN): Set to isnand instead of isnan.
44474         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44475         (gl_isfinited): Use isnand instead of isnan.
44476         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44477         (gl_signbitd): Use isnand instead of isnan.
44478         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44479         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44480         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44481         (main): Use isnand instead of isnan.
44482         * tests/test-round1.c: Include isnand.h.
44483         (main): Use isnand instead of isnan.
44484         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44485         (ISNAN): Set to isnand instead of isnan.
44486         * tests/test-trunc1.c: Include isnand.h.
44487         (main): Use isnand instead of isnan.
44488         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44489         (equal): Use isnand instead of isnan.
44490         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44491         isnand-nolibm.
44492         * NEWS: Mention the change.
44493
44494 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44495             Bruno Haible  <bruno@clisp.org>
44496
44497         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44498         the GCC builtins for signbits are present and set
44499         REPLACE_SIGNBIT_USING_GCC if so.
44500         * lib/math.in.h (signbit): Define using GCC builtins if
44501         REPLACE_SIGNBIT_USING_GCC is set.
44502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44503         REPLACE_SIGNBIT_USING_GCC.
44504         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44505
44506 2008-01-25  Jim Meyering  <meyering@redhat.com>
44507
44508         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44509         * lib/poll.c: Include <config.h>, not "config.h".
44510         * tests/test-getaddrinfo.c: Likewise.
44511
44512 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44513
44514         * modules/sockets-tests: New file.
44515
44516 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44517
44518         * modules/sockets: New module, can be used to call WSA_Startup and
44519         WSA_Cleanup when needed.
44520
44521         * lib/sockets.h, lib/sockets.c: New files.
44522
44523         * m4/sockets.m4: New file.
44524
44525         * tests/test-sockets.c: New file.
44526
44527 2008-01-19  Bruno Haible  <bruno@clisp.org>
44528
44529         * doc/posix-headers: Renamed from doc/headers.
44530         * doc/posix-functions: Renamed from doc/functions.
44531         * doc/gnulib.texi: Update.
44532
44533 2008-01-19  Bruno Haible  <bruno@clisp.org>
44534
44535         * doc/glibc-functions/strcasestr.texi: Include contents of
44536         doc/functions/strcasestr.texi, fixing the list of platforms.
44537         * doc/functions/strcasestr.texi: Remove file.
44538
44539 2008-01-19  Bruno Haible  <bruno@clisp.org>
44540
44541         * doc/glibc-functions/memmem.texi: Include contents of
44542         doc/functions/memmem.texi.
44543         * doc/functions/memmem.texi: Remove file.
44544
44545 2008-01-18  Bruno Haible  <bruno@clisp.org>
44546
44547         * doc/glibc-functions/*.texi: New files.
44548         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44549         to use the new files.
44550
44551 2008-01-17  Bruno Haible  <bruno@clisp.org>
44552
44553         * tests/test-gethostname.c (main): Fix printf statement.
44554
44555 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44556
44557         * modules/gethostname-tests: New file.
44558
44559         * tests/test-gethostname.c: New file.
44560
44561 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44562
44563         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44564         used by the UNAME case.  Reported by Bruno Haible
44565         <bruno@clisp.org>.
44566
44567 2008-01-17  Eric Blake  <ebb9@byu.net>
44568
44569         Convert c-strcasestr to be more efficient.
44570         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44571         (Depends-on): Add c-strcase, remove malloca, strnlen.
44572         * tests/test-c-strcasestr.c (main): Enhance test.
44573         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44574
44575 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44576
44577         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44578         Use it in creating po/Makevars.
44579
44580 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44581
44582         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44583         Applications that requires it should initialize libgcrypt
44584         manually.
44585
44586 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44587
44588         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44589
44590 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44591
44592         Fix problem with getdate on mingw32 reported by Simon Josefsson
44593         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44594         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44595         tzname", when deciding whether to declare tzname.
44596         * lib/strftime.c (tzname): Likewise.
44597
44598 2008-01-15  Bruno Haible  <bruno@clisp.org>
44599
44600         Work around a MacOS X 10.5 bug in frexpl().
44601         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44602         * doc/functions/frexpl.texi: Document the bug.
44603         Reported by Elias Pipping <pipping@gentoo.org>.
44604
44605 2008-01-14  Eric Blake  <ebb9@byu.net>
44606
44607         Touch up previous patch.
44608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44609         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44610
44611         Convert strcasestr module to use Two-Way algorithm.
44612         * modules/strcasestr-simple: New module, based on the old
44613         strcasestr, but with Two-Way rather than KMP.
44614         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44615         * lib/string.in.h (rpl_strcasestr): Declare.
44616         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44617         performance.
44618         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44619         * modules/string (Makefile.am): Support strcasestr.
44620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44621         * modules/strcasestr-tests (Depends-on): Check for alarm.
44622         * tests/test-strcasestr.c: Augment test.
44623         * lib/str-two-way.h: Clean up stray macro.
44624         * NEWS: Document new module.
44625         * MODULES.html.sh (string handling): Likewise.
44626         * doc/functions/strcasestr.texi: New file.
44627         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44628         here, since it is not a POSIX function.
44629
44630 2008-01-14  Colin Watson  <cjwatson@debian.org>
44631             Bruno Haible  <bruno@clisp.org>
44632
44633         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44634         works fine; if not, set REPLACE_STRSIGNAL.
44635         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44637         REPLACE_STRSIGNAL.
44638         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44639         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44640         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44641
44642 2008-01-14  Bruno Haible  <bruno@clisp.org>
44643
44644         * modules/strsignal (Include): Change to <string.h>.
44645
44646 2008-01-14  Colin Watson  <cjwatson@debian.org>
44647
44648         * modules/argp (Notice): Add a notice recommending to change
44649         XGETTEXT_OPTIONS.
44650         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44651
44652 2008-01-13  Colin Watson  <cjwatson@debian.org>
44653
44654         * modules/strsignal-tests: New file.
44655         * tests/test-strsignal.c: New file.
44656
44657         * lib/strsignal.c: New file, from glibc with modifications.
44658         * lib/siglist.h: New file, from glibc with modifications.
44659         * lib/string.in.h (strsignal): New declaration.
44660         * m4/strsignal.m4: New file.
44661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44662         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44663         * modules/strsignal: New file.
44664         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44665         HAVE_DECL_STRSIGNAL.
44666
44667 2008-01-13  Bruno Haible  <bruno@clisp.org>
44668
44669         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44670         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44671         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44672         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44673
44674 2008-01-13  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44677         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44678         * lib/argp.h (__attribute__): Likewise.
44679         * lib/c-stack.c (__attribute__): Likewise.
44680         * lib/error.h (__attribute__): Likewise.
44681         * lib/fts.c (__attribute__): Likewise.
44682         * lib/openat.h (__attribute__): Likewise.
44683         * lib/stdio.in.h (__attribute__): Likewise.
44684         * lib/string.in.h (__attribute__): Likewise.
44685         * lib/utimens.c (__attribute__): Likewise.
44686         * lib/vasnprintf.h (__attribute__): Likewise.
44687         * lib/xalloc.h (__attribute__): Likewise.
44688         * lib/xprintf.h (__attribute__): Likewise.
44689         * lib/xstrtol.h (__attribute__): Likewise.
44690         * lib/xvasprintf.h (__attribute__): Likewise.
44691
44692 2008-01-12  Bruno Haible  <bruno@clisp.org>
44693
44694         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44695         * doc/glibc-headers/a.out.texi: New file.
44696         * doc/glibc-headers/aliases.texi: New file.
44697         * doc/glibc-headers/alloca.texi: New file.
44698         * doc/glibc-headers/ar.texi: New file.
44699         * doc/glibc-headers/argp.texi: New file.
44700         * doc/glibc-headers/argz.texi: New file.
44701         * doc/glibc-headers/byteswap.texi: New file.
44702         * doc/glibc-headers/crypt.texi: New file.
44703         * doc/glibc-headers/endian.texi: New file.
44704         * doc/glibc-headers/envz.texi: New file.
44705         * doc/glibc-headers/err.texi: New file.
44706         * doc/glibc-headers/error.texi: New file.
44707         * doc/glibc-headers/execinfo.texi: New file.
44708         * doc/glibc-headers/fpu_control.texi: New file.
44709         * doc/glibc-headers/fstab.texi: New file.
44710         * doc/glibc-headers/fts.texi: New file.
44711         * doc/glibc-headers/getopt.texi: New file.
44712         * doc/glibc-headers/ieee754.texi: New file.
44713         * doc/glibc-headers/ifaddrs.texi: New file.
44714         * doc/glibc-headers/libintl.texi: New file.
44715         * doc/glibc-headers/mcheck.texi: New file.
44716         * doc/glibc-headers/mntent.texi: New file.
44717         * doc/glibc-headers/obstack.texi: New file.
44718         * doc/glibc-headers/paths.texi: New file.
44719         * doc/glibc-headers/printf.texi: New file.
44720         * doc/glibc-headers/pty.texi: New file.
44721         * doc/glibc-headers/resolv.texi: New file.
44722         * doc/glibc-headers/shadow.texi: New file.
44723         * doc/glibc-headers/sysexits.texi: New file.
44724         * doc/glibc-headers/ttyent.texi: New file.
44725
44726 2008-01-12  Jim Meyering  <meyering@redhat.com>
44727
44728         announce-gen: emit Gnulib's git-based version string.
44729         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44730         New option --gnulib-version=V, where V is expected to be
44731         the output of running git describe in the gnulib directory.
44732         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44733         not useful, and plan to stop publishing an xdelta file with each
44734         coreutils release.
44735
44736         * build-aux/announce-gen: Also check for lzma-compressed files.
44737
44738 2008-01-11  Bruno Haible  <bruno@clisp.org>
44739
44740         * tests/test-memmem.c (main): Increase maximum allowed time.
44741         * tests/test-strstr.c (main): Likewise.
44742
44743 2008-01-11  Bruno Haible  <bruno@clisp.org>
44744
44745         * doc/functions/memmem.texi: Add more precisions about platforms.
44746         * doc/functions/strstr.texi: Likewise.
44747
44748 2008-01-10  Eric Blake  <ebb9@byu.net>
44749
44750         * m4/strstr.m4: Delete cruft from copy-n-paste.
44751         Reported by Bruno Haible.
44752
44753 2008-01-10  Bruno Haible  <bruno@clisp.org>
44754
44755         Make c-strstr rely on strstr.
44756         * lib/c-strstr.c: Don't include str-kmp.h.
44757         (c_strstr): Define in terms of strstr.
44758         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44759         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44760
44761 2008-01-10  Bruno Haible  <bruno@clisp.org>
44762
44763         * doc/gnulib.texi (String Functions in C Locale): New section.
44764         * doc/c-ctype.texi: New file.
44765         * doc/c-strcase.texi: New file.
44766         * doc/c-strcaseeq.texi: New file.
44767         * doc/c-strcasestr.texi: New file.
44768         * doc/c-strstr.texi: New file.
44769         * doc/c-strtod.texi: New file.
44770         * doc/c-strtold.texi: New file.
44771
44772 2008-01-10  Eric Blake  <ebb9@byu.net>
44773
44774         * lib/relocatable.h: Fix a comment.
44775
44776 2008-01-10  Eric Blake  <ebb9@byu.net>
44777
44778         Share two-way algorithm.
44779         * lib/str-two-way.h: New file, merged from...
44780         * lib/memmem.c: ...here...
44781         * lib/strstr.c: ...and here.
44782         * modules/memmem (Files): Use it.
44783         * modules/strstr (Files): Likewise.
44784
44785         Avoid quadratic strstr implementations.
44786         * lib/strstr.c: New file.
44787         * m4/strstr.m4: Likewise.
44788         * modules/strstr: Likewise.
44789         * modules/strstr-tests: Likewise.
44790         * tests/test-strstr.c: Likewise.
44791         * lib/string.in.h (rpl_strstr): Declare.
44792         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44793         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44794         * modules/string (Makefile.am): Likewise.
44795         * MODULES.html.sh (string handling): Mention new module.
44796         * doc/functions/strstr.texi (strstr): Document the bug.
44797
44798 2008-01-10  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/relocatable.h (relocate): State whether result is freshly
44801         allocated or not.
44802         * lib/relocatable.c (relocate): Return a freshly allocated string
44803         instead of a pointer to a privately held string.
44804         Reported by Sylvain Beucler <beuc@gnu.org>.
44805
44806 2008-01-10  Colin Watson  <cjwatson@debian.org>
44807
44808         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44809         s/S_ISNLK/S_ISLNK/.
44810
44811 2008-01-09  Bruno Haible  <bruno@clisp.org>
44812
44813         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44814         and other files.
44815         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44816         if it's only a guess.
44817         * modules/memmem: Simplify by depending on memmem-simple.
44818
44819 2008-01-09  Bruno Haible  <bruno@clisp.org>
44820
44821         Work around OpenBSD 4.0 tdelete() bug.
44822         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44823         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44824         macros and don't redefine the enum values.
44825         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44826         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44827         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44828
44829 2008-01-09  Bruno Haible  <bruno@clisp.org>
44830
44831         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44832         (main): Don't perform the tests if setlocale did not install a UTF-8
44833         locale. Needed on OpenBSD 4.0.
44834         * modules/wcwidth-tests (Depends-on): Add localcharset.
44835
44836 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44837
44838         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44839         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44840         * NEWS: announce this.
44841         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44842
44843 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44844         and Eric Blake  <ebb9@byu.net>
44845
44846         Add memmem-simple module.
44847         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44848         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44849         * modules/memmem-simple: New file.
44850         * modules/memmem (Description): Tweak.
44851         * MODULES.html.sh (string handling): Mention new module.
44852         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44853         addressed by memmem-simple.
44854         * NEWS: Document the difference.
44855
44856 2008-01-09  Eric Blake  <ebb9@byu.net>
44857
44858         Give gcc some memmem optimization hints.
44859         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44860         (strcasestr): Declare as pure.
44861         * modules/memmem (Maintainer): Claim my implementation.
44862
44863 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44864
44865         Support AIX 6.1 and higher.
44866         * build-aux/config.libpath: Likewise.
44867         * build-aux/config.rpath: Likewise.
44868
44869 2008-01-08  Jim Meyering  <meyering@redhat.com>
44870             Bruno Haible  <bruno@clisp.org>
44871
44872         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44873         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44874         Reported by Peter Fales in
44875         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44876
44877 2008-01-08  Bruno Haible  <bruno@clisp.org>
44878
44879         * modules/unictype/category-of (Depends-on): Add
44880         unictype/category-none.
44881         * modules/unictype/category-and-tests (Depends-on): Add
44882         unictype/category-{L,N,Lu,Nd}.
44883         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44884         * modules/unictype/category-or-tests (Depends-on): Add
44885         unictype/category-{L,N}.
44886         * modules/unictype/category-name-tests (Depends-on): Add
44887         unictype/category-{Z,Nl}.
44888         Reported by Simon Josefsson.
44889
44890 2008-01-08  Bruno Haible  <bruno@clisp.org>
44891
44892         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44893         convention better.
44894         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44895         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44896         Reported by Peter Miller <millerp@canb.auug.org.au>.
44897
44898 2008-01-08  Eric Blake  <ebb9@byu.net>
44899
44900         Rewrite memmem to guarantee linear complexity without malloc.
44901         * lib/memmem.c (memmem): Use Two-Way rather than
44902         Knuth-Morris-Pratt, to allow O(1) space usage.
44903         (critical_factorization, two_way_short_needle)
44904         (two_way_long_needle): New functions.
44905         (knuth_morris_pratt): Delete.
44906         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44907         Add stdint.
44908         * tests/test-memmem.c (main): Add tests for periodic needle and
44909         sublinear performance.
44910         * doc/functions/memmem.texi (memmem): Document other deficiencies
44911         in cygwin and older glibc.
44912
44913 2008-01-08  Bruno Haible  <bruno@clisp.org>
44914
44915         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44916         augmentation.
44917
44918 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44919
44920         Add a configure time option: --disable-acl.
44921         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44922         AC_ARG_ENABLE(acl).
44923
44924 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44925
44926         * tests/test-localename.c: Don't include obsolete "setenv.h".
44927
44928         * modules/localename-tests (Depends-on): Need unsetenv.
44929
44930 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44931
44932         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44933
44934 2008-01-06  Colin Watson  <cjwatson@debian.org>
44935
44936         * users.txt: Add man-db.
44937
44938 2008-01-07  Bruno Haible  <bruno@clisp.org>
44939
44940         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44941         previous section name.
44942
44943 2008-01-07  Bruno Haible  <bruno@clisp.org>
44944
44945         * lib/progname.c (set_program_name): Don't strip off a leading
44946         "lt-" prefix outside a .libs directory.
44947         Suggested by Paul Eggert.
44948
44949 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44950             Bruno Haible  <bruno@clisp.org>
44951
44952         Improve memory cleanup in 'relocatable' module.
44953         * lib/relocatable.h (compute_curr_prefix): Change return type to
44954         'char *'.
44955         * lib/relocatable.c (compute_curr_prefix): Change return type to
44956         'char *'. Free curr_installdir after use.
44957         (relocate): Free curr_prefix_better after use.
44958         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44959
44960 2008-01-01  Bruno Haible  <bruno@clisp.org>
44961
44962         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44963         failure on older glibc systems.
44964         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44965
44966 2008-01-05  Eric Blake  <ebb9@byu.net>
44967
44968         Avoid quadratic system memmem.
44969         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44970         Reported by Ralf Wildenhues.
44971
44972         Fix memmem test for mingw.
44973         * modules/memmem-tests (configure.ac): Check for alarm.
44974         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44975         it.
44976         * doc/functions/memmem.texi: New file.
44977         * doc/gnulib.texi (Function Substitutes): Add memmem.
44978         Reported by Bruno Haible.
44979
44980 2008-01-04  Bruno Haible  <bruno@clisp.org>
44981
44982         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44983         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44984         gl_HEADER_STRING_H_DEFAULTS.
44985
44986 2008-01-04  Eric Blake  <ebb9@byu.net>
44987
44988         Shorten duration of memmem test.
44989         * tests/test-memmem.c (main): Use alarm to declare failure if test
44990         is taking too long.
44991         Reported by Ralf Wildenhues.
44992
44993 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44994
44995         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44996         string, needed by strerror.
44997
44998 2008-01-03  Colin Watson  <cjwatson@debian.org>
44999             Bruno Haible  <bruno@clisp.org>
45000
45001         * doc/gnulib-tool.texi (Localization): New section.
45002
45003 2008-01-02  Bruno Haible  <bruno@clisp.org>
45004
45005         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45006         variables to 'unsigned char *' type.
45007         Reported by Paul Eggert.
45008
45009 2008-01-02  Jim Meyering  <jim@meyering.net>
45010
45011         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45012
45013 2007-12-31  Jim Meyering  <jim@meyering.net>
45014
45015         Avoid use of private FTS type name.
45016         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45017
45018 2007-12-30  Karl Berry  <karl@gnu.org>
45019
45020         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45021         work around defect in Texinfo and/or the standalone Info browser.
45022
45023 2007-12-30  Bruno Haible  <bruno@clisp.org>
45024
45025         Unify 5 copies of the KMP code.
45026         * lib/str-kmp.h: New file.
45027         * lib/c-strcasestr.c: Include str-kmp.h.
45028         (knuth_morris_pratt): Remove function.
45029         (c_strcasestr): Update.
45030         * lib/c-strstr.c: Include str-kmp.h.
45031         (knuth_morris_pratt): Remove function.
45032         (c_strcasestr): Update.
45033         * lib/mbscasestr.c: Include str-kmp.h.
45034         (knuth_morris_pratt_unibyte): Remove function.
45035         * lib/mbsstr.c: Include str-kmp.h.
45036         (knuth_morris_pratt_unibyte): Remove function.
45037         * lib/strcasestr.c: Include str-kmp.h.
45038         (knuth_morris_pratt): Remove function.
45039         (strcasestr): Update.
45040         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45041         * modules/c-strstr (Files): Likewise.
45042         * modules/mbscasestr (Files): Likewise.
45043         * modules/mbsstr (Files): Likewise.
45044         * modules/strcasestr (Files): Likewise.
45045         Suggested by Paul Eggert.
45046
45047 2007-12-30  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45050         defined.
45051
45052 2007-12-30  Bruno Haible  <bruno@clisp.org>
45053
45054         * lib/xmalloca.h: Include xalloc.h.
45055         (xnmalloca): New macro.
45056
45057 2007-12-30  Bruno Haible  <bruno@clisp.org>
45058
45059         * lib/malloca.h (nmalloca): New macro.
45060         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45061         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45062         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45063         knuth_morris_pratt_multibyte): Likewise.
45064         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45065         knuth_morris_pratt_multibyte): Likewise.
45066         * lib/memmem.c (knuth_morris_pratt): Likewise.
45067         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45068
45069 2007-12-25  Bruno Haible  <bruno@clisp.org>
45070
45071         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45072         * lib/glob.c: Don't include openat.h.
45073         (link_exists2_p): Add back the code that deals with the
45074         !GLOB_ALTDIRFUNC case.
45075         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45076         let it do the filename concatenation.
45077         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45078         * modules/glob (Depends-on): Remove openat.
45079
45080 2007-12-31  Bruno Haible  <bruno@clisp.org>
45081
45082         * modules/dirfd (License): Change to LGPLv2+.
45083         Approved by Jim Meyering.
45084
45085 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45086
45087         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45088         when multiplying M by sizeof (size_t).
45089
45090 2007-12-10  Martin Lambers  <marlam@marlam.de>
45091
45092         Override getpagesize on mingw.
45093         * lib/getpagesize.c: New file.
45094         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45095         * modules/getpagesize (Files): Add lib/getpagesize.c.
45096         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45098         REPLACE_GETPAGESIZE.
45099         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45100
45101 2007-12-25  Bruno Haible  <bruno@clisp.org>
45102
45103         * modules/localcharset (Notice): New field.
45104         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45105         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45106
45107 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45108             Bruno Haible  <bruno@clisp.org>
45109
45110         Avoid using the syntax symbol() in formatted documentation.
45111         * MODULES.html.sh (func_module): When replacing symbol() with a
45112         hyperlink, remove the parentheses. Show an error if some remain.
45113         Recognize and render the '...' syntax.
45114         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45115         Rework. Add paragraph about GCC's inlining.
45116         * doc/alloca.texi: Likewise.
45117         * doc/error.texi: Remove parentheses from symbol reference.
45118         * doc/gnulib-intro.texi: Likewise.
45119         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45120         * modules/fnmatch (Description): Reword to say "the ... function".
45121         * modules/full-read (Description): Likewise.
45122         * modules/full-write (Description): Likewise.
45123         * modules/safe-read (Description): Likewise.
45124         * modules/safe-write (Description): Likewise.
45125         * modules/strchrnul (Description): Likewise.
45126         * modules/trim (Description): Likewise.
45127         * modules/error (Description): Remove parentheses from symbol
45128         references.
45129         * modules/verror (Description): Likewise.
45130         Reported by Karl Berry.
45131
45132 2007-12-25  Bruno Haible  <bruno@clisp.org>
45133
45134         Fixup after 2007-10-16 commit.
45135         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45136
45137 2007-12-24  Bruno Haible  <bruno@clisp.org>
45138
45139         Make --enable-relocatable work with DESTDIR.
45140         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45141         to compute installdir from destprog.
45142         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45143         also set the RELOC_DESTDIR variable.
45144         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45145
45146 2007-12-24  Bruno Haible  <bruno@clisp.org>
45147
45148         Fix link error due to xalloc_die().
45149         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45150         of xreadlink.
45151         * lib/relocwrapper.c: Update comments.
45152         * build-aux/install-reloc: Remove xreadlink.c from file list.
45153         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45154         xreadlink.c.
45155         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45156
45157 2007-12-24  Bruno Haible  <bruno@clisp.org>
45158
45159         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45160         * lib/setenv.h: Remove file.
45161         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45162         lib/setenv.h.
45163         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45164         (Depends-on): Add stdlib.
45165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45166         gl_FUNC_UNSETENV.
45167         (Include): Replace setenv.h with <stdlib.h>.
45168         * modules/unsetenv: New file.
45169         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45170         * lib/unsetenv.c: Include <stdlib.h> first.
45171         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45172         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45173         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45174         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45175         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45176         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45178         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45179         * doc/functions/unsetenv.texi: Update.
45180         * modules/xsetenv (Depends-on): Add unsetenv.
45181         * modules/getdate (Depends-on): Likewise.
45182         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45183         * lib/xsetenv.c: Don't include setenv.h.
45184         * lib/getdate.y: Likewise.
45185         * lib/relocwrapper.c: Likewise.
45186         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45187         (Depends-on): Add stdlib.
45188         * NEWS: Mention the changes.
45189         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45190
45191 2007-12-23  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45194         indentation.
45195
45196 2007-12-23  Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/c-strcasestr.c: Add more comments.
45199         * lib/c-strstr.c: Likewise.
45200         * lib/mbscasestr.c: Likewise.
45201         * lib/mbsstr.c: Likewise.
45202         * lib/strcasestr.c: Likewise.
45203         * lib/memmem.c: Likewise.
45204
45205 2007-12-23  Bruno Haible  <bruno@clisp.org>
45206
45207         * tests/test-memmem.c: Include <string.h> first.
45208
45209 2007-12-22  Bruno Haible  <bruno@clisp.org>
45210
45211         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45212         the contents of $testsbase.
45213         Reported by Ralf Wildenhues.
45214
45215 2007-12-22  Bruno Haible  <bruno@clisp.org>
45216
45217         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45218         two variables local_ldadd_before, local_ldadd_last.
45219
45220 2007-12-20  Eric Blake  <ebb9@byu.net>
45221
45222         Work around circular library issue when cross-compiling.
45223         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45224         that progname.o does not need to pull in rpl_memcmp.
45225
45226 2007-12-19  Eric Blake  <ebb9@byu.net>
45227
45228         Fix memmem to avoid O(n^2) worst-case complexity.
45229         * lib/memmem.c (knuth_morris_pratt): New function.
45230         (memmem): Use it if first few naive iterations fail.
45231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45232         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45233         * modules/memchr (License): Likewise.
45234         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45235         malloca.
45236         * tests/test-memmem.c: Rewrite, borrowing ideas from
45237         test-mbsstr1.c; the old version wouldn't even compile!
45238         * modules/memmem-tests: New file.
45239         * lib/string.in.h (rpl_memmem): Add declaration.
45240         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45242         REPLACE_MEMMEM.
45243
45244 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45245
45246         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45247         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45248         before any system include files, and undef after them all.  This
45249         should fix a problem on VMS reported by John E. Malmberg in
45250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45251
45252 2007-12-17  Eric Blake  <ebb9@byu.net>
45253
45254         Revert addition of verify, for BSD/OS.
45255         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45256         can't handle large files, for the sake of obsolete platforms.
45257         * modules/fseeko (Depends-on): Remove verify.
45258         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45259         * doc/functions/ftello.texi (ftello): Likewise.
45260         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45261         Reported by Larry Jones.
45262
45263 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45264
45265         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45266         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45267
45268 2007-12-17  Jim Meyering  <meyering@redhat.com>
45269
45270         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45271         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45272         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45273         * modules/getcwd (Depends-on): Add openat.
45274         Reported by Petr Salinger.
45275
45276 2007-12-17  Bruno Haible  <bruno@clisp.org>
45277
45278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45279         avoid a segmentation fault of the configure test on x86_64 systems.
45280
45281 2007-12-15  Jim Meyering  <meyering@redhat.com>
45282
45283         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45284
45285 2007-12-13  Eric Blake  <ebb9@byu.net>
45286
45287         Another fseek test.
45288         * tests/test-fseek.c (main): Also test ungetc handling.
45289         * tests/test-fseeko.c (main): Likewise.
45290         * modules/fseeko (Depends-on): Add verify.
45291         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45292         large.
45293         Reported by Larry Jones.
45294
45295         Fix fseeko on mingw.
45296         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45297         seek.
45298
45299         Beef up fseek tests.
45300         * tests/test-fseek.c (main): Also test eof handling.
45301         * tests/test-fseeko.c (main): Likewise.
45302         Reported by Larry Jones.
45303
45304 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45305
45306         Fix fseeko on BSD-based platforms.
45307         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45308         successful seek.
45309
45310 2007-12-12  Eric Blake  <ebb9@byu.net>
45311
45312         Allow circular dependency of separate libtests.a
45313         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45314         when use_libtests.
45315
45316 2007-12-11  Eric Blake  <ebb9@byu.net>
45317
45318         Fix bug with -0.0L in previous patch.
45319         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45320         * tests/test-isnan.c (main): Also test on zeroes.
45321         * tests/test-isnanf.c (main): Likewise.
45322         * tests/test-isnanl.h (main): Likewise.
45323
45324         Detect pseudo-denormals on x86 even when cross-compiling.
45325         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45326         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45327         invalid bit patterns that happen to satisfy ==.
45328
45329         Avoid link failures with separate libtests.a.
45330         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45331         last, to satisfy circular dependencies.
45332
45333 2007-12-11  Eric Blake  <ebb9@byu.net>
45334         and Bruno Haible  <bruno@clisp.org>
45335
45336         Fix OpenBSD 4.0 <float.h> handling of long double.
45337         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45338         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45339         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45340
45341 2007-12-11  Jim Meyering  <meyering@redhat.com>
45342
45343         * users.txt: Add libvirt.
45344
45345         Support versions of autoconf prior to 2.59c.
45346         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45347         if it is not already defined.
45348
45349 2007-12-09  Bruno Haible  <bruno@clisp.org>
45350
45351         Let 'gnulib-tool --import' collect sources needed for the tests in
45352         tests/ rather than in lib/.
45353         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45354         argument. If true, add rules to generate libtests.a, and put libtests.a
45355         into $(LDADD). Consider source files in subdirectories and set
45356         uses_subdirs.
45357         (func_emit_initmacro_start, func_emit_initmacro_end,
45358         func_emit_initmacro_done): Pass all arguments explicitly.
45359         (func_import): Determine two module lists main_modules,
45360         testsrelated_modules. Determine use_libtests. Determine two variables
45361         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45362         instead of just sed_transform_lib_file. Determine two variables
45363         main_files and testsrelated_files. Compute 'files' as the union of
45364         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45365         func_add_or_update. In the generated gnulib-comp.m4, collect the
45366         object files for tests/ in different variables than those for lib/.
45367         Substitute LIBTESTS_LIBDEPS.
45368         (func_create_testdir): Combine the uses_subdirs results from
45369         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45370
45371 2007-12-09  Bruno Haible  <bruno@clisp.org>
45372
45373         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45374         the build-aux directory.
45375
45376 2007-12-09  Bruno Haible  <bruno@clisp.org>
45377
45378         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45379         introduced on 2006-09-09.
45380
45381 2007-12-07  Jim Meyering  <meyering@redhat.com>
45382
45383         Let these macros work also with autoconf-2.59.
45384         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45385         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45386         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45387
45388 2007-12-06  Jim Meyering  <meyering@redhat.com>
45389
45390         Avoid a configure-time syntax error in gl_FUNC_ACL.
45391         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45392         function in each branch, before testing the cache variable.
45393
45394 2007-12-04  Eric Blake  <ebb9@byu.net>
45395
45396         Make scripts executable.
45397         * build-aux/config.guess: Add execute permissions.
45398         * build-aux/config.sub: Likewise.
45399         * build-aux/gendocs.sh: Likewise.
45400
45401         Fix frexp on mingw.
45402         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45403         cross-compiling.
45404         * doc/functions/frexp.texi (frexp): Document the bug.
45405
45406         Make cygwin fseeko check more reliable.
45407         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45408         version numbers, rather than unrelated feature check.
45409         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45410         * doc/functions/ftello.texi (ftello): Likewise.
45411         Reported by Bruno Haible.
45412
45413         * m4/strerror.m4: Bump version number.
45414
45415 2007-12-03  Bruno Haible  <bruno@clisp.org>
45416
45417         * doc/functions/mprotect.texi: Mention the mingw problem.
45418
45419 2007-12-03  Eric Blake  <ebb9@byu.net>
45420
45421         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45422         REPLACE_STRERROR is initialized before this macro.
45423
45424 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45425
45426         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45427         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45428         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45429         put -lsec in even for programs other than 'ls'.  This fixes a problem
45430         for gettext reported by Bruno Haible in
45431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45432         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45433         Add support for Solaris 10.  This isn't efficient, but should get the
45434         job done for now.
45435
45436 2007-12-03  James Youngman  <jay@gnu.org>
45437
45438         * doc/regexprops-generic.texi: change "an close-group" to "a
45439         close-group" and "illegal" to "not allowed".
45440
45441 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45442
45443         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45444         pr_byname.h. Needed for the rare case when the maintainer has done
45445         "make maintainer-clean" in the source directory and then attempts a
45446         build outside the source directory.
45447         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45448         scripts_byname.h.
45449
45450 2007-12-02  Martin Lambers <marlam@marlam.de>
45451             Bruno Haible  <bruno@clisp.org>
45452
45453         * lib/getpagesize.h: Remove file.
45454         * lib/unistd.in.h: Include declaration of getpagesize here.
45455         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45456         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45457         HAVE_SYS_PARAM_H.
45458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45459         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45460         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45461         (Depends-on): Add unistd.
45462         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45463         (Include): Use <unistd.h> instead of getpagesize.h.
45464         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45465         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45466         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45467         gl_GETPAGESIZE invocation, already handled by module dependency.
45468         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45469
45470 2007-12-02  Bruno Haible  <bruno@clisp.org>
45471
45472         * modules/strings-tests: New file.
45473         * tests/test-strings.c: New file.
45474
45475         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45476         * lib/strings.in.h: New file.
45477         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45478         * m4/strings_h.m4: New file.
45479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45480         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45481         * modules/strings: New file.
45482         * modules/string (Makefile.am): Update.
45483         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45484         Reported by Karl Berry.
45485
45486 2007-12-01  Eric Blake  <ebb9@byu.net>
45487
45488         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45489         accomodate fix in cygwin 1.5.25.
45490
45491 2007-12-01  Jim Meyering  <meyering@redhat.com>
45492
45493         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45494         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45495         that would inhibit utf8-optimization of a regexp containing line-
45496         or buffer-anchors, e.g., `^', `$'.
45497
45498 2007-11-30  Bruno Haible  <bruno@clisp.org>
45499
45500         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45501         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45502         glthread_recursive_lock_init.
45503         * lib/lock.c (glthread_recursive_lock_init)
45504         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45505         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45506
45507 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45508
45509         New function qset_acl, like set_acl but with syscall semantics.
45510         * lib/acl.h (qset_acl): New decl.
45511         * lib/acl.c (qset_acl): New function.
45512         (set_acl): Use new function.  Use more-consistent diagnostics.
45513
45514 2007-11-28  Jim Meyering  <meyering@redhat.com>
45515
45516         * modules/physmem (License): Change from GPL to LGPLv2+.
45517
45518 2007-11-26  Bruno Haible  <bruno@clisp.org>
45519
45520         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45521         'long double' type has excess precision.
45522         Reported by Jim Meyering in
45523         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45524
45525 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45526
45527         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45528         Sync from <http://gnu.org/licenses>.
45529         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45530         with license text from same location.
45531         * doc/maintain.texi, doc/standards.texi:  Sync from
45532         <http://savannah.gnu.org/projects/gnustandards>.
45533
45534 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45535         and Jim Meyering  <meyering@redhat.com>
45536
45537         Adjust getdate' grammar to accept a slightly more regular language.
45538         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45539         Before, the former was rejected.
45540         * lib/getdate.y (digits_to_date_time): New function, factored
45541         out of ...
45542         (number): ...here.  Just call digits_to_date_time.
45543         (hybrid): New non-terminal to handle an <unsigned number,
45544         signed relative offset> sequence consistently.
45545
45546 2007-11-18  Jim Meyering  <meyering@redhat.com>
45547
45548         Pull my changes from coreutils:
45549         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45550         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45551         use of $gnulib_tool_option_extras, so that it's separated from the
45552         preceding argument.
45553
45554         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45555         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45556         parent destination directories before copying a file into place.
45557
45558 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45559
45560         bootstrap: work also with 4-argument variant of AC_INIT
45561         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45562
45563 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45564
45565         Port test-getaddrinfo to Solaris.
45566         Problem reported by Bruno Haible in
45567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45568         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45569         explanation of setting 'hints'.
45570         Don't reject an implementation merely because it returns EAI_SERVICE.
45571         (EAI_SERVICE): Define to 0 if not defined.
45572
45573 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45574
45575         The license of gnu-make and posix-shell is now "GPLed build tool".
45576         * modules/gnu-make (License): Likewise.
45577         * modules/posix-shell (License): Likewise.
45578
45579         New module posix-shell, for determining a POSIX shell
45580         or perhaps something that is close enough to a POSIX shell.
45581         * m4/posix-shell.m4: New file.
45582         * modules/posix-shell: New file.
45583
45584         * MODULES.html.sh: Mention new module.
45585
45586         New module gnu-make, for determining whether we're using GNU Make.
45587         * m4/gnu-make.m4: New file.
45588         * modules/gnu-make: New file.
45589         * MODULES.html.sh: Mention new module.
45590
45591 2007-11-14  Jim Meyering  <meyering@redhat.com>
45592
45593         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45594         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45595         use this macro to create a function _definition_.
45596         Remove useless "#undef ARGMATCH_DIE".
45597
45598 2007-11-14  Bruno Haible  <bruno@clisp.org>
45599
45600         * lib/config.charset: Update for OpenBSD 4.1.
45601         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45602
45603 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45604
45605         Document 64-bit #if problems in stdint.texi.
45606         * doc/headers/stdint.texi (stdint.h): Mention problems with
45607         64-bit-#if, and how to work around them.
45608
45609         Don't insist on 'long long int' support in the preprocessor.  It
45610         breaks too many things.  For example, PRIdMAX still uses a 'long
45611         long int' format with the latest Sun compiler, even though
45612         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45613         preprocessor problem.  This causes the latest coreutils to dump
45614         core on Solaris 10 sparc with the Sun C compiler.
45615         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45616         the troublesome expressions at configure-time, not at #if-time.
45617         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45618         preprocessor.
45619         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45620         compile-time C checks, done at 'configure'-time.
45621         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45622         * modules/inttypes (Makefile): Substitute the new symbols that
45623         gl_INTTYPES_H now generates.
45624         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45625
45626 2007-11-12  Bruno Haible  <bruno@clisp.org>
45627
45628         Tests for Unicode character classification functions.
45629
45630         * modules/unictype/bidicategory-byname-tests: New file.
45631         * modules/unictype/bidicategory-name-tests: New file.
45632         * modules/unictype/bidicategory-of-tests: New file.
45633         * modules/unictype/bidicategory-test-tests: New file.
45634         * modules/unictype/block-list-tests: New file.
45635         * modules/unictype/block-of-tests: New file.
45636         * modules/unictype/block-test-tests: New file.
45637         * modules/unictype/category-C-tests: New file.
45638         * modules/unictype/category-Cc-tests: New file.
45639         * modules/unictype/category-Cf-tests: New file.
45640         * modules/unictype/category-Cn-tests: New file.
45641         * modules/unictype/category-Co-tests: New file.
45642         * modules/unictype/category-Cs-tests: New file.
45643         * modules/unictype/category-L-tests: New file.
45644         * modules/unictype/category-Ll-tests: New file.
45645         * modules/unictype/category-Lm-tests: New file.
45646         * modules/unictype/category-Lo-tests: New file.
45647         * modules/unictype/category-Lt-tests: New file.
45648         * modules/unictype/category-Lu-tests: New file.
45649         * modules/unictype/category-M-tests: New file.
45650         * modules/unictype/category-Mc-tests: New file.
45651         * modules/unictype/category-Me-tests: New file.
45652         * modules/unictype/category-Mn-tests: New file.
45653         * modules/unictype/category-N-tests: New file.
45654         * modules/unictype/category-Nd-tests: New file.
45655         * modules/unictype/category-Nl-tests: New file.
45656         * modules/unictype/category-No-tests: New file.
45657         * modules/unictype/category-P-tests: New file.
45658         * modules/unictype/category-Pc-tests: New file.
45659         * modules/unictype/category-Pd-tests: New file.
45660         * modules/unictype/category-Pe-tests: New file.
45661         * modules/unictype/category-Pf-tests: New file.
45662         * modules/unictype/category-Pi-tests: New file.
45663         * modules/unictype/category-Po-tests: New file.
45664         * modules/unictype/category-Ps-tests: New file.
45665         * modules/unictype/category-S-tests: New file.
45666         * modules/unictype/category-Sc-tests: New file.
45667         * modules/unictype/category-Sk-tests: New file.
45668         * modules/unictype/category-Sm-tests: New file.
45669         * modules/unictype/category-So-tests: New file.
45670         * modules/unictype/category-Z-tests: New file.
45671         * modules/unictype/category-Zl-tests: New file.
45672         * modules/unictype/category-Zp-tests: New file.
45673         * modules/unictype/category-Zs-tests: New file.
45674         * modules/unictype/category-and-not-tests: New file.
45675         * modules/unictype/category-and-tests: New file.
45676         * modules/unictype/category-byname-tests: New file.
45677         * modules/unictype/category-name-tests: New file.
45678         * modules/unictype/category-none-tests: New file.
45679         * modules/unictype/category-of-tests: New file.
45680         * modules/unictype/category-or-tests: New file.
45681         * modules/unictype/category-test-withtable-tests: New file.
45682         * modules/unictype/combining-class-tests: New file.
45683         * modules/unictype/ctype-alnum-tests: New file.
45684         * modules/unictype/ctype-alpha-tests: New file.
45685         * modules/unictype/ctype-blank-tests: New file.
45686         * modules/unictype/ctype-cntrl-tests: New file.
45687         * modules/unictype/ctype-digit-tests: New file.
45688         * modules/unictype/ctype-graph-tests: New file.
45689         * modules/unictype/ctype-lower-tests: New file.
45690         * modules/unictype/ctype-print-tests: New file.
45691         * modules/unictype/ctype-punct-tests: New file.
45692         * modules/unictype/ctype-space-tests: New file.
45693         * modules/unictype/ctype-upper-tests: New file.
45694         * modules/unictype/ctype-xdigit-tests: New file.
45695         * modules/unictype/decimal-digit-tests: New file.
45696         * modules/unictype/digit-tests: New file.
45697         * modules/unictype/mirror-tests: New file.
45698         * modules/unictype/numeric-tests: New file.
45699         * modules/unictype/property-alphabetic-tests: New file.
45700         * modules/unictype/property-ascii-hex-digit-tests: New file.
45701         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45702         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45703         * modules/unictype/property-bidi-block-separator-tests: New file.
45704         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45705         * modules/unictype/property-bidi-common-separator-tests: New file.
45706         * modules/unictype/property-bidi-control-tests: New file.
45707         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45708         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45709         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45710         * modules/unictype/property-bidi-european-digit-tests: New file.
45711         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45712         * modules/unictype/property-bidi-left-to-right-tests: New file.
45713         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45714         * modules/unictype/property-bidi-other-neutral-tests: New file.
45715         * modules/unictype/property-bidi-pdf-tests: New file.
45716         * modules/unictype/property-bidi-segment-separator-tests: New file.
45717         * modules/unictype/property-bidi-whitespace-tests: New file.
45718         * modules/unictype/property-byname-tests: New file.
45719         * modules/unictype/property-combining-tests: New file.
45720         * modules/unictype/property-composite-tests: New file.
45721         * modules/unictype/property-currency-symbol-tests: New file.
45722         * modules/unictype/property-dash-tests: New file.
45723         * modules/unictype/property-decimal-digit-tests: New file.
45724         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45725         * modules/unictype/property-deprecated-tests: New file.
45726         * modules/unictype/property-diacritic-tests: New file.
45727         * modules/unictype/property-extender-tests: New file.
45728         * modules/unictype/property-format-control-tests: New file.
45729         * modules/unictype/property-grapheme-base-tests: New file.
45730         * modules/unictype/property-grapheme-extend-tests: New file.
45731         * modules/unictype/property-grapheme-link-tests: New file.
45732         * modules/unictype/property-hex-digit-tests: New file.
45733         * modules/unictype/property-hyphen-tests: New file.
45734         * modules/unictype/property-id-continue-tests: New file.
45735         * modules/unictype/property-id-start-tests: New file.
45736         * modules/unictype/property-ideographic-tests: New file.
45737         * modules/unictype/property-ids-binary-operator-tests: New file.
45738         * modules/unictype/property-ids-trinary-operator-tests: New file.
45739         * modules/unictype/property-ignorable-control-tests: New file.
45740         * modules/unictype/property-iso-control-tests: New file.
45741         * modules/unictype/property-join-control-tests: New file.
45742         * modules/unictype/property-left-of-pair-tests: New file.
45743         * modules/unictype/property-line-separator-tests: New file.
45744         * modules/unictype/property-logical-order-exception-tests: New file.
45745         * modules/unictype/property-lowercase-tests: New file.
45746         * modules/unictype/property-math-tests: New file.
45747         * modules/unictype/property-non-break-tests: New file.
45748         * modules/unictype/property-not-a-character-tests: New file.
45749         * modules/unictype/property-numeric-tests: New file.
45750         * modules/unictype/property-other-alphabetic-tests: New file.
45751         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45752         * modules/unictype/property-other-grapheme-extend-tests: New file.
45753         * modules/unictype/property-other-id-continue-tests: New file.
45754         * modules/unictype/property-other-id-start-tests: New file.
45755         * modules/unictype/property-other-lowercase-tests: New file.
45756         * modules/unictype/property-other-math-tests: New file.
45757         * modules/unictype/property-other-uppercase-tests: New file.
45758         * modules/unictype/property-paired-punctuation-tests: New file.
45759         * modules/unictype/property-paragraph-separator-tests: New file.
45760         * modules/unictype/property-pattern-syntax-tests: New file.
45761         * modules/unictype/property-pattern-white-space-tests: New file.
45762         * modules/unictype/property-private-use-tests: New file.
45763         * modules/unictype/property-punctuation-tests: New file.
45764         * modules/unictype/property-quotation-mark-tests: New file.
45765         * modules/unictype/property-radical-tests: New file.
45766         * modules/unictype/property-sentence-terminal-tests: New file.
45767         * modules/unictype/property-soft-dotted-tests: New file.
45768         * modules/unictype/property-space-tests: New file.
45769         * modules/unictype/property-terminal-punctuation-tests: New file.
45770         * modules/unictype/property-test-tests: New file.
45771         * modules/unictype/property-titlecase-tests: New file.
45772         * modules/unictype/property-unassigned-code-value-tests: New file.
45773         * modules/unictype/property-unified-ideograph-tests: New file.
45774         * modules/unictype/property-uppercase-tests: New file.
45775         * modules/unictype/property-variation-selector-tests: New file.
45776         * modules/unictype/property-white-space-tests: New file.
45777         * modules/unictype/property-xid-continue-tests: New file.
45778         * modules/unictype/property-xid-start-tests: New file.
45779         * modules/unictype/property-zero-width-tests: New file.
45780         * modules/unictype/scripts-tests: New file.
45781         * modules/unictype/syntax-c-ident-tests: New file.
45782         * modules/unictype/syntax-c-whitespace-tests: New file.
45783         * modules/unictype/syntax-java-ident-tests: New file.
45784         * modules/unictype/syntax-java-whitespace-tests: New file.
45785         * tests/unictype/test-bidi_byname.c: New file.
45786         * tests/unictype/test-bidi_name.c: New file.
45787         * tests/unictype/test-bidi_of.c: New file.
45788         * tests/unictype/test-bidi_test.c: New file.
45789         * tests/unictype/test-block_list.c: New file.
45790         * tests/unictype/test-block_of.c: New file.
45791         * tests/unictype/test-block_test.c: New file.
45792         * tests/unictype/test-categ_and.c: New file.
45793         * tests/unictype/test-categ_and_not.c: New file.
45794         * tests/unictype/test-categ_byname.c: New file.
45795         * tests/unictype/test-categ_name.c: New file.
45796         * tests/unictype/test-categ_none.c: New file.
45797         * tests/unictype/test-categ_of.c: New file.
45798         * tests/unictype/test-categ_or.c: New file.
45799         * tests/unictype/test-categ_test_withtable.c: New file.
45800         * tests/unictype/test-combining.c: New file.
45801         * tests/unictype/test-decdigit.c: New file.
45802         * tests/unictype/test-digit.c: New file.
45803         * tests/unictype/test-mirror.c: New file.
45804         * tests/unictype/test-numeric.c: New file.
45805         * tests/unictype/test-pr_byname.c: New file.
45806         * tests/unictype/test-pr_test.c: New file.
45807         * tests/unictype/test-predicate-part1.h: New file.
45808         * tests/unictype/test-predicate-part2.h: New file.
45809         * tests/unictype/test-scripts.c: New file.
45810         * tests/unictype/test-sy_c_ident.c: New file.
45811         * tests/unictype/test-sy_java_ident.c: New file.
45812
45813         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45814         for Unicode 5.0.0.
45815         * tests/unictype/test-categ_Cc.c: Likewise.
45816         * tests/unictype/test-categ_Cf.c: Likewise.
45817         * tests/unictype/test-categ_Cn.c: Likewise.
45818         * tests/unictype/test-categ_Co.c: Likewise.
45819         * tests/unictype/test-categ_Cs.c: Likewise.
45820         * tests/unictype/test-categ_L.c: Likewise.
45821         * tests/unictype/test-categ_Ll.c: Likewise.
45822         * tests/unictype/test-categ_Lm.c: Likewise.
45823         * tests/unictype/test-categ_Lo.c: Likewise.
45824         * tests/unictype/test-categ_Lt.c: Likewise.
45825         * tests/unictype/test-categ_Lu.c: Likewise.
45826         * tests/unictype/test-categ_M.c: Likewise.
45827         * tests/unictype/test-categ_Mc.c: Likewise.
45828         * tests/unictype/test-categ_Me.c: Likewise.
45829         * tests/unictype/test-categ_Mn.c: Likewise.
45830         * tests/unictype/test-categ_N.c: Likewise.
45831         * tests/unictype/test-categ_Nd.c: Likewise.
45832         * tests/unictype/test-categ_Nl.c: Likewise.
45833         * tests/unictype/test-categ_No.c: Likewise.
45834         * tests/unictype/test-categ_P.c: Likewise.
45835         * tests/unictype/test-categ_Pc.c: Likewise.
45836         * tests/unictype/test-categ_Pd.c: Likewise.
45837         * tests/unictype/test-categ_Pe.c: Likewise.
45838         * tests/unictype/test-categ_Pf.c: Likewise.
45839         * tests/unictype/test-categ_Pi.c: Likewise.
45840         * tests/unictype/test-categ_Po.c: Likewise.
45841         * tests/unictype/test-categ_Ps.c: Likewise.
45842         * tests/unictype/test-categ_S.c: Likewise.
45843         * tests/unictype/test-categ_Sc.c: Likewise.
45844         * tests/unictype/test-categ_Sk.c: Likewise.
45845         * tests/unictype/test-categ_Sm.c: Likewise.
45846         * tests/unictype/test-categ_So.c: Likewise.
45847         * tests/unictype/test-categ_Z.c: Likewise.
45848         * tests/unictype/test-categ_Zl.c: Likewise.
45849         * tests/unictype/test-categ_Zp.c: Likewise.
45850         * tests/unictype/test-categ_Zs.c: Likewise.
45851         * tests/unictype/test-ctype_alnum.c: Likewise.
45852         * tests/unictype/test-ctype_alpha.c: Likewise.
45853         * tests/unictype/test-ctype_blank.c: Likewise.
45854         * tests/unictype/test-ctype_cntrl.c: Likewise.
45855         * tests/unictype/test-ctype_digit.c: Likewise.
45856         * tests/unictype/test-ctype_graph.c: Likewise.
45857         * tests/unictype/test-ctype_lower.c: Likewise.
45858         * tests/unictype/test-ctype_print.c: Likewise.
45859         * tests/unictype/test-ctype_punct.c: Likewise.
45860         * tests/unictype/test-ctype_space.c: Likewise.
45861         * tests/unictype/test-ctype_upper.c: Likewise.
45862         * tests/unictype/test-ctype_xdigit.c: Likewise.
45863         * tests/unictype/test-decdigit.h: Likewise.
45864         * tests/unictype/test-digit.h: Likewise.
45865         * tests/unictype/test-numeric.h: Likewise.
45866         * tests/unictype/test-pr_alphabetic.c: Likewise.
45867         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45868         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45869         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45870         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45871         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45872         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45873         * tests/unictype/test-pr_bidi_control.c: Likewise.
45874         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45875         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45876         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45877         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45878         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45879         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45880         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45881         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45882         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45883         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45884         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45885         * tests/unictype/test-pr_combining.c: Likewise.
45886         * tests/unictype/test-pr_composite.c: Likewise.
45887         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45888         * tests/unictype/test-pr_dash.c: Likewise.
45889         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45890         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45891         * tests/unictype/test-pr_deprecated.c: Likewise.
45892         * tests/unictype/test-pr_diacritic.c: Likewise.
45893         * tests/unictype/test-pr_extender.c: Likewise.
45894         * tests/unictype/test-pr_format_control.c: Likewise.
45895         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45896         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45897         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45898         * tests/unictype/test-pr_hex_digit.c: Likewise.
45899         * tests/unictype/test-pr_hyphen.c: Likewise.
45900         * tests/unictype/test-pr_id_continue.c: Likewise.
45901         * tests/unictype/test-pr_id_start.c: Likewise.
45902         * tests/unictype/test-pr_ideographic.c: Likewise.
45903         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45904         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45905         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45906         * tests/unictype/test-pr_iso_control.c: Likewise.
45907         * tests/unictype/test-pr_join_control.c: Likewise.
45908         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45909         * tests/unictype/test-pr_line_separator.c: Likewise.
45910         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45911         * tests/unictype/test-pr_lowercase.c: Likewise.
45912         * tests/unictype/test-pr_math.c: Likewise.
45913         * tests/unictype/test-pr_non_break.c: Likewise.
45914         * tests/unictype/test-pr_not_a_character.c: Likewise.
45915         * tests/unictype/test-pr_numeric.c: Likewise.
45916         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45917         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45918         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45919         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45920         * tests/unictype/test-pr_other_id_start.c: Likewise.
45921         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45922         * tests/unictype/test-pr_other_math.c: Likewise.
45923         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45924         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45925         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45926         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45927         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45928         * tests/unictype/test-pr_private_use.c: Likewise.
45929         * tests/unictype/test-pr_punctuation.c: Likewise.
45930         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45931         * tests/unictype/test-pr_radical.c: Likewise.
45932         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45933         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45934         * tests/unictype/test-pr_space.c: Likewise.
45935         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45936         * tests/unictype/test-pr_titlecase.c: Likewise.
45937         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45938         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45939         * tests/unictype/test-pr_uppercase.c: Likewise.
45940         * tests/unictype/test-pr_variation_selector.c: Likewise.
45941         * tests/unictype/test-pr_white_space.c: Likewise.
45942         * tests/unictype/test-pr_xid_continue.c: Likewise.
45943         * tests/unictype/test-pr_xid_start.c: Likewise.
45944         * tests/unictype/test-pr_zero_width.c: Likewise.
45945         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45946         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45947
45948 2007-11-12  Bruno Haible  <bruno@clisp.org>
45949
45950         Unicode character classification functions.
45951         * lib/unictype.h: New file.
45952         * modules/unictype/base: New file.
45953         * modules/unictype/category-L: New file.
45954         * modules/unictype/category-Lu: New file.
45955         * modules/unictype/category-Ll: New file.
45956         * modules/unictype/category-Lt: New file.
45957         * modules/unictype/category-Lm: New file.
45958         * modules/unictype/category-Lo: New file.
45959         * modules/unictype/category-M: New file.
45960         * modules/unictype/category-Mn: New file.
45961         * modules/unictype/category-Mc: New file.
45962         * modules/unictype/category-Me: New file.
45963         * modules/unictype/category-N: New file.
45964         * modules/unictype/category-Nd: New file.
45965         * modules/unictype/category-Nl: New file.
45966         * modules/unictype/category-No: New file.
45967         * modules/unictype/category-P: New file.
45968         * modules/unictype/category-Pc: New file.
45969         * modules/unictype/category-Pd: New file.
45970         * modules/unictype/category-Ps: New file.
45971         * modules/unictype/category-Pe: New file.
45972         * modules/unictype/category-Pi: New file.
45973         * modules/unictype/category-Pf: New file.
45974         * modules/unictype/category-Po: New file.
45975         * modules/unictype/category-S: New file.
45976         * modules/unictype/category-Sm: New file.
45977         * modules/unictype/category-Sc: New file.
45978         * modules/unictype/category-Sk: New file.
45979         * modules/unictype/category-So: New file.
45980         * modules/unictype/category-Z: New file.
45981         * modules/unictype/category-Zs: New file.
45982         * modules/unictype/category-Zl: New file.
45983         * modules/unictype/category-Zp: New file.
45984         * modules/unictype/category-C: New file.
45985         * modules/unictype/category-Cc: New file.
45986         * modules/unictype/category-Cf: New file.
45987         * modules/unictype/category-Cs: New file.
45988         * modules/unictype/category-Co: New file.
45989         * modules/unictype/category-Cn: New file.
45990         * modules/unictype/category-or: New file.
45991         * modules/unictype/category-of: New file.
45992         * modules/unictype/category-test: New file.
45993         * modules/unictype/category-test-withtable: New file.
45994         * modules/unictype/category-byname: New file.
45995         * modules/unictype/category-none: New file.
45996         * modules/unictype/category-and: New file.
45997         * modules/unictype/category-and-not: New file.
45998         * modules/unictype/category-name: New file.
45999         * modules/unictype/combining-class: New file.
46000         * modules/unictype/category-all: New file.
46001         * modules/unictype/bidicategory-all: New file.
46002         * modules/unictype/bidicategory-byname: New file.
46003         * modules/unictype/bidicategory-name: New file.
46004         * modules/unictype/bidicategory-of: New file.
46005         * modules/unictype/bidicategory-test: New file.
46006         * modules/unictype/decimal-digit: New file.
46007         * modules/unictype/digit: New file.
46008         * modules/unictype/numeric: New file.
46009         * modules/unictype/mirror: New file.
46010         * modules/unictype/property-white-space: New file.
46011         * modules/unictype/property-alphabetic: New file.
46012         * modules/unictype/property-other-alphabetic: New file.
46013         * modules/unictype/property-not-a-character: New file.
46014         * modules/unictype/property-default-ignorable-code-point: New file.
46015         * modules/unictype/property-other-default-ignorable-code-point: New
46016         file.
46017         * modules/unictype/property-deprecated: New file.
46018         * modules/unictype/property-logical-order-exception: New file.
46019         * modules/unictype/property-variation-selector: New file.
46020         * modules/unictype/property-private-use: New file.
46021         * modules/unictype/property-unassigned-code-value: New file.
46022         * modules/unictype/property-uppercase: New file.
46023         * modules/unictype/property-other-uppercase: New file.
46024         * modules/unictype/property-lowercase: New file.
46025         * modules/unictype/property-other-lowercase: New file.
46026         * modules/unictype/property-titlecase: New file.
46027         * modules/unictype/property-soft-dotted: New file.
46028         * modules/unictype/property-id-start: New file.
46029         * modules/unictype/property-other-id-start: New file.
46030         * modules/unictype/property-id-continue: New file.
46031         * modules/unictype/property-other-id-continue: New file.
46032         * modules/unictype/property-xid-start: New file.
46033         * modules/unictype/property-xid-continue: New file.
46034         * modules/unictype/property-pattern-white-space: New file.
46035         * modules/unictype/property-pattern-syntax: New file.
46036         * modules/unictype/property-join-control: New file.
46037         * modules/unictype/property-grapheme-base: New file.
46038         * modules/unictype/property-grapheme-extend: New file.
46039         * modules/unictype/property-other-grapheme-extend: New file.
46040         * modules/unictype/property-grapheme-link: New file.
46041         * modules/unictype/property-bidi-control: New file.
46042         * modules/unictype/property-bidi-left-to-right: New file.
46043         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46044         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46045         * modules/unictype/property-bidi-european-digit: New file.
46046         * modules/unictype/property-bidi-eur-num-separator: New file.
46047         * modules/unictype/property-bidi-eur-num-terminator: New file.
46048         * modules/unictype/property-bidi-arabic-digit: New file.
46049         * modules/unictype/property-bidi-common-separator: New file.
46050         * modules/unictype/property-bidi-block-separator: New file.
46051         * modules/unictype/property-bidi-segment-separator: New file.
46052         * modules/unictype/property-bidi-whitespace: New file.
46053         * modules/unictype/property-bidi-non-spacing-mark: New file.
46054         * modules/unictype/property-bidi-boundary-neutral: New file.
46055         * modules/unictype/property-bidi-pdf: New file.
46056         * modules/unictype/property-bidi-embedding-or-override: New file.
46057         * modules/unictype/property-bidi-other-neutral: New file.
46058         * modules/unictype/property-hex-digit: New file.
46059         * modules/unictype/property-ascii-hex-digit: New file.
46060         * modules/unictype/property-ideographic: New file.
46061         * modules/unictype/property-unified-ideograph: New file.
46062         * modules/unictype/property-radical: New file.
46063         * modules/unictype/property-ids-binary-operator: New file.
46064         * modules/unictype/property-ids-trinary-operator: New file.
46065         * modules/unictype/property-zero-width: New file.
46066         * modules/unictype/property-space: New file.
46067         * modules/unictype/property-non-break: New file.
46068         * modules/unictype/property-iso-control: New file.
46069         * modules/unictype/property-format-control: New file.
46070         * modules/unictype/property-dash: New file.
46071         * modules/unictype/property-hyphen: New file.
46072         * modules/unictype/property-punctuation: New file.
46073         * modules/unictype/property-line-separator: New file.
46074         * modules/unictype/property-paragraph-separator: New file.
46075         * modules/unictype/property-quotation-mark: New file.
46076         * modules/unictype/property-sentence-terminal: New file.
46077         * modules/unictype/property-terminal-punctuation: New file.
46078         * modules/unictype/property-currency-symbol: New file.
46079         * modules/unictype/property-math: New file.
46080         * modules/unictype/property-other-math: New file.
46081         * modules/unictype/property-paired-punctuation: New file.
46082         * modules/unictype/property-left-of-pair: New file.
46083         * modules/unictype/property-combining: New file.
46084         * modules/unictype/property-composite: New file.
46085         * modules/unictype/property-decimal-digit: New file.
46086         * modules/unictype/property-numeric: New file.
46087         * modules/unictype/property-diacritic: New file.
46088         * modules/unictype/property-extender: New file.
46089         * modules/unictype/property-ignorable-control: New file.
46090         * modules/unictype/property-test: New file.
46091         * modules/unictype/property-byname: New file.
46092         * modules/unictype/property-all: New file.
46093         * modules/unictype/scripts: New file.
46094         * modules/unictype/scripts-all: New file.
46095         * modules/unictype/block-of: New file.
46096         * modules/unictype/block-test: New file.
46097         * modules/unictype/block-list: New file.
46098         * modules/unictype/block-all: New file.
46099         * modules/unictype/syntax-c-whitespace: New file.
46100         * modules/unictype/syntax-java-whitespace: New file.
46101         * modules/unictype/syntax-c-ident: New file.
46102         * modules/unictype/syntax-java-ident: New file.
46103         * modules/unictype/ctype-alnum: New file.
46104         * modules/unictype/ctype-alpha: New file.
46105         * modules/unictype/ctype-cntrl: New file.
46106         * modules/unictype/ctype-digit: New file.
46107         * modules/unictype/ctype-graph: New file.
46108         * modules/unictype/ctype-lower: New file.
46109         * modules/unictype/ctype-print: New file.
46110         * modules/unictype/ctype-punct: New file.
46111         * modules/unictype/ctype-space: New file.
46112         * modules/unictype/ctype-upper: New file.
46113         * modules/unictype/ctype-xdigit: New file.
46114         * modules/unictype/ctype-blank: New file.
46115         * lib/unictype/bidi_byname.c: New file.
46116         * lib/unictype/bidi_name.c: New file.
46117         * lib/unictype/bidi_of.c: New file.
46118         * lib/unictype/bidi_test.c: New file.
46119         * lib/unictype/bitmap.h: New file.
46120         * lib/unictype/block_test.c: New file.
46121         * lib/unictype/blocks.c: New file.
46122         * lib/unictype/categ_C.c: New file.
46123         * lib/unictype/categ_Cc.c: New file.
46124         * lib/unictype/categ_Cf.c: New file.
46125         * lib/unictype/categ_Cn.c: New file.
46126         * lib/unictype/categ_Co.c: New file.
46127         * lib/unictype/categ_Cs.c: New file.
46128         * lib/unictype/categ_L.c: New file.
46129         * lib/unictype/categ_Ll.c: New file.
46130         * lib/unictype/categ_Lm.c: New file.
46131         * lib/unictype/categ_Lo.c: New file.
46132         * lib/unictype/categ_Lt.c: New file.
46133         * lib/unictype/categ_Lu.c: New file.
46134         * lib/unictype/categ_M.c: New file.
46135         * lib/unictype/categ_Mc.c: New file.
46136         * lib/unictype/categ_Me.c: New file.
46137         * lib/unictype/categ_Mn.c: New file.
46138         * lib/unictype/categ_N.c: New file.
46139         * lib/unictype/categ_Nd.c: New file.
46140         * lib/unictype/categ_Nl.c: New file.
46141         * lib/unictype/categ_No.c: New file.
46142         * lib/unictype/categ_P.c: New file.
46143         * lib/unictype/categ_Pc.c: New file.
46144         * lib/unictype/categ_Pd.c: New file.
46145         * lib/unictype/categ_Pe.c: New file.
46146         * lib/unictype/categ_Pf.c: New file.
46147         * lib/unictype/categ_Pi.c: New file.
46148         * lib/unictype/categ_Po.c: New file.
46149         * lib/unictype/categ_Ps.c: New file.
46150         * lib/unictype/categ_S.c: New file.
46151         * lib/unictype/categ_Sc.c: New file.
46152         * lib/unictype/categ_Sk.c: New file.
46153         * lib/unictype/categ_Sm.c: New file.
46154         * lib/unictype/categ_So.c: New file.
46155         * lib/unictype/categ_Z.c: New file.
46156         * lib/unictype/categ_Zl.c: New file.
46157         * lib/unictype/categ_Zp.c: New file.
46158         * lib/unictype/categ_Zs.c: New file.
46159         * lib/unictype/categ_and.c: New file.
46160         * lib/unictype/categ_and_not.c: New file.
46161         * lib/unictype/categ_byname.c: New file.
46162         * lib/unictype/categ_name.c: New file.
46163         * lib/unictype/categ_none.c: New file.
46164         * lib/unictype/categ_of.c: New file.
46165         * lib/unictype/categ_or.c: New file.
46166         * lib/unictype/categ_test.c: New file.
46167         * lib/unictype/combining.c: New file.
46168         * lib/unictype/ctype_alnum.c: New file.
46169         * lib/unictype/ctype_alpha.c: New file.
46170         * lib/unictype/ctype_blank.c: New file.
46171         * lib/unictype/ctype_cntrl.c: New file.
46172         * lib/unictype/ctype_digit.c: New file.
46173         * lib/unictype/ctype_graph.c: New file.
46174         * lib/unictype/ctype_lower.c: New file.
46175         * lib/unictype/ctype_print.c: New file.
46176         * lib/unictype/ctype_punct.c: New file.
46177         * lib/unictype/ctype_space.c: New file.
46178         * lib/unictype/ctype_upper.c: New file.
46179         * lib/unictype/ctype_xdigit.c: New file.
46180         * lib/unictype/decdigit.c: New file.
46181         * lib/unictype/digit.c: New file.
46182         * lib/unictype/identsyntaxmap.h: New file.
46183         * lib/unictype/mirror.c: New file.
46184         * lib/unictype/numeric.c: New file.
46185         * lib/unictype/pr_alphabetic.c: New file.
46186         * lib/unictype/pr_ascii_hex_digit.c: New file.
46187         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46188         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46189         * lib/unictype/pr_bidi_block_separator.c: New file.
46190         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46191         * lib/unictype/pr_bidi_common_separator.c: New file.
46192         * lib/unictype/pr_bidi_control.c: New file.
46193         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46194         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46195         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46196         * lib/unictype/pr_bidi_european_digit.c: New file.
46197         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46198         * lib/unictype/pr_bidi_left_to_right.c: New file.
46199         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46200         * lib/unictype/pr_bidi_other_neutral.c: New file.
46201         * lib/unictype/pr_bidi_pdf.c: New file.
46202         * lib/unictype/pr_bidi_segment_separator.c: New file.
46203         * lib/unictype/pr_bidi_whitespace.c: New file.
46204         * lib/unictype/pr_byname.c: New file.
46205         * lib/unictype/pr_byname.gperf: New file.
46206         * lib/unictype/pr_combining.c: New file.
46207         * lib/unictype/pr_composite.c: New file.
46208         * lib/unictype/pr_currency_symbol.c: New file.
46209         * lib/unictype/pr_dash.c: New file.
46210         * lib/unictype/pr_decimal_digit.c: New file.
46211         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46212         * lib/unictype/pr_deprecated.c: New file.
46213         * lib/unictype/pr_diacritic.c: New file.
46214         * lib/unictype/pr_extender.c: New file.
46215         * lib/unictype/pr_format_control.c: New file.
46216         * lib/unictype/pr_grapheme_base.c: New file.
46217         * lib/unictype/pr_grapheme_extend.c: New file.
46218         * lib/unictype/pr_grapheme_link.c: New file.
46219         * lib/unictype/pr_hex_digit.c: New file.
46220         * lib/unictype/pr_hyphen.c: New file.
46221         * lib/unictype/pr_id_continue.c: New file.
46222         * lib/unictype/pr_id_start.c: New file.
46223         * lib/unictype/pr_ideographic.c: New file.
46224         * lib/unictype/pr_ids_binary_operator.c: New file.
46225         * lib/unictype/pr_ids_trinary_operator.c: New file.
46226         * lib/unictype/pr_ignorable_control.c: New file.
46227         * lib/unictype/pr_iso_control.c: New file.
46228         * lib/unictype/pr_join_control.c: New file.
46229         * lib/unictype/pr_left_of_pair.c: New file.
46230         * lib/unictype/pr_line_separator.c: New file.
46231         * lib/unictype/pr_logical_order_exception.c: New file.
46232         * lib/unictype/pr_lowercase.c: New file.
46233         * lib/unictype/pr_math.c: New file.
46234         * lib/unictype/pr_non_break.c: New file.
46235         * lib/unictype/pr_not_a_character.c: New file.
46236         * lib/unictype/pr_numeric.c: New file.
46237         * lib/unictype/pr_other_alphabetic.c: New file.
46238         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46239         * lib/unictype/pr_other_grapheme_extend.c: New file.
46240         * lib/unictype/pr_other_id_continue.c: New file.
46241         * lib/unictype/pr_other_id_start.c: New file.
46242         * lib/unictype/pr_other_lowercase.c: New file.
46243         * lib/unictype/pr_other_math.c: New file.
46244         * lib/unictype/pr_other_uppercase.c: New file.
46245         * lib/unictype/pr_paired_punctuation.c: New file.
46246         * lib/unictype/pr_paragraph_separator.c: New file.
46247         * lib/unictype/pr_pattern_syntax.c: New file.
46248         * lib/unictype/pr_pattern_white_space.c: New file.
46249         * lib/unictype/pr_private_use.c: New file.
46250         * lib/unictype/pr_punctuation.c: New file.
46251         * lib/unictype/pr_quotation_mark.c: New file.
46252         * lib/unictype/pr_radical.c: New file.
46253         * lib/unictype/pr_sentence_terminal.c: New file.
46254         * lib/unictype/pr_soft_dotted.c: New file.
46255         * lib/unictype/pr_space.c: New file.
46256         * lib/unictype/pr_terminal_punctuation.c: New file.
46257         * lib/unictype/pr_test.c: New file.
46258         * lib/unictype/pr_titlecase.c: New file.
46259         * lib/unictype/pr_unassigned_code_value.c: New file.
46260         * lib/unictype/pr_unified_ideograph.c: New file.
46261         * lib/unictype/pr_uppercase.c: New file.
46262         * lib/unictype/pr_variation_selector.c: New file.
46263         * lib/unictype/pr_white_space.c: New file.
46264         * lib/unictype/pr_xid_continue.c: New file.
46265         * lib/unictype/pr_xid_start.c: New file.
46266         * lib/unictype/pr_zero_width.c: New file.
46267         * lib/unictype/scripts.c: New file.
46268         * lib/unictype/sy_c_ident.c: New file.
46269         * lib/unictype/sy_c_whitespace.c: New file.
46270         * lib/unictype/sy_java_ident.c: New file.
46271         * lib/unictype/sy_java_whitespace.c: New file.
46272
46273         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46274         Unicode 5.0.0.
46275         * lib/unictype/blocks.h: Likewise.
46276         * lib/unictype/categ_C.h: Likewise.
46277         * lib/unictype/categ_Cc.h: Likewise.
46278         * lib/unictype/categ_Cf.h: Likewise.
46279         * lib/unictype/categ_Cn.h: Likewise.
46280         * lib/unictype/categ_Co.h: Likewise.
46281         * lib/unictype/categ_Cs.h: Likewise.
46282         * lib/unictype/categ_L.h: Likewise.
46283         * lib/unictype/categ_Ll.h: Likewise.
46284         * lib/unictype/categ_Lm.h: Likewise.
46285         * lib/unictype/categ_Lo.h: Likewise.
46286         * lib/unictype/categ_Lt.h: Likewise.
46287         * lib/unictype/categ_Lu.h: Likewise.
46288         * lib/unictype/categ_M.h: Likewise.
46289         * lib/unictype/categ_Mc.h: Likewise.
46290         * lib/unictype/categ_Me.h: Likewise.
46291         * lib/unictype/categ_Mn.h: Likewise.
46292         * lib/unictype/categ_N.h: Likewise.
46293         * lib/unictype/categ_Nd.h: Likewise.
46294         * lib/unictype/categ_Nl.h: Likewise.
46295         * lib/unictype/categ_No.h: Likewise.
46296         * lib/unictype/categ_P.h: Likewise.
46297         * lib/unictype/categ_Pc.h: Likewise.
46298         * lib/unictype/categ_Pd.h: Likewise.
46299         * lib/unictype/categ_Pe.h: Likewise.
46300         * lib/unictype/categ_Pf.h: Likewise.
46301         * lib/unictype/categ_Pi.h: Likewise.
46302         * lib/unictype/categ_Po.h: Likewise.
46303         * lib/unictype/categ_Ps.h: Likewise.
46304         * lib/unictype/categ_S.h: Likewise.
46305         * lib/unictype/categ_Sc.h: Likewise.
46306         * lib/unictype/categ_Sk.h: Likewise.
46307         * lib/unictype/categ_Sm.h: Likewise.
46308         * lib/unictype/categ_So.h: Likewise.
46309         * lib/unictype/categ_Z.h: Likewise.
46310         * lib/unictype/categ_Zl.h: Likewise.
46311         * lib/unictype/categ_Zp.h: Likewise.
46312         * lib/unictype/categ_Zs.h: Likewise.
46313         * lib/unictype/categ_of.h: Likewise.
46314         * lib/unictype/combining.h: Likewise.
46315         * lib/unictype/ctype_alnum.h: Likewise.
46316         * lib/unictype/ctype_alpha.h: Likewise.
46317         * lib/unictype/ctype_blank.h: Likewise.
46318         * lib/unictype/ctype_cntrl.h: Likewise.
46319         * lib/unictype/ctype_digit.h: Likewise.
46320         * lib/unictype/ctype_graph.h: Likewise.
46321         * lib/unictype/ctype_lower.h: Likewise.
46322         * lib/unictype/ctype_print.h: Likewise.
46323         * lib/unictype/ctype_punct.h: Likewise.
46324         * lib/unictype/ctype_space.h: Likewise.
46325         * lib/unictype/ctype_upper.h: Likewise.
46326         * lib/unictype/ctype_xdigit.h: Likewise.
46327         * lib/unictype/decdigit.h: Likewise.
46328         * lib/unictype/digit.h: Likewise.
46329         * lib/unictype/mirror.h: Likewise.
46330         * lib/unictype/numeric.h: Likewise.
46331         * lib/unictype/pr_alphabetic.h: Likewise.
46332         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46333         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46334         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46335         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46336         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46337         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46338         * lib/unictype/pr_bidi_control.h: Likewise.
46339         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46340         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46341         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46342         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46343         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46344         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46345         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46346         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46347         * lib/unictype/pr_bidi_pdf.h: Likewise.
46348         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46349         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46350         * lib/unictype/pr_combining.h: Likewise.
46351         * lib/unictype/pr_composite.h: Likewise.
46352         * lib/unictype/pr_currency_symbol.h: Likewise.
46353         * lib/unictype/pr_dash.h: Likewise.
46354         * lib/unictype/pr_decimal_digit.h: Likewise.
46355         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46356         * lib/unictype/pr_deprecated.h: Likewise.
46357         * lib/unictype/pr_diacritic.h: Likewise.
46358         * lib/unictype/pr_extender.h: Likewise.
46359         * lib/unictype/pr_format_control.h: Likewise.
46360         * lib/unictype/pr_grapheme_base.h: Likewise.
46361         * lib/unictype/pr_grapheme_extend.h: Likewise.
46362         * lib/unictype/pr_grapheme_link.h: Likewise.
46363         * lib/unictype/pr_hex_digit.h: Likewise.
46364         * lib/unictype/pr_hyphen.h: Likewise.
46365         * lib/unictype/pr_id_continue.h: Likewise.
46366         * lib/unictype/pr_id_start.h: Likewise.
46367         * lib/unictype/pr_ideographic.h: Likewise.
46368         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46369         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46370         * lib/unictype/pr_ignorable_control.h: Likewise.
46371         * lib/unictype/pr_iso_control.h: Likewise.
46372         * lib/unictype/pr_join_control.h: Likewise.
46373         * lib/unictype/pr_left_of_pair.h: Likewise.
46374         * lib/unictype/pr_line_separator.h: Likewise.
46375         * lib/unictype/pr_logical_order_exception.h: Likewise.
46376         * lib/unictype/pr_lowercase.h: Likewise.
46377         * lib/unictype/pr_math.h: Likewise.
46378         * lib/unictype/pr_non_break.h: Likewise.
46379         * lib/unictype/pr_not_a_character.h: Likewise.
46380         * lib/unictype/pr_numeric.h: Likewise.
46381         * lib/unictype/pr_other_alphabetic.h: Likewise.
46382         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46383         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46384         * lib/unictype/pr_other_id_continue.h: Likewise.
46385         * lib/unictype/pr_other_id_start.h: Likewise.
46386         * lib/unictype/pr_other_lowercase.h: Likewise.
46387         * lib/unictype/pr_other_math.h: Likewise.
46388         * lib/unictype/pr_other_uppercase.h: Likewise.
46389         * lib/unictype/pr_paired_punctuation.h: Likewise.
46390         * lib/unictype/pr_paragraph_separator.h: Likewise.
46391         * lib/unictype/pr_pattern_syntax.h: Likewise.
46392         * lib/unictype/pr_pattern_white_space.h: Likewise.
46393         * lib/unictype/pr_private_use.h: Likewise.
46394         * lib/unictype/pr_punctuation.h: Likewise.
46395         * lib/unictype/pr_quotation_mark.h: Likewise.
46396         * lib/unictype/pr_radical.h: Likewise.
46397         * lib/unictype/pr_sentence_terminal.h: Likewise.
46398         * lib/unictype/pr_soft_dotted.h: Likewise.
46399         * lib/unictype/pr_space.h: Likewise.
46400         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46401         * lib/unictype/pr_titlecase.h: Likewise.
46402         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46403         * lib/unictype/pr_unified_ideograph.h: Likewise.
46404         * lib/unictype/pr_uppercase.h: Likewise.
46405         * lib/unictype/pr_variation_selector.h: Likewise.
46406         * lib/unictype/pr_white_space.h: Likewise.
46407         * lib/unictype/pr_xid_continue.h: Likewise.
46408         * lib/unictype/pr_xid_start.h: Likewise.
46409         * lib/unictype/pr_zero_width.h: Likewise.
46410         * lib/unictype/scripts.h: Likewise.
46411         * lib/unictype/scripts_byname.gperf: Likewise.
46412         * lib/unictype/sy_c_ident.h: Likewise.
46413         * lib/unictype/sy_c_whitespace.h: Likewise.
46414         * lib/unictype/sy_java_ident.h: Likewise.
46415         * lib/unictype/sy_java_whitespace.h: Likewise.
46416
46417         * lib/unictype/Makefile: New file.
46418         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46419         glibc.
46420         * lib/unictype/3level.h: New file, copied from glibc.
46421         * lib/unictype/3levelbit.h: New file.
46422
46423 2007-11-11  Bruno Haible  <bruno@clisp.org>
46424
46425         * modules/gperf: New file.
46426         * modules/iconv_open (Depends-on): Add it.
46427         (Makefile.am): Remove the GPERF definition.
46428
46429 2007-11-11  Bruno Haible  <bruno@clisp.org>
46430
46431         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46432         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46433
46434 2007-11-11  Bruno Haible  <bruno@clisp.org>
46435
46436         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46437         (usage): Remove function.
46438
46439 2007-11-11  Bruno Haible  <bruno@clisp.org>
46440
46441         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46442         gl_FUNC_CEILF_LIBS.
46443         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46444         gl_FUNC_CEIL_LIBS.
46445         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46446         gl_FUNC_CEILL_LIBS.
46447         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46448         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46449         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46450
46451 2007-11-11  Bruno Haible  <bruno@clisp.org>
46452
46453         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46454         roundf were declared but do not exist on functions.
46455         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46456         roundl were declared but do not exist on functions.
46457         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46458         HAVE_FLOORL_AND_CEILL, respectively.
46459         Needed for Sun C on Solaris 10.
46460
46461 2007-11-11  Bruno Haible  <bruno@clisp.org>
46462
46463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46464         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46465         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46466         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46467         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46468         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46469         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46470         HAVE_DECL_ROUNDF.
46471         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46472         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46474         of HAVE_DECL_ROUND*.
46475         * modules/math (Makefile.am): Update.
46476
46477 2007-11-10  Bruno Haible  <bruno@clisp.org>
46478
46479         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46480         ptrdiff_t as m4/intl.m4.
46481
46482 2007-11-10  Jim Meyering  <meyering@redhat.com>
46483
46484         Avoid link failure for the argmatch test.
46485         * tests/test-argmatch.c (usage): Define function to avoid a link
46486         failure: argmatch_die requires a usage function.
46487
46488 2007-11-09  Bruno Haible  <bruno@clisp.org>
46489
46490         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46491         * doc/functions/vsnprintf.texi: Likewise.
46492         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46493         with a size argument < 2.
46494
46495 2007-11-09  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46498         buffer. Fixes an inefficiency introduced on 2007-11-03.
46499
46500 2007-11-09  Bruno Haible  <bruno@clisp.org>
46501
46502         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46503         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46504
46505 2007-11-08  Jim Meyering  <meyering@redhat.com>
46506
46507         Change cache variable name prefix "jm_" to "gl_" everywhere.
46508         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46509         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46510         * m4/uptime.m4: s/gl_/jm_/
46511
46512 2007-11-07  Bruno Haible  <bruno@clisp.org>
46513
46514         Update to GNU gettext 0.17.
46515         * m4/intl.m4: Update to GNU gettext 0.17.
46516         * m4/po.m4: Likewise.
46517         * modules/gettext (Files): Remove m4/ulonglong.m4.
46518         (configure.ac): Require gettext infrastructure from version 0.17.
46519
46520 2007-11-06  Bruno Haible  <bruno@clisp.org>
46521
46522         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46523         symbolic values are not defined in a public header.
46524         * lib/freadable.c (freadable) [QNX]: Likewise.
46525         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46526         * lib/freading.c (freading) [QNX]: Likewise.
46527         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46528         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46529         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46530         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46531         Reported by Alain Magloire.
46532
46533         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46534
46535 2007-11-05  Bruno Haible  <bruno@clisp.org>
46536
46537         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46538         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46539         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46540         Reported by Eric Blake.
46541
46542 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46543             Bruno Haible  <bruno@clisp.org>
46544
46545         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46546         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46547         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46548         (malloc): Undefine also before including <stdlib.h>.
46549         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46550         Needed on OSF/1 4.0.
46551
46552 2007-11-05  Jim Meyering  <meyering@redhat.com>
46553
46554         git-version-gen: sync from coreutils.
46555         * build-aux/git-version-gen: Add comments.
46556         Change the first '-' to '.' in the snapshot version string,
46557         e.g., 6.9-377-08144 -> 6.9.377-08144
46558         Remove first parameter.
46559         Don't declare a version "-dirty" merely because a time
46560         stamp has changed.
46561
46562 2007-11-04  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/lock.h: Protect all macro definitions containing an 'if'
46565         statement through a "do { ... } while (0)".
46566         * lib/tls.h: Likewise.
46567
46568 2007-11-04  Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46571
46572 2007-11-04  Bruno Haible  <bruno@clisp.org>
46573
46574         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46575         * modules/fprintf-posix (Depends-on): Add nocrash.
46576         * modules/snprintf-posix (Depends-on): Likewise.
46577         * modules/sprintf-posix (Depends-on): Likewise.
46578         * modules/vasnprintf-posix (Depends-on): Likewise.
46579         * modules/vasprintf-posix (Depends-on): Likewise.
46580         * modules/vfprintf-posix (Depends-on): Likewise.
46581         * modules/vsnprintf-posix (Depends-on): Likewise.
46582         * modules/vsprintf-posix (Depends-on): Likewise.
46583         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46584         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46585         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46586         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46587         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46588         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46589         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46590
46591 2007-11-04  Bruno Haible  <bruno@clisp.org>
46592
46593         * modules/nocrash: New file.
46594         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46595         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46596
46597 2007-11-04  Bruno Haible  <bruno@clisp.org>
46598
46599         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46600         precision handling.
46601         * tests/test-vasprintf-posix.c (test_function): Likewise.
46602         * tests/test-snprintf-posix.h (test_function): Likewise.
46603         * tests/test-sprintf-posix.h (test_function): Likewise.
46604
46605         Fix *printf behaviour for large precisions on mingw and BeOS.
46606         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46607         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46609         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46611         gl_PRINTF_PRECISION and test its result. Invoke
46612         gl_PREREQ_VASNPRINTF_PRECISION.
46613         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46620         * doc/functions/fprintf.texi: Update.
46621         * doc/functions/printf.texi: Update.
46622         * doc/functions/snprintf.texi: Update.
46623         * doc/functions/sprintf.texi: Update.
46624         * doc/functions/vfprintf.texi: Update.
46625         * doc/functions/vprintf.texi: Update.
46626         * doc/functions/vsnprintf.texi: Update.
46627         * doc/functions/vsprintf.texi: Update.
46628
46629 2007-11-04  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46632
46633 2007-11-04  Bruno Haible  <bruno@clisp.org>
46634
46635         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46636         Reported by Sylvain Beucler <beuc@gnu.org>.
46637
46638 2007-11-03  Bruno Haible  <bruno@clisp.org>
46639
46640         * tests/test-fprintf-posix2.sh: New file.
46641         * tests/test-fprintf-posix2.c: New file.
46642         * modules/fprintf-posix-tests (Files): Add them.
46643         (TESTS): Add test-fprintf-posix2.sh.
46644         (configure.ac): Check for getrlimit and setrlimit.
46645         (check_PROGRAMS): Add test-fprintf-posix2.
46646
46647         * tests/test-printf-posix2.sh: New file.
46648         * tests/test-printf-posix2.c: New file.
46649         * modules/printf-posix-tests (Files): Add them.
46650         (TESTS): Add test-printf-posix2.sh.
46651         (configure.ac): Check for getrlimit and setrlimit.
46652         (check_PROGRAMS): Add test-printf-posix2.
46653
46654         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46655         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46656         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46657         (decode_double): New function, copied from decode_long_double.
46658         (scale10_round_decimal_decoded): New function, extracted from
46659         scale10_round_decimal_long_double.
46660         (scale10_round_decimal_long_double): Use it.
46661         (scale10_round_decimal_double): New function.
46662         (floorlog10): New function.
46663         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46665         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46667         gl_PRINTF_ENOMEM and test its result. Invoke
46668         gl_PREREQ_VASNPRINTF_ENOMEM.
46669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46673         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46676         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46677         * modules/snprintf-posix (Depends-on): Likewise.
46678         * modules/sprintf-posix (Depends-on): Likewise.
46679         * modules/vasnprintf-posix (Depends-on): Likewise.
46680         * modules/vasprintf-posix (Depends-on): Likewise.
46681         * modules/vfprintf-posix (Depends-on): Likewise.
46682         * modules/vsnprintf-posix (Depends-on): Likewise.
46683         * modules/vsprintf-posix (Depends-on): Likewise.
46684         * doc/functions/fprintf.texi: Update.
46685         * doc/functions/printf.texi: Update.
46686         * doc/functions/snprintf.texi: Update.
46687         * doc/functions/sprintf.texi: Update.
46688         * doc/functions/vfprintf.texi: Update.
46689         * doc/functions/vprintf.texi: Update.
46690         * doc/functions/vsnprintf.texi: Update.
46691         * doc/functions/vsprintf.texi: Update.
46692
46693 2007-11-03  Bruno Haible  <bruno@clisp.org>
46694
46695         * modules/frexp-nolibm-tests: New file.
46696
46697         * modules/frexp-nolibm: New file.
46698         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46699
46700 2007-11-03  Bruno Haible  <bruno@clisp.org>
46701
46702         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46703         value is C99 compliant.
46704         Needed for OSF/1 5.1.
46705
46706 2007-11-03  Bruno Haible  <bruno@clisp.org>
46707
46708         Fix out-of-memory handling of vasnprintf.
46709         * lib/printf-parse.c: Include <errno.h>.
46710         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46711         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46712         is already set.
46713
46714 2007-11-02  Eric Blake  <ebb9@byu.net>
46715
46716         Fix tests on cygwin.
46717         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46718
46719 2007-11-01  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46722         warning.
46723         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46724         needed for POSIX compatibility.
46725
46726 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46727
46728         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46729         for compatibility with GNU.
46730
46731 2007-11-01  Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46734         (putenv): Renamed from rpl_putenv. Change argument type from
46735         'const char *' to 'char *'.
46736         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46737         of defining putenv in config.h, just set REPLACE_PUTENV.
46738         * modules/putenv (Depends-on): Add stdlib.
46739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46740         (Include): Use <stdlib.h>.
46741         * lib/stdlib.in.h (putenv): New declaration.
46742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46743         REPLACE_PUTENV.
46744         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46745         REPLACE_PUTENV.
46746         Needed for MacOS X 10.5.0.
46747         Reported by Peter O'Gorman <peter@pogma.com>.
46748
46749 2007-11-01  Jim Meyering  <meyering@redhat.com>
46750
46751         Treat an empty date string exactly like "0".
46752         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46753         if the remaining date string (to be parsed) is empty, use "0".
46754         Reported by Mischa Molhoek and discussed in this thread:
46755         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46756
46757 2007-10-31  Bruno Haible  <bruno@clisp.org>
46758
46759         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46760         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46761         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46762         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46763         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46764         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46765
46766 2007-10-31  Bruno Haible  <bruno@clisp.org>
46767
46768         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46769         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46770         (AC_TYPE_LONG_LONG_INT): Use it.
46771         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46772         it as well.
46773         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46774         to m4/longlong.m4.
46775         * modules/stdint (Files): Remove m4/ulonglong.m4.
46776         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46777         m4/ulonglong.m4.
46778         * modules/strtoumax (Files): Likewise.
46779
46780 2007-10-30  Bruno Haible  <bruno@clisp.org>
46781
46782         * modules/xvasprintf-posix: New file.
46783         Suggested by Eric Blake.
46784
46785 2007-10-30  Bruno Haible  <bruno@clisp.org>
46786
46787         * modules/xprintf-posix-tests: New file.
46788         * tests/test-xprintf-posix.sh: New file.
46789         * tests/test-xprintf-posix.c: New file.
46790         * tests/test-xfprintf-posix.c: New file.
46791
46792         * modules/xprintf-posix: New file.
46793
46794 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46795
46796         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46797         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46798         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46799
46800 2007-10-29  Bruno Haible  <bruno@clisp.org>
46801
46802         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46803         contain the special marker '_cv_'.
46804         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46805         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46806         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46807         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46808         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46809         Reported by Ralf Wildenhues.
46810
46811 2007-10-29  Bruno Haible  <bruno@clisp.org>
46812
46813         * gnulib-tool (func_import): When --lgpl is not specified, set
46814         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46815         GPLv3.
46816         Reported by Simon Josefsson.
46817
46818 2007-10-28  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46821         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46822         HAVE_DECL_ISFINITE.
46823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46824         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46825         HAVE_DECL_ISFINITE.
46826
46827 2007-10-28  Bruno Haible  <bruno@clisp.org>
46828
46829         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46830         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46831
46832 2007-10-28  Bruno Haible  <bruno@clisp.org>
46833
46834         Fix link errors with Sun C 5.0 on Solaris 10.
46835         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46836         function is declared but not present in the compiler's libm.
46837         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46838         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46839         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46840         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46841         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46842         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46843         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46845         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46846         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46847         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46848         HAVE_DECL_FLOORL.
46849
46850 2007-10-28  Bruno Haible  <bruno@clisp.org>
46851
46852         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46853         gl_FUNC_FLOORL. Cache the result.
46854         (gl_FUNC_FLOORL): Use it.
46855         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46856         gl_FUNC_CEILL. Cache the result.
46857         (gl_FUNC_CEILL): Use it.
46858
46859         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46860         gl_FUNC_FLOOR. Cache the result.
46861         (gl_FUNC_FLOOR): Use it.
46862         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46863         gl_FUNC_CEIL. Cache the result.
46864         (gl_FUNC_CEIL): Use it.
46865
46866         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46867         gl_FUNC_FLOORF. Cache the result.
46868         (gl_FUNC_FLOORF): Use it.
46869         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46870         gl_FUNC_CEILF. Cache the result.
46871         (gl_FUNC_CEILF): Use it.
46872
46873 2007-10-28  Bruno Haible  <bruno@clisp.org>
46874
46875         * gnulib-tool: Allow specifying the LGPL version number through
46876         --lgpl=2 or --lgpl=3.
46877         (func_usage): Document --lgpl with argument.
46878         Handle --lgpl=... arguments.
46879         (func_import): Recognize also gl_LGPL calls with an argument. When
46880         --lgpl=2 is used and the module's license is just LGPL, report an
46881         error. Set sed_transform_lib_file according to the lgpl variable. In
46882         the generated files, use --lgpl or gl_LGPL invocations with argument,
46883         if necessary.
46884         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46885         an LGPv2+ license.
46886         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46887         gl_LGPL macro.
46888
46889 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46890             Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46893         (u16_uctomb_aux): Likewise.
46894         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46895         !HAVE_INLINE.
46896         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46897
46898 2007-10-28  Bruno Haible  <bruno@clisp.org>
46899
46900         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46901         Invoke AM_GETTEXT_OPTION if it exists.
46902         * modules/vasprintf: Likewise.
46903         * modules/verror: Likewise.
46904         * modules/xprintf: Likewise.
46905         * modules/xvasprintf: Likewise.
46906
46907 2007-10-27  Ben Pfaff  <blp@gnu.org>
46908
46909         * lib/math.in.h: Define isfinite macro and prototypes for
46910         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46911         implementations.
46912         * m4/math_h.m4: New substitutions for isfinite module.
46913         * lib/isfinite.c: New file.
46914         * m4/isfinite.m4: New file.
46915         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46916         * modules/isfinite: New file.
46917         * modules/isfinite-tests: New file.
46918         * tests/tests-isfinite.c: New file.
46919         * doc/functions/isfinite.texi: Mention isfinite module.
46920         * MODULES.html.sh: Mention new module.
46921
46922 2007-10-27  Ben Pfaff  <blp@gnu.org>
46923
46924         Ralf Wildenhues reported that Tru64 4.0D declares the round
46925         functions but does not have definitions.
46926         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46927         cannot be found in any library, set the output variable to
46928         "missing" instead of "".
46929         * m4/round.m4: Also use our substitute if we cannot find round in
46930         any library, even if it is declared.
46931         * m4/roundf.m4: Likewise for roundf.
46932         * m4/roundl.m4: Likewise for roundl.
46933         * lib/math.in.h: Undefine roundf, round, roundl before defining
46934         their replacements, to allow for hypothetical systems where these
46935         may be defined as macros but not available in libraries.
46936
46937 2007-10-27  Bruno Haible  <bruno@clisp.org>
46938
46939         * doc/gnulib.texi: Invoke @firstparagraphindent.
46940         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46941         changes in gnulib.
46942         (Source changes): New section.
46943
46944 2007-10-26  Bruno Haible  <bruno@clisp.org>
46945
46946         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46947         borrowed from autoconf.
46948
46949 2007-10-26  Bruno Haible  <bruno@clisp.org>
46950
46951         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46952         strerror returned the empty string. Needed on HP-UX 11.00.
46953
46954 2007-10-24  Micah Cowan  <micah@cowan.name>
46955
46956         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46957         * build-aux/bootstrap: Remove support for now-unnecessary option,
46958         --cvs-user, and envvars CVS_USER, CVS_RSH.
46959
46960 2007-10-24  Jim Meyering  <meyering@redhat.com>
46961
46962         Avoid diagnostics from sha1sum when there is no cached checksum.
46963         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46964         if the po.s1 file hasn't been created yet.
46965
46966         * build-aux/bootstrap: Sync from coreutils:
46967         2007-10-24  Jim Meyering  <meyering@redhat.com>
46968         Get gnulib from the git repository, not from an obsolete cvs one.
46969         * build-aux/bootstrap: Suggestion from Micah Cowan.
46970         2007-10-04  Jim Meyering  <jim@meyering.net>
46971         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46972         (update_po_files): Work also when there are no .po files in po/.
46973
46974 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46975
46976         * README: Append ".git" to git and cg examples.
46977         Problem reported by Benoit Sigoure.
46978
46979 2007-10-23  Micah Cowan  <micah@cowan.name>
46980
46981         * users.txt: Add wget.
46982
46983 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46984
46985         Fix linking of some unistdio tests on FreeBSD.
46986         * modules/unistdio/u16-vsnprintf-tests
46987         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46988         * modules/unistdio/u16-vsprintf-tests
46989         (test_u16_vsnprintf1_LDADD): Likewise.
46990         * modules/unistdio/u32-vsnprintf-tests
46991         (test_u32_vsnprintf1_LDADD): Likewise.
46992         * modules/unistdio/u32-vsprintf-tests
46993         (test_u32_vsprintf1_LDADD): Likewise.
46994         * modules/unistdio/u8-vsnprintf-tests
46995         (test_u8_vsnprintf1_LDADD): Likewise.
46996         * modules/unistdio/u8-vsprintf-tests
46997         (test_u8_vsprintf1_LDADD): Likewise.
46998         * modules/unistdio/ulc-vsnprintf-tests
46999         (test_ulc_vsnprintf1_LDADD): Likewise.
47000         * modules/unistdio/ulc-vsprintf-tests
47001         (test_ulc_vsprintf1_LDADD): Likewise.
47002
47003         Fix linking of some uniconv tests on FreeBSD.
47004         * modules/uniconv/u16-conv-from-enc-tests
47005         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47006         * modules/uniconv/u16-conv-to-enc-tests
47007         (test_u16_conv_to_enc_LDADD): Likewise.
47008         * modules/uniconv/u16-strconv-from-enc-tests
47009         (test_u16_strconv_from_enc_LDADD): Likewise.
47010         * modules/uniconv/u16-strconv-to-enc-tests
47011         (test_u16_strconv_to_enc_LDADD): Likewise.
47012         * modules/uniconv/u32-conv-from-enc-tests
47013         (test_u32_conv_from_enc_LDADD): Likewise.
47014         * modules/uniconv/u32-conv-to-enc-tests
47015         (test_u32_conv_to_enc_LDADD): Likewise.
47016         * modules/uniconv/u32-strconv-from-enc-tests
47017         (test_u32_strconv_from_enc_LDADD): Likewise.
47018         * modules/uniconv/u32-strconv-to-enc-tests
47019         (test_u32_strconv_to_enc_LDADD): Likewise.
47020         * modules/uniconv/u8-conv-from-enc-tests
47021         (test_u8_conv_from_enc_LDADD): Likewise.
47022         * modules/uniconv/u8-conv-to-enc-tests
47023         (test_u8_conv_to_enc_LDADD): Likewise.
47024         * modules/uniconv/u8-strconv-from-enc-tests
47025         (test_u8_strconv_from_enc_LDADD): Likewise.
47026         * modules/uniconv/u8-strconv-to-enc-tests
47027         (test_u8_strconv_to_enc_LDADD): Likewise.
47028
47029 2007-10-22  Bruno Haible  <bruno@clisp.org>
47030
47031         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47032         size.
47033
47034 2007-10-22  Eric Blake  <ebb9@byu.net>
47035
47036         Tweak x*printf documentation.
47037         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47038         variable name and comments.
47039         Suggested by Bruno Haible.
47040
47041 2007-10-22  Bruno Haible  <bruno@clisp.org>
47042
47043         * lib/acl.c (copy_acl): Fix file name in comment.
47044
47045 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47046
47047         Fix Tru64 problem with stdbool.h.
47048         * lib/stdbool.in.h (false, true):
47049         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47050         Don't declare as an enum in this situation; it runs afoul of Tru64.
47051         Problem reported by Steven M. Schweda in
47052         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47053
47054 2007-10-22  Eric Blake  <ebb9@byu.net>
47055
47056         Also wrap vf?printf.
47057         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47058         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47059         (xvprintf, xvfprintf): New functions.
47060
47061 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47062
47063         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47064         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47065
47066         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47067         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47068
47069 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47070
47071         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47072         by Bruno Haible.
47073
47074 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47075
47076         * lib/getloadavg.c
47077         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47078         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47079
47080         * tests/test-i-ring.c: Work for C89.
47081
47082 2007-10-22  Bruno Haible  <bruno@clisp.org>
47083
47084         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47085         -1u, in preprocessor expression, so that we don't test for the bug
47086         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47088
47089 2007-10-22  Eric Blake  <ebb9@byu.net>
47090
47091         * tests/test-yesno.sh: Silence stderr during test.
47092
47093 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47094
47095         * modules/crypto/gc-camellia: New file.
47096
47097         * m4/gc-camellia.m4: New file.
47098
47099         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47100
47101         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47102
47103 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47104
47105         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47106         --help to stdout.  Reported by sms@antinode.org (Steven
47107         M. Schweda).
47108
47109 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47110
47111         * users.txt: Fix link to libksba.
47112
47113 2007-10-21  Ben Pfaff  <blp@gnu.org>
47114
47115         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47116         round.c roundf implementation that depends on floorf and ceilf to
47117         be tested unconditionally.
47118
47119 2007-10-21  Ben Pfaff  <blp@gnu.org>
47120
47121         * m4/check-libm-func.m4: Removed.
47122         * m4/check-math-lib.m4: New file.
47123         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47124         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47125         definition and lack of AC_LIBOBJ([roundf]).
47126         * m4/roundl.m4: Ditto, and similarly for roundl.
47127         * modules/round: Reference new m4 file.
47128         * modules/roundf: Ditto.
47129         * modules/roundl: Ditto.
47130         * tests/test-round2.c (main): Use ROUND instead of round.
47131         Bug report from Bruno Haible.
47132
47133 2007-10-21  Bruno Haible  <bruno@clisp.org>
47134
47135         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47136         context.
47137
47138 2007-10-21  Bruno Haible  <bruno@clisp.org>
47139
47140         * tests/test-wcwidth.c (main): Allow negative result for some control
47141         characters.
47142
47143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47144         Needed on OSF/1 5.1.
47145
47146 2007-10-21  Bruno Haible  <bruno@clisp.org>
47147
47148         * tests/test-floorf1.c: Include isnanf.h.
47149         (main): Use isnanf() instead of isnan().
47150         * tests/test-ceilf1.c: Include isnanf.h.
47151         (main): Use isnanf() instead of isnan().
47152         * tests/test-truncf1.c: Include isnanf.h.
47153         (main): Use isnanf() instead of isnan().
47154         * tests/test-roundf1.c: Include isnanf.h.
47155         (main): Use isnanf() instead of isnan().
47156
47157 2007-10-21  Eric Blake  <ebb9@byu.net>
47158
47159         * users.txt: Update URL for m4.
47160
47161 2007-10-21  Bruno Haible  <bruno@clisp.org>
47162
47163         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47164
47165 2007-10-21  Bruno Haible  <bruno@clisp.org>
47166
47167         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47168         Git's management files if the CVS files are not present.
47169
47170 2007-10-20  Bruno Haible  <bruno@clisp.org>
47171
47172         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47173         gcc-3.4.x.
47174
47175 2007-10-20  Ben Pfaff  <blp@gnu.org>
47176
47177         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47178         implementations.
47179         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47180         * lib/round.c: New file.
47181         * lib/roundf.c: New file.
47182         * lib/roundl.c: New file.
47183         * m4/round.m4: New file.
47184         * m4/roundf.m4: New file.
47185         * m4/roundl.m4: New file.
47186         * m4/check-libm-func-m4: New file.
47187         * modules/math: Replace round, roundf, roundl related @VARS@ in
47188         math.in.h.
47189         * modules/round: New file.
47190         * modules/round-tests: New file.
47191         * modules/roundf: New file.
47192         * modules/roundf-tests: New file.
47193         * modules/roundl: New file.
47194         * modules/roundl-tests: New file.
47195         * tests/test-round1.c: New file.
47196         * tests/test-round2.c: New file.
47197         * tests/test-roundf1.c: New file.
47198         * tests/test-roundf2.c: New file.
47199         * tests/test-roundl.c: New file.
47200         * doc/functions/round.texi: Mention round module.
47201         * doc/functions/roundf.texi: Mention roundf module.
47202         * doc/functions/roundl.texi: Mention roundl module.
47203         * MODULES.html.sh: Mention new modules.
47204         Thanks to Bruno Haible for suggestions.
47205
47206 2007-10-20  Jim Meyering  <meyering@redhat.com>
47207
47208         * lib/xprintf.c: Include <config.h> unconditionally.
47209
47210         Change xprintf's license to GPL.
47211         * modules/xprintf (License): s/LGPL/GPL/, since this module
47212         depends on modules (exit and exitfail) which are GPL.
47213         Suggestion from Bruno Haible.
47214
47215         xprintf fixes.
47216         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47217         Use a clearer diagnostic.
47218         Patch from Bruno Haible.
47219
47220 2007-10-20  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47223         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47224         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47225
47226 2007-10-20  Bruno Haible  <bruno@clisp.org>
47227
47228         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47229         precision in the comparison result > x - 1 or similar.
47230         * tests/test-ceilf2.c (correct_result_p): Likewise.
47231         * tests/test-truncf2.c (correct_result_p): Likewise.
47232         * tests/test-trunc2.c (correct_result_p): Likewise.
47233         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47234
47235 2007-10-20  Bruno Haible  <bruno@clisp.org>
47236
47237         * modules/ceil: New file.
47238         * m4/ceil.m4: New file.
47239         * doc/functions/ceil.texi: Mention the 'ceil' module.
47240
47241 2007-10-20  Bruno Haible  <bruno@clisp.org>
47242
47243         * modules/floor: New file.
47244         * m4/floor.m4: New file.
47245         * doc/functions/floor.texi: Mention the 'floor' module.
47246
47247 2007-10-20  Bruno Haible  <bruno@clisp.org>
47248
47249         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47250         of %a.
47251         * modules/floorf-tests (Depends-on): Likewise.
47252         * modules/truncf-tests (Depends-on): Likewise.
47253         * modules/trunc-tests (Depends-on): Likewise.
47254         Reported by Ben Pfaff.
47255
47256 2007-10-19  Jim Meyering  <meyering@redhat.com>
47257
47258         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47259         Don't bother testing specific errno values.  Just test ferror.
47260
47261         New module: xprintf
47262         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47263
47264 2007-10-19  Bruno Haible  <bruno@clisp.org>
47265
47266         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47267         syntax.
47268         * modules/javaexec (Makefile.am): Likewise.
47269         * modules/relocatable-prog (Makefile.am): Likewise.
47270         Suggested by Jim Meyering.
47271
47272 2007-10-18  Bruno Haible  <bruno@clisp.org>
47273
47274         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47275         Reported by Jim Meyering.
47276
47277 2007-10-18  Eric Blake  <ebb9@byu.net>
47278
47279         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47280
47281 2007-10-18  Bruno Haible  <bruno@clisp.org>
47282
47283         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47284         the format string into writable memory. Needed in Fortify conditions.
47285
47286 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47287             Bruno Haible  <bruno@clisp.org>
47288
47289         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47290         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47291         * modules/trim (Depends-on): Add mbchar.
47292         (configure.ac): Add gl_FUNC_MBRTOWC.
47293         (Makefile.am): Augment lib_SOURCES.
47294
47295 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47296
47297         Modify glob.c to use fstatat and dirfd, to simplify it.
47298         Suggested by Eric Blake.
47299         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47300         Don't include <stdbool.h>; not used.
47301         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47302         (link_exists_p): Simplify implementation, since we can now assume
47303         dirfd and fstatat.
47304         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47305
47306 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47307
47308         * gnulib-tool (func_get_dependencies): Fix sed script to
47309         match only tests.
47310
47311 2007-10-17  Bruno Haible  <bruno@clisp.org>
47312
47313         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47314         allow locale names without encoding suffix.
47315         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47316         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47317
47318 2007-10-16  Bruno Haible  <bruno@clisp.org>
47319
47320         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47321         * lib/getgroups.c (getgroups): Likewise.
47322         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47323
47324 2007-10-16  Bruno Haible  <bruno@clisp.org>
47325
47326         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47327         * modules/malloc-posix (License): Likewise.
47328         * modules/realloc-posix (License): Likewise.
47329         * modules/calloc-posix (License): Likewise.
47330         * modules/intprops (License): Change from GPL to LGPL, with
47331         Paul Eggert's approval.
47332
47333 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47334
47335         Merge glibc changes into lib/glob.c.
47336
47337         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47338         2007-10-15 04:59:03 UTC.  Here are the changes:
47339
47340         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47341
47342         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47343
47344         * lib/glob.c: Add some branch prediction throughout.
47345
47346         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47347
47348         [BZ #5103]
47349         * lib/glob.c (glob): Recognize patterns starting \/.
47350
47351         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47352
47353         [BZ #3996]
47354         * lib/glob.c (attribute_hidden): Define if not defined.
47355         (glob): Unescape dirname, filename or username when needed and not
47356         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47357         is NULL.  Handle unescaped [ in pattern without closing ].
47358         Don't pass GLOB_CHECK down to recursive glob for directories.
47359         (__glob_pattern_type): New function.
47360         (__glob_pattern_p): Implement using __glob_pattern_type.
47361         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47362         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47363         Remove unreachable code.
47364
47365         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47366
47367         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47368         explain why there are no leaks.
47369
47370         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47371
47372         [BZ #3253]
47373         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47374         time, rather allocate increasingly bigger arrays of pointers, if
47375         possible with alloca, if too large with malloc.
47376
47377 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47378
47379         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47380         Problem reported by H.Merijn Brand in
47381         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47382         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47383         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47384
47385 2007-10-15  Bruno Haible  <bruno@clisp.org>
47386
47387         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47388         with explicit rpl_ prefix.
47389         * lib/fopen.c (fopen): Likewise.
47390         * lib/freopen.c (freopen): Likewise.
47391         * lib/iconv.c (iconv): Likewise.
47392         * lib/iconv_close.c (iconv_close): Likewise.
47393
47394 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47395
47396         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47397
47398 2007-10-15  Bruno Haible  <bruno@clisp.org>
47399
47400         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47401         <stddef.h> instead of <stdlib.h> since we only need NULL.
47402         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47403
47404 2007-10-15  Bruno Haible  <bruno@clisp.org>
47405
47406         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47407         Replace paragraph talking about LIBOBJS.
47408         Reported by Colin Watson <cjwatson@debian.org>.
47409
47410 2007-10-15  Bruno Haible  <bruno@clisp.org>
47411
47412         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47413         <stdlib.h> before using NULL.
47414
47415 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47416
47417         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47418         Reported by Albert Chin <china@thewrittenword.com>.
47419
47420 2007-10-14  Bruno Haible  <bruno@clisp.org>
47421
47422         * modules/iconv_open-utf-tests: New file.
47423         * tests/test-iconv-utf.c: New file.
47424
47425         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47426         * modules/iconv_open-utf: New file.
47427         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47428         (iconv, iconv_close): New declarations.
47429         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47430         be defined.
47431         (iconv_open): Add special handling of conversion between UTF-8 and
47432         UTF-{16,32}{BE,LE}.
47433         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47434         * lib/iconv_close.c: New file.
47435         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47436         gl_FUNC_ICONV_OPEN.
47437         (gl_FUNC_ICONV_OPEN): Use it.
47438         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47439         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47440         and REPLACE_ICONV_UTF.
47441         * modules/iconv_open (Depends-on): Add c-strcase.
47442         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47443         ICONV_CONST.
47444         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47445
47446 2007-10-13  Albert Chin  <china@thewrittenword.com>
47447             Bruno Haible  <bruno@clisp.org>
47448
47449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47450         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47451
47452 2007-10-13  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47455         defined, use the ISO C99 inline semantics.
47456         * lib/argp.h (ARGP_EI): Likewise.
47457
47458 2007-10-13  Bruno Haible  <bruno@clisp.org>
47459
47460         Handle 'inline' change in gcc 4.3.0.
47461         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47462         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47463         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47464         argp_fmtstream_point): Disable 'extern' declaration if the function
47465         definition is going to be provided inline.
47466         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47467         semantics, not the ISO C99 inline semantics.
47468         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47469         'extern' declaration if the function definition is going to be provided
47470         inline.
47471         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47472         the GNU C inline semantics, not the ISO C99 inline semantics. With
47473         GCC 4.2, avoid a warning.
47474
47475 2007-10-13  Bruno Haible  <bruno@clisp.org>
47476
47477         * lib/freading.h (freading): Enable the use of __freading for
47478         glibc >= 2.7.
47479         * lib/freading.c (freading): Likewise.
47480
47481 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47482
47483         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47484         "warning: C99 inline functions are not supported; using GNU89".
47485
47486 2007-10-12  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47489         of 2.
47490         * tests/test-ceilf2.c: New file.
47491         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47492
47493         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47494         * modules/ceilf-tests: Update.
47495
47496 2007-10-12  Bruno Haible  <bruno@clisp.org>
47497
47498         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47499         of 2.
47500         * tests/test-floorf2.c: New file.
47501         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47502
47503         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47504         * modules/floorf-tests: Update.
47505
47506 2007-10-12  Bruno Haible  <bruno@clisp.org>
47507
47508         * tests/test-trunc2.c: New file.
47509         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47510
47511         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47512         * modules/trunc-tests: Update.
47513
47514 2007-10-12  Bruno Haible  <bruno@clisp.org>
47515
47516         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47517         of 2.
47518         * tests/test-truncf2.c: New file.
47519         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47520
47521         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47522         * modules/truncf-tests: Update.
47523
47524 2007-10-11  Eric Blake  <ebb9@byu.net>
47525
47526         Don't claim strerror is broken on Interix.
47527         * doc/functions/strerror.texi (strerror): Known broken systems are
47528         now Solaris 8, and not Interix.
47529         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47530         Interix on cross-compile.
47531         Reported by Martin Koeppe in
47532         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47533
47534 2007-10-11  Bruno Haible  <bruno@clisp.org>
47535
47536         * modules/i-ring-tests: New file.
47537         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47538         instead of assert.
47539
47540 2007-10-11  Bruno Haible  <bruno@clisp.org>
47541
47542         * modules/filenamecat-tests: New file.
47543         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47544         * lib/filenamecat.c: Remove test code.
47545
47546 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47547
47548         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47549
47550         * lib/strerror.c: Include <string.h> always, to test interface,
47551         and to remove the need for the dummy.
47552         Include intprops.h to compute width instead of doing it ourselves
47553         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47554         (strerror): Define it to return NULL if there's no system strerror.
47555         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47556         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47557         ancient pre-strerror Unix systems well any more.  Saying "unknown
47558         system error" is enough.
47559         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47560         simpler strerror.c implementation.
47561         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47562         Simplify the tests to reflect the simpler strerror implementation.
47563         * modules/strerror (Depends-on): Add intprops.
47564
47565 2007-10-09  Eric Blake  <ebb9@byu.net>
47566
47567         Silence test-fpending.
47568         * modules/fpending-tests (Files): Add wrapper script.
47569         * tests/test-fpending.sh: New file.
47570
47571 2007-10-09  Bruno Haible  <bruno@clisp.org>
47572
47573         * MODULES.html.sh (func_module): Don't create a hyperlink for
47574         function names like 'printf_frexp'.
47575         (Misc): Add crc, memxor.
47576         (Characteristics of floating types): New section.
47577         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47578         isnanf-nolibm, signbit, trunc, truncf, truncl.
47579         (Enhancements for ISO C 99 functions): New subsection Input/output.
47580         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47581         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47582         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47583         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47584         (Enhancements for POSIX:2001 functions): Add chdir-long.
47585         (File system functions): Add areadlink, chdir-safer, read-file.
47586         Remove cycle-check.
47587         (File system as inode set): New section.
47588         (Date and time): Add gethrxtime.
47589         (Multithreading): Add openmp.
47590         (Internationalization functions): Add localename.
47591         (Unicode string functions): Add unistr/u*-mbsnlen.
47592         (Support for maintaining and releasing projects): Add git-version-gen.
47593         (Lone files): Remove directories.
47594
47595 2007-10-08  Ben Pfaff  <blp@gnu.org>
47596
47597         * lib/xmalloca.h: Fix typo in comment.
47598
47599 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47600
47601         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47602         when avoiding problems with integer overflow.  Use a portable test
47603         instead.
47604
47605 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47606
47607         * modules/dummy (License): Change to LGPLv2+.
47608         * modules/float (License): Likewise
47609         * modules/realloc (License): Likewise
47610         * modules/stdlib (License): Likewise
47611
47612 2007-10-07  Bruno Haible  <bruno@clisp.org>
47613
47614         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47615         * floor.c (TWO_MANT_DIG): Likewise.
47616         * ceil.c (TWO_MANT_DIG): Likewise.
47617         Reported by Ben Pfaff.
47618
47619 2007-10-07  Bruno Haible  <bruno@clisp.org>
47620
47621         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47622         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47623         * lib/frexp.c (FUNC): Likewise.
47624         * lib/printf-frexp.h (printf_frexp): Likewise.
47625         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47626         * lib/printf-frexp.c (FUNC): Likewise.
47627         Suggested by Jim Meyering.
47628
47629 2007-10-07  Jim Meyering  <meyering@redhat.com>
47630
47631         Make xnanosleep's integer overflow test more robust.
47632         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47633         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47634
47635 2007-10-07  Bruno Haible  <bruno@clisp.org>
47636
47637         * NEWS: Mention the license change.
47638
47639         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47640         abbreviations in the modules files.
47641
47642         Change copyright notice from GPLv2+ to GPLv3+.
47643         * README: Change copyright notice.
47644         * MODULES.html.sh: Likewise.
47645         * build-aux/bootstrap.conf: Likewise.
47646         * build-aux/config.libpath: Likewise.
47647         * build-aux/csharpcomp.sh.in: Likewise.
47648         * build-aux/csharpexec.sh.in: Likewise.
47649         * build-aux/install-reloc: Likewise.
47650         * build-aux/javacomp.sh.in: Likewise.
47651         * build-aux/javaexec.sh.in: Likewise.
47652         * build-aux/ldd.sh.in: Likewise.
47653         * build-aux/reloc-ldflags: Likewise.
47654         * build-aux/relocatable.sh.in: Likewise.
47655         * build-aux/x-to-1.in: Likewise.
47656         * check-module: Likewise.
47657         * config/srclistvars.sh: Likewise.
47658         * gnulib-tool: Likewise.
47659         * lib/acl-internal.h: Likewise.
47660         * lib/acl.c: Likewise.
47661         * lib/acl.h: Likewise.
47662         * lib/acl_entries.c: Likewise.
47663         * lib/areadlink-with-size.c: Likewise.
47664         * lib/areadlink.c: Likewise.
47665         * lib/areadlink.h: Likewise.
47666         * lib/argmatch.c: Likewise.
47667         * lib/argmatch.h: Likewise.
47668         * lib/argp-ba.c: Likewise.
47669         * lib/argp-eexst.c: Likewise.
47670         * lib/argp-fmtstream.c: Likewise.
47671         * lib/argp-fmtstream.h: Likewise.
47672         * lib/argp-fs-xinl.c: Likewise.
47673         * lib/argp-help.c: Likewise.
47674         * lib/argp-namefrob.h: Likewise.
47675         * lib/argp-parse.c: Likewise.
47676         * lib/argp-pin.c: Likewise.
47677         * lib/argp-pv.c: Likewise.
47678         * lib/argp-pvh.c: Likewise.
47679         * lib/argp-xinl.c: Likewise.
47680         * lib/argp.h: Likewise.
47681         * lib/at-func.c: Likewise.
47682         * lib/atanl.c: Likewise.
47683         * lib/backupfile.c: Likewise.
47684         * lib/backupfile.h: Likewise.
47685         * lib/basename.c: Likewise.
47686         * lib/binary-io.h: Likewise.
47687         * lib/byteswap.in.h: Likewise.
47688         * lib/c-stack.c: Likewise.
47689         * lib/c-stack.h: Likewise.
47690         * lib/c-strcasestr.c: Likewise.
47691         * lib/c-strcasestr.h: Likewise.
47692         * lib/c-strstr.c: Likewise.
47693         * lib/c-strstr.h: Likewise.
47694         * lib/c-strtod.c: Likewise.
47695         * lib/calloc.c: Likewise.
47696         * lib/canon-host.c: Likewise.
47697         * lib/canon-host.h: Likewise.
47698         * lib/canonicalize-lgpl.c: Likewise.
47699         * lib/canonicalize.c: Likewise.
47700         * lib/canonicalize.h: Likewise.
47701         * lib/ceil.c: Likewise.
47702         * lib/ceilf.c: Likewise.
47703         * lib/ceill.c: Likewise.
47704         * lib/chdir-long.c: Likewise.
47705         * lib/chdir-long.h: Likewise.
47706         * lib/chdir-safer.c: Likewise.
47707         * lib/chdir-safer.h: Likewise.
47708         * lib/chown.c: Likewise.
47709         * lib/classpath.c: Likewise.
47710         * lib/classpath.h: Likewise.
47711         * lib/clean-temp.c: Likewise.
47712         * lib/clean-temp.h: Likewise.
47713         * lib/cloexec.c: Likewise.
47714         * lib/close-stream.c: Likewise.
47715         * lib/closein.c: Likewise.
47716         * lib/closein.h: Likewise.
47717         * lib/closeout.c: Likewise.
47718         * lib/closeout.h: Likewise.
47719         * lib/concat-filename.c: Likewise.
47720         * lib/copy-file.c: Likewise.
47721         * lib/copy-file.h: Likewise.
47722         * lib/count-one-bits.h: Likewise.
47723         * lib/crc.c: Likewise.
47724         * lib/crc.h: Likewise.
47725         * lib/creat-safer.c: Likewise.
47726         * lib/csharpcomp.c: Likewise.
47727         * lib/csharpcomp.h: Likewise.
47728         * lib/csharpexec.c: Likewise.
47729         * lib/csharpexec.h: Likewise.
47730         * lib/cycle-check.c: Likewise.
47731         * lib/cycle-check.h: Likewise.
47732         * lib/diacrit.c: Likewise.
47733         * lib/diacrit.h: Likewise.
47734         * lib/diffseq.h: Likewise.
47735         * lib/dirchownmod.c: Likewise.
47736         * lib/dirent.in.h: Likewise.
47737         * lib/dirfd.c: Likewise.
47738         * lib/dirfd.h: Likewise.
47739         * lib/dirname.c: Likewise.
47740         * lib/dirname.h: Likewise.
47741         * lib/dummy.c: Likewise.
47742         * lib/dup-safer.c: Likewise.
47743         * lib/dup2.c: Likewise.
47744         * lib/eealloc.h: Likewise.
47745         * lib/error.c: Likewise.
47746         * lib/error.h: Likewise.
47747         * lib/euidaccess.c: Likewise.
47748         * lib/exclude.c: Likewise.
47749         * lib/exclude.h: Likewise.
47750         * lib/execute.c: Likewise.
47751         * lib/execute.h: Likewise.
47752         * lib/exitfail.c: Likewise.
47753         * lib/exitfail.h: Likewise.
47754         * lib/expl.c: Likewise.
47755         * lib/fatal-signal.c: Likewise.
47756         * lib/fatal-signal.h: Likewise.
47757         * lib/fbufmode.c: Likewise.
47758         * lib/fbufmode.h: Likewise.
47759         * lib/fchdir.c: Likewise.
47760         * lib/fchmodat.c: Likewise.
47761         * lib/fchownat.c: Likewise.
47762         * lib/fcntl--.h: Likewise.
47763         * lib/fcntl-safer.h: Likewise.
47764         * lib/fcntl.in.h: Likewise.
47765         * lib/fd-safer.c: Likewise.
47766         * lib/fflush.c: Likewise.
47767         * lib/file-has-acl.c: Likewise.
47768         * lib/file-set.c: Likewise.
47769         * lib/file-type.c: Likewise.
47770         * lib/file-type.h: Likewise.
47771         * lib/fileblocks.c: Likewise.
47772         * lib/filemode.c: Likewise.
47773         * lib/filemode.h: Likewise.
47774         * lib/filename.h: Likewise.
47775         * lib/filenamecat.c: Likewise.
47776         * lib/filenamecat.h: Likewise.
47777         * lib/findprog.c: Likewise.
47778         * lib/findprog.h: Likewise.
47779         * lib/float.in.h: Likewise.
47780         * lib/floor.c: Likewise.
47781         * lib/floorf.c: Likewise.
47782         * lib/floorl.c: Likewise.
47783         * lib/fopen-safer.c: Likewise.
47784         * lib/fopen.c: Likewise.
47785         * lib/fpending.c: Likewise.
47786         * lib/fpending.h: Likewise.
47787         * lib/fprintf.c: Likewise.
47788         * lib/fprintftime.h: Likewise.
47789         * lib/fpucw.h: Likewise.
47790         * lib/fpurge.c: Likewise.
47791         * lib/fpurge.h: Likewise.
47792         * lib/freadable.c: Likewise.
47793         * lib/freadable.h: Likewise.
47794         * lib/freadahead.c: Likewise.
47795         * lib/freadahead.h: Likewise.
47796         * lib/freading.c: Likewise.
47797         * lib/freading.h: Likewise.
47798         * lib/free.c: Likewise.
47799         * lib/freopen.c: Likewise.
47800         * lib/frexp.c: Likewise.
47801         * lib/frexpl.c: Likewise.
47802         * lib/fseek.c: Likewise.
47803         * lib/fseterr.c: Likewise.
47804         * lib/fseterr.h: Likewise.
47805         * lib/fstatat.c: Likewise.
47806         * lib/fstrcmp.c: Likewise.
47807         * lib/fstrcmp.h: Likewise.
47808         * lib/fsusage.c: Likewise.
47809         * lib/fsusage.h: Likewise.
47810         * lib/ftell.c: Likewise.
47811         * lib/ftello.c: Likewise.
47812         * lib/fts-cycle.c: Likewise.
47813         * lib/fts.c: Likewise.
47814         * lib/fts_.h: Likewise.
47815         * lib/full-read.c: Likewise.
47816         * lib/full-read.h: Likewise.
47817         * lib/full-write.c: Likewise.
47818         * lib/full-write.h: Likewise.
47819         * lib/fwritable.c: Likewise.
47820         * lib/fwritable.h: Likewise.
47821         * lib/fwriteerror.c: Likewise.
47822         * lib/fwriteerror.h: Likewise.
47823         * lib/fwriting.c: Likewise.
47824         * lib/fwriting.h: Likewise.
47825         * lib/gcd.c: Likewise.
47826         * lib/gcd.h: Likewise.
47827         * lib/getcwd.c: Likewise.
47828         * lib/getdate.h: Likewise.
47829         * lib/getdate.y: Likewise.
47830         * lib/getdomainname.c: Likewise.
47831         * lib/getdomainname.h: Likewise.
47832         * lib/getgroups.c: Likewise.
47833         * lib/gethostname.c: Likewise.
47834         * lib/gethrxtime.c: Likewise.
47835         * lib/gethrxtime.h: Likewise.
47836         * lib/getloadavg.c: Likewise.
47837         * lib/getndelim2.c: Likewise.
47838         * lib/getndelim2.h: Likewise.
47839         * lib/getnline.c: Likewise.
47840         * lib/getnline.h: Likewise.
47841         * lib/getopt.c: Likewise.
47842         * lib/getopt.in.h: Likewise.
47843         * lib/getopt1.c: Likewise.
47844         * lib/getopt_int.h: Likewise.
47845         * lib/getpagesize.h: Likewise.
47846         * lib/getsubopt.c: Likewise.
47847         * lib/gettime.c: Likewise.
47848         * lib/getugroups.c: Likewise.
47849         * lib/getugroups.h: Likewise.
47850         * lib/getusershell.c: Likewise.
47851         * lib/gl_anyavltree_list1.h: Likewise.
47852         * lib/gl_anyavltree_list2.h: Likewise.
47853         * lib/gl_anyhash_list1.h: Likewise.
47854         * lib/gl_anyhash_list2.h: Likewise.
47855         * lib/gl_anylinked_list1.h: Likewise.
47856         * lib/gl_anylinked_list2.h: Likewise.
47857         * lib/gl_anyrbtree_list1.h: Likewise.
47858         * lib/gl_anyrbtree_list2.h: Likewise.
47859         * lib/gl_anytree_list1.h: Likewise.
47860         * lib/gl_anytree_list2.h: Likewise.
47861         * lib/gl_anytree_oset.h: Likewise.
47862         * lib/gl_anytreehash_list1.h: Likewise.
47863         * lib/gl_anytreehash_list2.h: Likewise.
47864         * lib/gl_array_list.c: Likewise.
47865         * lib/gl_array_list.h: Likewise.
47866         * lib/gl_array_oset.c: Likewise.
47867         * lib/gl_array_oset.h: Likewise.
47868         * lib/gl_avltree_list.c: Likewise.
47869         * lib/gl_avltree_list.h: Likewise.
47870         * lib/gl_avltree_oset.c: Likewise.
47871         * lib/gl_avltree_oset.h: Likewise.
47872         * lib/gl_avltreehash_list.c: Likewise.
47873         * lib/gl_avltreehash_list.h: Likewise.
47874         * lib/gl_carray_list.c: Likewise.
47875         * lib/gl_carray_list.h: Likewise.
47876         * lib/gl_linked_list.c: Likewise.
47877         * lib/gl_linked_list.h: Likewise.
47878         * lib/gl_linkedhash_list.c: Likewise.
47879         * lib/gl_linkedhash_list.h: Likewise.
47880         * lib/gl_list.c: Likewise.
47881         * lib/gl_list.h: Likewise.
47882         * lib/gl_oset.c: Likewise.
47883         * lib/gl_oset.h: Likewise.
47884         * lib/gl_rbtree_list.c: Likewise.
47885         * lib/gl_rbtree_list.h: Likewise.
47886         * lib/gl_rbtree_oset.c: Likewise.
47887         * lib/gl_rbtree_oset.h: Likewise.
47888         * lib/gl_rbtreehash_list.c: Likewise.
47889         * lib/gl_rbtreehash_list.h: Likewise.
47890         * lib/gl_sublist.c: Likewise.
47891         * lib/gl_sublist.h: Likewise.
47892         * lib/group-member.c: Likewise.
47893         * lib/group-member.h: Likewise.
47894         * lib/hard-locale.c: Likewise.
47895         * lib/hard-locale.h: Likewise.
47896         * lib/hash-pjw.c: Likewise.
47897         * lib/hash-pjw.h: Likewise.
47898         * lib/hash-triple.c: Likewise.
47899         * lib/hash.c: Likewise.
47900         * lib/hash.h: Likewise.
47901         * lib/human.c: Likewise.
47902         * lib/human.h: Likewise.
47903         * lib/i-ring.c: Likewise.
47904         * lib/i-ring.h: Likewise.
47905         * lib/idcache.c: Likewise.
47906         * lib/imaxabs.c: Likewise.
47907         * lib/imaxdiv.c: Likewise.
47908         * lib/inet_pton.c: Likewise.
47909         * lib/inet_pton.h: Likewise.
47910         * lib/intprops.h: Likewise.
47911         * lib/inttostr.c: Likewise.
47912         * lib/inttostr.h: Likewise.
47913         * lib/inttypes.in.h: Likewise.
47914         * lib/isapipe.c: Likewise.
47915         * lib/isdir.c: Likewise.
47916         * lib/isnan.c: Likewise.
47917         * lib/isnan.h: Likewise.
47918         * lib/isnanf.c: Likewise.
47919         * lib/isnanf.h: Likewise.
47920         * lib/isnanl-nolibm.h: Likewise.
47921         * lib/isnanl.c: Likewise.
47922         * lib/isnanl.h: Likewise.
47923         * lib/javacomp.c: Likewise.
47924         * lib/javacomp.h: Likewise.
47925         * lib/javaexec.c: Likewise.
47926         * lib/javaexec.h: Likewise.
47927         * lib/javaversion.c: Likewise.
47928         * lib/javaversion.h: Likewise.
47929         * lib/javaversion.java: Likewise.
47930         * lib/lbrkprop.h: Likewise.
47931         * lib/lchmod.h: Likewise.
47932         * lib/lchown.c: Likewise.
47933         * lib/ldexpl.c: Likewise.
47934         * lib/linebreak.c: Likewise.
47935         * lib/linebreak.h: Likewise.
47936         * lib/linebuffer.c: Likewise.
47937         * lib/linebuffer.h: Likewise.
47938         * lib/locale.in.h: Likewise.
47939         * lib/logl.c: Likewise.
47940         * lib/long-options.c: Likewise.
47941         * lib/long-options.h: Likewise.
47942         * lib/lstat.c: Likewise.
47943         * lib/lstat.h: Likewise.
47944         * lib/math.in.h: Likewise.
47945         * lib/mbchar.c: Likewise.
47946         * lib/mbchar.h: Likewise.
47947         * lib/mbfile.h: Likewise.
47948         * lib/mbiter.h: Likewise.
47949         * lib/mbscasecmp.c: Likewise.
47950         * lib/mbscasestr.c: Likewise.
47951         * lib/mbschr.c: Likewise.
47952         * lib/mbscspn.c: Likewise.
47953         * lib/mbslen.c: Likewise.
47954         * lib/mbsncasecmp.c: Likewise.
47955         * lib/mbsnlen.c: Likewise.
47956         * lib/mbspbrk.c: Likewise.
47957         * lib/mbspcasecmp.c: Likewise.
47958         * lib/mbsrchr.c: Likewise.
47959         * lib/mbssep.c: Likewise.
47960         * lib/mbsspn.c: Likewise.
47961         * lib/mbsstr.c: Likewise.
47962         * lib/mbstok_r.c: Likewise.
47963         * lib/mbswidth.c: Likewise.
47964         * lib/mbswidth.h: Likewise.
47965         * lib/mbuiter.h: Likewise.
47966         * lib/memcasecmp.c: Likewise.
47967         * lib/memcasecmp.h: Likewise.
47968         * lib/memchr.c: Likewise.
47969         * lib/memcmp.c: Likewise.
47970         * lib/memcoll.c: Likewise.
47971         * lib/memcoll.h: Likewise.
47972         * lib/memcpy.c: Likewise.
47973         * lib/memrchr.c: Likewise.
47974         * lib/mkancesdirs.c: Likewise.
47975         * lib/mkdir-p.c: Likewise.
47976         * lib/mkdir-p.h: Likewise.
47977         * lib/mkdir.c: Likewise.
47978         * lib/mkdirat.c: Likewise.
47979         * lib/mkdtemp.c: Likewise.
47980         * lib/mkstemp-safer.c: Likewise.
47981         * lib/mkstemp.c: Likewise.
47982         * lib/modechange.c: Likewise.
47983         * lib/modechange.h: Likewise.
47984         * lib/mountlist.c: Likewise.
47985         * lib/mountlist.h: Likewise.
47986         * lib/mpsort.c: Likewise.
47987         * lib/nanosleep.c: Likewise.
47988         * lib/obstack.c: Likewise.
47989         * lib/obstack.h: Likewise.
47990         * lib/open-safer.c: Likewise.
47991         * lib/open.c: Likewise.
47992         * lib/openat-die.c: Likewise.
47993         * lib/openat-priv.h: Likewise.
47994         * lib/openat-proc.c: Likewise.
47995         * lib/openat.c: Likewise.
47996         * lib/openat.h: Likewise.
47997         * lib/pagealign_alloc.c: Likewise.
47998         * lib/pagealign_alloc.h: Likewise.
47999         * lib/physmem.c: Likewise.
48000         * lib/physmem.h: Likewise.
48001         * lib/pipe-safer.c: Likewise.
48002         * lib/pipe.c: Likewise.
48003         * lib/pipe.h: Likewise.
48004         * lib/posixtm.c: Likewise.
48005         * lib/posixtm.h: Likewise.
48006         * lib/posixver.c: Likewise.
48007         * lib/printf-frexp.c: Likewise.
48008         * lib/printf-frexp.h: Likewise.
48009         * lib/printf-frexpl.c: Likewise.
48010         * lib/printf-frexpl.h: Likewise.
48011         * lib/printf.c: Likewise.
48012         * lib/progname.c: Likewise.
48013         * lib/progname.h: Likewise.
48014         * lib/progreloc.c: Likewise.
48015         * lib/putenv.c: Likewise.
48016         * lib/quote.c: Likewise.
48017         * lib/quote.h: Likewise.
48018         * lib/quotearg.c: Likewise.
48019         * lib/quotearg.h: Likewise.
48020         * lib/raise.c: Likewise.
48021         * lib/readline.c: Likewise.
48022         * lib/readline.h: Likewise.
48023         * lib/readlink.c: Likewise.
48024         * lib/readtokens.c: Likewise.
48025         * lib/readtokens.h: Likewise.
48026         * lib/readtokens0.c: Likewise.
48027         * lib/readtokens0.h: Likewise.
48028         * lib/readutmp.c: Likewise.
48029         * lib/readutmp.h: Likewise.
48030         * lib/realloc.c: Likewise.
48031         * lib/relocwrapper.c: Likewise.
48032         * lib/rename-dest-slash.c: Likewise.
48033         * lib/rename.c: Likewise.
48034         * lib/rmdir.c: Likewise.
48035         * lib/rpmatch.c: Likewise.
48036         * lib/safe-read.c: Likewise.
48037         * lib/safe-read.h: Likewise.
48038         * lib/safe-write.c: Likewise.
48039         * lib/safe-write.h: Likewise.
48040         * lib/same-inode.h: Likewise.
48041         * lib/same.c: Likewise.
48042         * lib/same.h: Likewise.
48043         * lib/save-cwd.c: Likewise.
48044         * lib/save-cwd.h: Likewise.
48045         * lib/savedir.c: Likewise.
48046         * lib/savedir.h: Likewise.
48047         * lib/savewd.c: Likewise.
48048         * lib/savewd.h: Likewise.
48049         * lib/search.in.h: Likewise.
48050         * lib/setenv.c: Likewise.
48051         * lib/setenv.h: Likewise.
48052         * lib/settime.c: Likewise.
48053         * lib/sh-quote.c: Likewise.
48054         * lib/sh-quote.h: Likewise.
48055         * lib/sig2str.c: Likewise.
48056         * lib/sig2str.h: Likewise.
48057         * lib/signal.in.h: Likewise.
48058         * lib/signbitd.c: Likewise.
48059         * lib/signbitf.c: Likewise.
48060         * lib/signbitl.c: Likewise.
48061         * lib/sigprocmask.c: Likewise.
48062         * lib/sincosl.c: Likewise.
48063         * lib/sleep.c: Likewise.
48064         * lib/sprintf.c: Likewise.
48065         * lib/sqrtl.c: Likewise.
48066         * lib/stat-time.h: Likewise.
48067         * lib/stdio--.h: Likewise.
48068         * lib/stdio-safer.h: Likewise.
48069         * lib/stdlib--.h: Likewise.
48070         * lib/stdlib-safer.h: Likewise.
48071         * lib/stdlib.in.h: Likewise.
48072         * lib/stpcpy.c: Likewise.
48073         * lib/stpncpy.c: Likewise.
48074         * lib/strchrnul.c: Likewise.
48075         * lib/strcspn.c: Likewise.
48076         * lib/strerror.c: Likewise.
48077         * lib/strftime.c: Likewise.
48078         * lib/strftime.h: Likewise.
48079         * lib/striconveh.c: Likewise.
48080         * lib/striconveh.h: Likewise.
48081         * lib/striconveha.c: Likewise.
48082         * lib/striconveha.h: Likewise.
48083         * lib/stripslash.c: Likewise.
48084         * lib/strnlen1.c: Likewise.
48085         * lib/strnlen1.h: Likewise.
48086         * lib/strtod.c: Likewise.
48087         * lib/strtoimax.c: Likewise.
48088         * lib/strtok_r.c: Likewise.
48089         * lib/strtol.c: Likewise.
48090         * lib/strtoll.c: Likewise.
48091         * lib/strtoul.c: Likewise.
48092         * lib/strtoull.c: Likewise.
48093         * lib/sysexits.in.h: Likewise.
48094         * lib/tempname.c: Likewise.
48095         * lib/tempname.h: Likewise.
48096         * lib/timespec.h: Likewise.
48097         * lib/tls.c: Likewise.
48098         * lib/tls.h: Likewise.
48099         * lib/tmpdir.c: Likewise.
48100         * lib/tmpdir.h: Likewise.
48101         * lib/tmpfile-safer.c: Likewise.
48102         * lib/tmpfile.c: Likewise.
48103         * lib/trigl.c: Likewise.
48104         * lib/trigl.h: Likewise.
48105         * lib/trim.c: Likewise.
48106         * lib/trim.h: Likewise.
48107         * lib/trunc.c: Likewise.
48108         * lib/truncf.c: Likewise.
48109         * lib/truncl.c: Likewise.
48110         * lib/tsearch.c: Likewise.
48111         * lib/unicodeio.c: Likewise.
48112         * lib/unicodeio.h: Likewise.
48113         * lib/unistd--.h: Likewise.
48114         * lib/unistd-safer.h: Likewise.
48115         * lib/unistdio/ulc-fprintf.c: Likewise.
48116         * lib/unistdio/ulc-vfprintf.c: Likewise.
48117         * lib/unlinkdir.c: Likewise.
48118         * lib/unlinkdir.h: Likewise.
48119         * lib/unlocked-io.h: Likewise.
48120         * lib/unsetenv.c: Likewise.
48121         * lib/userspec.c: Likewise.
48122         * lib/utime.c: Likewise.
48123         * lib/utimecmp.c: Likewise.
48124         * lib/utimecmp.h: Likewise.
48125         * lib/utimens.c: Likewise.
48126         * lib/verify.h: Likewise.
48127         * lib/verror.c: Likewise.
48128         * lib/verror.h: Likewise.
48129         * lib/version-etc-fsf.c: Likewise.
48130         * lib/version-etc.c: Likewise.
48131         * lib/version-etc.h: Likewise.
48132         * lib/vfprintf.c: Likewise.
48133         * lib/vprintf.c: Likewise.
48134         * lib/vsprintf.c: Likewise.
48135         * lib/w32spawn.h: Likewise.
48136         * lib/wait-process.c: Likewise.
48137         * lib/wait-process.h: Likewise.
48138         * lib/wcwidth.c: Likewise.
48139         * lib/write-any-file.c: Likewise.
48140         * lib/xalloc-die.c: Likewise.
48141         * lib/xalloc.h: Likewise.
48142         * lib/xasprintf.c: Likewise.
48143         * lib/xgetcwd.c: Likewise.
48144         * lib/xgetcwd.h: Likewise.
48145         * lib/xgetdomainname.c: Likewise.
48146         * lib/xgetdomainname.h: Likewise.
48147         * lib/xgethostname.c: Likewise.
48148         * lib/xmalloc.c: Likewise.
48149         * lib/xmalloca.c: Likewise.
48150         * lib/xmalloca.h: Likewise.
48151         * lib/xmemcoll.c: Likewise.
48152         * lib/xnanosleep.c: Likewise.
48153         * lib/xreadlink.c: Likewise.
48154         * lib/xreadlink.h: Likewise.
48155         * lib/xsetenv.c: Likewise.
48156         * lib/xsetenv.h: Likewise.
48157         * lib/xstriconv.c: Likewise.
48158         * lib/xstriconv.h: Likewise.
48159         * lib/xstrndup.c: Likewise.
48160         * lib/xstrndup.h: Likewise.
48161         * lib/xstrtod.c: Likewise.
48162         * lib/xstrtod.h: Likewise.
48163         * lib/xstrtol-error.c: Likewise.
48164         * lib/xstrtol.c: Likewise.
48165         * lib/xstrtol.h: Likewise.
48166         * lib/xtime.h: Likewise.
48167         * lib/xvasprintf.c: Likewise.
48168         * lib/xvasprintf.h: Likewise.
48169         * lib/yesno.c: Likewise.
48170         * lib/yesno.h: Likewise.
48171         * posix-modules: Likewise.
48172         * tests/test-alloca-opt.c: Likewise.
48173         * tests/test-arcfour.c: Likewise.
48174         * tests/test-arctwo.c: Likewise.
48175         * tests/test-argmatch.c: Likewise.
48176         * tests/test-argp-2.sh: Likewise.
48177         * tests/test-argp.c: Likewise.
48178         * tests/test-arpa_inet.c: Likewise.
48179         * tests/test-array_list.c: Likewise.
48180         * tests/test-array_oset.c: Likewise.
48181         * tests/test-atexit.c: Likewise.
48182         * tests/test-avltree_list.c: Likewise.
48183         * tests/test-avltree_oset.c: Likewise.
48184         * tests/test-avltreehash_list.c: Likewise.
48185         * tests/test-base64.c: Likewise.
48186         * tests/test-binary-io.c: Likewise.
48187         * tests/test-byteswap.c: Likewise.
48188         * tests/test-c-ctype.c: Likewise.
48189         * tests/test-c-strcasecmp.c: Likewise.
48190         * tests/test-c-strcasestr.c: Likewise.
48191         * tests/test-c-strncasecmp.c: Likewise.
48192         * tests/test-c-strstr.c: Likewise.
48193         * tests/test-canonicalize-lgpl.c: Likewise.
48194         * tests/test-canonicalize.c: Likewise.
48195         * tests/test-carray_list.c: Likewise.
48196         * tests/test-ceilf.c: Likewise.
48197         * tests/test-ceill.c: Likewise.
48198         * tests/test-count-one-bits.c: Likewise.
48199         * tests/test-crc.c: Likewise.
48200         * tests/test-dirname.c: Likewise.
48201         * tests/test-fbufmode.c: Likewise.
48202         * tests/test-fcntl.c: Likewise.
48203         * tests/test-fflush.c: Likewise.
48204         * tests/test-floorf.c: Likewise.
48205         * tests/test-floorl.c: Likewise.
48206         * tests/test-fopen.c: Likewise.
48207         * tests/test-fprintf-posix.c: Likewise.
48208         * tests/test-fprintf-posix.h: Likewise.
48209         * tests/test-fpurge.c: Likewise.
48210         * tests/test-freadable.c: Likewise.
48211         * tests/test-freadahead.c: Likewise.
48212         * tests/test-freading.c: Likewise.
48213         * tests/test-freopen.c: Likewise.
48214         * tests/test-frexp.c: Likewise.
48215         * tests/test-frexpl.c: Likewise.
48216         * tests/test-fseek.c: Likewise.
48217         * tests/test-fseeko.c: Likewise.
48218         * tests/test-fseterr.c: Likewise.
48219         * tests/test-fstrcmp.c: Likewise.
48220         * tests/test-ftell.c: Likewise.
48221         * tests/test-ftello.c: Likewise.
48222         * tests/test-fwritable.c: Likewise.
48223         * tests/test-fwriting.c: Likewise.
48224         * tests/test-getaddrinfo.c: Likewise.
48225         * tests/test-getpass.c: Likewise.
48226         * tests/test-gettimeofday.c: Likewise.
48227         * tests/test-hmac-md5.c: Likewise.
48228         * tests/test-hmac-sha1.c: Likewise.
48229         * tests/test-iconv.c: Likewise.
48230         * tests/test-iconvme.c: Likewise.
48231         * tests/test-inttypes.c: Likewise.
48232         * tests/test-isnan.c: Likewise.
48233         * tests/test-isnanf.c: Likewise.
48234         * tests/test-isnanl-nolibm.c: Likewise.
48235         * tests/test-isnanl.c: Likewise.
48236         * tests/test-isnanl.h: Likewise.
48237         * tests/test-ldexpl.c: Likewise.
48238         * tests/test-linked_list.c: Likewise.
48239         * tests/test-linkedhash_list.c: Likewise.
48240         * tests/test-locale.c: Likewise.
48241         * tests/test-localename.c: Likewise.
48242         * tests/test-lock.c: Likewise.
48243         * tests/test-lseek.c: Likewise.
48244         * tests/test-malloca.c: Likewise.
48245         * tests/test-math.c: Likewise.
48246         * tests/test-mbscasecmp.c: Likewise.
48247         * tests/test-mbscasestr1.c: Likewise.
48248         * tests/test-mbscasestr2.c: Likewise.
48249         * tests/test-mbscasestr3.c: Likewise.
48250         * tests/test-mbscasestr4.c: Likewise.
48251         * tests/test-mbschr.c: Likewise.
48252         * tests/test-mbscspn.c: Likewise.
48253         * tests/test-mbsncasecmp.c: Likewise.
48254         * tests/test-mbspbrk.c: Likewise.
48255         * tests/test-mbspcasecmp.c: Likewise.
48256         * tests/test-mbsrchr.c: Likewise.
48257         * tests/test-mbsspn.c: Likewise.
48258         * tests/test-mbsstr1.c: Likewise.
48259         * tests/test-mbsstr2.c: Likewise.
48260         * tests/test-mbsstr3.c: Likewise.
48261         * tests/test-md5.c: Likewise.
48262         * tests/test-memmem.c: Likewise.
48263         * tests/test-netinet_in.c: Likewise.
48264         * tests/test-open.c: Likewise.
48265         * tests/test-printf-frexp.c: Likewise.
48266         * tests/test-printf-frexpl.c: Likewise.
48267         * tests/test-printf-posix.c: Likewise.
48268         * tests/test-printf-posix.h: Likewise.
48269         * tests/test-rbtree_list.c: Likewise.
48270         * tests/test-rbtree_oset.c: Likewise.
48271         * tests/test-rbtreehash_list.c: Likewise.
48272         * tests/test-read-file.c: Likewise.
48273         * tests/test-rijndael.c: Likewise.
48274         * tests/test-search.c: Likewise.
48275         * tests/test-signbit.c: Likewise.
48276         * tests/test-sleep.c: Likewise.
48277         * tests/test-snprintf-posix.c: Likewise.
48278         * tests/test-snprintf-posix.h: Likewise.
48279         * tests/test-snprintf.c: Likewise.
48280         * tests/test-sprintf-posix.c: Likewise.
48281         * tests/test-sprintf-posix.h: Likewise.
48282         * tests/test-stat-time.c: Likewise.
48283         * tests/test-stdbool.c: Likewise.
48284         * tests/test-stdint.c: Likewise.
48285         * tests/test-stdio.c: Likewise.
48286         * tests/test-stdlib.c: Likewise.
48287         * tests/test-stpncpy.c: Likewise.
48288         * tests/test-strcasestr.c: Likewise.
48289         * tests/test-striconv.c: Likewise.
48290         * tests/test-striconveh.c: Likewise.
48291         * tests/test-striconveha.c: Likewise.
48292         * tests/test-string.c: Likewise.
48293         * tests/test-sys_select.c: Likewise.
48294         * tests/test-sys_socket.c: Likewise.
48295         * tests/test-sys_stat.c: Likewise.
48296         * tests/test-sys_time.c: Likewise.
48297         * tests/test-sysexits.c: Likewise.
48298         * tests/test-time.c: Likewise.
48299         * tests/test-tls.c: Likewise.
48300         * tests/test-trunc.c: Likewise.
48301         * tests/test-truncf.c: Likewise.
48302         * tests/test-truncl.c: Likewise.
48303         * tests/test-unistd.c: Likewise.
48304         * tests/test-vasnprintf-posix.c: Likewise.
48305         * tests/test-vasnprintf-posix2.c: Likewise.
48306         * tests/test-vasnprintf.c: Likewise.
48307         * tests/test-vasprintf-posix.c: Likewise.
48308         * tests/test-vasprintf.c: Likewise.
48309         * tests/test-verify.c: Likewise.
48310         * tests/test-vfprintf-posix.c: Likewise.
48311         * tests/test-vprintf-posix.c: Likewise.
48312         * tests/test-vsnprintf-posix.c: Likewise.
48313         * tests/test-vsnprintf.c: Likewise.
48314         * tests/test-vsprintf-posix.c: Likewise.
48315         * tests/test-wchar.c: Likewise.
48316         * tests/test-wctype.c: Likewise.
48317         * tests/test-wcwidth.c: Likewise.
48318         * tests/test-xstrtol.c: Likewise.
48319         * tests/test-xvasprintf.c: Likewise.
48320         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48321         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48322         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48323         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48324         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48325         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48326         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48327         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48328         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48329         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48330         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48331         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48332         * tests/uniname/test-uninames.c: Likewise.
48333         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48334         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48335         * tests/unistdio/test-u16-printf1.h: Likewise.
48336         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48337         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48338         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48339         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48340         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48341         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48342         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48343         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48344         * tests/unistdio/test-u32-printf1.h: Likewise.
48345         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48346         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48347         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48348         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48349         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48350         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48351         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48352         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48353         * tests/unistdio/test-u8-printf1.h: Likewise.
48354         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48355         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48356         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48357         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48358         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48359         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48360         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48361         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48362         * tests/unistdio/test-ulc-printf1.h: Likewise.
48363         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48364         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48365         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48366         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48367         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48368         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48369         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48370         * tests/uniwidth/test-u16-width.c: Likewise.
48371         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48372         * tests/uniwidth/test-u32-width.c: Likewise.
48373         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48374         * tests/uniwidth/test-u8-width.c: Likewise.
48375         * tests/uniwidth/test-uc_width.c: Likewise.
48376         * config/srclist-update: Likewise.
48377         (fixlicense): Update to GPLv3+.
48378
48379         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48380         * tests/test-tsearch.c: Change copyright notice.
48381
48382         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48383         * lib/c-strcaseeq.h: Change copyright notice.
48384         * lib/streq.h: Likewise.
48385         * lib/uniconv.h: Likewise.
48386         * lib/uniconv/u-conv-from-enc.h: Likewise.
48387         * lib/uniconv/u-conv-to-enc.h: Likewise.
48388         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48389         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48390         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48391         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48392         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48393         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48394         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48395         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48396         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48397         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48398         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48399         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48400         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48401         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48402         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48403         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48404         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48405         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48406         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48407         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48408         * lib/uniname.h: Likewise.
48409         * lib/uniname/uniname.c: Likewise.
48410         * lib/unistdio.h: Likewise.
48411         * lib/unistdio/u-asnprintf.h: Likewise.
48412         * lib/unistdio/u-asprintf.h: Likewise.
48413         * lib/unistdio/u-printf-args.c: Likewise.
48414         * lib/unistdio/u-printf-args.h: Likewise.
48415         * lib/unistdio/u-printf-parse.h: Likewise.
48416         * lib/unistdio/u-snprintf.h: Likewise.
48417         * lib/unistdio/u-sprintf.h: Likewise.
48418         * lib/unistdio/u-vasprintf.h: Likewise.
48419         * lib/unistdio/u-vsnprintf.h: Likewise.
48420         * lib/unistdio/u-vsprintf.h: Likewise.
48421         * lib/unistdio/u16-asnprintf.c: Likewise.
48422         * lib/unistdio/u16-asprintf.c: Likewise.
48423         * lib/unistdio/u16-printf-parse.c: Likewise.
48424         * lib/unistdio/u16-snprintf.c: Likewise.
48425         * lib/unistdio/u16-sprintf.c: Likewise.
48426         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48427         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48428         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48429         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48430         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48431         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48432         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48433         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48434         * lib/unistdio/u16-vasnprintf.c: Likewise.
48435         * lib/unistdio/u16-vasprintf.c: Likewise.
48436         * lib/unistdio/u16-vsnprintf.c: Likewise.
48437         * lib/unistdio/u16-vsprintf.c: Likewise.
48438         * lib/unistdio/u32-asnprintf.c: Likewise.
48439         * lib/unistdio/u32-asprintf.c: Likewise.
48440         * lib/unistdio/u32-printf-parse.c: Likewise.
48441         * lib/unistdio/u32-snprintf.c: Likewise.
48442         * lib/unistdio/u32-sprintf.c: Likewise.
48443         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48444         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48445         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48446         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48447         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48448         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48449         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48450         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48451         * lib/unistdio/u32-vasnprintf.c: Likewise.
48452         * lib/unistdio/u32-vasprintf.c: Likewise.
48453         * lib/unistdio/u32-vsnprintf.c: Likewise.
48454         * lib/unistdio/u32-vsprintf.c: Likewise.
48455         * lib/unistdio/u8-asnprintf.c: Likewise.
48456         * lib/unistdio/u8-asprintf.c: Likewise.
48457         * lib/unistdio/u8-printf-parse.c: Likewise.
48458         * lib/unistdio/u8-snprintf.c: Likewise.
48459         * lib/unistdio/u8-sprintf.c: Likewise.
48460         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48461         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48462         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48463         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48464         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48465         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48466         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48467         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48468         * lib/unistdio/u8-vasnprintf.c: Likewise.
48469         * lib/unistdio/u8-vasprintf.c: Likewise.
48470         * lib/unistdio/u8-vsnprintf.c: Likewise.
48471         * lib/unistdio/u8-vsprintf.c: Likewise.
48472         * lib/unistdio/ulc-asnprintf.c: Likewise.
48473         * lib/unistdio/ulc-asprintf.c: Likewise.
48474         * lib/unistdio/ulc-printf-parse.c: Likewise.
48475         * lib/unistdio/ulc-snprintf.c: Likewise.
48476         * lib/unistdio/ulc-sprintf.c: Likewise.
48477         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48478         * lib/unistdio/ulc-vasprintf.c: Likewise.
48479         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48480         * lib/unistdio/ulc-vsprintf.c: Likewise.
48481         * lib/unistr.h: Likewise.
48482         * lib/unistr/u-cpy-alloc.h: Likewise.
48483         * lib/unistr/u-cpy.h: Likewise.
48484         * lib/unistr/u-endswith.h: Likewise.
48485         * lib/unistr/u-move.h: Likewise.
48486         * lib/unistr/u-set.h: Likewise.
48487         * lib/unistr/u-startswith.h: Likewise.
48488         * lib/unistr/u-stpcpy.h: Likewise.
48489         * lib/unistr/u-stpncpy.h: Likewise.
48490         * lib/unistr/u-strcat.h: Likewise.
48491         * lib/unistr/u-strcpy.h: Likewise.
48492         * lib/unistr/u-strcspn.h: Likewise.
48493         * lib/unistr/u-strdup.h: Likewise.
48494         * lib/unistr/u-strlen.h: Likewise.
48495         * lib/unistr/u-strncat.h: Likewise.
48496         * lib/unistr/u-strncpy.h: Likewise.
48497         * lib/unistr/u-strnlen.h: Likewise.
48498         * lib/unistr/u-strpbrk.h: Likewise.
48499         * lib/unistr/u-strspn.h: Likewise.
48500         * lib/unistr/u-strstr.h: Likewise.
48501         * lib/unistr/u-strtok.h: Likewise.
48502         * lib/unistr/u16-check.c: Likewise.
48503         * lib/unistr/u16-chr.c: Likewise.
48504         * lib/unistr/u16-cmp.c: Likewise.
48505         * lib/unistr/u16-cpy-alloc.c: Likewise.
48506         * lib/unistr/u16-cpy.c: Likewise.
48507         * lib/unistr/u16-endswith.c: Likewise.
48508         * lib/unistr/u16-mblen.c: Likewise.
48509         * lib/unistr/u16-mbsnlen.c: Likewise.
48510         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48511         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48512         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48513         * lib/unistr/u16-mbtouc.c: Likewise.
48514         * lib/unistr/u16-mbtoucr.c: Likewise.
48515         * lib/unistr/u16-move.c: Likewise.
48516         * lib/unistr/u16-next.c: Likewise.
48517         * lib/unistr/u16-prev.c: Likewise.
48518         * lib/unistr/u16-set.c: Likewise.
48519         * lib/unistr/u16-startswith.c: Likewise.
48520         * lib/unistr/u16-stpcpy.c: Likewise.
48521         * lib/unistr/u16-stpncpy.c: Likewise.
48522         * lib/unistr/u16-strcat.c: Likewise.
48523         * lib/unistr/u16-strchr.c: Likewise.
48524         * lib/unistr/u16-strcmp.c: Likewise.
48525         * lib/unistr/u16-strcpy.c: Likewise.
48526         * lib/unistr/u16-strcspn.c: Likewise.
48527         * lib/unistr/u16-strdup.c: Likewise.
48528         * lib/unistr/u16-strlen.c: Likewise.
48529         * lib/unistr/u16-strmblen.c: Likewise.
48530         * lib/unistr/u16-strmbtouc.c: Likewise.
48531         * lib/unistr/u16-strncat.c: Likewise.
48532         * lib/unistr/u16-strncmp.c: Likewise.
48533         * lib/unistr/u16-strncpy.c: Likewise.
48534         * lib/unistr/u16-strnlen.c: Likewise.
48535         * lib/unistr/u16-strpbrk.c: Likewise.
48536         * lib/unistr/u16-strrchr.c: Likewise.
48537         * lib/unistr/u16-strspn.c: Likewise.
48538         * lib/unistr/u16-strstr.c: Likewise.
48539         * lib/unistr/u16-strtok.c: Likewise.
48540         * lib/unistr/u16-to-u32.c: Likewise.
48541         * lib/unistr/u16-to-u8.c: Likewise.
48542         * lib/unistr/u16-uctomb-aux.c: Likewise.
48543         * lib/unistr/u16-uctomb.c: Likewise.
48544         * lib/unistr/u32-check.c: Likewise.
48545         * lib/unistr/u32-chr.c: Likewise.
48546         * lib/unistr/u32-cmp.c: Likewise.
48547         * lib/unistr/u32-cpy-alloc.c: Likewise.
48548         * lib/unistr/u32-cpy.c: Likewise.
48549         * lib/unistr/u32-endswith.c: Likewise.
48550         * lib/unistr/u32-mblen.c: Likewise.
48551         * lib/unistr/u32-mbsnlen.c: Likewise.
48552         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48553         * lib/unistr/u32-mbtouc.c: Likewise.
48554         * lib/unistr/u32-mbtoucr.c: Likewise.
48555         * lib/unistr/u32-move.c: Likewise.
48556         * lib/unistr/u32-next.c: Likewise.
48557         * lib/unistr/u32-prev.c: Likewise.
48558         * lib/unistr/u32-set.c: Likewise.
48559         * lib/unistr/u32-startswith.c: Likewise.
48560         * lib/unistr/u32-stpcpy.c: Likewise.
48561         * lib/unistr/u32-stpncpy.c: Likewise.
48562         * lib/unistr/u32-strcat.c: Likewise.
48563         * lib/unistr/u32-strchr.c: Likewise.
48564         * lib/unistr/u32-strcmp.c: Likewise.
48565         * lib/unistr/u32-strcpy.c: Likewise.
48566         * lib/unistr/u32-strcspn.c: Likewise.
48567         * lib/unistr/u32-strdup.c: Likewise.
48568         * lib/unistr/u32-strlen.c: Likewise.
48569         * lib/unistr/u32-strmblen.c: Likewise.
48570         * lib/unistr/u32-strmbtouc.c: Likewise.
48571         * lib/unistr/u32-strncat.c: Likewise.
48572         * lib/unistr/u32-strncmp.c: Likewise.
48573         * lib/unistr/u32-strncpy.c: Likewise.
48574         * lib/unistr/u32-strnlen.c: Likewise.
48575         * lib/unistr/u32-strpbrk.c: Likewise.
48576         * lib/unistr/u32-strrchr.c: Likewise.
48577         * lib/unistr/u32-strspn.c: Likewise.
48578         * lib/unistr/u32-strstr.c: Likewise.
48579         * lib/unistr/u32-strtok.c: Likewise.
48580         * lib/unistr/u32-to-u16.c: Likewise.
48581         * lib/unistr/u32-to-u8.c: Likewise.
48582         * lib/unistr/u32-uctomb.c: Likewise.
48583         * lib/unistr/u8-check.c: Likewise.
48584         * lib/unistr/u8-chr.c: Likewise.
48585         * lib/unistr/u8-cmp.c: Likewise.
48586         * lib/unistr/u8-cpy-alloc.c: Likewise.
48587         * lib/unistr/u8-cpy.c: Likewise.
48588         * lib/unistr/u8-endswith.c: Likewise.
48589         * lib/unistr/u8-mblen.c: Likewise.
48590         * lib/unistr/u8-mbsnlen.c: Likewise.
48591         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48592         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48593         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48594         * lib/unistr/u8-mbtouc.c: Likewise.
48595         * lib/unistr/u8-mbtoucr.c: Likewise.
48596         * lib/unistr/u8-move.c: Likewise.
48597         * lib/unistr/u8-next.c: Likewise.
48598         * lib/unistr/u8-prev.c: Likewise.
48599         * lib/unistr/u8-set.c: Likewise.
48600         * lib/unistr/u8-startswith.c: Likewise.
48601         * lib/unistr/u8-stpcpy.c: Likewise.
48602         * lib/unistr/u8-stpncpy.c: Likewise.
48603         * lib/unistr/u8-strcat.c: Likewise.
48604         * lib/unistr/u8-strchr.c: Likewise.
48605         * lib/unistr/u8-strcmp.c: Likewise.
48606         * lib/unistr/u8-strcpy.c: Likewise.
48607         * lib/unistr/u8-strcspn.c: Likewise.
48608         * lib/unistr/u8-strdup.c: Likewise.
48609         * lib/unistr/u8-strlen.c: Likewise.
48610         * lib/unistr/u8-strmblen.c: Likewise.
48611         * lib/unistr/u8-strmbtouc.c: Likewise.
48612         * lib/unistr/u8-strncat.c: Likewise.
48613         * lib/unistr/u8-strncmp.c: Likewise.
48614         * lib/unistr/u8-strncpy.c: Likewise.
48615         * lib/unistr/u8-strnlen.c: Likewise.
48616         * lib/unistr/u8-strpbrk.c: Likewise.
48617         * lib/unistr/u8-strrchr.c: Likewise.
48618         * lib/unistr/u8-strspn.c: Likewise.
48619         * lib/unistr/u8-strstr.c: Likewise.
48620         * lib/unistr/u8-strtok.c: Likewise.
48621         * lib/unistr/u8-to-u16.c: Likewise.
48622         * lib/unistr/u8-to-u32.c: Likewise.
48623         * lib/unistr/u8-uctomb-aux.c: Likewise.
48624         * lib/unistr/u8-uctomb.c: Likewise.
48625         * lib/unitypes.h: Likewise.
48626         * lib/uniwidth.h: Likewise.
48627         * lib/uniwidth/cjk.h: Likewise.
48628         * lib/uniwidth/u16-strwidth.c: Likewise.
48629         * lib/uniwidth/u16-width.c: Likewise.
48630         * lib/uniwidth/u32-strwidth.c: Likewise.
48631         * lib/uniwidth/u32-width.c: Likewise.
48632         * lib/uniwidth/u8-strwidth.c: Likewise.
48633         * lib/uniwidth/u8-width.c: Likewise.
48634         * lib/uniwidth/width.c: Likewise.
48635
48636 2007-10-07  Bruno Haible  <bruno@clisp.org>
48637
48638         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48639         The file is still under LGPL (see modules/inttypes).
48640
48641 2007-10-06  Bruno Haible  <bruno@clisp.org>
48642
48643         * modules/trunc (Dependencies): Add 'extensions'.
48644         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48645         Reported by Ben Pfaff <blp@gnu.org>.
48646
48647 2007-10-06  Bruno Haible  <bruno@clisp.org>
48648
48649         * modules/freopen-tests: New file.
48650         * tests/test-freopen.c: New file.
48651
48652         * modules/fopen-tests: New file.
48653         * tests/test-fopen.c: New file.
48654
48655         * modules/fopen: New file.
48656         * lib/fopen.c: New file.
48657         * m4/fopen.m4: New file.
48658         * modules/freopen: New file.
48659         * lib/freopen.c: New file.
48660         * m4/freopen.m4: New file.
48661         * lib/stdio.in.h (fopen, freopen): New declarations.
48662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48663         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48664         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48665         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48666         * doc/functions/fopen.texi: Mention the 'fopen' module.
48667         * doc/functions/freopen.texi: Mention the 'freopen' module.
48668
48669 2007-10-06  Bruno Haible  <bruno@clisp.org>
48670
48671         * modules/open-tests: New file.
48672         * tests/test-open.c: New file.
48673
48674         * modules/open: New file.
48675         * lib/open.c: New file.
48676         * m4/open.m4: New file.
48677         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48678         lib/open.c does.
48679         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48680         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48681         macros.
48682         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48683         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48684         REPLACE_OPEN.
48685         * doc/functions/open.texi: Mention the 'open' module.
48686
48687 2007-10-04  Bruno Haible  <bruno@clisp.org>
48688
48689         * modules/ceill-tests: New file.
48690         * tests/test-ceill.c: New file.
48691
48692         * modules/ceill: New file.
48693         * lib/ceill.c: Replace entire file.
48694         * m4/ceill.m4: New file.
48695         * lib/math.in.h (ceill): Replace declaration.
48696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48697         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48698         * doc/functions/ceill.texi: Mention the 'ceill' module.
48699         * modules/mathl (Files): Remove lib/ceill.c.
48700         (Depends-on): Add ceill.
48701
48702 2007-10-04  Bruno Haible  <bruno@clisp.org>
48703
48704         * modules/ceilf-tests: New file.
48705         * tests/test-ceilf.c: New file.
48706
48707         * modules/ceilf: New file.
48708         * lib/ceil.c: New file.
48709         * lib/ceilf.c: New file.
48710         * m4/ceilf.m4: New file.
48711         * lib/math.in.h (ceilf): New declaration.
48712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48713         HAVE_DECL_CEILF.
48714         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48715         HAVE_DECL_CEILF.
48716         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48717
48718 2007-10-04  Bruno Haible  <bruno@clisp.org>
48719
48720         * modules/floorl-tests: New file.
48721         * tests/test-floorl.c: New file.
48722
48723         * modules/floorl: New file.
48724         * lib/floorl.c: Replace entire file.
48725         * m4/floorl.m4: New file.
48726         * lib/math.in.h (floorl): Replace declaration.
48727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48728         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48729         * doc/functions/floorl.texi: Mention the 'floorl' module.
48730         * modules/mathl (Files): Remove lib/floorl.c.
48731         (Depends-on): Add floorl.
48732
48733 2007-10-04  Bruno Haible  <bruno@clisp.org>
48734
48735         * modules/floorf-tests: New file.
48736         * tests/test-floorf.c: New file.
48737
48738         * modules/floorf: New file.
48739         * lib/floor.c: New file.
48740         * lib/floorf.c: New file.
48741         * m4/floorf.m4: New file.
48742         * lib/math.in.h (floorf): New declaration.
48743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48744         HAVE_DECL_FLOORF.
48745         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48746         HAVE_DECL_FLOORF.
48747         * doc/functions/floorf.texi: Mention the 'floorf' module.
48748
48749 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48750             Bruno Haible  <bruno@clisp.org>
48751
48752         Advertise for the Git server instead of the CVS server.
48753         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48754         repository instead of the CVS one.
48755         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48756         about all VCS systems generically.
48757         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48758
48759 2007-10-04  Bruno Haible  <bruno@clisp.org>
48760
48761         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48762         means.
48763         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48764
48765 2007-10-04  Bruno Haible  <bruno@clisp.org>
48766
48767         * modules/truncl-tests: New file.
48768         * tests/test-truncl.c: New file.
48769
48770         * modules/truncl: New file.
48771         * lib/truncl.c: New file.
48772         * m4/truncl.m4: New file.
48773         * lib/math.in.h (truncl): New declaration.
48774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48775         HAVE_DECL_TRUNCL.
48776         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48777         HAVE_DECL_TRUNCL.
48778         * doc/functions/truncl.texi: Mention the 'truncl' module.
48779
48780 2007-10-04  Bruno Haible  <bruno@clisp.org>
48781
48782         * modules/truncf-tests: New file.
48783         * tests/test-truncf.c: New file.
48784
48785         * modules/truncf: New file.
48786         * lib/trunc.c: Make paramerizable through USE_* macros.
48787         * lib/truncf.c: New file.
48788         * m4/truncf.m4: New file.
48789         * lib/math.in.h (truncf): New declaration.
48790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48791         HAVE_DECL_TRUNCF.
48792         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48793         HAVE_DECL_TRUNCF.
48794         * doc/functions/truncf.texi: Mention the 'truncf' module.
48795
48796 2007-10-03  Bruno Haible  <bruno@clisp.org>
48797
48798         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48799         augmentation also for tests modules.
48800         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48801         * modules/atexit-tests (Makefile.am): Likewise.
48802         * modules/binary-io-tests (Makefile.am): Likewise.
48803         * modules/c-strcase-tests (Makefile.am): Likewise.
48804         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48805         * modules/canonicalize-tests (Makefile.am): Likewise.
48806         * modules/closein-tests (Makefile.am): Likewise.
48807         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48808         * modules/freadahead-tests (Makefile.am): Likewise.
48809         * modules/fseek-tests (Makefile.am): Likewise.
48810         * modules/fseeko-tests (Makefile.am): Likewise.
48811         * modules/ftell-tests (Makefile.am): Likewise.
48812         * modules/ftello-tests (Makefile.am): Likewise.
48813         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48814         * modules/isnanl-tests (Makefile.am): Likewise.
48815         * modules/lseek-tests (Makefile.am): Likewise.
48816         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48817         * modules/mbscasestr-tests (Makefile.am): Likewise.
48818         * modules/mbschr-tests (Makefile.am): Likewise.
48819         * modules/mbscspn-tests (Makefile.am): Likewise.
48820         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48821         * modules/mbspbrk-tests (Makefile.am): Likewise.
48822         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48823         * modules/mbsrchr-tests (Makefile.am): Likewise.
48824         * modules/mbsspn-tests (Makefile.am): Likewise.
48825         * modules/mbsstr-tests (Makefile.am): Likewise.
48826         * modules/printf-posix-tests (Makefile.am): Likewise.
48827         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48828         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48829         * modules/tsearch-tests (Makefile.am): Likewise.
48830         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48831         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48832         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48833         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48834         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48835         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48836         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48837         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48838         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48839         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48840         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48841         * modules/xstrtol-tests (Makefile.am): Likewise.
48842         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48843         * modules/yesno-tests (Makefile.am): Likewise.
48844
48845 2007-10-03  Bruno Haible  <bruno@clisp.org>
48846
48847         * modules/trunc-tests: New file.
48848         * tests/test-trunc.c: New file.
48849
48850         * modules/trunc: New file.
48851         * lib/trunc.c: New file.
48852         * m4/trunc.m4: New file.
48853         * lib/math.in.h (trunc): New declaration.
48854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48855         HAVE_DECL_TRUNC.
48856         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48857         HAVE_DECL_TRUNC.
48858         * doc/functions/trunc.texi: Mention the 'trunc' module.
48859
48860 2007-10-03  Bruno Haible  <bruno@clisp.org>
48861
48862         * tests/test-fpending.c: New file, mostly copied
48863         from coreutils/lib/t-fpending.c.
48864         * modules/fpending-tests: New file.
48865
48866 2007-10-03  Bruno Haible  <bruno@clisp.org>
48867
48868         Port the stdio extensions to QNX (untested).
48869         * lib/fseterr.c (fseterr): Add support for QNX.
48870         * lib/fbufmode.c (fbufmode): Likewise.
48871         * lib/freadable.c (freadable): Likewise.
48872         * lib/fwritable.c (fwritable): Likewise.
48873         * lib/freading.c (freading): Likewise.
48874         * lib/fwriting.c (fwriting): Likewise.
48875         * lib/freadahead.c (freadahed): Likewise.
48876         * lib/fpurge.c (fpurge): Likewise.
48877         * lib/fseeko.c (rpl_fseeko): Likewise.
48878
48879 2007-10-03  Bruno Haible  <bruno@clisp.org>
48880             Jim Meyering  <jim@meyering.net>
48881             Eric Blake  <ebb9@byu.net>
48882
48883         * doc/relocatable.texi: Use @command instead of @program.
48884
48885 2007-10-02  Jim Meyering  <jim@meyering.net>
48886
48887         Perform one more "_.h" -> ".in.h" substitution.
48888         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48889         instead of unistd_.h here, too.
48890
48891 2007-10-01  Bruno Haible  <bruno@clisp.org>
48892
48893         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48894         Needed for the alloca-opt module.
48895
48896 2007-09-30  Bruno Haible  <bruno@clisp.org>
48897
48898         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48899         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48900         alloca_.h.
48901         * lib/argz.in.h: Renamed from lib/argz_.h.
48902         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48903         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48904         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48905         byteswap_.h.
48906         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48907         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48908         dirent_.h.
48909         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48910         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48911         fcntl_.h.
48912         * lib/float.in.h: Renamed from lib/float_.h.
48913         * modules/float (Files, Makefile.am): Use float.in.h instead of
48914         float_.h.
48915         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48916         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48917         fnmatch_.h.
48918         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48919         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48920         getopt_.h.
48921         * lib/glob.in.h: Renamed from lib/glob_.h.
48922         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48923         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48924         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48925         iconv_.h.
48926         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48927         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48928         inttypes_.h.
48929         * lib/locale.in.h: Renamed from lib/locale_.h.
48930         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48931         locale_.h.
48932         * lib/math.in.h: Renamed from lib/math_.h.
48933         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48934         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48935         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48936         of netinet_in_.h. Add dependency.
48937         * lib/poll.in.h: Renamed from lib/poll_.h.
48938         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48939         * lib/search.in.h: Renamed from lib/search_.h.
48940         * modules/search (Files, Makefile.am): Use search.in.h instead of
48941         search_.h.
48942         * lib/signal.in.h: Renamed from lib/signal_.h.
48943         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48944         _signal.h.
48945         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48946         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48947         stdbool_.h.
48948         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48949         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48950         stdint_.h.
48951         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48952         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48953         stdio_.h.
48954         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48955         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48956         stdlib_.h.
48957         * lib/string.in.h: Renamed from lib/string_.h.
48958         * modules/string (Files, Makefile.am): Use string.in.h instead of
48959         string_.h.
48960         * doc/gnulib-tool.texi (Initial import): Update.
48961         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48962         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48963         of sys_select_.h. Add dependency.
48964         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48965         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48966         of sys_socket_.h.
48967         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48968         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48969         sys_stat_.h.
48970         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48971         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48972         sys_time_.h.
48973         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48974         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48975         sysexits_.h.
48976         * lib/time.in.h: Renamed from lib/time_.h.
48977         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48978         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48979         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48980         unistd_.h.
48981         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48982         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48983         wchar_.h.
48984         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48985         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48986         wctype_.h.
48987         * build-aux/bootstrap (slurp): Update.
48988         * lib/.cppi-disable: Update.
48989
48990 2007-09-30  Bruno Haible  <bruno@clisp.org>
48991
48992         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48993         Needed on BeOS.
48994
48995 2007-09-30  Bruno Haible  <bruno@clisp.org>
48996
48997         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48998
48999 2007-09-29  Bruno Haible  <bruno@clisp.org>
49000
49001         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49002
49003 2007-09-29  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49006         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49007         * build-aux/install-reloc: Compile also areadlink.c.
49008         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49009
49010 2007-09-29  Bruno Haible  <bruno@clisp.org>
49011
49012         * gnulib-tool (func_emit_initmacro_done): Indentation.
49013
49014 2007-09-29  Bruno Haible  <bruno@clisp.org>
49015
49016         * README: Add CVS checkout update instructions.
49017         Info from Bob Proulx <bob@proulx.com>.
49018
49019 2007-09-28  Eric Blake  <ebb9@byu.net>
49020
49021         Provide move-if-change.
49022         * build-aux/move-if-change: New file, based on best practice
49023         rather than any canonical upstream location.
49024
49025 2007-09-28  Jim Meyering  <jim@meyering.net>
49026
49027         Fix canonicalize loop-detection corner case.
49028         Do not attempt to stat the symlink values stored via seen_triple.
49029         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49030         on linux-2.6.18, (but not 2.6.22).
49031         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49032         triple_compare.  The former compares dev,ino,filename, while the latter
49033         would actually stat dirname(filename) when dev and ino were equal.
49034         * lib/hash-triple.c: Install <string.h>.
49035         (STREQ): Define.
49036         (triple_compare_ino_str): New function.
49037         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49038
49039 2007-09-28  Eric Blake  <ebb9@byu.net>
49040
49041         Enforce that AC_REPLACE_FUNCS files exist.
49042         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49043         override check for typos.
49044
49045         Fix test-closein on Solaris 10.
49046         * tests/test-closein.c (main): Don't assume stdin can be inherited
49047         closed on all systems.
49048         * tests/test-closein.sh: Likewise.
49049         Reported by Piotr Tarnowski.
49050
49051 2007-09-28  Jim Meyering  <jim@meyering.net>
49052
49053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49054
49055 2007-09-27  Jim Meyering  <jim@meyering.net>
49056
49057         canonicalize: Avoid a false-positive cycle failure.
49058         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49059         Sort.  Remove cycle-check.
49060         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49061         not cycle-check.h.
49062         (seen_triple): New function.
49063         (canonicalize_filename_mode): Use it instead of cycle-check.
49064         * tests/test-canonicalize.c: Add a test for this bug.
49065         * tests/test-canonicalize.sh: Set up and run the test.
49066
49067         New module, file-set, from coreutils.
49068         * modules/file-set: Define it.
49069         * lib/file-set.c, lib/file-set.h: Implement.
49070
49071         New module, hash-triple, from coreutils.
49072         * modules/hash-triple: Define it.
49073         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49074
49075 2007-09-25  Eric Blake  <ebb9@byu.net>
49076
49077         Fix strerror on Interix.
49078         * lib/string_.h (strerror): Declare replacement.
49079         * doc/functions/strerror.texi (strerror): Document the Interix
49080         shortcoming.
49081         * modules/string (Makefile.am): Support new hooks.
49082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49083         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49084         gl_FUNC_STRERROR_SEPARATE.
49085         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49086         * lib/strerror.c (rpl_strerror): Provide replacement.
49087         * modules/strerror (Depends-on): Add string.
49088         (configure.ac): Detect use of module.
49089         * tests/test-strerror.c: New file.
49090         * modules/strerror-tests: New test module.
49091         * modules/argp (Depends-on): Add strerror.
49092         * modules/error (Depends-on): Likewise.
49093         Reported by Martin Koeppe.
49094
49095 2007-09-24  Bruno Haible  <bruno@clisp.org>
49096
49097         * README: Update git instructions.
49098
49099 2007-09-24  Eric Blake  <ebb9@byu.net>
49100
49101         Revert fpending breakage from 2007-09-08.
49102         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49103         __fpending.c.
49104
49105 2007-09-24  Jim Meyering  <jim@meyering.net>
49106
49107         filenamecat.c: Add a test.
49108         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49109         showing how the function works when DIR is the empty string.
49110
49111 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49112
49113         * tests/test-canonicalize.sh: Turn on executable bit.
49114
49115 2007-09-19  Eric Blake  <ebb9@byu.net>
49116
49117         * README: Update CVS instructions.
49118
49119 2007-09-18  Bruno Haible  <bruno@clisp.org>
49120
49121         * modules/areadlink: New file.
49122         * lib/areadlink.h (areadlink): New declaration.
49123         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49124
49125 2007-09-17  Jim Meyering  <jim@meyering.net>
49126
49127         * lib/savewd.c (ESTALE) [!defined]: Define.
49128         Reported to be required on Interix by Martin Koeppe.
49129
49130 2007-09-17  Bruno Haible  <bruno@clisp.org>
49131
49132         * gnulib-tool (func_version): Use $version.
49133
49134 2007-09-16  Bruno Haible  <bruno@clisp.org>
49135
49136         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49137         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49138         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49139         Reported by Greg Schafer <gschafer@zip.com.au>.
49140
49141 2007-09-15  Bruno Haible  <bruno@clisp.org>
49142
49143         * gnulib-tool (sed): Try a little harder to make bash understand the
49144         alias.
49145         Reported by Bruce Korb <bruce.korb@gmail.com>.
49146
49147 2007-09-13  Eric Blake  <ebb9@byu.net>
49148
49149         * ChangeLog: Remove conflict markers.
49150
49151 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49152
49153         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49154         Reported by Bruno Haible <bruno@clisp.org>.
49155
49156 2007-09-12  Bruno Haible  <bruno@clisp.org>
49157
49158         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49159         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49160         is not defined.
49161
49162 2007-09-12  Eric Blake  <ebb9@byu.net>
49163
49164         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49165         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49166         Autoconf definition.
49167         * modules/euidaccess (Depends-on): Add extensions, for
49168         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49169         * modules/fnmatch (Depends-on): Likewise.
49170         * modules/getaddrinfo (Depends-on): Likewise.
49171         * modules/getdelim (Depends-on): Likewise.
49172         * modules/getline (Depends-on): Likewise.
49173         * modules/getsubopt (Depends-on): Likewise.
49174         * modules/gettext (Depends-on): Likewise.
49175         * modules/group-member (Depends-on): Likewise.
49176         * modules/mbchar (Depends-on): Likewise.
49177         * modules/memmem (Depends-on): Likewise.
49178         * modules/mempcpy (Depends-on): Likewise.
49179         * modules/memrchr (Depends-on): Likewise.
49180         * modules/pagealign_alloc (Depends-on): Likewise.
49181         * modules/readutmp (Depends-on): Likewise.
49182         * modules/stpcpy (Depends-on): Likewise.
49183         * modules/stpncpy (Depends-on): Likewise.
49184         * modules/strchrnul (Depends-on): Likewise.
49185         * modules/strndup (Depends-on): Likewise.
49186         * modules/strsep (Depends-on): Likewise.
49187         * modules/strverscmp (Depends-on): Likewise.
49188         * modules/vasprintf (Depends-on): Likewise.
49189         * modules/wcwidth (Depends-on): Likewise.
49190         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49191         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49192         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49194         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49195         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49196         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49197         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49198         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49199         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49200         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49201         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49202         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49203         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49204         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49205         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49206         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49207         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49208         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49209         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49210         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49211         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49212         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49213         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49214         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49216         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49217         so that lock.m4 can be used in gettext without extensions module.
49218
49219 2007-09-11  Bruno Haible  <bruno@clisp.org>
49220
49221         * m4/isc-posix.m4: Remove file.
49222         Suggested by Eric Blake.
49223
49224 2007-09-11  Eric Blake  <ebb9@byu.net>
49225
49226         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49227
49228 2007-09-10  Bruno Haible  <bruno@clisp.org>
49229
49230         * posix-modules: Fix typo in error message.
49231         Reported by Matt <mkraai@beckman.com>.
49232
49233 2007-09-09  Bruno Haible  <bruno@clisp.org>
49234
49235         * doc/functions/getdelim.texi: Update list of platforms lacking the
49236         function.
49237         * doc/functions/getline.texi: Likewise.
49238
49239 2007-09-09  Jim Meyering  <jim@meyering.net>
49240
49241         * lib/hash.c (hash_initialize): Detect calloc failure.
49242         Reported by Bruno Haible.
49243
49244 2007-09-09  Bruno Haible  <bruno@clisp.org>
49245
49246         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49247         malloc or realloc fails.
49248
49249 2007-09-09  Bruno Haible  <bruno@clisp.org>
49250
49251         * modules/getcwd (Depends-on): Add malloc-posix.
49252         * modules/glob (Depends-on): Likewise.
49253         * modules/putenv (Depends-on): Likewise.
49254         * modules/strdup (Depends-on): Likewise.
49255         * modules/getdelim (Depends-on): Add realloc-posix.
49256         * modules/read-file (Depends-on): Likewise.
49257
49258 2007-09-09  Bruno Haible  <bruno@clisp.org>
49259
49260         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49261         (gl_FUNC_MALLOC_POSIX): Require it.
49262         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49263         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49264         * modules/realloc (Files): Add m4/malloc.m4.
49265         * modules/calloc (Files): Likewise.
49266
49267 2007-09-09  Bruno Haible  <bruno@clisp.org>
49268
49269         * modules/malloc-posix: New file.
49270         * modules/malloc (Depends-on): Add malloc-posix.
49271         * lib/malloc.c: Include errno.h.
49272         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49273         and a POSIX-compatible malloc into a single function. Set ENOMEM
49274         when returning NULL.
49275         * m4/malloc.m4: New file.
49276         * doc/functions/malloc.texi: Mention the malloc-posix module.
49277         * lib/stdlib_.h (malloc): New declaration.
49278         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49279         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49280         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49281         and HAVE_MALLOC_POSIX.
49282
49283 2007-09-09  Bruno Haible  <bruno@clisp.org>
49284
49285         * modules/realloc-posix: New file.
49286         * modules/realloc (Depends-on): Add realloc-posix.
49287         * lib/realloc.c: Include errno.h.
49288         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49289         and a POSIX-compatible realloc into a single function. Set ENOMEM
49290         when returning NULL.
49291         * m4/realloc.m4: New file.
49292         * doc/functions/realloc.texi: Mention the realloc-posix module.
49293         * lib/stdlib_.h (realloc): New declaration.
49294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49295         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49296         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49297         and HAVE_REALLOC_POSIX.
49298
49299 2007-09-09  Bruno Haible  <bruno@clisp.org>
49300
49301         * modules/calloc-posix: New file.
49302         * modules/calloc (Depends-on): Add calloc-posix.
49303         * lib/calloc.c: Include errno.h.
49304         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49305         and a POSIX-compatible calloc into a single function. Set ENOMEM
49306         when returning NULL.
49307         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49308         * doc/functions/calloc.texi: Mention the calloc-posix module.
49309         * lib/stdlib_.h (calloc): New declaration.
49310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49311         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49312         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49313         and HAVE_CALLOC_POSIX.
49314
49315 2007-09-09  Bruno Haible  <bruno@clisp.org>
49316
49317         Allow for modules to show an arbitrary notice.
49318         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49319         * gnulib-tool: New option --extract-notice.
49320         (func_usage): Document it.
49321         (sed_extract_prog): Update.
49322         (func_get_notice): New function.
49323         (func_modules_notice): New function.
49324         (func_import, func_create_testdir): Invoke it.
49325         Suggested by Jim Meyering.
49326
49327 2007-09-09  Bruno Haible  <bruno@clisp.org>
49328
49329         * gnulib-tool: New options --verbose, --quiet.
49330         (func_usage): Document them.
49331         (verbose): New variable.
49332         (func_execute_command): New function.
49333         (func_import): Don't show the module list and the file list if
49334         $verbose < 0.
49335         (func_create_testdir): Likewise. Use func_execute_command.
49336         (func_create_megatestdir): Use func_execute_command.
49337
49338 2007-09-08  Bruno Haible  <bruno@clisp.org>
49339
49340         * gnulib-tool (func_import): Prefer rsync over wget when available,
49341         for fetching the PO files.
49342
49343 2007-09-08  Bruno Haible  <bruno@clisp.org>
49344
49345         * posix-modules: New file. Portions copied from gnulib-tool.
49346         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49347
49348 2007-09-08  Jim Meyering  <jim@meyering.net>
49349
49350         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49351         * lib/fpending.h: Rename from __fpending.h.
49352         * lib/fpending.c: Rename from __fpending.c.
49353         Include "fpending.h", not "__fpending.h".
49354         * lib/__fpending.h, lib/__fpending.c: Remove files.
49355         * modules/fpending (Files): Reflect new file names.
49356         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49357
49358 2007-09-08  Bruno Haible  <bruno@clisp.org>
49359
49360         * m4/inttypes-h.m4: Remove stub file.
49361
49362 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49363
49364         * doc/headers/stdint.texi: Discuss #include_next issue.
49365
49366 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49367
49368         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49369
49370 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49371
49372         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49373         in variable name.
49374
49375 2007-09-03  Jim Meyering  <jim@meyering.net>
49376
49377         New module: git-version-gen.
49378         * modules/git-version-gen: New file.
49379
49380         Import changes from coreutils for bootstrap script.
49381
49382         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49383
49384         bootstrap: uses rsync to download the .po files
49385         * build-aux/bootstrap (po_download_command_format): New global.
49386         (download_po_files): Use rsync.
49387         (update_po_files): Don't remove .po files after download,
49388         so future rsync runs can take advantage of the copies.
49389
49390         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49391
49392         Solve the unnecessary-.po-file-regeneration problem once and for all.
49393         * build-aux/bootstrap (download_po_files): New function, renamed from
49394         get_translations.  Now, downloads, but doesn't update LINGUAS.
49395         (update_po_files): New function.
49396
49397         bootstrap: Ignore more.
49398         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49399         uniwidth to e.g., lib/.gitignore.
49400         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49401
49402         * build-aux/bootstrap: New setting: vc_ignore.
49403         (insert_sorted_if_absent): Create $file if absent.
49404         Adapt to new, possibly empty, list: $vc_ignore.
49405
49406         bootstrap: generate more ignorable names
49407         * build-aux/bootstrap (slurp): When generating ignorable names,
49408         also map .sin to .sed, .gperf to .c, and .y to .c.
49409
49410 2007-09-03  Jim Meyering  <jim@meyering.net>
49411
49412         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49413         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49414
49415 2007-09-02  Bruno Haible  <bruno@clisp.org>
49416
49417         Fix mis-recognition of 'mcs' on QNX 6.
49418         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49419         output contains the string "Mono".
49420         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49421         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49422
49423 2007-09-01  Bruno Haible  <bruno@clisp.org>
49424
49425         Fix collision between uniwidth/* and linebreak modules.
49426         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49427         u32_width): Remove declarations.
49428         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49429         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49430         streq3, streq2, streq1, streq0): Remove functions.
49431         (STREQ): Remove macro.
49432         (is_cjk_encoding): Remove function.
49433         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49434         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49435         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49436         * NEWS: Document the change.
49437
49438 2007-09-01  Bruno Haible  <bruno@clisp.org>
49439
49440         * lib/streq.h: Add double-inclusion guard.
49441
49442 2007-09-01  Karl Berry  <karl@gnu.org>
49443
49444         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49445
49446 2007-08-28  Jim Meyering  <jim@meyering.net>
49447
49448         Rename mreadlink_with_size to areadlink_with_size.
49449         * NEWS: Document the change.
49450         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49451         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49452         * lib/mreadlink.h: Rename this to...
49453         * lib/areadlink.h: ...this.
49454         * modules/mreadlink-with-size: Rename this to...
49455         * modules/areadlink-with-size: ...this.
49456         * lib/canonicalize.c: Reflect the renaming.
49457         * modules/canonicalize: Likewise.
49458
49459 2007-08-26  Bruno Haible  <bruno@clisp.org>
49460
49461         * gnulib-tool (func_import): When deciding which files to remove,
49462         consider also dangling symbolic links.
49463         Reported by Eric Blake.
49464
49465 2007-08-26  Bruno Haible  <bruno@clisp.org>
49466
49467         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49468
49469 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49470
49471         * lib/readline.c: Don't include getline.h, the prototype is now
49472         found in stdio.h.
49473
49474 2007-08-23  Jim Meyering  <jim@meyering.net>
49475
49476         Getdelim touchup.
49477         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49478         around the funlockfile call, since funlockfile never sets errno.
49479         Don't set errno upon failed realloc.
49480
49481 2007-08-22  Eric Blake  <ebb9@byu.net>
49482
49483         Getline touchups.
49484         * lib/getdelim.c (getdelim): Revert regression that required *n to
49485         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49487         getdelim, rather than whether implementation is missing.
49488         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49489         * lib/stdio_.h (getline): Also declare if replacement is
49490         required.
49491         * doc/functions/getdelim.texi: New file.
49492         * doc/functions/getline.texi: Likewise.
49493         * doc/gnulib.texi (Function Substitutes): Add new files.
49494         Reported by Bruno Haible.
49495
49496 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49497
49498         * users.txt: Add Guile.
49499
49500 2007-08-22  Eric Blake  <ebb9@byu.net>
49501
49502         * tests/test-getdelim.c (main): Use remove, not unlink.
49503         * tests/test-getline.c (main): Likewise.
49504
49505         Move getline and getdelim into stdio.h, per POSIX 200x.
49506         * modules/getline (Files): Remove getline.h.
49507         (Depends-on): Add stdio.
49508         (configure.ac): Add module indicator.
49509         * modules/getdelim (Files): Remove getdelim.h.
49510         (Depends-on): Add stdio.
49511         (configure.ac): Add module indicator.
49512         * modules/stdio (Makefile.am): Work with new indicators.
49513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49514         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49515         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49516         * lib/getdelim.h: Delete.
49517         * lib/getline.h: Delete.
49518         * lib/stdio_.h (getdelim, getline): Declare.
49519         * modules/getdelim-tests: New module.
49520         * modules/getline-tests: Likewise.
49521         * tests/test-getdelim.c: New file.
49522         * tests/test-getline.c: Likewise.
49523         * NEWS: Document the change.
49524         * lib/getline.c: Update choice of header.
49525         * lib/csharpcomp.c: Likewise.
49526         * lib/getpass.c: Likewise.
49527         * lib/javacomp.c: Likewise.
49528         * lib/javaversion.c: Likewise.
49529         * lib/yesno.c: Likewise.
49530         * lib/getdelim.c: Likewise.
49531         (getdelim): Set errno on failure, and avoid memory leak.
49532
49533 2007-08-19  Bruno Haible  <bruno@clisp.org>
49534
49535         * modules/closein (Depends-on): Add freadahead.
49536         * lib/closein.c: Include freadahead.h.
49537         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49538         is zero.
49539
49540 2007-08-19  Bruno Haible  <bruno@clisp.org>
49541
49542         * modules/freadahead-tests: New file.
49543         * tests/test-freadahead.sh: New file.
49544         * tests/test-freadahead.c: New file.
49545
49546         * modules/freadahead: New file.
49547         * lib/freadahead.h: New file.
49548         * lib/freadahead.c: New file.
49549         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49550         fbufmode, fpurge, freadable, fwritable.
49551
49552 2007-08-19  Eric Blake  <ebb9@byu.net>
49553
49554         Test yesno in combination with closein.
49555         * lib/yesno.c (yesno): Document use of stdin.
49556         * modules/yesno-tests (Files): New module.
49557         * tests/test-yesno.c (main): New file.
49558         * tests/test-yesno.sh: Likewise.
49559
49560 2007-08-19  Bruno Haible  <bruno@clisp.org>
49561
49562         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49563         * lib/fseeko.c (rpl_fseeko): Likewise.
49564         * lib/fseterr.c (fseterr): Likewise.
49565
49566 2007-08-19  Bruno Haible  <bruno@clisp.org>
49567
49568         * tests/test-lseek.c (main): Disable a test for BeOS.
49569         * doc/functions/lseek.texi: Document the BeOS bug.
49570
49571 2007-08-19  Bruno Haible  <bruno@clisp.org>
49572             Eric Blake  <ebb9@byu.net>
49573
49574         * lib/lseek.c: Include <sys/stat.h>.
49575         (rpl_lseek): Add workaround code also for Unix platforms.
49576         Needed for BeOS.
49577         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49578         * doc/functions/lseek.texi: Document BeOS definiency.
49579
49580 2007-08-18  Bruno Haible  <bruno@clisp.org>
49581
49582         * modules/fstrcmp-tests: New file.
49583         * tests/test-fstrcmp.c: New file.
49584
49585 2007-08-18  Bruno Haible  <bruno@clisp.org>
49586
49587         * modules/fstrcmp: New file, from GNU gettext with modifications.
49588         * lib/fstrcmp.h: New file, from GNU gettext.
49589         * lib/fstrcmp.c: New file, from GNU gettext.
49590         * MODULES.html.sh (String handling): Add fstrcmp.
49591
49592 2007-08-18  Bruno Haible  <bruno@clisp.org>
49593
49594         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49595         'bool'.
49596         (diag, compareseq): Remove const from the ctxt argument.
49597         (USE_HEURISTIC): Undefine at the end.
49598
49599 2007-08-18  Jim Meyering  <jim@meyering.net>
49600
49601         New file: lib/idcache.h
49602         * NEWS: Mention the addition.
49603         * modules/idcache (Files): Add lib/idcache.h
49604         * lib/idcache.c: Include "idcache.h".
49605         Don't include <sys/types.h>.
49606         Add a FIXME comment.
49607         Move file-scoped "static" declarations to the top.
49608         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49609
49610 2007-08-17  Bruno Haible  <bruno@clisp.org>
49611         and Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         * MODULES.html.sh: Add diffseq.
49614         * modules/diffseq: New file.
49615         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49616         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49617
49618 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49619
49620         Import changes from coreutils for bootstrap script.
49621
49622         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49623
49624         * build-aux/bootstrap (slurp): Work even in environments where
49625         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49626         current code does not slurp files whose names start with ".", and
49627         this looks like it might be a troublesome area.
49628
49629         2007-07-11  Jim Meyering  <jim@meyering.net>
49630
49631         If there's a GPL vN copyright comment, require that N == 3.
49632
49633         2007-07-08  Jim Meyering  <jim@meyering.net>
49634
49635         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49636         * build-aux/bootstrap (mam_template): Move definition out of loop.
49637
49638         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49639
49640         * build-aux/bootstrap (symlink_to_dir): Rename function from
49641         symlink_to_gnulib.  Add a directory parameter.  Update all
49642         callers.
49643         (cp_mark_as_generated): Also check for -- and link to -- files in
49644         gl/.
49645
49646         2007-07-08  Jim Meyering  <jim@meyering.net>
49647
49648         Adapt to deeper hierarchy in gnulib.
49649         * build-aux/bootstrap (symlink_to_dir): If the destination
49650         directory doesn't exist, create it. This is required at least for
49651         "lib/uniwidth/cjk.h".
49652
49653         2007-05-15  Jim Meyering  <jim@meyering.net>
49654
49655         * build-aux/bootstrap: Now that generated Makefile.am files
49656         are no longer under version control, they must be created at
49657         bootstrap time.
49658
49659 2007-08-14  Ben Pfaff  <blp@gnu.org>
49660
49661         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49662
49663 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49664
49665         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49666         given the changes below.
49667         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49668         even on hosts that have padding bits beyond the supported 64.
49669
49670 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49671
49672         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49673         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49674         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49675         depends on it.
49676         (xstrtol_error): Remove.
49677         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49678         but with a different signature.
49679         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49680         * lib/xstrtol-error.c: Include exitfail.h.
49681         (xstrtol_fatal): New function, with a different signature from the
49682         old xstrtol_error, so that the caller need not worry about passing
49683         in an exit status, or about storage management of the option argument.
49684         (xstrtol_error): Now a static function.  Redo signature to
49685         implement xstrtol_fatal.  Output the correct number of hyphens in
49686         front of the option so that the caller need not worry about
49687         storage management.
49688         (N_): New macro.
49689         (_): Remove; not used now.
49690         * modules/xstrtol: Depend on getopt.
49691         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49692         of old STRTOL_FATAL_ERROR macro.
49693         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49694         of test program.
49695         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49696         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49697
49698 2007-08-08  Eric Blake  <ebb9@byu.net>
49699
49700         * lib/xstrtol-error.c: Add missing include.
49701
49702         Move xstrtol messages into gnulib domain, when --pobase is used.
49703         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49704         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49705         * modules/xstrtol (Files): Distribute new file.
49706         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49707         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49708         * tests/test-xstrtol.c: ...into new file.
49709         * tests/test-xstrtoul.c: Also test xstrtoul.
49710         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49711         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49712         * tests/test-xstrtol.sh: Drive the tests.
49713         * tests/test-xstrtoimax.sh: Likewise.
49714         * tests/test-xstrtoumax.sh: Likewise.
49715         * modules/xstrtol-tests: New module.
49716         * modules/xstrtoimax-tests: Likewise.
49717         * modules/xstrtoumax-tests: Likewise.
49718
49719 2007-08-08  Jim Meyering  <jim@meyering.net>
49720
49721         New function: mfile_name_concat.
49722         * lib/filenamecat.c (mfile_name_concat): New function, just like
49723         file_name_concat, but return NULL upon failure rather than exiting
49724         with a diagnostic.
49725         * lib/filenamecat.h: Declare it.
49726
49727 2007-08-07  Bruno Haible  <bruno@clisp.org>
49728
49729         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49730         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49731         warning from gcc.
49732         Reported by Eric Blake.
49733
49734 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49735
49736         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49737         * modules/crypto/arcfour (License): Likewise.
49738         * modules/crypto/des-tests (License): Likewise.
49739         * modules/crypto/gc-arctwo-tests (License): Likewise.
49740         * modules/crypto/gc-des-tests (License): Likewise.
49741         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49742         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49743         * modules/crypto/gc-md2-tests (License): Likewise.
49744         * modules/crypto/gc-md4-tests (License): Likewise.
49745         * modules/crypto/gc-md5-tests (License): Likewise.
49746         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49747         * modules/crypto/gc-rijndael-tests (License): Likewise.
49748         * modules/crypto/gc-sha1-tests (License): Likewise.
49749         * modules/crypto/gc-tests (License): Likewise.
49750         * modules/crypto/hmac-md5 (License): Likewise.
49751         * modules/crypto/hmac-sha1 (License): Likewise.
49752         * modules/crypto/md2-tests (License): Likewise.
49753         * modules/crypto/md4-tests (License): Likewise.
49754         * modules/crypto/md5 (License): Likewise.
49755         * modules/crypto/rijndael (License): Likewise.
49756         * modules/crypto/sha1 (License): Likewise.
49757         * modules/memxor (License): Likewise.
49758
49759 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49760         and Bruno Haible  <bruno@clisp.org>
49761
49762         * NEWS: Describe interface changes to human, xstrtol.
49763         * lib/human.h: Include <xstrtol.h>.
49764         (human_options): Return enum strtol_error, not int.  Remove
49765         bool arg; take int * instead.
49766         * lib/human.c: Don't include "gettext.h".
49767         (_): Remove; no longer used.
49768         Don't include <xstrtol.h>, since human.h does it.
49769         (human_options): Adjust to abovementioned interface changes.
49770         Do not report error to stderr; that's now the caller's
49771         responsibility.
49772         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49773         interface change.
49774         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49775         Str, Argument_type_string.  All uses changed.  Put " argument"
49776         in diagnostics to make them clearer.  Change wording of suffix
49777         message for clarity.
49778         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49779         Argument_type_string.
49780         (STRTOL_FATAL_WARN): Remove; no longer used.
49781         * modules/human (Depends-on): Remove gettext-h.
49782
49783 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49784
49785         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49786
49787 2007-07-31  Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49790         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49791         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49792
49793 2007-07-31  Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49796         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49797
49798 2007-07-30  Bruno Haible  <bruno@clisp.org>
49799
49800         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49801         * modules/c-ctype (License): Likewise.
49802         * modules/c-strcase (License): Likewise.
49803         * modules/check-version (License): Likewise.
49804         * modules/iconv (License): Likewise.
49805         * modules/iconv_open (License): Likewise.
49806         * modules/read-file (License): Likewise.
49807         * modules/striconv (License): Likewise.
49808         * modules/strverscmp (License): Likewise.
49809         * modules/vasprintf (License): Likewise.
49810         * modules/crypto/des (License): Likewise.
49811         * modules/crypto/gc (License): Likewise.
49812         * modules/crypto/gc-arcfour (License): Likewise.
49813         * modules/crypto/gc-arctwo (License): Likewise.
49814         * modules/crypto/gc-des (License): Likewise.
49815         * modules/crypto/gc-hmac-md5 (License): Likewise.
49816         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49817         * modules/crypto/gc-md2 (License): Likewise.
49818         * modules/crypto/gc-md4 (License): Likewise.
49819         * modules/crypto/gc-md5 (License): Likewise.
49820         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49821         * modules/crypto/gc-random (License): Likewise.
49822         * modules/crypto/gc-rijndael (License): Likewise.
49823         * modules/crypto/gc-sha1 (License): Likewise.
49824         * modules/crypto/md2 (License): Likewise.
49825         * modules/crypto/md4 (License): Likewise.
49826
49827 2007-07-30  Jim Meyering  <jim@meyering.net>
49828
49829         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49830         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49831         it has valid stat data.  This bug would cause du not to count the
49832         sizes of inaccessible directories.
49833         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49834         in <http://bugzilla.redhat.com/250077>.
49835
49836 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49837             Bruno Haible  <bruno@clisp.org>
49838
49839         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49840         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49841         #include_next, gives a diagnostic about it, but reports no error in
49842         the exit code.
49843         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49844
49845 2007-07-24  Ben Pfaff  <blp@gnu.org>
49846
49847         Improve name: "count-one-bits" is better than "popcount".
49848         * MODULES.html.sh: Update name.
49849         * lib/popcount.h: Renamed lib/count-one-bits.h.
49850         (popcount): Renamed count_one_bits.
49851         (popcountl): Renamed count_one_bits_l.
49852         (popcountll): Renamed count_one_bits_ll.
49853         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49854         * modules/popcount: Renamed module/count-one-bits.
49855         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49856         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49857
49858 2007-07-23  Ben Pfaff  <blp@gnu.org>
49859
49860         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49861         better code generation, and add U to large constants to avoid
49862         warnings, in non-GCC case.
49863         Suggested by Bruno Haible.
49864
49865 2007-07-23  Ben Pfaff  <blp@gnu.org>
49866
49867         * lib/popcount.h: Use verify_true instead of if...abort.
49868         * modules/popcount: Depend on verify module.
49869         Suggested by Jim Meyering.
49870
49871 2007-07-23  Bruno Haible  <bruno@clisp.org>
49872
49873         * gnulib-tool (func_import): Create a .cvsignore file also when the
49874         directory is not yet in CVS but the toplevel directory is. When
49875         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49876         Reported by Karl Berry.
49877
49878 2007-07-22  Ben Pfaff  <blp@gnu.org>
49879
49880         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49881         case.
49882         Suggested by Eric Blake.
49883
49884 2007-07-22  Ben Pfaff  <blp@gnu.org>
49885
49886         New module: popcount.
49887         * MODULES.html.sh: Add popcount.
49888         * modules/popcount: New file.
49889         * modules/popcount-tests: New file.
49890         * tests/test-popcount.c: New file.
49891         * lib/popcount.h: New file.
49892         * m4/popcount.m4: New file.
49893
49894 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49895
49896         * build-aux/announce-gen: Update to GPLv3.
49897
49898         * build-aux/config.guess: Update from config.
49899
49900 2007-07-21  Bruno Haible  <bruno@clisp.org>
49901
49902         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49903         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49904
49905 2007-07-20  Jim Meyering  <jim@meyering.net>
49906
49907         * check-module: Diagnose a self-dependency.
49908
49909 2007-07-19  Bruno Haible  <bruno@clisp.org>
49910
49911         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49912         empty.
49913         Reported by Eric Blake.
49914
49915 2007-07-18  Bruno Haible  <bruno@clisp.org>
49916
49917         * gnulib-tool: New options --po-base, --po-domain.
49918         (func_usage): Document them.
49919         (pobase, po_domain): New variables.
49920         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49921         DEFAULT_TEXT_DOMAIN.
49922         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49923         (func_import): Consider pobase and po_domain. Create a po/ directory.
49924         (func_create_testdir): Set pobase and po_domain to empty.
49925         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49926         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49927
49928 2007-07-18  Bruno Haible  <bruno@clisp.org>
49929
49930         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49931         EXTRA_DIST augmentation for files in build-aux/.
49932
49933 2007-07-16  Bruno Haible  <bruno@clisp.org>
49934
49935         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49936         * modules/getdelim (License): Likewise.
49937
49938 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49939
49940         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49941         * modules/d-type (License): Likewise.
49942         * modules/extensions (License): Likewise.
49943         * modules/fnmatch (License): Likewise.
49944         * modules/fseeko (License): Likewise.
49945         * modules/getaddrinfo (License): Likewise.
49946         * modules/getline (License): Likewise.
49947         * modules/getlogin_r (License): Likewise.
49948         * modules/getpass (License): Likewise.
49949         * modules/gettimeofday (License): Likewise.
49950         * modules/glob (License): Likewise.
49951         * modules/inet_ntop (License): Likewise.
49952         * modules/malloc (License): Likewise.
49953         * modules/malloca (License): Likewise.
49954         * modules/memmem (License): Likewise.
49955         * modules/mempcpy (License): Likewise.
49956         * modules/memset (License): Likewise.
49957         * modules/minmax (License): Likewise.
49958         * modules/mktime (License): Likewise.
49959         * modules/netinet_in (License): Likewise.
49960         * modules/pathmax (License): Likewise.
49961         * modules/poll (License): Likewise.
49962         * modules/regex (License): Likewise.
49963         * modules/snprintf (License): Likewise.
49964         * modules/stdbool (License): Likewise.
49965         * modules/stdint (License): Likewise.
49966         * modules/stdio (License): Likewise.
49967         * modules/strcase (License): Likewise.
49968         * modules/strcasestr (License): Likewise.
49969         * modules/strdup (License): Likewise.
49970         * modules/string (License): Likewise.
49971         * modules/strndup (License): Likewise.
49972         * modules/strnlen (License): Likewise.
49973         * modules/strpbrk (License): Likewise.
49974         * modules/strptime (License): Likewise.
49975         * modules/strsep (License): Likewise.
49976         * modules/sys_select (License): Likewise.
49977         * modules/sys_socket (License): Likewise.
49978         * modules/sys_stat (License): Likewise.
49979         * modules/sys_time (License): Likewise.
49980         * modules/time (License): Likewise.
49981         * modules/time_r (License): Likewise.
49982         * modules/timegm (License): Likewise.
49983         * modules/unistd (License): Likewise.
49984         * modules/vsnprintf (License): Likewise.
49985         * modules/wctype (License): Likewise.
49986
49987 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49988
49989         * modules/argz (License): LGPLv2+.
49990
49991 2007-07-15  Karl Berry  <karl@gnu.org>
49992
49993         * doc/gnulib.texi: revise node structure per new fdl.texi.
49994
49995 2007-07-14  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49998         the output file.
49999         * lib/uniname/uninames.h: Regenerated.
50000
50001 2007-07-14  Karl Berry  <karl@gnu.org>
50002
50003         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50004         omitting sectioning and index commands.
50005
50006 2007-07-13  Bruno Haible  <bruno@clisp.org>
50007
50008         New gnulib-tool option --more-symlinks.
50009         * gnulib-tool (func_usage): Document --more-symlinks.
50010         (do_copyrights): New variable.
50011         Recognize option --more-symlinks.
50012         (func_import): Don't add a copyright notice transform to
50013         sed_transform_lib_file if do_copyrights is empty.
50014
50015 2007-07-13  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/vasnprintf.c (decimal_point_char): Define also if
50018         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50019         && !NEED_PRINTF_DIRECTIVE_A.
50020         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50021         Gary V. Vaughan <gary@gnu.org>.
50022
50023 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50024
50025         * lib/inttypes_.h: Undo previous change, since it was fixed
50026         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50027
50028 2007-07-13  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50031         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50032
50033 2007-07-13  Jim Meyering  <jim@meyering.net>
50034
50035         df: Don't fail for Tru64's "file-on-file mount".
50036         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50037         so we fall through and use statfs instead.  Details here:
50038         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50039         Reported by Albert Chin.
50040
50041 2007-07-13  Bruno Haible  <bruno@clisp.org>
50042
50043         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50044         * modules/configmake (License): Likewise.
50045         * modules/gettext (License): Likewise.
50046         * modules/gettext-h (License): Likewise.
50047         * modules/include_next (License): Likewise.
50048         * modules/link-warning (License): Likewise.
50049         * modules/localcharset (License): Likewise.
50050         * modules/localename (License): Likewise.
50051         * modules/lock (License): Likewise.
50052         * modules/relocatable-lib-lgpl (License): Likewise.
50053         * modules/size_max (License): Likewise.
50054         * modules/vasnprintf (License): Likewise.
50055         * modules/wchar (License): Likewise.
50056         * modules/xsize (License): Likewise.
50057
50058 2007-07-13  Bruno Haible  <bruno@clisp.org>
50059
50060         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50061         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50062
50063 2007-07-12  Bruno Haible  <bruno@clisp.org>
50064
50065         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50066         in the modules files.
50067
50068 2007-07-11  Karl Berry  <karl@gnu.org>
50069
50070         * MODULES.html.sh (func_module): use
50071          sed -e '\|^'"${includefile}"'$|d'
50072          instead of /.../d, to avoid errors on $includefile's containing /.
50073
50074 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50075
50076         * gnulib-tool (func_import): Avoid duplication of --avoid
50077         statements
50078         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50079         names to `_' in variable names.
50080
50081 2007-07-10  Eric Blake  <ebb9@byu.net>
50082
50083         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50084         * NEWS: Document this change.
50085
50086 2007-07-08  Bruno Haible  <bruno@clisp.org>
50087
50088         Update to Unicode 5.0.
50089         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50090         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50091         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50092         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50093         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50094         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50095         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50096         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50097         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50098         U+10A3F, U+1D242..U+1D244.
50099         (nonspacing_table_ind): Update.
50100         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50101         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50102
50103 2007-07-08  Bruno Haible  <bruno@clisp.org>
50104
50105         Update to Unicode 5.0.
50106         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50107         code transform. Extend the name index field of unicode_name_to_code and
50108         unicode_code_to_name from 16 to 24 bits.
50109         * lib/uniname/uniname.c (unicode_character_name,
50110         unicode_name_character): Add the range 0x12xxx to the code transform.
50111         * lib/uniname/uninames.h: Regenerated.
50112         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50113
50114 2007-07-07  Bruno Haible  <bruno@clisp.org>
50115
50116         * modules/wcwidth-tests: New file.
50117         * tests/test-wcwidth.c: New file.
50118
50119         Work around MacOS X wcwidth() bug.
50120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50121         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50122         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50123         original wcwidth in non-UTF-8 locales.
50124         * modules/wcwidth (Depends-on): Add localcharset, streq,
50125         uniwidth/width.
50126         * doc/functions/wcwidth.texi: Update.
50127
50128 2007-07-07  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50131         (wcwidth): New declaration.
50132         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50133         macros.
50134         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50135         here. Prepare for creating <wchar.h> unconditionally.
50136         * modules/wchar (Depends-on): Add link-warning.
50137         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50138         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50139         * lib/wcwidth.h: Remove file.
50140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50141         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50142         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50143         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50144         (Include): Replace wcwidth.h with <wchar.h>.
50145         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50146         * lib/mbchar.h: Don't include wcwidth.h.
50147         * lib/mbswidth.c: Likewise.
50148         * NEWS: Mention the change.
50149
50150 2007-07-07  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50153         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50154         definition with an external declaration.
50155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50156         defined as a function. Remove AC_C_INLINE requirement.
50157         * modules/wcwidth (Files): Add lib/wcwidth.c.
50158         (Makefile.am): Remove redundant statement.
50159
50160 2007-07-07  Bruno Haible  <bruno@clisp.org>
50161
50162         * MODULES.html.sh (Unicode string functions): Add the new modules.
50163
50164         * tests/uniwidth/test-u32-strwidth.c: New file.
50165         * modules/uniwidth/u32-strwidth-tests: New file.
50166
50167         * lib/uniwidth/u32-strwidth.c: New file.
50168         * modules/uniwidth/u32-strwidth: New file.
50169
50170         * tests/uniwidth/test-u16-strwidth.c: New file.
50171         * modules/uniwidth/u16-strwidth-tests: New file.
50172
50173         * lib/uniwidth/u16-strwidth.c: New file.
50174         * modules/uniwidth/u16-strwidth: New file.
50175
50176         * tests/uniwidth/test-u8-strwidth.c: New file.
50177         * modules/uniwidth/u8-strwidth-tests: New file.
50178
50179         * lib/uniwidth/u8-strwidth.c: New file.
50180         * modules/uniwidth/u8-strwidth: New file.
50181
50182         * tests/uniwidth/test-u32-width.c: New file.
50183         * modules/uniwidth/u32-width-tests: New file.
50184
50185         * lib/uniwidth/u32-width.c: New file.
50186         * modules/uniwidth/u32-width: New file.
50187
50188         * tests/uniwidth/test-u16-width.c: New file.
50189         * modules/uniwidth/u16-width-tests: New file.
50190
50191         * lib/uniwidth/u16-width.c: New file.
50192         * modules/uniwidth/u16-width: New file.
50193
50194         * tests/uniwidth/test-u8-width.c: New file.
50195         * modules/uniwidth/u8-width-tests: New file.
50196
50197         * lib/uniwidth/u8-width.c: New file.
50198         * modules/uniwidth/u8-width: New file.
50199
50200         * tests/uniwidth/test-uc_width.c: New file.
50201         * modules/uniwidth/width-tests: New file.
50202
50203         * lib/uniwidth/width.c: New file, from GNU libiconv.
50204         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50205         * modules/uniwidth/width: New file.
50206
50207         * lib/uniwidth.h: New file, from GNU libiconv.
50208         * modules/uniwidth/base: New file.
50209
50210 2007-07-07  Bruno Haible  <bruno@clisp.org>
50211
50212         * lib/uniname.h: New file, from GNU gettext.
50213         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50214         * lib/uniname/uninames.h: New file, from GNU gettext.
50215         * lib/uniname/uniname.c: New file, from GNU gettext.
50216         * tests/uniname/test-uninames.sh: New file.
50217         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50218         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50219         * modules/uniname/base: New file.
50220         * modules/uniname/uniname: New file.
50221         * modules/uniname/uniname-tests: New file.
50222         * MODULES.html.sh (Unicode string functions): Add the new modules.
50223
50224 2007-07-06  Bruno Haible  <bruno@clisp.org>
50225
50226         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50227
50228 2007-07-06  Bruno Haible  <bruno@clisp.org>
50229
50230         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50231         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50232         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50233         include <sys/time.h>.
50234         Reported by Eric Blake.
50235
50236 2007-07-06  Eric Blake  <ebb9@byu.net>
50237
50238         Fix testing canonicalize on cygwin.
50239         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50240         Revert patch from 2007-06-19.
50241         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50242         canonicalize module is also in use.
50243         * tests/test-canonicalize.c: New file.
50244         * tests/test-canonicalize.sh: Likewise.
50245         * modules/canonicalize-tests: Likewise.
50246
50247 2007-07-06  Jim Meyering  <jim@meyering.net>
50248
50249         * lib/getugroups.c (getugroups): Detect getgrent failure.
50250         Adjust comment to reflect reality: this function may return -1.
50251
50252 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50253
50254         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50255         the new TP address.
50256         (usage): Fix typo
50257         (gnulib_mk): New variable.
50258
50259 2007-07-05  Jim Meyering  <jim@meyering.net>
50260
50261         Don't let endgrent clobber errno, no matter how improbable.
50262         * lib/getugroups.c (getugroups): Save and restore errno around
50263         endgrent call.
50264
50265         Close the group DB even when failing with 2^31 or more members.
50266         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50267
50268 2007-07-04  Jim Meyering  <jim@meyering.net>
50269
50270         * lib/getugroups.h: New file.
50271         * lib/getugroups.c: Include "getugroups.h".
50272         Remove uses of "register" keyword.
50273         Move local variable, "cp", down into scope where used.
50274         Give "username" parameter the "const" attribute.
50275         * modules/getugroups (Files): Add lib/getugroups.h
50276
50277 2007-07-04  Karl Berry  <karl@gnu.org>
50278
50279         * MODULES.html.sh (func_all_modules): Complete rename of
50280         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50281
50282 2007-07-02  Bruno Haible  <bruno@clisp.org>
50283
50284         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50285         mode, when inttypes.h comes from gnulib.
50286         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50287
50288 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50289
50290         * NEWS: Mention lgpl module name change.
50291
50292         * modules/lgpl-2.1: Renamed from lgpl.
50293
50294         * NEWS: Mention gpl module name change.
50295
50296         * modules/gpl-3.0: New file, based on gpl-2.0.
50297
50298         * modules/gpl-2.0: Renamed from gpl.
50299
50300         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50301         doc/gpl-2.0.texi.
50302
50303 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50304
50305         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50306         #define __STDC_LIMIT_MACROS temporarily while including
50307         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50308         Problem reported by Joel E. Denny in
50309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50310
50311 2007-07-01  Bruno Haible  <bruno@clisp.org>
50312
50313         * lib/unistdio.h: New file.
50314         * lib/unistdio/u-asnprintf.h: New file.
50315         * lib/unistdio/u-asprintf.h: New file.
50316         * lib/unistdio/u-printf-args.c: New file.
50317         * lib/unistdio/u-printf-args.h: New file.
50318         * lib/unistdio/u-printf-parse.h: New file.
50319         * lib/unistdio/u-snprintf.h: New file.
50320         * lib/unistdio/u-sprintf.h: New file.
50321         * lib/unistdio/u-vasprintf.h: New file.
50322         * lib/unistdio/u-vsnprintf.h: New file.
50323         * lib/unistdio/u-vsprintf.h: New file.
50324         * lib/unistdio/ulc-asnprintf.c: New file.
50325         * lib/unistdio/ulc-asprintf.c: New file.
50326         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50327         * lib/unistdio/ulc-printf-parse.c: New file.
50328         * lib/unistdio/ulc-snprintf.c: New file.
50329         * lib/unistdio/ulc-sprintf.c: New file.
50330         * lib/unistdio/ulc-vasnprintf.c: New file.
50331         * lib/unistdio/ulc-vasprintf.c: New file.
50332         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50333         * lib/unistdio/ulc-vsnprintf.c: New file.
50334         * lib/unistdio/ulc-vsprintf.c: New file.
50335         * lib/unistdio/u8-asnprintf.c: New file.
50336         * lib/unistdio/u8-asprintf.c: New file.
50337         * lib/unistdio/u8-printf-parse.c: New file.
50338         * lib/unistdio/u8-snprintf.c: New file.
50339         * lib/unistdio/u8-sprintf.c: New file.
50340         * lib/unistdio/u8-vasnprintf.c: New file.
50341         * lib/unistdio/u8-vasprintf.c: New file.
50342         * lib/unistdio/u8-vsnprintf.c: New file.
50343         * lib/unistdio/u8-vsprintf.c: New file.
50344         * lib/unistdio/u8-u8-asnprintf.c: New file.
50345         * lib/unistdio/u8-u8-asprintf.c: New file.
50346         * lib/unistdio/u8-u8-snprintf.c: New file.
50347         * lib/unistdio/u8-u8-sprintf.c: New file.
50348         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50349         * lib/unistdio/u8-u8-vasprintf.c: New file.
50350         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50351         * lib/unistdio/u8-u8-vsprintf.c: New file.
50352         * lib/unistdio/u16-asnprintf.c: New file.
50353         * lib/unistdio/u16-asprintf.c: New file.
50354         * lib/unistdio/u16-printf-parse.c: New file.
50355         * lib/unistdio/u16-snprintf.c: New file.
50356         * lib/unistdio/u16-sprintf.c: New file.
50357         * lib/unistdio/u16-vasnprintf.c: New file.
50358         * lib/unistdio/u16-vasprintf.c: New file.
50359         * lib/unistdio/u16-vsnprintf.c: New file.
50360         * lib/unistdio/u16-vsprintf.c: New file.
50361         * lib/unistdio/u16-u16-asnprintf.c: New file.
50362         * lib/unistdio/u16-u16-asprintf.c: New file.
50363         * lib/unistdio/u16-u16-snprintf.c: New file.
50364         * lib/unistdio/u16-u16-sprintf.c: New file.
50365         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50366         * lib/unistdio/u16-u16-vasprintf.c: New file.
50367         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50368         * lib/unistdio/u16-u16-vsprintf.c: New file.
50369         * lib/unistdio/u32-asnprintf.c: New file.
50370         * lib/unistdio/u32-asprintf.c: New file.
50371         * lib/unistdio/u32-printf-parse.c: New file.
50372         * lib/unistdio/u32-snprintf.c: New file.
50373         * lib/unistdio/u32-sprintf.c: New file.
50374         * lib/unistdio/u32-vasnprintf.c: New file.
50375         * lib/unistdio/u32-vasprintf.c: New file.
50376         * lib/unistdio/u32-vsnprintf.c: New file.
50377         * lib/unistdio/u32-vsprintf.c: New file.
50378         * lib/unistdio/u32-u32-asnprintf.c: New file.
50379         * lib/unistdio/u32-u32-asprintf.c: New file.
50380         * lib/unistdio/u32-u32-snprintf.c: New file.
50381         * lib/unistdio/u32-u32-sprintf.c: New file.
50382         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50383         * lib/unistdio/u32-u32-vasprintf.c: New file.
50384         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50385         * lib/unistdio/u32-u32-vsprintf.c: New file.
50386         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50387         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50388         * tests/unistdio/test-ulc-printf1.h: New file.
50389         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50390         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50391         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50392         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50393         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50394         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50395         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50396         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50397         * tests/unistdio/test-u8-asnprintf1.c: New file.
50398         * tests/unistdio/test-u8-asnprintf1.h: New file.
50399         * tests/unistdio/test-u8-printf1.h: New file.
50400         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50401         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50402         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50403         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50404         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50405         * tests/unistdio/test-u8-vasprintf1.c: New file.
50406         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50407         * tests/unistdio/test-u8-vsprintf1.c: New file.
50408         * tests/unistdio/test-u16-asnprintf1.c: New file.
50409         * tests/unistdio/test-u16-asnprintf1.h: New file.
50410         * tests/unistdio/test-u16-printf1.h: New file.
50411         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50412         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50413         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50414         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50415         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50416         * tests/unistdio/test-u16-vasprintf1.c: New file.
50417         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50418         * tests/unistdio/test-u16-vsprintf1.c: New file.
50419         * tests/unistdio/test-u32-asnprintf1.c: New file.
50420         * tests/unistdio/test-u32-asnprintf1.h: New file.
50421         * tests/unistdio/test-u32-printf1.h: New file.
50422         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50423         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50424         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50425         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50426         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50427         * tests/unistdio/test-u32-vasprintf1.c: New file.
50428         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50429         * tests/unistdio/test-u32-vsprintf1.c: New file.
50430         * modules/unistdio/base: New file.
50431         * modules/unistdio/u-printf-args: New file.
50432         * modules/unistdio/ulc-asnprintf: New file.
50433         * modules/unistdio/ulc-asprintf: New file.
50434         * modules/unistdio/ulc-fprintf: New file.
50435         * modules/unistdio/ulc-printf-parse: New file.
50436         * modules/unistdio/ulc-snprintf: New file.
50437         * modules/unistdio/ulc-sprintf: New file.
50438         * modules/unistdio/ulc-vasnprintf: New file.
50439         * modules/unistdio/ulc-vasprintf: New file.
50440         * modules/unistdio/ulc-vfprintf: New file.
50441         * modules/unistdio/ulc-vsnprintf: New file.
50442         * modules/unistdio/ulc-vsprintf: New file.
50443         * modules/unistdio/u8-asnprintf: New file.
50444         * modules/unistdio/u8-asprintf: New file.
50445         * modules/unistdio/u8-printf-parse: New file.
50446         * modules/unistdio/u8-snprintf: New file.
50447         * modules/unistdio/u8-sprintf: New file.
50448         * modules/unistdio/u8-vasnprintf: New file.
50449         * modules/unistdio/u8-vasprintf: New file.
50450         * modules/unistdio/u8-vsnprintf: New file.
50451         * modules/unistdio/u8-vsprintf: New file.
50452         * modules/unistdio/u8-u8-asnprintf: New file.
50453         * modules/unistdio/u8-u8-asprintf: New file.
50454         * modules/unistdio/u8-u8-snprintf: New file.
50455         * modules/unistdio/u8-u8-sprintf: New file.
50456         * modules/unistdio/u8-u8-vasnprintf: New file.
50457         * modules/unistdio/u8-u8-vasprintf: New file.
50458         * modules/unistdio/u8-u8-vsnprintf: New file.
50459         * modules/unistdio/u8-u8-vsprintf: New file.
50460         * modules/unistdio/u16-asnprintf: New file.
50461         * modules/unistdio/u16-asprintf: New file.
50462         * modules/unistdio/u16-printf-parse: New file.
50463         * modules/unistdio/u16-snprintf: New file.
50464         * modules/unistdio/u16-sprintf: New file.
50465         * modules/unistdio/u16-vasnprintf: New file.
50466         * modules/unistdio/u16-vasprintf: New file.
50467         * modules/unistdio/u16-vsnprintf: New file.
50468         * modules/unistdio/u16-vsprintf: New file.
50469         * modules/unistdio/u16-u16-asnprintf: New file.
50470         * modules/unistdio/u16-u16-asprintf: New file.
50471         * modules/unistdio/u16-u16-snprintf: New file.
50472         * modules/unistdio/u16-u16-sprintf: New file.
50473         * modules/unistdio/u16-u16-vasnprintf: New file.
50474         * modules/unistdio/u16-u16-vasprintf: New file.
50475         * modules/unistdio/u16-u16-vsnprintf: New file.
50476         * modules/unistdio/u16-u16-vsprintf: New file.
50477         * modules/unistdio/u32-asnprintf: New file.
50478         * modules/unistdio/u32-asprintf: New file.
50479         * modules/unistdio/u32-printf-parse: New file.
50480         * modules/unistdio/u32-snprintf: New file.
50481         * modules/unistdio/u32-sprintf: New file.
50482         * modules/unistdio/u32-vasnprintf: New file.
50483         * modules/unistdio/u32-vasprintf: New file.
50484         * modules/unistdio/u32-vsnprintf: New file.
50485         * modules/unistdio/u32-vsprintf: New file.
50486         * modules/unistdio/u32-u32-asnprintf: New file.
50487         * modules/unistdio/u32-u32-asprintf: New file.
50488         * modules/unistdio/u32-u32-snprintf: New file.
50489         * modules/unistdio/u32-u32-sprintf: New file.
50490         * modules/unistdio/u32-u32-vasnprintf: New file.
50491         * modules/unistdio/u32-u32-vasprintf: New file.
50492         * modules/unistdio/u32-u32-vsnprintf: New file.
50493         * modules/unistdio/u32-u32-vsprintf: New file.
50494         * modules/unistdio/ulc-asnprintf-tests: New file.
50495         * modules/unistdio/ulc-vasnprintf-tests: New file.
50496         * modules/unistdio/ulc-vasprintf-tests: New file.
50497         * modules/unistdio/ulc-vsnprintf-tests: New file.
50498         * modules/unistdio/ulc-vsprintf-tests: New file.
50499         * modules/unistdio/u8-asnprintf-tests: New file.
50500         * modules/unistdio/u8-vasnprintf-tests: New file.
50501         * modules/unistdio/u8-vasprintf-tests: New file.
50502         * modules/unistdio/u8-vsnprintf-tests: New file.
50503         * modules/unistdio/u8-vsprintf-tests: New file.
50504         * modules/unistdio/u16-asnprintf-tests: New file.
50505         * modules/unistdio/u16-vasnprintf-tests: New file.
50506         * modules/unistdio/u16-vasprintf-tests: New file.
50507         * modules/unistdio/u16-vsnprintf-tests: New file.
50508         * modules/unistdio/u16-vsprintf-tests: New file.
50509         * modules/unistdio/u32-asnprintf-tests: New file.
50510         * modules/unistdio/u32-vasnprintf-tests: New file.
50511         * modules/unistdio/u32-vasprintf-tests: New file.
50512         * modules/unistdio/u32-vsnprintf-tests: New file.
50513         * modules/unistdio/u32-vsprintf-tests: New file.
50514         * MODULES.html.sh (Unicode string functions): Add the new modules.
50515
50516 2007-07-01  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/sprintf.c (sprintf): Limit the available length estimation,
50519         to avoid address wraparound.
50520         * lib/vsprintf.c (vsprintf): Likewise.
50521         * modules/sprintf-posix (Dependencies): Add stdint.
50522         * modules/vsprintf-posix (Dependencies): Likewise.
50523
50524 2007-07-01  Bruno Haible  <bruno@clisp.org>
50525
50526         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50527         Windows PATH as well. Conservative double-quoting. Comments.
50528
50529 2007-07-01  Bruno Haible  <bruno@clisp.org>
50530             Eric Blake  <ebb9@byu.net>
50531             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50532
50533         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50534         empty components in $PATH, denoting '.'.
50535
50536 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50537
50538         * gnulib-tool: Fix indentation.
50539         (func_create_megatestdir): Likewise.
50540         Report by Bruno Haible.
50541
50542 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50543
50544         Sync from Automake.
50545         * build-aux/gnupload: Fix shell portability issues with for loops.
50546         Report by Karl Berry.
50547
50548 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50549
50550         * build-aux/maint.mk (POURL): Use translationproject.org.
50551
50552 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50553             Bruno Haible  <bruno@clisp.org>
50554
50555         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50556         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50557         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50558         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50559         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50560
50561 2007-06-27  Bruno Haible  <bruno@clisp.org>
50562
50563         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50564         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50565
50566 2007-06-26  Karl Berry  <karl@gnu.org>
50567
50568         * MODULES.html.sh: remove xreadlink-with-size.
50569
50570 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50571
50572         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50573         method that I hope also handles the double-include problem noted
50574         by Bruno Haible in
50575         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50576
50577 2007-06-23  Bruno Haible  <bruno@clisp.org>
50578
50579         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50580         Don't let the 'mostlyclean' target fail if the last subdirectory could
50581         not be removed.
50582         Reported by Karl Berry.
50583
50584 2007-06-23  Bruno Haible  <bruno@clisp.org>
50585
50586         * gnulib-tool (echo): Add a speedier workaround for ksh.
50587         * tests/test-echo.sh: Likewise.
50588
50589 2007-06-23  Bruno Haible  <bruno@clisp.org>
50590
50591         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50592         * tests/test-echo.sh: Likewise.
50593
50594 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50595
50596         * gnulib-tool (IFS): Initialize early, so we don't set it to
50597         empty later.
50598         (self_abspathname): Rewrite algorithm to set it, reindent.
50599         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50600         (func_create_megatestdir): Merge some sed scripts.
50601
50602 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50603
50604         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50605         exposed by Sun Studio 11 cc on Solaris 8.
50606
50607 2007-06-22  Bruno Haible  <bruno@clisp.org>
50608
50609         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50610         backslashes.
50611         * tests/test-echo.sh: New file.
50612
50613 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50614
50615         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50616         simplify `sed_replace_build_aux' scripts, they are portable but
50617         echoing them with `echo' is not.
50618         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50619
50620 2007-06-21  Karl Berry  <karl@gnu.org>
50621
50622         * config/srclist.txt: guess we can't handle the licenses via
50623         srclist at the moment.
50624
50625 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50626
50627         * MODULES.html.sh: Add include_next.
50628         * modules/include_next: New file.
50629
50630 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50631
50632         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50633         INCLUDE_NEXT.
50634         (gl_CHECK_NEXT_HEADERS): New macro.
50635         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50636         the obsolescent gl_ABSOLUTE_HEADER.
50637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50638         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50639         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50640         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50641         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50642         * m4/math_h.m4 (gl_MATH_H): Likewise.
50643         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50644         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50645         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50646         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50647         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50648         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50649         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50650         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50651         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50652         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50653         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50654         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50655         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50656         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50657         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50658         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50659         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50660         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50661         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50662         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50663         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50664         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50665         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50666         * lib/float_.h: Likewise.
50667         * lib/inttypes_.h: Likewise.
50668         * lib/math_.h: Likewise.
50669         * lib/search_.h: Likewise.
50670         * lib/signal_.h: Likewise.
50671         * lib/stdint_.h: Likewise.
50672         * lib/stdio_.h: Likewise.
50673         * lib/stdlib_.h: Likewise.
50674         * lib/string_.h: Likewise.
50675         * lib/sys_stat_.h: Likewise.
50676         * lib/sys_time_.h: Likewise.
50677         * lib/time_.h: Likewise.
50678         * lib/unistd_.h: Likewise.
50679         * lib/wchar_.h: Likewise.
50680         * lib/wctype_.h: Likewise.
50681         * lib/dirent_.h: Likewise.
50682         * lib/iconv_.h: Likewise.
50683         * lib/locale_.h: Likewise.
50684         * lib/netinet_in_.h: Likewise.
50685         * lib/sys_select_.h: Likewise.
50686         * lib/sys_socket_.h: Likewise.
50687         * lib/sysexits_.h: Likewise.
50688         * modules/fcntl (Depends-on): Depend on include_next, not
50689         absolute_header.
50690         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50691         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50692         * modules/fchdir: Likewise.
50693         * modules/float: Likewise.
50694         * modules/iconv_open: Likewise.
50695         * modules/inttypes: Likewise.
50696         * modules/locale: Likewise.
50697         * modules/math: Likewise.
50698         * modules/netinet_in: Likewise.
50699         * modules/search: Likewise.
50700         * modules/signal: Likewise.
50701         * modules/stdint: Likewise.
50702         * modules/stdio: Likewise.
50703         * modules/stdlib: Likewise.
50704         * modules/string: Likewise.
50705         * modules/sys_select: Likewise.
50706         * modules/sys_socket: Likewise.
50707         * modules/sys_stat: Likewise.
50708         * modules/sys_time: Likewise.
50709         * modules/sysexits: Likewise.
50710         * modules/time: Likewise.
50711         * modules/unistd: Likewise.
50712         * modules/wchar: Likewise.
50713         * modules/wctype: Likewise.
50714         * modules/sys_stat: Change maintainer to "all".
50715         * modules/unistd: Likewise.
50716
50717 2007-06-20  Karl Berry  <karl@gnu.org>
50718
50719         * config/srclist.txt: track www changes in license files.
50720
50721 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50722
50723         * build-aux/bootstrap: Remove stray dot.
50724         Make sure build_aux settings are honored when linking
50725         gnulib_extra_files.
50726
50727 2007-06-19  Eric Blake  <ebb9@byu.net>
50728
50729         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50730         Allow compilation on cygwin.
50731
50732 2007-06-19  Jim Meyering  <jim@meyering.net>
50733
50734         xreadlink-with-size: Remove module.  No longer used.
50735         Ex-callers now use xreadlink or mreadlink-with-size.
50736         * modules/xreadlink-with-size: Remove module.
50737         * lib/xreadlink-with-size.c: Remove file.
50738         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50739         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50740         just before the function definition *is* accurate.
50741
50742         Eliminate one way canonicalize_filename_mode could exit.
50743         * lib/canonicalize.c (canonicalize_filename_mode):
50744         Use mreadlink_with_size, not xreadlink_with_size.
50745
50746 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50747
50748         Detect porting problems to FreeBSD/arm, which has time_t wider than
50749         long int.  Original problem reported for GNU diff by Xin Li in
50750         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50751         * modules/getdate (Depends-on): Add intprops, verify.
50752         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50753         is an integer type no wider than long int.
50754
50755 2007-06-18  Jim Meyering  <jim@meyering.net>
50756
50757         New module: mreadlink-with-size.
50758         * MODULES.html.sh: Add mreadlink-with-size.
50759         * modules/mreadlink-with-size: New module
50760         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50761         not xreadlink-with-size.
50762         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50763
50764 2007-06-16  Bruno Haible  <bruno@clisp.org>
50765
50766         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50767         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50768         Reported by Gary V. Vaughan <gary@gnu.org>.
50769
50770 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50771
50772         Revamp lchown so that it lives in unistd.h where it belongs.
50773         * lib/lchown.h: Remove.
50774         * lib/dirchownmod.c: Don't include lib/lchown.h.
50775         * lib/fchownat.c: Likewise.
50776         * lib/openat.c: Likewise.
50777         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50778         does not follow symlinks.
50779         (EOPNOTSUPP): Define if not defined.
50780         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50781         is defined to 0.
50782         (lchown): New decl.
50783         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50784         Do not check for lchown decl.
50785         Set REPLACE_LCHOWN.
50786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50787         REPLACE_LCHOWN.
50788         * modules/chown: Make it clear it follows symlinks.
50789         * modules/lchown: Make it clear it doesn't follow symlinks.
50790         (Files): Remove lib/lchown.h
50791         (Depends-on): Add unistd.
50792         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50793         (Include): Include <unistd.h>, not "lchown.h".
50794         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50795         REPLACE_LCHOWN.
50796
50797 2007-06-15  Jim Meyering  <jim@meyering.net>
50798
50799         Change license (GPL to LGPL) of fsusage and dependents.
50800         * modules/fsusage (License): Change to LGPL.
50801         * modules/full-read (License): Likewise.
50802         * modules/full-write (License): Likewise.
50803         * modules/safe-read (License): Likewise.
50804         * modules/safe-write (License): Likewise.
50805
50806 2007-06-14  Ben Pfaff  <blp@gnu.org>
50807
50808         Missing part of allocsa -> malloca transition.
50809         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50810         gl_MALLOCA.
50811
50812 2007-06-12  Bruno Haible  <bruno@clisp.org>
50813
50814         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50815         to ia64, x86_64, i386.
50816         Reported by Eric Blake.
50817
50818 2007-06-12  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50821         cross-compiling to x86_64.
50822
50823 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50824
50825         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50826         glitch reported by Ralf Wildenhues in
50827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50828
50829         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50830         Vin Shelton.
50831
50832 2007-06-11  Bruno Haible  <bruno@clisp.org>
50833
50834         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50835         replacement string.
50836         Reported by Eric Blake.
50837
50838 2007-06-10  Bruno Haible  <bruno@clisp.org>
50839
50840         Prepare vasnprintf code for use with Unicode strings.
50841         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50842         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50843         TYPE_U32_STRING.
50844         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50845         a_u32_string variants.
50846         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50847         * lib/printf-args.c: Don't include config.h and the specification
50848         header if PRINTF_FETCHARGS is already defined.
50849         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50850         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50851         TYPE_U16_STRING, TYPE_U32_STRING.
50852         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50853         u16_directive, u16_directives, u32_directive, u32_directives): New
50854         types.
50855         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50856         New declarations.
50857         * lib/printf-parse.c: Don't include config.h and the specification
50858         header if PRINTF_PARSE is already defined. Eliminate the set of
50859         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50860         them now. Include c-ctype.h.
50861         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50862         directive and CHAR_T_ONLY_ASCII.
50863         * lib/vasnprintf.c: Don't include config.h and the specification header
50864         if VASNPRINTF is already defined.
50865         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50866         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50867         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50868         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50869         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50870         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50871         code accordingly.
50872         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50873         pad_ourselves also in this case, with the 'c' and 's' directives, and
50874         with a different notion of "width".
50875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50876
50877 2007-06-10  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/unistr/u32-mbsnlen: New file.
50880         * lib/unistr/u32-mbsnlen.c: New file.
50881
50882         * modules/unistr/u16-mbsnlen: New file.
50883         * lib/unistr/u16-mbsnlen.c: New file.
50884
50885         * modules/unistr/u8-mbsnlen: New file.
50886         * lib/unistr/u8-mbsnlen.c: New file.
50887
50888         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50889         declarations.
50890
50891 2007-06-10  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/string_.h (mbsnlen): New declaration.
50894         * lib/mbsnlen.c: New file.
50895         * m4/mbsnlen.m4: New file.
50896         * modules/mbsnlen: New file.
50897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50898         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50899         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50900
50901 2007-06-10  Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50904
50905 2007-06-10  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50908         * lib/mbuiter.h: Likewise.
50909
50910 2007-06-10  Bruno Haible  <bruno@clisp.org>
50911
50912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50913         declaration.
50914
50915 2007-06-10  Karl Berry  <karl@gnu.org>
50916
50917         * config/srclist.txt: remove gettext entries, Bruno prefers
50918         to update individually.
50919
50920 2007-06-10  Bruno Haible  <bruno@clisp.org>
50921
50922         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50923         'maxlen'. Ensure only length + width bytes are allocated, not
50924         length + 1 + width.
50925
50926 2007-06-09  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50929         (CHAR_T): Remove macro.
50930         (VASNPRINTF): Update.
50931
50932 2007-06-09  Bruno Haible  <bruno@clisp.org>
50933
50934         * MODULES.html.sh (Unicode string functions): Add the new modules.
50935
50936         * modules/uniconv/u32-conv-to-enc: New file.
50937         * lib/uniconv/u32-conv-to-enc.c: New file.
50938         * modules/uniconv/u32-conv-to-enc-tests: New file.
50939         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50940
50941         * modules/uniconv/u16-conv-to-enc: New file.
50942         * lib/uniconv/u16-conv-to-enc.c: New file.
50943         * lib/uniconv/u-conv-to-enc.h: New file.
50944         * modules/uniconv/u16-conv-to-enc-tests: New file.
50945         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50946
50947         * modules/uniconv/u8-conv-to-enc: New file.
50948         * lib/uniconv/u8-conv-to-enc.c: New file.
50949         * modules/uniconv/u8-conv-to-enc-tests: New file.
50950         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50951
50952         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50953         u32_conv_to_encoding): New declarations.
50954
50955 2007-06-09  Bruno Haible  <bruno@clisp.org>
50956
50957         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50958
50959 2007-06-09  Bruno Haible  <bruno@clisp.org>
50960
50961         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50962         * modules/malloca: Renamed from modules/allocsa, updated.
50963         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50964         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50965         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50966         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50967         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50968         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50969         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50970         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50971         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50972         * modules/c-strcasestr (Depends-on): Update.
50973         * lib/c-strcasestr.c: Update.
50974         * modules/c-strstr (Depends-on): Update.
50975         * lib/c-strstr.c: Update.
50976         * modules/canonicalize-lgpl (Depends-on): Update.
50977         * lib/canonicalize-lgpl.c: Update.
50978         * modules/clean-temp (Depends-on): Update.
50979         * lib/clean-temp.c: Update.
50980         * modules/csharpcomp (Depends-on): Update.
50981         * lib/csharpcomp.c: Update.
50982         * modules/csharpexec (Depends-on): Update.
50983         * lib/csharpexec.c: Update.
50984         * modules/javacomp (Depends-on): Update.
50985         * lib/javacomp.c: Update.
50986         * modules/javaexec (Depends-on): Update.
50987         * lib/javaexec.c: Update.
50988         * modules/mbscasestr (Depends-on): Update.
50989         * lib/mbscasestr.c: Update.
50990         * modules/mbsstr (Depends-on): Update.
50991         * lib/mbsstr.c: Update.
50992         * modules/setenv (Depends-on): Update.
50993         * lib/setenv.c: Update.
50994         * modules/strcasestr (Depends-on): Update.
50995         * lib/strcasestr.c: Update.
50996         * modules/striconveha (Depends-on): Update.
50997         * lib/striconveha.c: Update.
50998         * modules/relocatable-prog-wrapper (Files): Update.
50999         * lib/relocwrapper.c: Update.
51000         * build-aux/install-reloc: Update.
51001         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51002
51003 2007-06-08  Bruno Haible  <bruno@clisp.org>
51004
51005         Port to uClibc.
51006         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51007         * lib/fpurge.c (fpurge): Likewise.
51008         * lib/freading.c (freading): Likewise.
51009         * lib/fseeko.c (rpl_fseeko): Likewise.
51010         * lib/fseterr.c (fseterr): Likewise.
51011         * lib/fwriting.c (fwriting): Likewise.
51012         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51013
51014 2007-06-08  Bruno Haible  <bruno@clisp.org>
51015
51016         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51017         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51018         * modules/gettext (Files): Add m4/intlmacosx.m4.
51019
51020 2007-06-07  Bruno Haible  <bruno@clisp.org>
51021
51022         * modules/localename-tests: New file.
51023         * tests/test-localename.c: New file.
51024
51025         New module 'localename'.
51026         * lib/localename.h: New file.
51027         * lib/localename.c: New file, from GNU gettext.
51028         * m4/localename.m4: New file.
51029         * modules/localename: New file.
51030
51031 2007-06-07  Bruno Haible  <bruno@clisp.org>
51032
51033         Work around the lack of <wchar.h> on some builds of uClibc.
51034         * doc/headers/wchar.texi: Update.
51035         * lib/wchar_.h: Include <wchar.h> only if it exists.
51036         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51037         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51038         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51039         doesn't exist.
51040         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51041         * modules/mbfile (Depends-on): Add wchar.
51042         * modules/mbiter (Depends-on): Likewise.
51043         * modules/mbuiter (Depends-on): Likewise.
51044         Reported by Simon Josefsson.
51045
51046 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         Work around problem reported by Steven M. Schweda in
51049         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51050         Tru64 5.1B with the Compaq compiler environment installed declares
51051         an 'isblank' function but does not define it in the C library.
51052         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51053         * lib/regex_internal.h (isblank): Likewise.
51054         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51055         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51056
51057 2007-06-05  Bruno Haible  <bruno@clisp.org>
51058
51059         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51060         ia64.
51061         * modules/printf-safe: New file.
51062         * modules/fprintf-posix (Depends-on): Add printf-safe.
51063         * modules/printf-posix (Depends-on): Likewise.
51064         * modules/snprintf-posix (Depends-on): Likewise.
51065         * modules/sprintf-posix (Depends-on): Likewise.
51066         * modules/vasnprintf-posix (Depends-on): Likewise.
51067         * modules/vasprintf-posix (Depends-on): Likewise.
51068         * modules/vfprintf-posix (Depends-on): Likewise.
51069         * modules/vprintf-posix (Depends-on): Likewise.
51070         * modules/vsnprintf-posix (Depends-on): Likewise.
51071         * modules/vsprintf-posix (Depends-on): Likewise.
51072         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51073         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51074         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51075         "no" on i386, x86_64, ia64.
51076         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51077         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51078         on i386, x86_64, ia64.
51079         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51080         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51081         on i386, x86_64, ia64.
51082         * tests/test-vasnprintf-posix.c: Include float.h.
51083         (LDBL80_WORDS): New macro.
51084         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51085         on i386, x86_64, ia64.
51086         * tests/test-vasprintf-posix.c: Include float.h.
51087         (LDBL80_WORDS): New macro.
51088         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51089         on i386, x86_64, ia64.
51090         * tests/test-snprintf-posix.c: Include float.h.
51091         * tests/test-sprintf-posix.c: Likewise.
51092         * tests/test-vsnprintf-posix.c: Likewise.
51093         * tests/test-vsprintf-posix.c: Likewise.
51094
51095 2007-06-05  Bruno Haible  <bruno@clisp.org>
51096
51097         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51098         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51099         non-IEEE numbers on i386, x86_64, ia64.
51100         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51101         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51102         * tests/test-isnanl.h: Include float.h.
51103         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51104
51105 2007-06-05  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51108         also the %a / %A. Handle the %a / %A code before this extra handling.
51109
51110 2007-06-05  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51113         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51114
51115 2007-06-05  Bruno Haible  <bruno@clisp.org>
51116
51117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51118         typo in variable name.
51119
51120 2007-06-05  Eric Blake  <ebb9@byu.net>
51121
51122         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51123         Reported by Simon Josefsson.
51124
51125 2007-06-04  Bruno Haible  <bruno@clisp.org>
51126
51127         Avoid test failures on some PowerPC platforms.
51128         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51129         Define differently for PowerPC.
51130         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51131         Reported by Gary V. Vaughan <gary@gnu.org>.
51132
51133 2007-06-02  Bruno Haible  <bruno@clisp.org>
51134
51135         Fix test-stdint failure on FreeBSD/ia64.
51136         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51137         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51138         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51139         * doc/headers/stdint.texi: Update.
51140
51141 2007-06-01  Bruno Haible  <bruno@clisp.org>
51142
51143         * tests/test-binary-io.c (main): Pass a third argument to open().
51144         Reported by Gary V. Vaughan <gary@gnu.org>.
51145
51146 2007-06-01  Bruno Haible  <bruno@clisp.org>
51147
51148         * doc/functions/frexpl.texi: Update for mingw.
51149
51150 2007-06-01  Bruno Haible  <bruno@clisp.org>
51151
51152         * tests/test-lseek.c (main): Disable test of errno for invalid third
51153         argument.
51154         * doc/functions/lseek.texi: Update.
51155         Reported by Gary V. Vaughan <gary@gnu.org>.
51156
51157 2007-05-28  Bruno Haible  <bruno@clisp.org>
51158
51159         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51160
51161 2007-05-31  Eric Blake  <ebb9@byu.net>
51162
51163         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51164         cross compiling.
51165
51166 2007-05-30  Eric Blake  <ebb9@byu.net>
51167         and Bruno Haible  <bruno@clisp.org>
51168
51169         Work around mingw test failures exposed by m4-1.4.9b.
51170         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51171         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51172         moment.
51173
51174 2007-05-30  Bruno Haible  <bruno@clisp.org>
51175
51176         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51177         assuming that they are closed. Needed on HP-UX 11.
51178
51179 2007-05-29  Bruno Haible  <bruno@clisp.org>
51180
51181         Fix a problem with #include_next.
51182         * lib/dirent_.h: Split the double-inclusion guard.
51183         * lib/fcntl_.h: Likewise.
51184         * lib/float_.h: Likewise.
51185         * lib/iconv_.h: Likewise.
51186         * lib/inttypes_.h: Likewise.
51187         * lib/locale_.h: Likewise.
51188         * lib/math_.h: Likewise.
51189         * lib/netinet_in_.h: Likewise.
51190         * lib/search_.h: Likewise.
51191         * lib/signal_.h: Likewise.
51192         * lib/stdint_.h: Likewise.
51193         * lib/stdio_.h: Likewise.
51194         * lib/stdlib_.h: Likewise.
51195         * lib/string_.h: Likewise.
51196         * lib/sys_select_.h: Likewise.
51197         * lib/sys_socket_.h: Likewise.
51198         * lib/sys_stat_.h: Likewise.
51199         * lib/sys_time_.h: Likewise.
51200         * lib/sysexits_.h: Likewise.
51201         * lib/time_.h: Likewise.
51202         * lib/unistd_.h: Likewise.
51203         * lib/wchar_.h: Likewise.
51204         * lib/wctype_.h: Likewise.
51205
51206 2007-05-29  Bruno Haible  <bruno@clisp.org>
51207
51208         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51209         for the moment.
51210
51211 2007-05-29  Bruno Haible  <bruno@clisp.org>
51212
51213         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51214         invocation.
51215         Reported by Eric Blake.
51216
51217 2007-05-29  Bruno Haible  <bruno@clisp.org>
51218
51219         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51220         compiling case.
51221
51222 2007-05-29  Eric Blake  <ebb9@byu.net>
51223             Bruno Haible  <bruno@clisp.org>
51224
51225         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51226         cross compiles.
51227
51228 2007-05-28  Eric Blake  <ebb9@byu.net>
51229
51230         * modules/closein-tests (test_closein_LDADD): Support test on
51231         cygwin with libtool.
51232
51233 2007-05-28  Bruno Haible  <bruno@clisp.org>
51234
51235         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51236         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51237         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51238         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51239         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51240         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51241         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51242         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51243         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51244
51245 2007-05-28  Eric Blake  <ebb9@byu.net>
51246
51247         Unconditionally include <config.h> in unit tests.
51248         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51249         * tests/test-allocsa.c, tests/test-arcfour.c,
51250         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51251         tests/test-array_list.c, tests/test-array_oset.c,
51252         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51253         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51254         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51255         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51256         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51257         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51258         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51259         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51260         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51261         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51262         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51263         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51264         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51265         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51266         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51267         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51268         test-md5.c, test-memmem.c, test-printf-posix.c,
51269         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51270         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51271         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51272         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51273         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51274         test-vasnprintf-posix2.c, test-vasnprintf.c,
51275         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51276         test-vfprintf-posix.c, test-vprintf-posix.c,
51277         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51278         test-xvasprintf.c: Likewise.
51279
51280 2007-05-28  Bruno Haible  <bruno@clisp.org>
51281
51282         * gnulib-tool (func_import): Remember the --with-tests command-line
51283         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51284         Reported by Eric Blake.
51285
51286 2007-05-28  Bruno Haible  <bruno@clisp.org>
51287
51288         * modules/ftell-tests: New file.
51289         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51290         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51291
51292         * lib/ftell.c: New file.
51293         * modules/ftell: New file.
51294         * m4/ftell.m4: New file.
51295         * doc/functions/ftell.texi: Update.
51296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51297         REPLACE_FTELL.
51298         * lib/stdio_.h (rpl_ftell): New declaration.
51299         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51300         REPLACE_FTELL.
51301
51302 2007-05-28  Eric Blake  <ebb9@byu.net>
51303
51304         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51305
51306 2007-05-28  Bruno Haible  <bruno@clisp.org>
51307
51308         * modules/fseek-tests: New file.
51309         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51310         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51311
51312         * lib/fseek.c: New file.
51313         * modules/fseek: New file.
51314         * m4/fseek.m4: New file.
51315         * doc/functions/fseek.texi: Update.
51316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51317         REPLACE_FSEEK.
51318         * lib/stdio_.h (rpl_fseek): New declaration.
51319         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51320         REPLACE_FSEEK.
51321
51322 2007-05-28  Bruno Haible  <bruno@clisp.org>
51323
51324         * lib/stdio_.h (fflush): More comments.
51325
51326 2007-05-28  Bruno Haible  <bruno@clisp.org>
51327
51328         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51329         runtime test.
51330
51331 2007-05-28  Eric Blake  <ebb9@byu.net>
51332
51333         Improve lseek module.
51334         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51335         * lib/unistd_.h (lseek): Scale back link warning message.
51336         * tests/test-lseek.c: Beef up test.
51337         * tests/test-lseek.sh: Exercise more facets of lseek.
51338         Reported by Bruno Haible.
51339
51340 2007-05-28  Bruno Haible  <bruno@clisp.org>
51341
51342         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51343         to define.
51344
51345 2007-05-27  Bruno Haible  <bruno@clisp.org>
51346
51347         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51348
51349 2007-05-27  Bruno Haible  <bruno@clisp.org>
51350
51351         * modules/openmp: New file.
51352         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51353         Noah Misch.
51354
51355 2007-05-26  Bruno Haible  <bruno@clisp.org>
51356
51357         * modules/chdir-long (Depends-on): Add fchdir.
51358         * modules/chdir-safer (Depends-on): Likewise.
51359         * modules/fts (Depends-on): Likewise.
51360         * modules/fts-lgpl (Depends-on): Likewise.
51361         * modules/openat (Depends-on): Likewise.
51362         * modules/savewd (Depends-on): Likewise.
51363
51364 2007-05-24  Eric Blake  <ebb9@byu.net>
51365
51366         Fix lseek on mingw.
51367         * modules/lseek: New module.
51368         * m4/lseek.m4: New file.
51369         * lib/lseek.c: New file.
51370         * modules/lseek-tests: New file.
51371         * tests/test-lseek.c: New file.
51372         * tests/test-lseek.sh: New file.
51373         * MODULES.html.sh: Document lseek module.
51374         * modules/fflush (Depends-on): Add lseek, fseeko.
51375         * modules/fseeko (Depends-on): Likewise.
51376         * modules/ftello (Depends-on): Likewise.
51377         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51378         broken.
51379         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51380         broken.
51381         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51382         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51383         * lib/ftello.c (rpl_ftello): Likewise.
51384         * tests/test-fseeko.c (main): Test this.
51385         * tests/test-fseeko.sh: Likewise.
51386         * tests/test-ftello.c (main): Likewise.
51387         * tests/test-ftello.sh: Likewise.
51388         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51389         implies replacing fseek.
51390         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51391         HAVE_FTELLO.
51392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51393         * modules/unistd (Makefile.am): Likewise.
51394         * lib/unistd_.h (lseek): Declare a replacement.
51395         * doc/functions/lseek.texi (lseek): Document this fix.
51396         * doc/functions/fseek.texi (fseek): Likewise.
51397         * doc/functions/ftell.texi (ftell): Likewise.
51398
51399 2007-05-24  Bruno Haible  <bruno@clisp.org>
51400
51401         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51402         in the printed representation of a NaN.
51403         * tests/test-vasprintf-posix.c (test_function): Likewise.
51404         * tests/test-snprintf-posix.h (test_function): Likewise.
51405         * tests/test-sprintf-posix.h (test_function): Likewise.
51406         Reported by Eric Blake.
51407
51408 2007-05-23  Eric Blake  <ebb9@byu.net>
51409
51410         Fix fseeko/ftello on cygwin 1.5.24.
51411         * doc/functions/fseeko.texi (fseeko): Document the fix.
51412         * doc/functions/ftello.texi (ftello): Document the fix.
51413         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51414         * doc/functions/stdout.text (stdout): New file.
51415         * doc/functions/stderr.text (stderr): New file.
51416         * doc/gnulib.texi (Function Substitutes): Use new files.
51417         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51418         prior to 1.7.0.
51419         * tests/test-ftello.c (main): Likewise for ftello.
51420         * tests/test-fseeko.sh: New file.
51421         * tests/test-ftello.sh: New file.
51422         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51423         with seekable stdin.
51424         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51425         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51426         (gl_REPLACE_FSEEKO): New macro.
51427         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51428         * modules/fseeko (Files): Distribute fseeko.c.
51429         * modules/ftello (Files): Distribute ftello.c.
51430         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51431         mode.
51432         * lib/ftello.c (rpl_ftello): New file.
51433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51434         fseeko, ftello.
51435         (gl_STDIN_LARGE_OFFSET): New macro.
51436         * modules/stdio (Makefile.am): Perform the replacement.
51437         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51438
51439 2007-05-23  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51442         GNULIB_POSIXCHECK is defined.
51443
51444 2007-05-21  Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51447         Check also the output for NaN arguments. When cross-compiling, guess
51448         no on IRIX.
51449         * lib/vasnprintf.c: Update comments.
51450         * tests/test-vasnprintf-posix.c (strisnan): New function.
51451         (test_function): Use it.
51452         * tests/test-vasprintf-posix.c (strisnan): New function.
51453         (test_function): Use it.
51454         * tests/test-snprintf-posix.h (strisnan): New function.
51455         (test_function): Use it.
51456         * tests/test-sprintf-posix.h (strisnan): New function.
51457         (test_function): Use it.
51458         Reported by Eric Blake.
51459
51460 2007-05-20  Bruno Haible  <bruno@clisp.org>
51461
51462         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51463         numbers that fails on BeOS.
51464         * doc/functions/frexpl.texi: Update.
51465
51466 2007-05-20  Jim Meyering  <jim@meyering.net>
51467
51468         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51469         forced upon us by glibc-2.6.
51470
51471 2007-05-20  Bruno Haible  <bruno@clisp.org>
51472
51473         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51474         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51475         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51476         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51477         NEED_PRINTF_INFINITE.
51478         (is_infinitel): New function.
51479         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51481         gl_PREREQ_VASNPRINTF_INFINITE.
51482         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51483         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51484         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51485         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51486         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51487         gl_PREREQ_VASNPRINTF_INFINITE.
51488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51495         * doc/functions/fprintf.texi: Update.
51496         * doc/functions/printf.texi: Update.
51497         * doc/functions/snprintf.texi: Update.
51498         * doc/functions/sprintf.texi: Update.
51499         * doc/functions/vfprintf.texi: Update.
51500         * doc/functions/vprintf.texi: Update.
51501         * doc/functions/vsnprintf.texi: Update.
51502         * doc/functions/vsprintf.texi: Update.
51503
51504 2007-05-20  Bruno Haible  <bruno@clisp.org>
51505
51506         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51507         was not found in libc.
51508         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51509
51510 2007-05-20  Bruno Haible  <bruno@clisp.org>
51511
51512         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51513         printed as "-nan" instead of "nan".
51514         * tests/test-vasprintf-posix.c (test_function): Likewise.
51515         * tests/test-snprintf-posix.h (test_function): Likewise.
51516         * tests/test-sprintf-posix.h (test_function): Likewise.
51517         Needed for HP-UX 11.
51518
51519 2007-05-20  Jim Meyering  <jim@meyering.net>
51520
51521         Fix buggy test for the fchownat-deref bug.
51522         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51523         symlink required for the run-test.  Without it, this test would
51524         always declare that fchownat doesn't work, and client code would
51525         unnecessarily use the replacement function with fixed libc.
51526         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51527         Reported by Greg Schafer.
51528
51529 2007-05-19  Bruno Haible  <bruno@clisp.org>
51530
51531         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51532         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51533         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51534         Needed for IRIX 6.5 and Solaris 2.5.1.
51535
51536 2007-05-19  Bruno Haible  <bruno@clisp.org>
51537
51538         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51539         (test_function): Skip tests involving -0.0 on platforms where
51540         -0.0 = 0.0.
51541         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51542         (test_function): Skip tests involving -0.0 on platforms where
51543         -0.0 = 0.0.
51544         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51545         (test_function): Skip tests involving -0.0 on platforms where
51546         -0.0 = 0.0.
51547         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51548         (test_function): Skip tests involving -0.0 on platforms where
51549         -0.0 = 0.0.
51550         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51551         tests.
51552         * tests/test-printf-posix.h (test_function): Likewise.
51553         * tests/test-printf-posix.output: Remove all -0.0 related results.
51554         Needed for IRIX 6.5.
51555
51556 2007-05-19  Bruno Haible  <bruno@clisp.org>
51557
51558         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51559         printed as "nan0x7fffffff" instead of "nan".
51560         * tests/test-vasprintf-posix.c (test_function): Likewise.
51561         * tests/test-snprintf-posix.h (test_function): Likewise.
51562         * tests/test-sprintf-posix.h (test_function): Likewise.
51563         * tests/test-fprintf-posix.h (NaN): Remove macro.
51564         (test_function): Remove all NaN related tests.
51565         * tests/test-printf-posix.h (NaN): Remove macro.
51566         (test_function): Remove all NaN related tests.
51567         * tests/test-printf-posix.output: Remove all NaN related results.
51568         Needed for IRIX 6.5.
51569
51570 2007-05-19  Bruno Haible  <bruno@clisp.org>
51571
51572         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51573         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51574
51575 2007-05-19  Bruno Haible  <bruno@clisp.org>
51576
51577         * lib/float_.h: New file.
51578         * m4/float_h.m4: New file.
51579         * modules/float: New file.
51580         * modules/isnanl (Dependencies): Add float.
51581         * modules/isnanl-nolibm (Dependencies): Likewise.
51582         * modules/mathl (Dependencies): Likewise.
51583         * modules/printf-frexpl (Dependencies): Likewise.
51584         * modules/signbit (Dependencies): Likewise.
51585         * modules/vasnprintf (Dependencies): Likewise.
51586         * doc/headers/float.texi: Update.
51587
51588 2007-05-19  Jim Meyering  <jim@meyering.net>
51589
51590         * lib/utimens.c (gl_futimens): Rename from futimens,
51591         now that glibc-2.6 declares futimens.
51592         * lib/utimens.h: Likewise.
51593
51594 2007-05-19  Bruno Haible  <bruno@clisp.org>
51595
51596         Avoid test failures on mingw.
51597         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51598         * tests/test-printf-posix.sh: Likewise.
51599         * tests/test-vfprintf-posix.sh: Likewise.
51600         * tests/test-vprintf-posix.sh: Likewise.
51601
51602 2007-05-19  Bruno Haible  <bruno@clisp.org>
51603
51604         Fix *printf result for NaN, Inf, -0.0 on mingw.
51605         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51606         * lib/vasnprintf.c: Include math.h and isnan.h.
51607         (is_infinite_or_zero): New function.
51608         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51609         values in the %f, %F, %e, %E, %g, %G directives.
51610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51612         gl_PRINTF_INFINITE and test its result. Invoke
51613         gl_PREREQ_VASNPRINTF_INFINITE.
51614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51621         * doc/functions/fprintf.texi: Update.
51622         * doc/functions/printf.texi: Update.
51623         * doc/functions/snprintf.texi: Update.
51624         * doc/functions/sprintf.texi: Update.
51625         * doc/functions/vfprintf.texi: Update.
51626         * doc/functions/vprintf.texi: Update.
51627         * doc/functions/vsnprintf.texi: Update.
51628         * doc/functions/vsprintf.texi: Update.
51629
51630 2007-05-19  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51633         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51634         Instead of multiplying with 10^k, set extra_zeroes to k.
51635         (scale10_round_long_double): Remove function.
51636
51637 2007-05-18  Bruno Haible  <bruno@clisp.org>
51638
51639         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51640         introduced on 2007-05-06.
51641
51642 2007-05-18  Bruno Haible  <bruno@clisp.org>
51643
51644         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51645         %g directives.
51646         * tests/test-vasprintf-posix.c (test_function): Likewise.
51647         * tests/test-snprintf-posix.h (test_function): Likewise.
51648         * tests/test-sprintf-posix.h (test_function): Likewise.
51649
51650 2007-05-18  Bruno Haible  <bruno@clisp.org>
51651
51652         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51653         (strmatch): New function.
51654         (test_function): Test the %f directive on numbers of various exponents.
51655         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51656         (strmatch): New function.
51657         (test_function): Test the %f directive on numbers of various exponents.
51658         * tests/test-snprintf-posix.h (strmatch): New function.
51659         (test_function): Test the %f directive on numbers of various exponents.
51660         * tests/test-sprintf-posix.h (strmatch): New function.
51661         (test_function): Test the %f directive on numbers of various exponents.
51662         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51663         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51664         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51665         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51666
51667 2007-05-18  Bruno Haible  <bruno@clisp.org>
51668
51669         Add support for 'long double' number output.
51670         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51671         * lib/vasnprintf.c: Include math.h and float+.h.
51672         (mp_limb_t): New type.
51673         (GMP_LIMB_BITS): New macro.
51674         (mp_twolimb_t): New type.
51675         (GMP_TWOLIMB_BITS): New macro.
51676         (mpn_t): New type.
51677         (multiply, divide, convert_to_decimal, decode_long_double,
51678         scale10_round_long_double, scale10_round_decimal_long_double,
51679         floorlog10l): New functions.
51680         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51681         for the %f, %F, %e, %E, %g, %G directives.
51682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51683         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51684         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51685         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51688         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51690         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51691         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51692         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51693         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51694         * modules/snprintf-posix (Depends-on): Likewise.
51695         * modules/sprintf-posix (Depends-on): Likewise.
51696         * modules/vasnprintf-posix (Depends-on): Likewise.
51697         * modules/vasprintf-posix (Depends-on): Likewise.
51698         * modules/vfprintf-posix (Depends-on): Likewise.
51699         * modules/vsnprintf-posix (Depends-on): Likewise.
51700         * modules/vsprintf-posix (Depends-on): Likewise.
51701         * modules/vasnprintf (Files): Add lib/float+.h.
51702         * doc/functions/fprintf.texi: Update.
51703         * doc/functions/printf.texi: Update.
51704         * doc/functions/snprintf.texi: Update.
51705         * doc/functions/sprintf.texi: Update.
51706         * doc/functions/vfprintf.texi: Update.
51707         * doc/functions/vprintf.texi: Update.
51708         * doc/functions/vsnprintf.texi: Update.
51709         * doc/functions/vsprintf.texi: Update.
51710
51711 2007-05-18  Bruno Haible  <bruno@clisp.org>
51712
51713         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51714
51715 2007-05-18  Bruno Haible  <bruno@clisp.org>
51716
51717         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51718         for printing 64-bit integers. Needed for mingw.
51719
51720 2007-05-18  Bruno Haible  <bruno@clisp.org>
51721
51722         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51723         gl_FUNC_FREXPL_WORKS.
51724         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51725
51726 2007-05-18  Bruno Haible  <bruno@clisp.org>
51727
51728         * modules/frexpl-nolibm-tests: New file.
51729
51730         * modules/frexpl-nolibm: New file.
51731         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51732
51733 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51734
51735         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51736         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51737         GCC 4.2, which otherwise issues a lot of warnings.
51738         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51739         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51740         Likewise.
51741         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51742         * modules/iconv_open (iconv.h): Likewise.
51743         * modules/locale (locale.h): Likewise.
51744         * modules/netinet_in (netinet/in.h): Likewise.
51745         * modules/sys_select (sys_select.h): Likewise.
51746         * modules/sys_socket (sys/socket.h): Likewise.
51747         * modules/sys_stat (sys/stat.h): Likewise.
51748         * modules/sysexits (sysexits.h): Likewise.
51749         * modules/unistd (unistd.h): Likewise.
51750
51751 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51752
51753         * modules/closein-tests (Makefile.am): Distribute
51754         `test-closein.sh'.
51755
51756 2007-05-17  Bruno Haible  <bruno@clisp.org>
51757
51758         * tests/test-printf-posix.output: Renamed from
51759         tests/test-fprintf-posix.out.
51760         * modules/fprintf-posix-tests: Update.
51761         * modules/printf-posix-tests: Update.
51762         * modules/vfprintf-posix-tests: Update.
51763         * modules/vprintf-posix-tests: Update.
51764         * tests/test-fprintf-posix.sh: Update.
51765         * tests/test-printf-posix.sh: Update.
51766         * tests/test-vfprintf-posix.sh: Update.
51767         * tests/test-vprintf-posix.sh: Update.
51768         Reported by Ralf Wildenhues.
51769
51770 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51771
51772         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51773         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51774         GCC 4.2, which otherwise issues a lot of warnings.
51775         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51776         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51777         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51778         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51779         it should no longer be needed.
51780         * lib/string_.h: Likewise.
51781         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51782         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51783         * modules/inttypes (inttypes.h): Likewise.
51784         * modules/math (math.h): Likewise.
51785         * modules/search (search.h): Likewise.
51786         * modules/signal (signal.h): Likewise.
51787         * modules/stdint (stdint.h): Likewise.
51788         * modules/stdio (stdio.h): Likewise.
51789         * modules/stdlib (stdlib.h): Likewise.
51790         * modules/string (string.h): Likewise.
51791         * modules/sys_time (sys/time.h): Likewise.
51792         * modules/time (time.h): Likewise.
51793         * modules/wchar (wchar.h): Likewise.
51794         * modules/wctype (wtype.h): Likewise.
51795
51796 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51797
51798         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51799
51800 2007-05-13  Bruno Haible  <bruno@clisp.org>
51801
51802         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51803         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51804         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51805         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51806         (gl_PREREQ_STRTOK_R): Don't require it here.
51807
51808 2007-05-13  Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51811         when used in C++ mode.
51812
51813 2007-05-12  Bruno Haible  <bruno@clisp.org>
51814
51815         * lib/linebuffer.h: Tweak doc.
51816         * lib/linebuffer.c: Likewise.
51817
51818 2007-05-12  James Youngman  <jay@gnu.org>
51819
51820         * lib/linebuffer.c (readlinebuffer_delim): New function,
51821         like readlinebuffer, but use a caller-specified delimiter.
51822         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51823         as the delimiter.
51824         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51825
51826 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51827
51828         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51829         * modules/openat (Files): Remove openat-die.c.
51830         (Depends-on): Add openat-die.
51831         * modules/openat-die: New module.
51832
51833 2007-05-06  Bruno Haible  <bruno@clisp.org>
51834
51835         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51836         Update with info about Cygwin.
51837         * doc/functions/fprintf.texi: Update.
51838         * doc/functions/printf.texi: Update.
51839         * doc/functions/snprintf.texi: Update.
51840         * doc/functions/sprintf.texi: Update.
51841         * doc/functions/vfprintf.texi: Update.
51842         * doc/functions/vprintf.texi: Update.
51843         * doc/functions/vsnprintf.texi: Update.
51844         * doc/functions/vsprintf.texi: Update.
51845         Reported by Eric Blake.
51846
51847 2007-05-06  Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51850         padding ourselves for the floating-point directives.
51851         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51854         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51855         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51856         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51860         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51862         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51863         * tests/test-snprintf-posix.h (test_function): Also check the width
51864         and some flags in the %f directive.
51865         * tests/test-sprintf-posix.h (test_function): Likewise.
51866         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51867         * tests/test-vasprintf-posix.c (test_function): Likewise.
51868         * doc/functions/fprintf.texi: Update.
51869         * doc/functions/printf.texi: Update.
51870         * doc/functions/snprintf.texi: Update.
51871         * doc/functions/sprintf.texi: Update.
51872         * doc/functions/vfprintf.texi: Update.
51873         * doc/functions/vprintf.texi: Update.
51874         * doc/functions/vsnprintf.texi: Update.
51875         * doc/functions/vsprintf.texi: Update.
51876
51877 2007-05-06  Bruno Haible  <bruno@clisp.org>
51878
51879         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51880         pass the ' flag character to sprintf or snprintf.
51881         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51884         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51885         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
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 grouping
51894         flag.
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-01  Bruno Haible  <bruno@clisp.org>
51908
51909         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51910
51911 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51912
51913         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51914         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51915
51916 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51917
51918         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51919         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51921
51922 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51923
51924         * lib/argp-help.c (struct hol_entry): New member `ord'.
51925         (HOL_ENTRY_PTRCMP): Use ord for comparison
51926         (hol_sort): Initialize ord.
51927
51928 2007-05-01  Bruno Haible  <bruno@clisp.org>
51929
51930         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51931         Reported by Eric Blake.
51932         * doc/gnulib.texi (Function Substitutes): Update.
51933
51934 2007-05-01  Bruno Haible  <bruno@clisp.org>
51935
51936         * doc/functions.texi: Remove file, now redundant through
51937         doc/functions/*.texi.
51938
51939 2007-05-01  Bruno Haible  <bruno@clisp.org>
51940
51941         * modules/argp (Depends-on): Add sleep.
51942
51943 2007-05-01  Bruno Haible  <bruno@clisp.org>
51944
51945         * modules/sleep-tests: New file.
51946         * tests/test-sleep.c: New file.
51947
51948         * modules/sleep: New file.
51949         * lib/sleep.c: New file.
51950         * m4/sleep.m4: New file.
51951         * lib/unistd_.h (sleep): New declaration.
51952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51953         HAVE_SLEEP.
51954         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51955         * doc/functions/sleep.texi: Document the sleep module.
51956
51957 2007-05-01  Bruno Haible  <bruno@clisp.org>
51958
51959         * lib/sigprocmask.h: Remove file.
51960         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51961         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51962         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51963         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51964         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51965         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51966         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51967         HAVE_SIGSET_T as a shell variable.
51968         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51969         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51970         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51971         (Depends-on): Add signal. Remove verify.
51972         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51973         (Include): Mention <signal.h> instead of sigprocmask.h.
51974         * NEWS: Mention the change.
51975         * lib/fatal-signal.c: Don't include sigprocmask.h.
51976
51977 2007-05-01  Bruno Haible  <bruno@clisp.org>
51978
51979         * modules/signal: New file.
51980         * lib/signal_.h: New file.
51981         * m4/signal_h.m4: New file.
51982
51983 2007-05-01  Bruno Haible  <bruno@clisp.org>
51984
51985         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51986         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51987         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51988         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51989
51990 2007-05-01  Bruno Haible  <bruno@clisp.org>
51991
51992         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51993         configure time.
51994         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51995         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51996         * modules/sys_stat (Makefile.am): Substitute their values into
51997         sys/stat.h.
51998
51999 2007-05-01  Bruno Haible  <bruno@clisp.org>
52000
52001         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52002         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52003         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52004
52005 2007-05-01  Bruno Haible  <bruno@clisp.org>
52006
52007         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52008         'assert' module here.
52009
52010 2007-05-01  Bruno Haible  <bruno@clisp.org>
52011
52012         * doc/functions/*.texi: New files.
52013         * doc/functions/google-ranking.txt: New file.
52014         * doc/gnulib.texi (Function Substitutes): New chapter.
52015         (ctime, inet_ntoa): Remove sections.
52016         * doc/ctime.texi: Remove file.
52017         * doc/inet_ntoa.texi: Remove file.
52018         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52019         dependencies.
52020         (%.info): New rule, specifying a --reference-limit.
52021
52022 2007-05-01  Bruno Haible  <bruno@clisp.org>
52023
52024         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52025
52026 2007-05-01  Bruno Haible  <bruno@clisp.org>
52027
52028         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52029         the portability of 'mkdir' to mingw systems.
52030
52031 2007-05-01  Bruno Haible  <bruno@clisp.org>
52032
52033         * doc/headers/google-ranking.txt: New file.
52034
52035 2007-04-30  Eric Blake  <ebb9@byu.net>
52036
52037         Prefer fseeko to fseek.
52038         * modules/getpass (Depends-on): Add fseeko.
52039         * lib/getpass.c (getpass): Use fseeko, not fseek.
52040
52041 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52042
52043         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52044         assumes the sorting is stable, while most qsort implementations
52045         are not.  Use argument addresses to ensure they never compare as
52046         equal.
52047
52048         * tests/test-argp-2.sh (usage-indent test): Fix output
52049         (func_compare): Restore diff options
52050         * tests/test-argp.c: Restore #include "progname.h"
52051
52052 2007-04-29  Bruno Haible  <bruno@clisp.org>
52053
52054         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52056         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52057         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52058         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52059         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52060         (TESTS, check_PROGRAMS): Add test-snprintf.
52061         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52062         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52063         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52064         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52065         assertions that fail on HP-UX, OSF/1, or IRIX.
52066         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52067
52068 2007-04-29  Bruno Haible  <bruno@clisp.org>
52069
52070         * MODULES.html.sh (posix_functions): Remove 'contents'.
52071
52072 2007-04-29  Karl Berry  <karl@gnu.org>
52073
52074         * config/srclist.txt (gendocs_template_min): new entry.
52075
52076 2007-04-29  Bruno Haible  <bruno@clisp.org>
52077
52078         Work around fpurge bug on BSD systems.
52079         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52080         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52081         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52082         fpurge to rpl_fpurge if the system already has this function.
52083         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52084         the case where the system already has this function. Correct invariants
52085         on BSD systems.
52086         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52087         BSD systems.
52088
52089 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52090
52091         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52092         proposed by Sven Verdoolaege.
52093
52094         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52095         options.
52096         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52097         (usage and help tests): Update
52098
52099 2007-04-29  Bruno Haible  <bruno@clisp.org>
52100
52101         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52102         Print more information in case of failure. Disable a test on BeOS.
52103
52104 2007-04-29  Bruno Haible  <bruno@clisp.org>
52105
52106         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52107         This helps debugging on systems on which no gdb is available.
52108
52109 2007-04-29  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/freading.h: Improve comments.
52112         * lib/fwriting.h: Likewise.
52113         * tests/test-freading.c (main): Don't check freading immediately after
52114         repositioning. Needed for glibc.
52115
52116 2007-04-29  Bruno Haible  <bruno@clisp.org>
52117
52118         * lib/freading.c (freading): Trivial simplification.
52119
52120 2007-04-28  Bruno Haible  <bruno@clisp.org>
52121
52122         * tests/test-fwriting.c (main): Also test the interaction between
52123         fflush and fwriting.
52124         * modules/fwriting-tests (Depends-on): Add fflush.
52125
52126         * tests/test-freading.c (main): Also test the interaction between
52127         fflush and freading.
52128         * modules/freading-tests (Depends-on): Add fflush.
52129
52130 2007-04-28  Bruno Haible  <bruno@clisp.org>
52131
52132         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52133         fseeko and ftello.
52134         Suggested by Eric Blake.
52135
52136 2007-04-28  Jim Meyering  <jim@meyering.net>
52137
52138         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52139         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52140         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52141
52142 2007-04-27  Eric Blake  <ebb9@byu.net>
52143
52144         * doc/headers/assert.texi (assert.h): Document assert module use.
52145
52146 2007-04-27  Bruno Haible  <bruno@clisp.org>
52147
52148         * doc/headers/*.texi: New files.
52149         * doc/gnulib.texi (Header File Substitutes): New chapter.
52150         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52151         dependencies.
52152         (standards.info ,standards.html, standards.dvi): Update dependencies.
52153         (mostlyclean, clean): New targets.
52154
52155 2007-04-27  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52158         * modules/sysexits (Files, Makefile.am): Update.
52159
52160         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52161         * modules/sys_socket (Files, Makefile.am): Update.
52162
52163         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52164         * modules/sys_stat (Files, Makefile.am): Update.
52165
52166 2007-04-27  Eric Blake  <ebb9@byu.net>
52167
52168         * lib/freading.h: Improve comments.
52169         * lib/fwriting.h: Likewise.
52170         * lib/fflush.c: Likewise.
52171
52172         Fix closein for mingw.
52173         * modules/closein-tests: Add tests for closein.
52174         * tests/test-closein.c: New file.
52175         * tests/test-closein.sh: Likewise.
52176         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52177         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52178
52179 2007-04-27  Bruno Haible  <bruno@clisp.org>
52180
52181         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52182         version is < 6.
52183         * lib/math_.h [__DECC]: Likewise.
52184         * lib/stdio_.h [__DECC]: Likewise.
52185         * lib/stdlib_.h [__DECC]: Likewise.
52186         * lib/string_.h [__DECC]: Likewise.
52187         * lib/time_.h [__DECC]: Likewise.
52188         * lib/wchar_.h [__DECC]: Likewise.
52189         * lib/wctype_.h [__DECC]: Likewise.
52190
52191 2007-04-27  Bruno Haible  <bruno@clisp.org>
52192
52193         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52194
52195 2007-04-27  Bruno Haible  <bruno@clisp.org>
52196
52197         * lib/fflush.c: Add comments.
52198         * modules/fpurge-tests (Depends-on): Add fflush.
52199         * modules/freadable-tests (Depends-on): Likewise.
52200         * modules/fwritable-tests (Depends-on): Likewise.
52201
52202 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52203
52204         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52205         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52206         Report by Bruno Haible <bruno@clisp.org>.
52207
52208 2007-04-26  Eric Blake  <ebb9@byu.net>
52209
52210         Fix fflush on mingw.
52211         * modules/fflush (Depends-on): Add freading.
52212         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52213         but unread data.
52214
52215 2007-04-26  Eric Blake  <ebb9@byu.net>
52216         and Bruno Haible  <bruno@clisp.org>
52217
52218         Implement freading and fwriting.
52219         * lib/freading.c: New file.
52220         * lib/freading.h: Likewise.
52221         * m4/freading.m4: Likewise.
52222         * modules/freading: Likewise.
52223         * modules/freading-tests: Likewise.
52224         * tests/test-freading.c: Likewise.
52225         * lib/fwriting.c: New file.
52226         * lib/fwriting.h: Likewise.
52227         * m4/fwriting.m4: Likewise.
52228         * modules/fwriting: Likewise.
52229         * modules/fwriting-tests: Likewise.
52230         * tests/test-fwriting.c: Likewise.
52231         * MODULES.html.sh (File stream based Input/Output): Mention them.
52232
52233 2007-04-26  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52236         'long' when we assume it.
52237         Suggested by Eric Blake.
52238
52239 2007-04-26  Bruno Haible  <bruno@clisp.org>
52240
52241         Ensure fseeko, ftello are declared on glibc systems.
52242         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52243         * modules/fseeko (configure.ac-early): Likewise.
52244         * modules/ftello (configure.ac-early): Likewise.
52245         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52246         AC_FUNC_FSEEKO for this.
52247         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52248         (gl_CHECK_FSEEKO): Remove macro.
52249
52250 2007-04-26  Bruno Haible  <bruno@clisp.org>
52251
52252         * tests/test-fflush.c (main): Also check the ftell result after
52253         fflush and fseek/fseeko.
52254         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52255         file descriptor position cache in the stream.
52256         * lib/fseeko.c (rpl_fseeko): Likewise.
52257
52258 2007-04-26  Bruno Haible  <bruno@clisp.org>
52259
52260         * modules/fflush-tests (Depends-on): Add fseeko.
52261
52262 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52263             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52264
52265         * lib/argz_.h: ensure error_t definition is obtained in same
52266         mechanism system argz.h would have.
52267         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52268         argz facilities are known bad.  Err on the side of caution if
52269         cross-compiling.
52270
52271 2007-04-25  Eric Blake  <ebb9@byu.net>
52272
52273         * lib/fpurge.c (includes): Use stdlib.h for free.
52274         * tests/test-fflush.c (main): Also test fflush-fseeko.
52275
52276 2007-04-25  Bruno Haible  <bruno@clisp.org>
52277
52278         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52279         * lib/fseeko.c: New file.
52280         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52281         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52282         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52283         gl_FUNC_FSEEKO.
52284         (gl_FUNC_FSEEKO): Invoke it.
52285         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52286         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52287         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52288
52289 2007-04-25  Bruno Haible  <bruno@clisp.org>
52290
52291         * modules/fflush (Depends-on): Add ftello.
52292
52293 2007-04-25  Bruno Haible  <bruno@clisp.org>
52294
52295         * modules/ftello-tests: New file.
52296         * tests/test-ftello.c: New file.
52297
52298         * modules/ftello: New file.
52299         * m4/ftello.m4: New file.
52300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52301         HAVE_FTELLO.
52302         * lib/stdio_.h (ftello): New declaration.
52303         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52304         HAVE_FTELLO.
52305
52306 2007-04-25  Bruno Haible  <bruno@clisp.org>
52307
52308         * modules/fseeko-tests: New file.
52309         * tests/test-fseeko.c: New file.
52310
52311         * modules/fseeko: New file.
52312         * m4/fseeko.m4: New file.
52313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52314         HAVE_FSEEKO.
52315         * lib/stdio_.h (fseeko): New declaration.
52316         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52317         HAVE_FSEEKO.
52318
52319 2007-04-25  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52322
52323 2007-04-25  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52326         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52327         * tests/test-unistd.c: Likewise.
52328         * tests/test-fcntl.c: Likewise.
52329
52330 2007-04-23  Eric Blake  <ebb9@byu.net>
52331
52332         * lib/fflush.c: Fix missing include.
52333         Reported by Bruno Haible.
52334
52335 2007-04-23  Bruno Haible  <bruno@clisp.org>
52336
52337         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52338         Reported by Eric Blake.
52339
52340 2007-04-23  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52343
52344 2007-04-23  Bruno Haible  <bruno@clisp.org>
52345
52346         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52347
52348 2007-04-23  Bruno Haible  <bruno@clisp.org>
52349
52350         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52351         Needed on HP-UX 11.
52352
52353 2007-04-16  Eric Blake  <ebb9@byu.net>
52354
52355         Make fflush rely on fpurge.
52356         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52357         open coding all variants.
52358         * modules/fflush (Depends-on): Add fpurge and unistd.
52359         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52360         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52361
52362         Fix --with-tests compilation on cygwin.
52363         * modules/argmatch-tests (Makefile.am): List gnulib library first
52364         in LDADD.
52365         * modules/argp-tests (Makefile.am): Likewise.
52366         * modules/array-list-tests (Makefile.am): Likewise.
52367         * modules/array-oset-tests (Makefile.am): Likewise.
52368         * modules/avltree-list-tests (Makefile.am): Likewise.
52369         * modules/avltree-oset-tests (Makefile.am): Likewise.
52370         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52371         * modules/carray-list-tests (Makefile.am): Likewise.
52372         * modules/dirname-tests (Makefile.am): Likewise.
52373         * modules/frexp-tests (Makefile.am): Likewise.
52374         * modules/isnanl-tests (Makefile.am): Likewise.
52375         * modules/linked-list-tests (Makefile.am): Likewise.
52376         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52377         * modules/lock-tests (Makefile.am): Likewise.
52378         * modules/rbtree-list-tests (Makefile.am): Likewise.
52379         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52380         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52381         * modules/tls-tests (Makefile.am): Likewise.
52382         * modules/tsearch-tests (Makefile.am): Likewise.
52383         * modules/xvasprintf-tests (Makefile.am): Likewise.
52384
52385         Fix fpurge for cygwin.
52386         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52387         value.
52388         * modules/fpurge-tests (Depends-on): Clean up trash.
52389
52390 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52391
52392         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52393
52394         * m4/autobuild.m4: Re-indent.
52395
52396 2007-04-13  Bruno Haible  <bruno@clisp.org>
52397
52398         * modules/fpurge-tests: New file.
52399         * tests/test-fpurge.c: New file.
52400
52401         * modules/fpurge: New file.
52402         * lib/fpurge.h: New file.
52403         * lib/fpurge.c: New file.
52404         * m4/fpurge.m4: New file.
52405
52406 2007-04-13  Bruno Haible  <bruno@clisp.org>
52407
52408         * modules/fbufmode-tests: New file.
52409         * tests/test-fbufmode.c: New file.
52410
52411         * modules/fbufmode: New file.
52412         * lib/fbufmode.h: New file.
52413         * lib/fbufmode.c: New file.
52414         * m4/fbufmode.m4: New file.
52415
52416 2007-04-13  Bruno Haible  <bruno@clisp.org>
52417
52418         * modules/fwritable-tests: New file.
52419         * tests/test-fwritable.c: New file.
52420
52421         * modules/fwritable: New file.
52422         * lib/fwritable.h: New file.
52423         * lib/fwritable.c: New file.
52424         * m4/fwritable.m4: New file.
52425
52426 2007-04-13  Bruno Haible  <bruno@clisp.org>
52427
52428         * modules/freadable-tests: New file.
52429         * tests/test-freadable.c: New file.
52430
52431         * modules/freadable: New file.
52432         * lib/freadable.h: New file.
52433         * lib/freadable.c: New file.
52434         * m4/freadable.m4: New file.
52435
52436 2007-04-13  Bruno Haible  <bruno@clisp.org>
52437
52438         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52439         MOSTLYCLEANFILES.
52440
52441 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52444         gzip bootstrap.conf to avoid dragging in i18n machinery.
52445         (gnulib_tool_option): Use it.
52446
52447 2007-04-13  Bruno Haible  <bruno@clisp.org>
52448
52449         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52450         %F directives.
52451         * tests/test-vasprintf-posix.c (test_function): Likewise.
52452         * tests/test-snprintf-posix.h (test_function): Likewise.
52453         * tests/test-sprintf-posix.h (test_function): Likewise.
52454         * tests/test-fprintf-posix.h (test_function): Likewise.
52455         * tests/test-printf-posix.h (test_function): Likewise.
52456         * tests/test-fprintf-posix.out: Likewise.
52457
52458 2007-04-13  Bruno Haible  <bruno@clisp.org>
52459
52460         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52461         * modules/tls-tests (configure.ac): Likewise.
52462         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52463
52464 2007-04-13  Bruno Haible  <bruno@clisp.org>
52465
52466         * lib/tls.c (glthread_tls_get): Fix return type.
52467         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52468
52469 2007-04-12  Eric Blake  <ebb9@byu.net>
52470
52471         * modules/gettime (Depends-on): Remove gettime.
52472         Reported by Dmitry V. Levin.
52473
52474 2007-04-12  Bruno Haible  <bruno@clisp.org>
52475
52476         * modules/fflush (Include): Mention <stdio.h>.
52477         * modules/strtoimax (Include): Mention <inttypes.h>.
52478         * modules/strtoumax (Include): Likewise.
52479
52480 2007-04-12  Eric Blake  <ebb9@byu.net>
52481
52482         * .cvsignore: New file.
52483         * .gitignore: Likewise.
52484
52485 2007-04-12  Bruno Haible  <bruno@clisp.org>
52486
52487         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52488         not before, since $(LDADD) often contains libgnu.a.
52489         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52490         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52491         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52492         Needed on Cygwin.
52493
52494 2007-04-12  Eric Blake  <ebb9@byu.net>
52495
52496         Work around glibc's failure to flush stdin on fclose.
52497         * lib/closein.c (close_stdin): Flush stdin before closing.
52498
52499         Work around glibc's failure to reset seekable stdin on exit.
52500         * modules/closein: New module.
52501         * lib/closein.c: New file.
52502         * lib/closein.h: Likewise.
52503         * m4/closein.m4: Likewise.
52504         * MODULES.html.sh (File stream based Input/Output): Document it.
52505
52506 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52507
52508         * gnulib-tool: Rename generated 'autobuild' script to
52509         'do-autobuild' in --create-megatestdir output.
52510
52511         * doc/gnulib.texi (Build robot for gnulib): Fix.
52512
52513 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52514
52515         * modules/sysexits (Depends-on): Add absolute-header.
52516
52517 2007-04-12  Eric Blake  <ebb9@byu.net>
52518
52519         No need to preserve errno on success.
52520         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52521         Reported by Bruno Haible.
52522
52523 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52524
52525         * MODULES.html.sh (Support for maintaining and releasing
52526         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52527
52528 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52529
52530         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52531
52532 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52533
52534         * modules/autobuild: New module.
52535
52536         * m4/autobuild.m4: New file.
52537
52538 2007-04-11  Bruno Haible  <bruno@clisp.org>
52539
52540         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52541         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52544         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52545         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52546         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52548         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52549         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52551         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52552         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52554         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52555         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52557         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52558         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52560         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52561         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52563         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52564         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52566         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52567         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52568         Reported by Eric Blake.
52569
52570 2007-04-11  Bruno Haible  <bruno@clisp.org>
52571
52572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52573
52574 2007-04-10  Bruno Haible  <bruno@clisp.org>
52575
52576         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52577         for NaN and Infinity. Needed on FreeBSD 6.1.
52578         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52579         regarding results for "%010a" of Infinity and NaN.
52580         * tests/test-vasprintf-posix.c (test_function): Likewise.
52581         * tests/test-snprintf-posix.h (test_function): Likewise.
52582         * tests/test-sprintf-posix.h (test_function): Likewise.
52583         * tests/test-fprintf-posix.h (test_function): Likewise.
52584         * tests/test-printf-posix.h (test_function): Likewise.
52585         * tests/test-fprintf-posix.out: Likewise.
52586
52587 2007-04-10  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/locale-tests: New file.
52590         * tests/test-locale.c: New file.
52591
52592         * modules/locale: New file.
52593         * lib/locale_.h: New file.
52594         * m4/locale_h.m4: New file.
52595
52596 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52597             Bruno Haible  <bruno@clisp.org>
52598
52599         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52600         be determined, test for availability of the copysignf, copysign,
52601         copysignl functions.
52602         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52603         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52604         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52605
52606 2007-04-09  Eric Blake  <ebb9@byu.net>
52607
52608         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52609         * modules/stdio (Makefile.am): Support fflush.
52610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52611         * modules/fflush: New file.
52612         * lib/fflush.c: Likewise.
52613         * m4/fflush.m4: Likewise.
52614         * modules/fflush-tests: New test.
52615         * tests/test-fflush.c: Likewise.
52616         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52617
52618 2007-04-06  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52621         (VASNPRINTF): Use signbit for faster determination whether to print a
52622         minus sign.
52623         * modules/vasnprintf (Files): Remove lib/float+.h.
52624         * modules/fprintf-posix (Depends-on): Add signbit.
52625         * modules/snprintf-posix (Depends-on): Likewise.
52626         * modules/sprintf-posix (Depends-on): Likewise.
52627         * modules/vasnprintf-posix (Depends-on): Likewise.
52628         * modules/vasprintf-posix (Depends-on): Likewise.
52629         * modules/vfprintf-posix (Depends-on): Likewise.
52630         * modules/vsnprintf-posix (Depends-on): Likewise.
52631         * modules/vsprintf-posix (Depends-on): Likewise.
52632
52633 2007-04-06  Bruno Haible  <bruno@clisp.org>
52634
52635         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52636         * tests/test-frexpl.c (main): Likewise.
52637         * tests/test-ldexpl.c (main): Likewise.
52638         * modules/frexp-tests (Depends-on): Add signbit.
52639         * modules/frexpl-tests (Depdends-on): Likewise.
52640         * modules/ldexpl-tests (Depdends-on): Likewise.
52641
52642 2007-04-06  Bruno Haible  <bruno@clisp.org>
52643
52644         * modules/signbit-tests: New file.
52645         * tests/test-signbit.c: New file.
52646
52647         * modules/signbit: New file.
52648         * lib/signbitf.c: New file.
52649         * lib/signbitd.c: New file.
52650         * lib/signbitl.c: New file.
52651         * m4/signbit.m4: New file.
52652         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52653         (signbit): New macro.
52654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52655         REPLACE_SIGNBIT.
52656         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52657         REPLACE_FREXPL into math.h.
52658
52659 2007-04-06  Bruno Haible  <bruno@clisp.org>
52660
52661         * modules/isnanf-nolibm-tests: New file.
52662         * tests/test-isnanf.c: New file.
52663
52664         * modules/isnanf-nolibm: New file.
52665         * lib/isnanf.h: New file.
52666         * lib/isnanf.c: New file.
52667         * lib/isnan.c: Consider the USE_FLOAT macro.
52668         * m4/isnanf.m4: New file.
52669
52670 2007-04-06  Bruno Haible  <bruno@clisp.org>
52671
52672         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52673         (Link): New section.
52674
52675         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52676
52677 2007-04-06  Bruno Haible  <bruno@clisp.org>
52678
52679         Assume the 'long double' type.
52680         * m4/longdouble.m4: Remove file.
52681         * config/srclist.txt: Don't mention longdouble.m4.
52682         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52683         * lib/float+.h: Likewise.
52684         * lib/frexp.c: Likewise.
52685         * lib/printf-args.h: Likewise.
52686         * lib/printf-args.c: Likewise.
52687         * lib/printf-frexp.c: Likewise.
52688         * lib/printf-parse.c: Likewise.
52689         * lib/vasnprintf.c: Likewise.
52690         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52691         * m4/intl.m4: Likewise.
52692         * m4/isnanl.m4: Likewise.
52693         * m4/printf.m4: Likewise.
52694         * m4/printf-frexpl.m4: Likewise.
52695         * m4/vasnprintf.m4: Likewise.
52696         * modules/allocsa (Files): Remove m4/longdouble.m4.
52697         * modules/gettext (Files): Likewise.
52698         * modules/relocatable-prog-wrapper (Files): Likewise.
52699         * modules/vasnprintf (Files): Likewise.
52700         * modules/isnanl (Files): Likewise.
52701         (Include): Simplify.
52702         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52703         (Include): Simplify.
52704         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52705         (Include): Simplify.
52706         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52707         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52708         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52709         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52710         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52711         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52712         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52713         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52714         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52715         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52716         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52717         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52718         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52719         * tests/test-isnanl.c: Likewise.
52720         * tests/test-snprintf-posix.h: Likewise.
52721         * tests/test-sprintf-posix.h: Likewise.
52722         * tests/test-vasnprintf-posix.c: Likewise.
52723         * tests/test-vasnprintf-posix2.c: Likewise.
52724         * tests/test-vasprintf-posix.c: Likewise.
52725
52726 2007-04-06  Bruno Haible  <bruno@clisp.org>
52727
52728         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52729         * lib/math_.h [__DECC]: Include the overridden include file through
52730         #include_next, outside the double-inclusion guard.
52731         * lib/stdio_.h [__DECC]: Likewise.
52732         * lib/stdlib_.h [__DECC]: Likewise.
52733         * lib/string_.h [__DECC]: Likewise.
52734         * lib/time_.h [__DECC]: Likewise.
52735         * lib/wchar_.h [__DECC]: Likewise.
52736         * lib/wctype_.h [__DECC]: Likewise.
52737         * lib/inttypes_.h [__DECC]: Likewise.
52738         Reported by Albert Chin <china@thewrittenword.com> in
52739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52740
52741 2007-04-04  Eric Blake  <ebb9@byu.net>
52742
52743         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52744         1.5.x.
52745
52746 2007-04-04  Bruno Haible  <bruno@clisp.org>
52747
52748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52749         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52750
52751 2007-04-04  Bruno Haible  <bruno@clisp.org>
52752
52753         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52754         results for "%010a" of Infinity and NaN.
52755         * tests/test-vasprintf-posix.c (test_function): Likewise.
52756         * tests/test-snprintf-posix.h (test_function): Likewise.
52757         * tests/test-sprintf-posix.h (test_function): Likewise.
52758         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52759         * tests/test-printf-posix.h (test_function): Likewise.
52760         * tests/test-fprintf-posix.out: Update.
52761         Needed for FreeBSD 6.1.
52762
52763 2007-04-04  Bruno Haible  <bruno@clisp.org>
52764
52765         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52766         directly used by the gnulib modules nor by gnulib-tool.
52767
52768 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * DEPENDENCIES: Give overall description of version dependency
52771         desirability.  Use more-typical names for apps.
52772         Add shell, coreutils, diffutils, grep, tar, gzip.
52773
52774 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52775
52776         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52777
52778 2007-04-04  Karl Berry  <karl@gnu.org>
52779
52780         * MODULES.html.sh (func_module): missing '.
52781
52782 2007-04-03  Bruno Haible  <bruno@clisp.org>
52783
52784         * modules/argmatch-tests (Makefile.am): New variable
52785         test_argmatch_LDADD.
52786         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52787         * modules/array-list-tests (Makefile.am): New variable
52788         test_array_list_LDADD.
52789         * modules/array-oset-tests (Makefile.am): New variable
52790         test_array_oset_LDADD.
52791         * modules/avltree-list-tests (Makefile.am): New variable
52792         test_avltree_list_LDADD.
52793         * modules/avltree-oset-tests (Makefile.am): New variable
52794         test_avltree_oset_LDADD.
52795         * modules/avltreehash-list-tests (Makefile.am): New variable
52796         test_avltreehash_list_LDADD.
52797         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52798         test_canonicalize_lgpl_LDADD.
52799         * modules/carray-list-tests (Makefile.am): New variable
52800         test_carray_list_LDADD.
52801         * modules/dirname-tests (Makefile.am): New variable
52802         test_dirname_LDADD.
52803         * modules/linked-list-tests (Makefile.am): New variable
52804         test_linked_list_LDADD.
52805         * modules/linkedhash-list-tests (Makefile.am): New variable
52806         test_linkedhash_list_LDADD.
52807         * modules/rbtree-list-tests (Makefile.am): New variable
52808         test_rbtree_list_LDADD.
52809         * modules/rbtree-oset-tests (Makefile.am): New variable
52810         test_rbtree_oset_LDADD.
52811         * modules/rbtreehash-list-tests (Makefile.am): New variable
52812         test_rbtreehash_list_LDADD.
52813         * modules/xvasprintf-tests (Makefile.am): New variable
52814         test_xvasprintf_LDADD.
52815         Reported by Eric Blake.
52816
52817 2007-04-03  Eric Blake  <ebb9@byu.net>
52818
52819         * DEPENDENCIES: Weaken m4 requirements.
52820
52821 2007-04-03  Bruno Haible  <bruno@clisp.org>
52822
52823         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52824         * modules/isnanl-tests (configure.ac): Likewise.
52825
52826 2007-04-03  Ben Pfaff  <blp@gnu.org>
52827
52828         * modules/iconv_open: Add $(srcdir)/ to source directory
52829         references in Makefile fragments that call gperf, to fix VPATH
52830         builds.
52831
52832 2007-04-03  Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52835         * lib/ldexpl.c: Undo last change.
52836
52837 2007-04-03  Bruno Haible  <bruno@clisp.org>
52838
52839         * modules/printf-frexpl (Depends-on): Undo last change.
52840         (Files): Add m4/ldexpl.m4.
52841
52842 2007-04-03  Bruno Haible  <bruno@clisp.org>
52843
52844         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52845         * modules/isnanl (Link): New section.
52846
52847         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52848         * modules/frexp (Link): New section.
52849
52850         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52851         * modules/frexpl (Link): New section.
52852
52853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52854         * modules/ldexpl (Link): New section.
52855
52856 2007-04-03  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/TEMPLATE-EXTENDED: New file.
52859         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52860
52861 2007-04-03  Bruno Haible  <bruno@clisp.org>
52862
52863         * DEPENDENCIES: New file.
52864         Suggested by Simon Josefsson.
52865
52866 2007-04-03  Bruno Haible  <bruno@clisp.org>
52867
52868         * doc/gnulib.texi: Escape @.
52869
52870 2007-04-03  James Youngman  <jay@gnu.org>
52871         and Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52874         birthtime on all systems that have birthtime, not just those which
52875         use st_birthtimensec rather than st_birthtim.  Putting zero in
52876         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52877         that the birth time is not available for files on an NFS mount.
52878
52879 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52880
52881         * modules/memxor: Move back from crypto/, suggested by Bruno.
52882         * modules/crypto/hmac-sha1: Fix memxor dependency.
52883
52884         * modules/crypto/gc: Moved from ../.
52885
52886 2007-04-02  Eric Blake  <ebb9@byu.net>
52887
52888         * lib/ldexpl.c (includes): Avoid libm.
52889
52890         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52891
52892 2007-04-02  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52895         on IRIX.
52896
52897 2007-04-02  Bruno Haible  <bruno@clisp.org>
52898
52899         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52900         x86 or x86_64 platforms running MacOS X.
52901         Reported by Ryan Schmidt <@ryandesign.com>.
52902
52903 2007-04-02  Bruno Haible  <bruno@clisp.org>
52904
52905         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52906         i386.
52907
52908 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52909
52910         * modules/crypto/arcfour: Moved from ../.
52911         * modules/crypto/arcfour-tests: Moved from ../.
52912         * modules/crypto/arctwo: Moved from ../.
52913         * modules/crypto/arctwo-tests: Moved from ../.
52914         * modules/crypto/des: Moved from ../.
52915         * modules/crypto/des-tests: Moved from ../.
52916         * modules/crypto/gc-arcfour: Moved from ../.
52917         * modules/crypto/gc-arcfour-tests: Moved from ../.
52918         * modules/crypto/gc-arctwo: Moved from ../.
52919         * modules/crypto/gc-arctwo-tests: Moved from ../.
52920         * modules/crypto/gc-des: Moved from ../.
52921         * modules/crypto/gc-des-tests: Moved from ../.
52922         * modules/crypto/gc-hmac-md5: Moved from ../.
52923         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52924         * modules/crypto/gc-hmac-sha1: Moved from ../.
52925         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52926         * modules/crypto/gc-md2: Moved from ../.
52927         * modules/crypto/gc-md2-tests: Moved from ../.
52928         * modules/crypto/gc-md4: Moved from ../.
52929         * modules/crypto/gc-md4-tests: Moved from ../.
52930         * modules/crypto/gc-md5: Moved from ../.
52931         * modules/crypto/gc-md5-tests: Moved from ../.
52932         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52933         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52934         * modules/crypto/gc-random: Moved from ../.
52935         * modules/crypto/gc-rijndael: Moved from ../.
52936         * modules/crypto/gc-rijndael-tests: Moved from ../.
52937         * modules/crypto/gc-sha1: Moved from ../.
52938         * modules/crypto/gc-sha1-tests: Moved from ../.
52939         * modules/crypto/gc-tests: Moved from ../.
52940         * modules/crypto/hmac-md5: Moved from ../.
52941         * modules/crypto/hmac-md5-tests: Moved from ../.
52942         * modules/crypto/hmac-sha1: Moved from ../.
52943         * modules/crypto/hmac-sha1-tests: Moved from ../.
52944         * modules/crypto/md2: Moved from ../.
52945         * modules/crypto/md2-tests: Moved from ../.
52946         * modules/crypto/md4: Moved from ../.
52947         * modules/crypto/md4-tests: Moved from ../.
52948         * modules/crypto/md5: Moved from ../.
52949         * modules/crypto/md5-tests: Moved from ../.
52950         * modules/crypto/memxor: Moved from ../.
52951         * modules/crypto/rijndael: Moved from ../.
52952         * modules/crypto/rijndael-tests: Moved from ../.
52953         * modules/crypto/sha1: Moved from ../.
52954
52955 2007-03-30  James Youngman  <jay@gnu.org>
52956
52957         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52958         rename() to change the ctime of a file (because ctime is unaffected
52959         by rename on jfs2 on AIX 5.1).
52960         (main): Start by doing cleanup, in case a previous run failed leaving
52961         test files behind.
52962
52963 2007-03-31  Bruno Haible  <bruno@clisp.org>
52964
52965         Support old proprietary implementations of iconv.
52966         * modules/iconv_open: New file.
52967         * lib/iconv_.h: New file.
52968         * m4/iconv_h.m4: New file.
52969         * lib/iconv_open.c: New file.
52970         * lib/iconv_open-aix.gperf: New file.
52971         * lib/iconv_open-hpux.gperf: New file.
52972         * lib/iconv_open-irix.gperf: New file.
52973         * lib/iconv_open-osf.gperf: New file.
52974         * m4/iconv_open.m4: New file.
52975         * modules/linebreak (Depends-on): Add iconv_open.
52976         * modules/striconv (Depends-on): Likewise.
52977         * modules/striconveh (Depends-on): Likewise.
52978         * modules/unicodeio (Depends-on): Likewise.
52979         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52980         (iconv_t)(-1).
52981         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52982         conversion if cd is (iconv_t)(-1).
52983         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52984         is not possible.
52985
52986 2007-03-31  Bruno Haible  <bruno@clisp.org>
52987
52988         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52989         work on Solaris either. Protect also second use of "autodetect_jp".
52990
52991 2007-03-31  Bruno Haible  <bruno@clisp.org>
52992
52993         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52994         the function is not present.
52995
52996 2007-03-31  Bruno Haible  <bruno@clisp.org>
52997
52998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52999         the function is not present.
53000
53001 2007-03-31  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53004         a bug in HP-UX iconv_open().
53005
53006 2007-03-31  Bruno Haible  <bruno@clisp.org>
53007
53008         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53009         (Mathematics <math.h>): New section, add fpieee.
53010         (Input/output <stdio.h>): Add fseterr.
53011         (Mathematics <math.h>): New section, add printf-frexp.
53012         (Container data structures): Add sublist.
53013         (Core language properties): Add fpucw, inline.
53014         (Functions for greatest-width integer types <inttypes.h>): Add
53015         imaxabs, imaxdiv, inttypes.
53016         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53017         isnanl-nolibm, ldexp.
53018         (Mathematics <math.h>): New section, add printf-frexpl.
53019         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53020         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53021         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53022         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53023         (Unicode string functions): Add unistr/u*-mbtoucr.
53024         (Java): Add javacomp-script, javaexec-script.
53025         (C#): Add csharpcomp-script, csharpexec-script.
53026         (Support for building libraries and executables): Add havelib,
53027         relocatable-*.
53028         (Support for maintaining and releasing projects): Renamed from
53029         'Support for maintaining and release projects'. Add announce-gen.
53030
53031 2007-03-31  Bruno Haible  <bruno@clisp.org>
53032
53033         * README: Talk primarily about git.
53034         (git and CVS): Renamed from CVS.
53035         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53036         gnulib is available through git.
53037         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53038
53039 2007-03-30  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53042         * lib/poll_.h: Likewise.
53043         * lib/stat_.h: Likewise.
53044         * lib/sys_time_.h: Likewise.
53045         * lib/sysexit_.h: Likewise.
53046         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53047         * lib/stdbool_.h: Likewise.
53048         * lib/byteswap_.h: Add double-inclusion guard.
53049
53050 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53051
53052         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53053
53054 2007-03-30  Karl Berry  <karl@gnu.org>
53055
53056         * config/srclist-update: double space after USA in the license
53057         substitution, since that's how it's usually (?) written.
53058
53059 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53062         reported by Bruno Haible.
53063
53064 2007-03-29  Bruno Haible  <bruno@clisp.org>
53065
53066         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53067         a bug in AIX iconv().
53068
53069 2007-03-29  Bruno Haible  <bruno@clisp.org>
53070
53071         * modules/ldexpl-tests: New file.
53072         * tests/test-ldexpl.c: New file.
53073
53074 2007-03-29  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/ldexpl.c: Include fpucw.h.
53077         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53078         multiplication.
53079         * modules/ldexpl (Depends-on): Add fpucw.
53080
53081 2007-03-29  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/ldexpl: New file.
53084         * m4/ldexpl.m4: New file.
53085         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53086         set.
53087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53088         REPLACE_LDEXPL.
53089         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53090         REPLACE_LDEXPL.
53091         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53092         gl_FUNC_LDEXPL_WORKS.
53093         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53094         * modules/mathl (Files): Remove lib/ldexpl.c.
53095         (Depends-on): Add ldexpl.
53096
53097 2007-03-29  Bruno Haible  <bruno@clisp.org>
53098
53099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53100
53101 2007-03-29  Bruno Haible  <bruno@clisp.org>
53102
53103         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53104         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53105         and possibly also HP-UX.
53106         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53107         work on AIX, IRIX, HP-UX, OSF/1.
53108         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53109         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53110         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53111         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53112         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53113         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53114
53115 2007-03-29  Bruno Haible  <bruno@clisp.org>
53116
53117         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53118
53119 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53120
53121         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53122         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53123
53124 2007-03-29  Eric Blake  <ebb9@byu.net>
53125
53126         * lib/acl-internal.h: Remove redundant include.
53127         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53128         Cygwin when a file is locked.
53129
53130 2007-03-29  Bruno Haible  <bruno@clisp.org>
53131
53132         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53133         file.
53134         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53135
53136 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53137
53138         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53139         try to remove a parent directory if the child couldn't be removed
53140         (except for the first rmdir, which could fail because the child
53141         doesn't exist).  Problem reported by Jeff Blaine in
53142         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53143
53144 2007-03-28  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/striconveh.c (utf8conv_carefully): New function.
53147         (mem_cd_iconveh_internal): Invoke it.
53148
53149 2007-03-28  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53152         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53153         input.
53154         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53155         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53156         unistr/u8-uctomb.
53157
53158 2007-03-28  Bruno Haible  <bruno@clisp.org>
53159
53160         * modules/unistr/u8-mbtoucr: New file.
53161         * lib/unistr/u8-mbtoucr.c: New file.
53162         * modules/unistr/u16-mbtoucr: New file.
53163         * lib/unistr/u16-mbtoucr.c: New file.
53164         * modules/unistr/u16-mbtoucr: New file.
53165         * lib/unistr/u16-mbtoucr.c: New file.
53166         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53167
53168 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53169             Bruno Haible  <bruno@clisp.org>
53170
53171         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53172         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53173         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53174
53175         * m4/stdio_h.m4: Add stubs for vasprintf too.
53176
53177         * modules/stdio: Support vasprintf in sed command.
53178
53179         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53180         vasprintf.h.  Add stdio module indicator.
53181
53182         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53183         vasprintf.h.
53184
53185         * lib/vasprintf.h: File removed.
53186
53187         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53188         * lib/vasprintf.c: Ditto.
53189         * lib/xvasprintf.c: Ditto.
53190         * tests/test-vasprintf-posix.c: Ditto.
53191         * tests/test-vasprintf.c: Ditto.
53192
53193 2007-03-27  Bruno Haible  <bruno@clisp.org>
53194
53195         Make vasnprintf multithread-safe.
53196         * lib/vasnprintf.c (decimal_point_char): New function.
53197         (VASNPRINTF): Use it.
53198         Suggested by Simon Josefsson.
53199
53200 2007-03-27  Eric Blake  <ebb9@byu.net>
53201
53202         Support sub-second birthtime on cygwin.
53203         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53204         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53205         (get_stat_birthtime): Also work with st_birthtim.
53206
53207 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53208
53209         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53210         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53211         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53212         (get_stat_birthtime_ns): Simplify compile-time tests.
53213         (get_stat_birthtime): Change the API to look like
53214         get_stat_mtime etc., except return a negative tv_nsec on error.
53215         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53216         Don't check for "spare" fields.
53217         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53218         or for struct stat.st_birthtime, as these tests aren't used.
53219         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53220
53221 2007-03-27  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/stat-time.h: Include <sys/stat.h>.
53224
53225 2007-03-27  James Youngman  <jay@gnu.org>
53226
53227         * lib/stat-time.h (get_stat_birthtime): New function for
53228           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53229         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53230           and its variants.
53231         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53232         * modules/stat-time-test: New file.
53233         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53234
53235 2007-03-26  Bruno Haible  <bruno@clisp.org>
53236
53237         Better support of signalling NaNs.
53238         * lib/atanl.c: Include isnanl.h.
53239         (atanl): Perform test for NaN at the beginning of the function and
53240         through a call to isnanl.
53241         * lib/cosl.c: Include isnanl.h.
53242         (cosl): Perform test for NaN at the beginning of the function and
53243         through a call to isnanl.
53244         * lib/ldexpl.c: Include isnanl.h.
53245         (ldexpl): Perform test for NaN through a call to isnanl.
53246         * lib/logl.c: Include isnanl.h.
53247         (logl): Perform test for NaN at the beginning of the function and
53248         through a call to isnanl.
53249         * lib/sinl.c: Include isnanl.h.
53250         (sinl): Perform test for NaN at the beginning of the function and
53251         through a call to isnanl.
53252         * lib/sqrtl.c: Include isnanl.h.
53253         (sqrtl): Perform test for NaN at the beginning of the function and
53254         through a call to isnanl.
53255         * lib/tanl.c: Include isnanl.h.
53256         (tanl): Perform test for NaN at the beginning of the function and
53257         through a call to isnanl.
53258         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53259         * modules/mathl (Depends-on): Add isnanl.
53260
53261 2007-03-26  Eric Blake  <ebb9@byu.net>
53262
53263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53264         regression in logic sense of previous patch.
53265
53266 2007-03-26  Bruno Haible  <bruno@clisp.org>
53267
53268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53269         unportable shell command "if ! ...".
53270         Reported by Ralf Wildenhues.
53271
53272 2007-03-25  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53275         <sysexits.h> file, and only add EX_CONFIG.
53276         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53277         absolute file name and whether it is sufficient. Substitute also
53278         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53279         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53280         ABSOLUTE_SYSEXITS_H into sysexits.h.
53281
53282 2007-03-25  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53285         hints is NULL.
53286
53287 2007-03-25  Bruno Haible  <bruno@clisp.org>
53288
53289         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53290         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53291
53292 2007-03-25  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/vasnprintf.c: Include langinfo.h.
53295         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53296         multithread-safe.
53297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53306         Reported by Simon Josefsson.
53307
53308 2007-03-25  Bruno Haible  <bruno@clisp.org>
53309
53310         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53311         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53312         * modules/vasnprintf (Depends-on): Add stdint.
53313
53314 2007-03-25  Bruno Haible  <bruno@clisp.org>
53315
53316         * modules/fpieee: New file.
53317         * m4/fpieee.m4: New file.
53318         * modules/isnan-nolibm (Depends-on): Add fpieee.
53319         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53320         * modules/isnanl (Depends-on): Add fpieee.
53321
53322 2007-03-25  Bruno Haible  <bruno@clisp.org>
53323
53324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53325
53326 2007-03-25  Bruno Haible  <bruno@clisp.org>
53327
53328         Avoid test failures on IRIX 6.5.
53329         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53330         (main): Use it.
53331         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53332         macros.
53333         (main): Use them.
53334
53335 2007-03-25  Bruno Haible  <bruno@clisp.org>
53336
53337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53338         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53339         exists but doesn't work.
53340         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53341         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53343         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53344         math.h.
53345
53346 2007-03-25  Bruno Haible  <bruno@clisp.org>
53347
53348         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53349         returns inf. Needed on IRIX 6.5.
53350
53351 2007-03-25  Bruno Haible  <bruno@clisp.org>
53352
53353         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53354         (main): Use isnanl instead of x != x idiom.
53355         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53356
53357         * tests/test-frexp.c: Include isnan.h.
53358         (main): Use isnan instead of x != x idiom.
53359         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53360
53361 2007-03-25  Bruno Haible  <bruno@clisp.org>
53362
53363         * tests/test-frexp.c (NaN): New function/macro.
53364         (main): Use it instead of 0.0 / 0.0.
53365         * tests/test-isnan.c (NaN): New function/macro.
53366         (main): Use it instead of 0.0 / 0.0.
53367         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53368         (test_function): Use it instead of 0.0 / 0.0.
53369         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53370         (test_function): Use it instead of 0.0 / 0.0.
53371         * tests/test-snprintf-posix.h (NaN): New function/macro.
53372         (test_function): Use it instead of 0.0 / 0.0.
53373         * tests/test-sprintf-posix.h (NaN): New function/macro.
53374         (test_function): Use it instead of 0.0 / 0.0.
53375         * tests/test-fprintf-posix.h (NaN): New function/macro.
53376         (test_function): Use it instead of 0.0 / 0.0.
53377         * tests/test-printf-posix.h (NaN): New function/macro.
53378         (test_function): Use it instead of 0.0 / 0.0.
53379
53380         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53381
53382 2007-03-25  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53385
53386 2007-03-25  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/regexec.c (merge_state_with_log): Make static.
53389
53390 2007-03-25  Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/trigl.c (kernel_rem_pio2): Make static.
53393
53394 2007-03-25  Bruno Haible  <bruno@clisp.org>
53395
53396         * lib/sincosl.c (sincosl_table): Make static.
53397
53398 2007-03-25  Bruno Haible  <bruno@clisp.org>
53399
53400         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53401         if the compiler does not support C99.
53402
53403 2007-03-25  Bruno Haible  <bruno@clisp.org>
53404
53405         * modules/time (Makefile.am): Ensure all rule action lines start with a
53406         tab.
53407
53408 2007-03-24  Bruno Haible  <bruno@clisp.org>
53409
53410         * modules/tsearch-tests: New file.
53411         * tests/test-tsearch.sh: New file.
53412         * tests/test-tsearch.c: New file, mostly copied from glibc.
53413
53414         * modules/search-tests: New file.
53415         * tests/test-search.c: New file.
53416
53417         * modules/search: New file.
53418         * lib/search_.h: New file, incorporating lib/tsearch.h.
53419         * m4/search_h.m4: New file.
53420         * lib/tsearch.h: Remove file.
53421         * lib/tsearch.c: Include search.h instead of tsearch.h.
53422         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53423         HAVE_TSEARCH.
53424         * modules/tsearch (Files): Remove lib/tsearch.h.
53425         (Depends-on): Add search.
53426         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53427         (Include): Change tsearch.h into search.h.
53428
53429 2007-03-24  Bruno Haible  <bruno@clisp.org>
53430
53431         * modules/fpucw: New file.
53432         * lib/fpucw.h: New file.
53433         * lib/frexp.c: Include fpucw.h.
53434         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53435         (FUNC): Use them.
53436         * lib/printf-frexp.c: Include fpucw.h.
53437         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53438         (FUNC): Use them.
53439         * lib/vasnprintf.c: Include fpucw.h.
53440         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53441         'long double' calculations.
53442         * tests/test-frexpl.c: Include fpucw.h.
53443         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53444         * tests/test-printf-frexpl.c: Include fpucw.h.
53445         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53446         * modules/frexpl (Depends-on): Add fpucw.
53447         * modules/printf-frexpl (Depends-on): Likewise.
53448         * modules/fprintf-posix (Depends-on): Likewise.
53449         * modules/snprintf-posix (Depends-on): Likewise.
53450         * modules/sprintf-posix (Depends-on): Likewise.
53451         * modules/vasnprintf-posix (Depends-on): Likewise.
53452         * modules/vasprintf-posix (Depends-on): Likewise.
53453         * modules/vfprintf-posix (Depends-on): Likewise.
53454         * modules/vsnprintf-posix (Depends-on): Likewise.
53455         * modules/vsprintf-posix (Depends-on): Likewise.
53456         * modules/frexpl-tests (Depends-on): Likewise.
53457         * modules/printf-frexpl-tests (Depends-on): Likewise.
53458
53459 2007-03-24  Bruno Haible  <bruno@clisp.org>
53460
53461         * lib/float+.h: New file.
53462         * lib/isnan.c: Include float+.h.
53463         (SIZE): New macro.
53464         (FUNC): Compare only SIZE bytes of the value.
53465         * lib/vasnprintf.c: Include float+.h.
53466         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53467         SIZEOF_LDBL or SIZEOF_DBL bytes.
53468         * modules/isnan-nolibm (Files): Add lib/float+.h.
53469         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53470         * modules/isnanl (Files): Add lib/float+.h.
53471         * modules/vasnprintf (Files): Add lib/float+.h.
53472
53473 2007-03-24  Bruno Haible  <bruno@clisp.org>
53474
53475         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53476         include isnanl-nolibm.h.
53477
53478 2007-03-24  Bruno Haible  <bruno@clisp.org>
53479
53480         * tests/test-read-file.c (main): Don't produce spurious output for
53481         expected situations. Make the test fail if it encountered unexpected
53482         results.
53483
53484 2007-03-24  Bruno Haible  <bruno@clisp.org>
53485
53486         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53487         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53488
53489 2007-03-24  Bruno Haible  <bruno@clisp.org>
53490
53491         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53492
53493 2007-03-24  Bruno Haible  <bruno@clisp.org>
53494
53495         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53496         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53497
53498         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53499         * modules/utf8-ucs4: Turn into a symbolic link to module
53500         unistr/u8-mbtouc.
53501
53502         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53503         utf8-ucs4-unsafe.
53504         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53505         unistr/u8-mbtouc-unsafe.
53506
53507         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53508         * modules/utf16-ucs4: Turn into a symbolic link to module
53509         unistr/u16-mbtouc.
53510
53511         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53512         utf16-ucs4-unsafe.
53513         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53514         unistr/u16-mbtouc-unsafe.
53515
53516         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53517         * modules/ucs4-utf8: Turn into a symbolic link to module
53518         unistr/u8-ubtomb.
53519
53520         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53521         * modules/ucs4-utf16: Turn into a symbolic link to module
53522         unistr/u16-ubtomb.
53523
53524 2007-03-24  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53527         Enable the function only if HAVE_INLINE.
53528         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53529         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53530         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53531         Enable the function only if HAVE_INLINE.
53532         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53533         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53534         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53535         Enable the function only if HAVE_INLINE.
53536         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53537         Enable the function only if HAVE_INLINE.
53538         * modules/utf8-ucs4: Update.
53539         * modules/utf8-ucs4-unsafe: Update.
53540         * modules/utf16-ucs4: Update.
53541         * modules/utf16-ucs4-unsafe: Update.
53542         * modules/ucs4-utf8: Update.
53543         * modules/ucs4-utf16: Update.
53544
53545 2007-03-24  Bruno Haible  <bruno@clisp.org>
53546
53547         * lib/utf8-ucs4.h: Remove file.
53548         * lib/utf8-ucs4-unsafe.h: Remove file.
53549         * lib/utf16-ucs4.h: Remove file.
53550         * lib/utf16-ucs4-unsafe.h: Remove file.
53551         * lib/ucs4-utf8.h: Remove file.
53552         * lib/ucs4-utf16.h: Remove file.
53553         * lib/unistr.h: Include their previous contents.
53554         * m4/utf-ucs4.m4: Remove file.
53555         * m4/ucs4-utf.m4: Remove file.
53556         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53557         (Depends-on): Add unistr/base.
53558         (configure.ac): Remove gl_UTF_UCS4.
53559         (Makefile.am): Update.
53560         (Include): Change to unistr.h.
53561         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53562         (Depends-on): Add unistr/base.
53563         (configure.ac): Remove gl_UTF_UCS4.
53564         (Makefile.am): Update.
53565         (Include): Change to unistr.h.
53566         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53567         (Depends-on): Add unistr/base.
53568         (configure.ac): Remove gl_UTF_UCS4.
53569         (Makefile.am): Update.
53570         (Include): Change to unistr.h.
53571         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53572         (Depends-on): Add unistr/base.
53573         (configure.ac): Remove gl_UTF_UCS4.
53574         (Makefile.am): Update.
53575         (Include): Change to unistr.h.
53576         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53577         (Depends-on): Add unistr/base.
53578         (configure.ac): Remove gl_UCS4_UTF.
53579         (Makefile.am): Update.
53580         (Include): Change to unistr.h.
53581         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53582         (Depends-on): Add unistr/base.
53583         (configure.ac): Remove gl_UCS4_UTF.
53584         (Makefile.am): Update.
53585         (Include): Change to unistr.h.
53586         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53587         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53588         utf8-ucs4-unsafe.h.
53589         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53590         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53591         utf16-ucs4-unsafe.h.
53592         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53593         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53594         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53595         * lib/unistr/u8-strchr.c: Likewise.
53596         * lib/unistr/u8-strrchr.c: Likewise.
53597         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53598         * lib/unistr/u16-strchr.c: Likewise.
53599         * lib/unistr/u16-strrchr.c: Likewise.
53600         * lib/striconveh.c: Update.
53601         * lib/linebreak.c: Update.
53602
53603 2007-03-24  Bruno Haible  <bruno@clisp.org>
53604
53605         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53606         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53607
53608 2007-03-22  Bruno Haible  <bruno@clisp.org>
53609
53610         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53611
53612 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53613
53614         * MODULES.html.sh (File system functions): New module write-any-file.
53615         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53616         * m4/write-any-file.m4: New files.
53617
53618 2007-03-23  Eric Blake  <ebb9@byu.net>
53619
53620         * gnulib-tool: Rearrange space-tab sequences, since some editors
53621         like to eat them.
53622
53623 2007-03-23  Eric Blake  <ebb9@byu.net>
53624
53625         * lib/version-etc.c (version_etc_va): Update license wording to
53626         be more concise.  Recommended by Richard Stallman.
53627
53628 2007-03-22  Bruno Haible  <bruno@clisp.org>
53629
53630         * lib/poll.c (MSG_PEEK): New fallback definition.
53631
53632 2007-03-22  Bruno Haible  <bruno@clisp.org>
53633
53634         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53635         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53636         (main): Update.
53637         Fixes a compilation error on BeOS.
53638
53639 2007-03-22  Bruno Haible  <bruno@clisp.org>
53640
53641         * modules/frexpl-tests: New file.
53642         * tests/test-frexpl.c: New file.
53643
53644         * modules/frexpl: New file.
53645         * m4/frexpl.m4: New file.
53646         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53647         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53649         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53650         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53651         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53652
53653 2007-03-22  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/frexpl.c: Share code with lib/frexp.c.
53656         * modules/mathl (Files): Add lib/frexp.c.
53657         (Depends-on): Add isnanl-nolibm.
53658
53659 2007-03-22  Bruno Haible  <bruno@clisp.org>
53660
53661         * modules/printf-frexp (Files): Add m4/frexp.m4.
53662         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53663         only if the found frexp function actually works.
53664
53665 2007-03-22  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/frexp.c: Remove older implementation that uses divisions.
53668
53669 2007-03-21  Bruno Haible  <bruno@clisp.org>
53670
53671         * modules/frexp-tests: New file.
53672         * tests/test-frexp.c: New file.
53673
53674         * modules/frexp: New file.
53675         * lib/frexp.c: New file.
53676         * m4/frexp.m4: New file.
53677         * lib/math_.h (frexp): New declaration.
53678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53679         REPLACE_FREXP.
53680         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53681
53682 2007-03-21  Bruno Haible  <bruno@clisp.org>
53683
53684         * modules/isnanl-tests: New file.
53685         * tests/test-isnanl.c: New file.
53686
53687         * modules/isnanl: New file.
53688         * lib/isnanl.h: New file.
53689         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53690         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53691         gl_FUNC_ISNANL_WORKS.
53692         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53693         New macros.
53694
53695 2007-03-21  Bruno Haible  <bruno@clisp.org>
53696
53697         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53698         lib/isnanl.h.
53699         (Include): Update.
53700         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53701         * lib/vasnprintf.c: Update.
53702         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53703         tests/test-isnanl.h, remove tests/test-isnanl.c.
53704         (Makefile.am): Update.
53705         * tests/test-isnanl-nolibm.c: New file.
53706         * tests/test-isnanl.h: New file.
53707         * tests/test-isnanl.c: Remove file.
53708
53709 2007-03-21  Jim Meyering  <jim@meyering.net>
53710
53711         When trying to open ".", treat ESTALE like EACCES.
53712         * lib/savewd.c (savewd_save): Resort to forking not just upon
53713         failure with EACCES, but also when errno is ESTALE.
53714
53715 2007-03-20  Bruno Haible  <bruno@clisp.org>
53716
53717         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53718         Needed on AIX 5.1. Reported by Matthew Woehlke.
53719
53720 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53721
53722         Suggestions by Bruno Haible:
53723         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53724         our own.
53725         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53726         * modules/acl (Depends-on): Add gettext.
53727
53728 2007-03-19  Bruno Haible  <bruno@clisp.org>
53729
53730         * modules/iconvme: Remove file.
53731         * lib/iconvme.h: Remove file.
53732         * lib/iconvme.c: Remove file.
53733         * m4/iconvme.m4: Remove file.
53734
53735 2007-03-19  Bruno Haible  <bruno@clisp.org>
53736
53737         * doc/relocatable-maint.texi: Break long shell script line.
53738         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53739
53740 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53741
53742         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53743         handle file_has_acl.
53744         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53745         * lib/acl.c: Move header inclusions and related macro defns into
53746         lib/acl-internal.h.
53747         (S_ISLNK): Remove defn, since that's now done for us.
53748         (file_has_acl): Move to lib/file-has-acl.c.
53749         Call acl_trivial if available.  This is the crucial part of the fix.
53750         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53751         shared within the library.  Rewrite a bit, partly to make it compatible
53752         with the GNU coding style.
53753         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53754         Remove unnecessary double-quotes.
53755         Don't test for acl_to_text; the build will catch that.
53756         Replace acl_entries if it doesn't exist and it is needed.
53757         Check for -lsec and acl_trivial (as used on Solaris 10).
53758         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53759         lib/file-has-acl.c.
53760         (Depends-on): Add sys_stat, for S_ISLNK.
53761
53762 2007-03-19  Ben Pfaff  <blp@gnu.org>
53763
53764         * doc/gnulib.texi: Fix typos.
53765         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53766
53767 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53770         If size is zero here, buf must be zero.
53771
53772 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53773
53774         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53775         <bruno@clisp.org>.
53776
53777 2007-03-18  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53780         Suggested by Eric Blake.
53781
53782 2007-03-18  Ben Pfaff  <blp@gnu.org>
53783
53784         * doc/relocatable.texi: Recommend using as prefix a directory
53785         that does not exist and will never be created.  Based on
53786         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53787         and others.
53788
53789 2007-03-17  Bruno Haible  <bruno@clisp.org>
53790
53791         * lib/fchownat.c: Include lchown.h.
53792
53793 2007-03-17  Bruno Haible  <bruno@clisp.org>
53794
53795         Fix endless loop when the given allocated size was > INT_MAX.
53796         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53797         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53798         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53799         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53800         * lib/sprintf.c (sprintf): Likewise.
53801
53802 2007-03-17  Bruno Haible  <bruno@clisp.org>
53803
53804         * tests/test-argp-2.sh (func_compare): Output a context diff.
53805
53806 2007-03-17  Bruno Haible  <bruno@clisp.org>
53807
53808         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53809         locale's decimal-point character.
53810
53811 2007-03-17  Bruno Haible  <bruno@clisp.org>
53812
53813         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53814         before comparing it. Needed because on some platforms (e.g. x86) a
53815         'long double' occupies less bytes than sizeof (long double).
53816
53817 2007-03-17  Bruno Haible  <bruno@clisp.org>
53818
53819         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53820         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53821         * tests/test-getaddrinfo.c (simple): Likewise.
53822         * tests/test-read-file.c (main): Likewise.
53823
53824 2007-03-17  Bruno Haible  <bruno@clisp.org>
53825
53826         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53827
53828 2007-03-17  Bruno Haible  <bruno@clisp.org>
53829
53830         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53831         unused variable.
53832
53833 2007-03-17  Bruno Haible  <bruno@clisp.org>
53834
53835         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53836         * tests/test-c-strncasecmp.c: Likewise.
53837
53838 2007-03-17  Bruno Haible  <bruno@clisp.org>
53839
53840         * modules/stdlib (Depends-on): Add unistd.
53841         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53842         Needed for MacOS X 10.3.
53843
53844 2007-03-17  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53847
53848 2007-03-17  Bruno Haible  <bruno@clisp.org>
53849
53850         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53851
53852 2007-03-17  Bruno Haible  <bruno@clisp.org>
53853
53854         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53855         to reflect files copied from gnulib (with or without modifications).
53856         Suggested by Jim Meyering.
53857
53858 2007-03-17  Eric Blake  <ebb9@byu.net>
53859
53860         * NEWS: Document stdlib change from 2007-02-18.
53861
53862 2007-03-17  Jim Meyering  <jim@meyering.net>
53863
53864         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53865         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53866         someone uses a name containing shell meta-characters.
53867         Reported by Alfred M. Szmidt.
53868
53869         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53870
53871 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53872
53873         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53874         and copy gettext configuration files only if configure.ac contains
53875         a use of AM_GNU_GETTEXT_VERSION.
53876
53877 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53878
53879         * build-aux/bootstrap (gnulib_name): New variable.
53880         (gnulib_tool_options): Use it.
53881
53882 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53883
53884         * tests/test-des.c: Use new namespace.
53885
53886 2007-03-15  Bruno Haible  <bruno@clisp.org>
53887
53888         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53889         Reported by James Youngman <jay@gnu.org>.
53890
53891 2007-03-15  Bruno Haible  <bruno@clisp.org>
53892
53893         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53894         declared prototype. Needed with cc on OSF/1 5.1.
53895
53896 2007-03-15  Bruno Haible  <bruno@clisp.org>
53897
53898         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53899         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53900         (struct gl_list_implementation): Add dispose_fn argument to the
53901         'create_empty', 'create' methods.
53902         (struct gl_list_impl_base): Add field 'dispose_fn'.
53903         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53904         argument.
53905         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53906         dispose_fn argument.
53907         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53908         dispose_fn on the dropped values.
53909         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53910         dispose_fn argument.
53911         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53912         dropped values.
53913         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53914         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53915         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53916         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53917         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53918         argument.
53919         (gl_tree_list_free): Call dispose_fn on the dropped values.
53920         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53921         the dropped values.
53922         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53923         Add dispose_fn argument.
53924         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53925         Call dispose_fn on the dropped values.
53926         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53927         Add dispose_fn argument.
53928         (gl_sublist_create): Initialize the 'dispose_fn' field.
53929         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53930         * tests/test-array_list.c (main): Update.
53931         * tests/test-carray_list.c (main): Update.
53932         * tests/test-avltree_list.c (main): Update.
53933         * tests/test-rbtree_list.c (main): Update.
53934         * tests/test-avltreehash_list.c (main): Update.
53935         * tests/test-rbtreehash_list.c (main): Update.
53936         * tests/test-linked_list.c (main): Update.
53937         * tests/test-linkedhash_list.c (main): Update.
53938         * tests/test-array_oset.c (main): Update.
53939
53940 2007-03-15  Bruno Haible  <bruno@clisp.org>
53941
53942         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53943         (gl_oset_create_empty): Add dispose_fn argument.
53944         (struct gl_oset_implementation): Add dispose_fn argument to
53945         'create_empty' method.
53946         (struct gl_oset_impl_base): Add dispose_fn field.
53947         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53948         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53949         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53950         values.
53951         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53952         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53953         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53954         dropped value.
53955         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53956         dropped value.
53957         * tests/test-array_oset.c (main): Update.
53958         * tests/test-avltree_oset.c (main): Update.
53959         * tests/test-rbtree_oset.c (main): Update.
53960         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53961
53962 2007-03-13  Bruno Haible  <bruno@clisp.org>
53963
53964         * tests/test-stdbool.c (i): Update after last patch.
53965
53966 2007-03-12  Bruno Haible  <bruno@clisp.org>
53967
53968         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53969         the iswprint macro. Needed on Solaris 2.5.1.
53970
53971 2007-03-12  Bruno Haible  <bruno@clisp.org>
53972
53973         * tests/test-printf-frexp.c (main): Declare x as volatile.
53974
53975 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53976
53977         * doc/gnulib.texi (Build robot for gnulib): New section.
53978
53979 2007-03-12  Jim Meyering  <jim@meyering.net>
53980
53981         * build-aux/bootstrap: New file.
53982         * build-aux/bootstrap.conf: New file, from coreutils.
53983
53984 2007-03-11  Bruno Haible  <bruno@clisp.org>
53985
53986         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53987
53988 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53989
53990         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53991         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53992         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53993
53994 2007-03-11  Bruno Haible  <bruno@clisp.org>
53995
53996         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53997         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53998
53999 2007-03-11  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54002         formula. Needed for SunPRO C 5.0.
54003
54004 2007-03-11  Bruno Haible  <bruno@clisp.org>
54005
54006         * modules/long-options (Depends-on): Add getopt.
54007
54008 2007-03-11  Bruno Haible  <bruno@clisp.org>
54009
54010         * modules/modechange (Depends-on): Add stdbool.
54011
54012 2007-03-11  Bruno Haible  <bruno@clisp.org>
54013
54014         * modules/i-ring (Depends-on): Add stdbool.
54015
54016 2007-03-11  Bruno Haible  <bruno@clisp.org>
54017
54018         * modules/gc-des (Depends-on): Add stdbool.
54019
54020 2007-03-11  Bruno Haible  <bruno@clisp.org>
54021
54022         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54023
54024 2007-03-11  Bruno Haible  <bruno@clisp.org>
54025
54026         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54027
54028 2007-03-11  Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54031
54032 2007-03-11  Bruno Haible  <bruno@clisp.org>
54033
54034         * lib/vasnprintf.c (sprintf): Undefine.
54035
54036 2007-03-11  Bruno Haible  <bruno@clisp.org>
54037
54038         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54039         initializers in SunPRO C and Compaq C compilers.
54040
54041 2007-03-11  Bruno Haible  <bruno@clisp.org>
54042
54043         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54044         decrementing code ANSI C compliant.
54045
54046 2007-03-11  Bruno Haible  <bruno@clisp.org>
54047
54048         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54049         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54050
54051 2007-03-11  Bruno Haible  <bruno@clisp.org>
54052
54053         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54054         <stdbool.h> substitute doesn't pass.
54055
54056 2007-03-11  Bruno Haible  <bruno@clisp.org>
54057
54058         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54059
54060 2007-03-11  Bruno Haible  <bruno@clisp.org>
54061
54062         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54063         script, for submission to autobuild.josefsson.org.
54064
54065 2007-03-10  Bruno Haible  <bruno@clisp.org>
54066
54067         * modules/canonicalize-lgpl-tests: New file.
54068         * tests/test-canonicalize-lgpl.sh: New file.
54069         * tests/test-canonicalize-lgpl.c: New file.
54070
54071         * modules/c-strcase-tests: New file.
54072         * tests/test-c-strcase.sh: New file.
54073         * tests/test-c-strcasecmp.c: New file.
54074         * tests/test-c-strncasecmp.c: New file.
54075
54076         * modules/atexit-tests: New file.
54077         * tests/test-atexit.sh: New file.
54078         * tests/test-atexit.c: New file.
54079
54080 2007-03-10  Bruno Haible  <bruno@clisp.org>
54081
54082         * tests/test-binary-io.sh: Use temporary filenames that are not so
54083         likely to clash with those of other tests (in a parallel make).
54084         * tests/test-binary-io.c: Likewise.
54085
54086 2007-03-10  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54089         fallback; use #error instead.
54090         Suggested by Simon Josefsson.
54091
54092 2007-03-10  Bruno Haible  <bruno@clisp.org>
54093
54094         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54095         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54096         first and the last.
54097
54098 2007-03-10  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54101
54102 2007-03-10  Bruno Haible  <bruno@clisp.org>
54103
54104         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54105         "make distcheck".
54106         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54107         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54108         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54109
54110 2007-03-10  Bruno Haible  <bruno@clisp.org>
54111
54112         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54113         variable.
54114         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54115         variable.
54116
54117 2007-03-09  Eric Blake  <ebb9@byu.net>
54118         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54119
54120         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54121         types are not being provided by gnulib.
54122         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54123         types are supported.
54124
54125 2007-03-10  Bruno Haible  <bruno@clisp.org>
54126
54127         * lib/stdio_.h (__attribute__): New macro.
54128         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54129         vsprintf): Specify __attribute__ __format__ for GCC.
54130         Suggested by Eric Blake.
54131
54132 2007-03-09  Bruno Haible  <bruno@clisp.org>
54133
54134         * modules/printf-posix-tests: New file.
54135         * tests/test-printf-posix.sh: New file.
54136         * tests/test-printf-posix.c: New file.
54137
54138         * modules/printf-posix: New file.
54139         * lib/printf.c: New file.
54140         * m4/printf-posix-rpl.m4: New file.
54141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54142         REPLACE_PRINTF.
54143         * lib/stdio_.h (printf): New declaration.
54144         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54145         ____strfmon____): New macros.
54146         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54147         REPLACE_PRINTF.
54148
54149 2007-03-09  Bruno Haible  <bruno@clisp.org>
54150
54151         * tests/test-vasnprintf-posix2.sh: New file.
54152         * tests/test-vasnprintf-posix2.c: New file.
54153         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54154         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54155         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54156
54157         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54158         a locale dependent decimal point, rather than always '.'.
54159
54160 2007-03-09  Eric Blake  <ebb9@byu.net>
54161
54162         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54163         spite of platforms like Tandem/NSK that define it to -1.
54164
54165 2007-03-08  Bruno Haible  <bruno@clisp.org>
54166
54167         * modules/vprintf-posix-tests: New file.
54168         * tests/test-vprintf-posix.sh: New file.
54169         * tests/test-vprintf-posix.c: New file.
54170         * tests/test-printf-posix.h: New file.
54171
54172         * modules/vprintf-posix: New file.
54173         * lib/vprintf.c: New file.
54174         * m4/vprintf-posix.m4: New file.
54175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54176         REPLACE_VPRINTF.
54177         * lib/stdio_.h (vprintf): New declaration.
54178         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54179         REPLACE_VPRINTF.
54180
54181 2007-03-08  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/fprintf-posix-tests: New file.
54184         * tests/test-fprintf-posix.sh: New file.
54185         * tests/test-fprintf-posix.c: New file.
54186
54187         * modules/fprintf-posix: New file.
54188         * lib/fprintf.c: New file.
54189         * m4/fprintf-posix.m4: New file.
54190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54191         REPLACE_FPRINTF.
54192         * lib/stdio_.h (fprintf): New declaration.
54193         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54194         REPLACE_FPRINTF.
54195
54196 2007-03-08  Bruno Haible  <bruno@clisp.org>
54197
54198         * modules/vfprintf-posix-tests: New file.
54199         * tests/test-vfprintf-posix.sh: New file.
54200         * tests/test-vfprintf-posix.c: New file.
54201         * tests/test-fprintf-posix.h: New file.
54202         * tests/test-fprintf-posix.out: New file.
54203
54204         * modules/vfprintf-posix: New file.
54205         * lib/vfprintf.c: New file.
54206         * m4/vfprintf-posix.m4: New file.
54207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54208         REPLACE_VFPRINTF.
54209         * lib/stdio_.h (vfprintf): New declaration.
54210         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54211         REPLACE_VFPRINTF.
54212
54213 2007-03-08  Bruno Haible  <bruno@clisp.org>
54214
54215         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54216
54217 2007-03-08  Bruno Haible  <bruno@clisp.org>
54218
54219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54220         instead of 'expr' invocations.
54221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54222         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54226         Suggested by Paul Eggert.
54227
54228 2007-03-08  Bruno Haible  <bruno@clisp.org>
54229
54230         * modules/fseterr-tests: New file.
54231         * tests/test-fseterr.c: New file.
54232
54233         * modules/fseterr: New file.
54234         * lib/fseterr.h: New file.
54235         * lib/fseterr.c: New file.
54236
54237 2007-03-08  Bruno Haible  <bruno@clisp.org>
54238
54239         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54240         * lib/getopt_.h: Likewise.
54241         * lib/mbswidth.h: Likewise.
54242         * lib/setenv.h: Likewise.
54243         * lib/vasnprintf.h: Likewise.
54244         * lib/vasprintf.h: Likewise.
54245         * lib/verror.h: Likewise.
54246         * lib/xsetenv.h: Likewise.
54247         * lib/xvasprintf.h: Likewise.
54248
54249 2007-03-08  Jim Meyering  <jim@meyering.net>
54250
54251         * users.txt: Add parted.
54252
54253         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54254
54255 2007-03-07  Bruno Haible  <bruno@clisp.org>
54256
54257         * m4/printf.m4: Make the shell script snippets copy&pastable.
54258
54259 2007-03-02  Bruno Haible  <bruno@clisp.org>
54260
54261         * lib/netinet_in_.h: New file.
54262         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54263         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54264         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54265         (Depends-on): Add absolute-header.
54266         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54267         into netinet/in.h.
54268
54269 2007-03-03  Bruno Haible  <bruno@clisp.org>
54270
54271         * lib/sys_select_.h: New file.
54272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54273         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54274         * modules/sys_select (Files): Add lib/sys_select_.h.
54275         (Depends-on): Add absolute-header.
54276         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54277         into sys/select.h.
54278
54279 2007-03-02  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54282         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54283         values.
54284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54285         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54286         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54287         * modules/sys_socket (Depends-on): Add absolute-header.
54288         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54289         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54290         (Include): Remove requirement of inclusion of <sys/types.h>.
54291
54292 2007-03-02  Bruno Haible  <bruno@clisp.org>
54293
54294         * lib/byteswap_.h (bswap_32): Fix formula.
54295
54296 2007-03-06  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/sprintf-posix-tests: New file.
54299         * tests/test-sprintf-posix.c: New file.
54300
54301         * modules/sprintf-posix: New file.
54302         * lib/sprintf.c: New file.
54303         * m4/sprintf-posix.m4: New file.
54304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54305         REPLACE_SPRINTF.
54306         * lib/stdio_.h (sprintf): New declaration.
54307         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54308         REPLACE_SPRINTF.
54309
54310 2007-03-06  Bruno Haible  <bruno@clisp.org>
54311
54312         * modules/vsprintf-posix-tests: New file.
54313         * tests/test-vsprintf-posix.c: New file.
54314         * tests/test-sprintf-posix.h: New file.
54315
54316         * modules/vsprintf-posix: New file.
54317         * lib/vsprintf.c: New file.
54318         * m4/vsprintf-posix.m4: New file.
54319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54320         REPLACE_VSPRINTF.
54321         * lib/stdio_.h (vsprintf): New declaration.
54322         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54323         REPLACE_VSPRINTF.
54324
54325 2007-03-06  Bruno Haible  <bruno@clisp.org>
54326
54327         * modules/vsnprintf (Depend-on): Remove minmax.
54328
54329 2007-03-06  Bruno Haible  <bruno@clisp.org>
54330
54331         * modules/snprintf-posix-tests: New file.
54332         * tests/test-snprintf-posix.c: New file.
54333
54334         * modules/snprintf-posix: New file.
54335         * m4/snprintf-posix.m4: New file.
54336         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54337         gl_FUNC_SNPRINTF.
54338         (gl_FUNC_SNPRINTF): Invoke it.
54339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54340         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54341         is set.
54342         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54343
54344 2007-03-06  Bruno Haible  <bruno@clisp.org>
54345
54346         * modules/vsnprintf-posix-tests: New file.
54347         * tests/test-vsnprintf-posix.c: New file.
54348         * tests/test-snprintf-posix.h: New file.
54349
54350         * modules/vsnprintf-posix: New file.
54351         * m4/vsnprintf-posix.m4: New file.
54352         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54353         gl_FUNC_VSNPRINTF.
54354         (gl_FUNC_VSNPRINTF): Invoke it.
54355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54356         * lib/stdio_.h (vsnprintf): Define as a replacement if
54357         REPLACE_VSNPRINTF is set.
54358         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54359
54360 2007-03-06  Bruno Haible  <bruno@clisp.org>
54361
54362         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54363         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54364
54365 2007-03-06  Bruno Haible  <bruno@clisp.org>
54366
54367         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54368         (asinl): Declare also if HAVE_DECL_ASINL is set.
54369         (atanl): Declare also if HAVE_DECL_ATANL is set.
54370         (ceill): Declare also if HAVE_DECL_CEILL is set.
54371         (cosl): Declare also if HAVE_DECL_COSL is set.
54372         (expl): Declare also if HAVE_DECL_EXPL is set.
54373         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54374         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54375         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54376         (logl): Declare also if HAVE_DECL_LOGL is set.
54377         (sinl): Declare also if HAVE_DECL_SINL is set.
54378         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54379         (tanl): Declare also if HAVE_DECL_TANL is set.
54380         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54382         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54383         declaration of frexpl, ldexpl.
54384         * modules/printf-frexpl (Depends-on): Add math.
54385         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54386
54387 2007-03-05  Bruno Haible  <bruno@clisp.org>
54388
54389         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54390         frexpl and ldexpl are declared.
54391         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54392
54393 2007-03-05  Bruno Haible  <bruno@clisp.org>
54394
54395         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54396         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54397
54398 2007-03-05  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/stdio_.h: Include <stddef.h>.
54401
54402 2007-03-05  Bruno Haible  <bruno@clisp.org>
54403
54404         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54405
54406 2007-03-05  Bruno Haible  <bruno@clisp.org>
54407
54408         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54409         NetBSD 4, from Ralf Wildenhues.
54410
54411 2007-03-04  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/vasprintf.h: Update #if logic for the case when the functions
54414         exist but are overridden.
54415
54416 2007-03-04  Bruno Haible  <bruno@clisp.org>
54417
54418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54419         implementations: glibc-2.4 and MacOS X 10.3.
54420         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54421         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54422         * tests/test-vasprintf-posix.c (test_function): Likewise.
54423
54424 2007-03-04  Bruno Haible  <bruno@clisp.org>
54425
54426         * modules/vasprintf-posix-tests: New file.
54427         * tests/test-vasprintf-posix.c: New file.
54428
54429         * modules/vasprintf-posix: New file.
54430         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54431         defined.
54432         * m4/vasprintf-posix.m4: New file.
54433         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54434         gl_FUNC_VASPRINTF.
54435         (gl_FUNC_VASPRINTF): Invoke it.
54436         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54437         here.
54438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54439
54440 2007-03-04  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54443         REPLACE_GETTIMEOFDAY.
54444         * modules/sys_time (Makefile.am): Likewise.
54445         * m4/sys_time_h.m4: Likewise.
54446         * m4/gettimeofday.m4: Likewise.
54447
54448 2007-03-04  Bruno Haible  <bruno@clisp.org>
54449
54450         * modules/vasnprintf-posix-tests: New file.
54451         * tests/test-vasnprintf-posix.c: New file.
54452
54453         * modules/vasnprintf-posix: New file.
54454         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54455         printf-frexpl.h.
54456         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54457         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54458         REPLACE_VASNPRINTF is defined.
54459         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54460         gl_FUNC_VASNPRINTF.
54461         (gl_FUNC_VASNPRINTF): Invoke it.
54462         * m4/vasnprintf-posix.m4: New file.
54463         * m4/printf.m4: New file.
54464
54465 2007-03-04  Bruno Haible  <bruno@clisp.org>
54466
54467         Compile progreloc.c only if --enable-relocatable is specified.
54468         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54469         if --enable-relocatable was specified.
54470         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54471         lib_SOURCES.
54472
54473 2007-03-04  Jim Meyering  <jim@meyering.net>
54474
54475         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54476         Use it consistently, rather than enumerating errno constants.
54477
54478 2007-03-04  Bruno Haible  <bruno@clisp.org>
54479
54480         * modules/xvasprintf-tests: New file.
54481         * tests/test-xvasprintf.c: New file.
54482
54483         * modules/vasprintf-tests: New file.
54484         * tests/test-vasprintf.c: New file.
54485
54486         * modules/vasnprintf-tests: New file.
54487         * tests/test-vasnprintf.c: New file.
54488
54489         * modules/vsnprintf-tests: New file.
54490         * tests/test-vsnprintf.c: New file.
54491
54492         * modules/snprintf-tests: New file.
54493         * tests/test-snprintf.c: New file.
54494
54495 2007-03-04  Bruno Haible  <bruno@clisp.org>
54496
54497         Compile relocatable.c only if --enable-relocatable is specified.
54498         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54499         gl_RELOCATABLE_LIBRARY.
54500         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54501         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54502         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54503         gl_RELOCATABLE_LIBRARY.
54504         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54505         (Makefile.am): Remove lib_SOURCES.
54506         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54507         gl_RELOCATABLE_LIBRARY.
54508         (Makefile.am): Remove lib_SOURCES.
54509         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54510         always.
54511         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54512         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54513
54514 2007-03-04  Bruno Haible  <bruno@clisp.org>
54515
54516         * modules/argmatch-tests: New file.
54517         * tests/test-argmatch.c: New file.
54518
54519         * tests/test-allocsa.c (main): Halve the number of loop runs.
54520
54521         * modules/alloca-opt-tests: New file.
54522         * tests/test-alloca-opt.c: New file.
54523
54524 2007-03-04  Jim Meyering  <jim@meyering.net>
54525
54526         Work around difference between Linux ACLs and Solaris 10 ZFS.
54527         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54528         for EINVAL.
54529
54530 2007-03-03  Bruno Haible  <bruno@clisp.org>
54531
54532         * modules/relocatable-prog (Depends-on): Add back progreloc's
54533         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54534
54535 2007-03-03  Bruno Haible  <bruno@clisp.org>
54536
54537         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54538         * modules/relocatable-lib: New file.
54539
54540 2007-03-03  Bruno Haible  <bruno@clisp.org>
54541
54542         * modules/relocatable-prog: Renamed from modules/relocatable.
54543         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54544
54545 2007-03-03  Bruno Haible  <bruno@clisp.org>
54546
54547         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54548         m4/relocatable-lib.m4.
54549         (Depends-on): Remove 'relocatable'.
54550         (configure.ac): Add gl_RELOCATABLE_NOP.
54551
54552 2007-03-03  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/relocatable-prog-wrapper: New file.
54555         * modules/relocatable (Depends-on): Add it. Remove all other
54556         dependencies except progname.
54557         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54558
54559         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54560         (gl_FUNC_STRERROR): Nop.
54561         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54562
54563         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54564         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54565
54566         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54567         (gl_FUNC_READLINK): Update.
54568
54569         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54570
54571 2007-03-03  Bruno Haible  <bruno@clisp.org>
54572
54573         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54574         * modules/xreadlink (Depends-on): Add unistd.
54575         * modules/xreadlink-with-size (Depends-on): Likewise.
54576
54577 2007-03-03  Bruno Haible  <bruno@clisp.org>
54578
54579         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54580         extracted from gt_FUNC_SETENV.
54581         (gt_FUNC_SETENV): Remove macro.
54582         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54583         remove gt_FUNC_SETENV.
54584
54585 2007-03-03  Bruno Haible  <bruno@clisp.org>
54586
54587         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54588         ENABLE_RELOCATABLE here.
54589         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54590
54591 2007-03-03  Bruno Haible  <bruno@clisp.org>
54592
54593         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54594         * tests/test-rbtreehash_list.c: Include progname.h.
54595         (main): Call set_program_name.
54596
54597         * modules/rbtree-oset-tests (Depends-on): Add progname.
54598         * tests/test-rbtree_oset.c: Include progname.h.
54599         (main): Call set_program_name.
54600
54601         * modules/rbtree-list-tests (Depends-on): Add progname.
54602         * tests/test-rbtree_list.c: Include progname.h.
54603         (main): Call set_program_name.
54604
54605         * modules/linked-list-tests (Depends-on): Add progname.
54606         * tests/test-linked_list.c: Include progname.h.
54607         (main): Call set_program_name.
54608
54609 2007-03-03  Bruno Haible  <bruno@clisp.org>
54610
54611         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54612         All uses of __restrict changed to _Restrict_.
54613         * lib/glob_.h (__restrict): Remove macro.
54614
54615 2007-03-02  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/gettext (configure.ac): Require gettext infrastructure
54618         from version 0.16.1.
54619
54620 2007-03-02  Bruno Haible  <bruno@clisp.org>
54621
54622         * modules/linkedhash-list-tests (Depends-on): Add progname.
54623         * tests/test-linkedhash_list.c: Include progname.h.
54624         (main): Call set_program_name.
54625
54626         * modules/carray-list-tests (Depends-on): Add progname.
54627         * tests/test-carray_list.c: Include progname.h.
54628         (main): Call set_program_name.
54629
54630         * modules/avltreehash-list-tests (Depends-on): Add progname.
54631         * tests/test-avltreehash_list.c: Include progname.h.
54632         (main): Call set_program_name.
54633
54634         * modules/avltree-oset-tests (Depends-on): Add progname.
54635         * tests/test-avltree_oset.c: Include progname.h.
54636         (main): Call set_program_name.
54637
54638         * modules/avltree-list-tests (Depends-on): Add progname.
54639         * tests/test-avltree_list.c: Include progname.h.
54640         (main): Call set_program_name.
54641
54642         * modules/array-oset-tests (Depends-on): Add progname.
54643         * tests/test-array_oset.c: Include progname.h.
54644         (main): Call set_program_name.
54645
54646         * modules/array-list-tests (Depends-on): Add progname.
54647         * tests/test-array_list.c: Include progname.h.
54648         (main): Call set_program_name.
54649
54650         * modules/argp-tests (Depends-on): Add progname.
54651         * tests/test-argp.c: Include argp.h first. Include progname.h.
54652         (main): Call set_program_name.
54653
54654 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54655
54656         * doc/gnulib-tool.texi (Initial import): Reword description of
54657         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54658         limited effect even if defined after the first system include.
54659
54660 2007-03-01  Bruno Haible  <bruno@clisp.org>
54661
54662         * build-aux/config.libpath: Update to libtool-1.5.22.
54663         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54664
54665 2007-03-01  Bruno Haible  <bruno@clisp.org>
54666
54667         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54668         foo_CFLAGS.
54669         Reported by Ralf Wildenhues.
54670
54671 2007-03-01  Bruno Haible  <bruno@clisp.org>
54672
54673         * build-aux/install-reloc: Remove object files left over by some
54674         compilers.
54675         Reported by Ralf Wildenhues.
54676
54677 2007-03-01  Bruno Haible  <bruno@clisp.org>
54678
54679         * build-aux/install-reloc: Break long lines.
54680
54681 2007-03-01  Bruno Haible  <bruno@clisp.org>
54682
54683         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54684         Reported by Ralf Wildenhues.
54685
54686 2007-03-01  Bruno Haible  <bruno@clisp.org>
54687
54688         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54689         include ordering constraints.
54690
54691 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54694         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54695         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54696         as another example.
54697         * lib/time_.h: Fix misspelling.
54698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54699         Require gl_HEADER_TIME_H_DEFAULTS.
54700         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54701         * m4/time_r.m4 (gl_TIME_R): Likewise.
54702         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54703
54704 2007-03-01  Bruno Haible  <bruno@clisp.org>
54705
54706         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54707         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54708
54709 2007-03-01  Jim Meyering  <jim@meyering.net>
54710
54711         * modules/xreadlink (Maintainer): Add my name.
54712         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54713
54714 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54715             Bruno Haible  <bruno@clisp.org>
54716
54717         * build-aux/install-reloc: Compile also c-ctype.c.
54718         * build-aux/relocatable.sh.in: New file.
54719         * doc/relocatable.texi: New file.
54720         * doc/relocatable-maint.texi: New file.
54721         * doc/gnulib.texi: Include relocatable-maint.texi.
54722         * lib/progreloc.c: Include unistd.h unconditionally.
54723         * lib/relocwrapper.c: Include unistd.h unconditionally.
54724         Include c-ctype.h.
54725         (add_dotbin): Use c_tolower.
54726         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54727         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54728         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54729         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54730         to m4/relocatable-lib.m4.
54731         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54732         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54733         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54734         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54735         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54736         * modules/relocatable: New file.
54737         * modules/relocatable-lib: New file.
54738         * modules/relocatable-script: New file.
54739
54740 2007-02-28  Bruno Haible  <bruno@clisp.org>
54741
54742         Import --enable-relocatable infrastructure.
54743         * build-aux/config.libpath: New file, from GNU gettext.
54744         * build-aux/install-reloc: New file, from GNU gettext.
54745         * build-aux/reloc-ldflags: New file, from GNU gettext.
54746         * lib/relocatable.h: New file, from GNU gettext.
54747         * lib/relocatable.c: New file, from GNU gettext.
54748         * lib/relocwrapper.c: New file, from GNU gettext.
54749         * m4/relocatable.m4: New file, from GNU gettext.
54750
54751 2007-02-28  Bruno Haible  <bruno@clisp.org>
54752
54753         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54754
54755         * modules/xreadlink: New file, from GNU gettext with modifications.
54756         * lib/xreadlink.c: New file, from GNU gettext.
54757         * lib/xreadlink.h: Add comments.
54758         (xreadlink): New declaration.
54759
54760         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54761         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54762         lib/xreadlink-with-size.c.
54763         (configure.ac): Remove gl_XREADLINK invocation.
54764         (Makefile.am): Augment lib_SOURCES.
54765         * m4/xreadlink.m4: Remove file.
54766         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54767         (xreadlink_with_size): Renamed from xreadink.
54768         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54769         * modules/canonicalize (Depends-on): Replace xreadlink with
54770         xreadlink-with-size.
54771         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54772
54773 2007-02-25  Jim Meyering  <jim@meyering.net>
54774
54775         * build-aux/announce-gen: When complaining about excess arguments,
54776         list them.
54777
54778 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54779
54780         * README: Document signed integer overflow situation more
54781         accurately.
54782
54783 2007-02-25  Bruno Haible  <bruno@clisp.org>
54784
54785         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54786         'a' or 'A' conversion.
54787
54788 2007-02-25  Bruno Haible  <bruno@clisp.org>
54789
54790         * modules/filename: Renamed from modules/pathname.
54791         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54792         lib/concatpath.c with lib/concat-filename.c.
54793         (Makefile.am): Update.
54794         (Include): Replace pathname.h with filename.h.
54795         * lib/filename.h: Renamed from lib/pathname.h.
54796         (concatenated_filename): Renamed from concatenated_pathname.
54797         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54798         (concatenated_filename): Renamed from concatenated_pathname.
54799         * lib/findprog.c: Include filename.h instead of pathname.h.
54800         (find_in_path): Update.
54801         * lib/javacomp.c: Include filename.h instead of pathname.h.
54802         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54803         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54804         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54805         is_oldgcj_14_13_usable, is_javac_usable): Update.
54806         * lib/javaexec.c: Include filename.h instead of pathname.h.
54807         (execute_java_class): Update.
54808         * modules/findprog: Update.
54809         * modules/javacomp: Update.
54810         * modules/javaexec: Update.
54811         * MODULES.html.sh (File system functions): Add 'filename', remove
54812         'pathname'.
54813
54814 2007-02-25  Bruno Haible  <bruno@clisp.org>
54815
54816         * modules/printf-frexpl-tests: New file.
54817         * tests/test-printf-frexpl.c: New file.
54818
54819         * modules/printf-frexpl: New file.
54820         * lib/printf-frexpl.h: New file.
54821         * lib/printf-frexpl.c: New file.
54822         * m4/printf-frexpl.m4: New file.
54823
54824 2007-02-25  Bruno Haible  <bruno@clisp.org>
54825
54826         * modules/printf-frexp-tests: New file.
54827         * tests/test-printf-frexp.c: New file.
54828
54829         * modules/printf-frexp: New file.
54830         * lib/printf-frexp.h: New file.
54831         * lib/printf-frexp.c: New file.
54832         * m4/printf-frexp.m4: New file.
54833
54834 2007-02-25  Bruno Haible  <bruno@clisp.org>
54835
54836         Assume automake >= 1.10 for the tests.
54837         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54838         * modules/arctwo-tests: Likewise.
54839         * modules/argp-tests: Likewise.
54840         * modules/avltree-list-tests: Likewise.
54841         * modules/avltree-oset-tests: Likewise.
54842         * modules/avltreehash-list-tests: Likewise.
54843         * modules/carray-list-tests: Likewise.
54844         * modules/crc-tests: Likewise.
54845         * modules/des-tests: Likewise.
54846         * modules/gc-arcfour-tests: Likewise.
54847         * modules/gc-arctwo-tests: Likewise.
54848         * modules/gc-des-tests: Likewise.
54849         * modules/gc-hmac-md5-tests: Likewise.
54850         * modules/gc-hmac-sha1-tests: Likewise.
54851         * modules/gc-md2-tests: Likewise.
54852         * modules/gc-md4-tests: Likewise.
54853         * modules/gc-md5-tests: Likewise.
54854         * modules/gc-pbkdf2-sha1-tests: Likewise.
54855         * modules/gc-rijndael-tests: Likewise.
54856         * modules/gc-sha1-tests: Likewise.
54857         * modules/gc-tests: Likewise.
54858         * modules/getaddrinfo-tests: Likewise.
54859         * modules/hmac-md5-tests: Likewise.
54860         * modules/hmac-sha1-tests: Likewise.
54861         * modules/linked-list-tests: Likewise.
54862         * modules/linkedhash-list-tests: Likewise.
54863         * modules/lock-tests: Likewise.
54864         * modules/md2-tests: Likewise.
54865         * modules/md4-tests: Likewise.
54866         * modules/md5-tests: Likewise.
54867         * modules/rbtree-list-tests: Likewise.
54868         * modules/rbtree-oset-tests: Likewise.
54869         * modules/rbtreehash-list-tests: Likewise.
54870         * modules/read-file-tests: Likewise.
54871         * modules/rijndael-tests: Likewise.
54872         * modules/stdint-tests: Likewise.
54873         * modules/tls-tests: Likewise.
54874
54875 2007-02-24  Bruno Haible  <bruno@clisp.org>
54876
54877         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54878         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54879         function; instead check whether isnan with a double argument links.
54880         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54881         function; instead check whether isnan with a 'long double' argument
54882         links.
54883         Reported by Eric Blake <ebb9@byu.net>.
54884
54885 2007-02-24  Bruno Haible  <bruno@clisp.org>
54886
54887         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54888         defined.
54889         * lib/isnanl.c: Remove all code. Just include isnan.c.
54890         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54891
54892 2007-02-25  Jim Meyering  <jim@meyering.net>
54893
54894         Avoid conflicting types for 'unsetenv' on FreeBSD.
54895         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54896         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54897         in stdlib.h.
54898
54899 2007-02-24  Bruno Haible  <bruno@clisp.org>
54900
54901         * modules/isnanl-nolibm-tests: New file.
54902         * tests/test-isnanl.c: New file.
54903
54904         * modules/isnanl-nolibm: New file.
54905         * lib/isnanl.h: New file.
54906         * lib/isnanl.c: New file.
54907         * m4/isnanl.m4: New file.
54908
54909 2007-02-24  Bruno Haible  <bruno@clisp.org>
54910
54911         * modules/isnan-nolibm-tests: New file.
54912         * tests/test-isnan.c: New file.
54913
54914         * modules/isnan-nolibm: New file.
54915         * lib/isnan.h: New file.
54916         * lib/isnan.c: New file.
54917         * m4/isnan.m4: New file.
54918
54919 2007-02-24  Bruno Haible  <bruno@clisp.org>
54920
54921         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54922         assume that an exponent fits in 20 bits.
54923
54924 2007-02-24  Jim Meyering  <jim@meyering.net>
54925
54926         * m4/regex.m4: Update the description of the configure-time option,
54927         --without-included-regex, to state accurately what the defaults are,
54928         and perhaps to give people an idea why using this option is risky.
54929
54930 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54931
54932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54933         loops on small arguments.  This attempts to avoid the problem
54934         Bruno Haible reported for AIX 4.3.2 in
54935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54936
54937 2007-02-23  Bruno Haible  <bruno@clisp.org>
54938
54939         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54940         Needed for help2man.
54941
54942 2007-02-23  Karl Berry  <karl@gnu.org>
54943
54944         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54945         exists, foo.h should be cvs-ignored, not committed.
54946
54947 2007-02-23  Eric Blake  <ebb9@byu.net>
54948
54949         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54950         * lib/stat-time.h (includes): Likewise.
54951         * lib/utimecmp.c (includes): Likewise.
54952         * lib/utimens.h (includes): Likewise.
54953         * lib/getdate.y (includes): Also include "timespec.h" for use
54954         internal to the module.
54955         * modules/utimens (Depends-on): Revert yesterday's patch.
54956         * modules/nanosleep (Depends-on): Add missing dependency.
54957
54958 2007-02-22  Bruno Haible  <bruno@clisp.org>
54959
54960         * lib/glob.c: Don't include getlogin_r.h.
54961
54962 2007-02-22  Jim Meyering  <jim@meyering.net>
54963
54964         * modules/utimens (Depends-on): Add timespec, required for
54965         utimens.h's inclusion of timespec.h.
54966
54967 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54970         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54971         Schwab in
54972         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54973         I'll try to think of a better way to fix the Solaris problem.
54974
54975         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54976         like glibc; on Solaris 10, it fails with errno == EINVAL.
54977         POSIX says the behavior is unspecified if the first argument is NULL,
54978         so play it safe and never pass NULL to the system getcwd.
54979
54980 2007-02-21  Jim Meyering  <jim@meyering.net>
54981
54982         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54983         of gettimeofday.  It would conflict with the one now always
54984         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54985         an IRIX 6.5 build failure.
54986
54987 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         Minor fixups to port to Solaris 10 with Sun C 5.8.
54990         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54991         * modules/getcwd (Depends-on): Add dirfd.
54992         * lib/putenv.c (putenv): #undef it.
54993         (rpl_putenv): New decl.
54994         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54995
54996 2007-02-20  Bruno Haible  <bruno@clisp.org>
54997
54998         * modules/stdio-tests: New file.
54999         * tests/test-stdio.c: New file.
55000
55001         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55002         (Depends-on): Add stdio.
55003         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55004         (Include): Use <stdio.h> instead of vsnprintf.h.
55005         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55006         HAVE_DECL_VSNPRINTF.
55007         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55008
55009         * modules/snprintf (Files): Remove lib/snprintf.h.
55010         (Depends-on): Add stdio.
55011         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55012         (Include): Use <stdio.h> instead of snprintf.h.
55013         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55014         HAVE_DECL_SNPRINTF.
55015         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55016         * lib/getaddrinfo.c: Likewise.
55017
55018         * modules/stdio: New file.
55019         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55020         * lib/snprintf.h: Remove file.
55021         * lib/vsnprintf.h: Remove file.
55022         * lib/.cppi-disable: Remove snprintf.h.
55023         * m4/stdio_h.m4: New file.
55024         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55025
55026 2007-02-20  Jim Meyering  <jim@meyering.net>
55027
55028         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55029         used by e.g., mingw.  From Bruno Haible.
55030
55031 2007-02-19  Bruno Haible  <bruno@clisp.org>
55032
55033         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55034         warnings.
55035         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55036
55037 2007-02-19  Bruno Haible  <bruno@clisp.org>
55038
55039         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55040         from mingw users.
55041
55042 2007-02-19  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55045         warnings.
55046         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55047
55048 2007-02-19  Jim Meyering  <jim@meyering.net>
55049
55050         Don't use FD after a successful "fdopendir (fd)".
55051         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55052         Reset it by calling dirfd on the just-obtained DIR*.
55053
55054         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55055         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55056
55057 2007-02-18  Bruno Haible  <bruno@clisp.org>
55058
55059         * lib/readlink.c: Include <unistd.h>.
55060         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55061         HAVE_READLINK.
55062         * modules/readlink (Depends-on): Add unistd.
55063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55064         (Include): Add <unistd.h>.
55065
55066         * lib/getlogin_r.h: Remove file.
55067         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55068         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55069         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55070         HAVE_DECL_GETLOGIN_R.
55071         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55072         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55073         (Include): Use <unistd.h> instead of getlogin_r.h.
55074
55075         * lib/getcwd.h: Remove file.
55076         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55077         * lib/xgetcwd.c: Likewise.
55078         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55079         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55080         * modules/getcwd (Files): Remove lib/getcwd.h.
55081         (Depends-on): Add unistd.
55082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55083         (Include): Use <unistd.h> instad of getcwd.h.
55084
55085         * lib/ftruncate.c: Include <unistd.h> first.
55086         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55087         Set HAVE_FTRUNCATE.
55088         * modules/ftruncate (Depends-on): Add unistd.
55089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55090
55091         * lib/fchdir.c: Include <unistd.h> first.
55092         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55094         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55095         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55096         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55097
55098         * lib/dup2.c: Include <unistd.h> first.
55099         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55100         HAVE_DUP2.
55101         * modules/dup2 (Depends-on): Add unistd.
55102         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55103
55104         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55105         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55106         REPLACE_CHOWN. Don't define chown as a macro here.
55107         * modules/chown (Depends-on): Add unistd.
55108         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55109
55110         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55111         Add definition for GL_LINK_WARNING.
55112         (chown, dup2): New declarations.
55113         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55114         link warning.
55115         (ftruncate): New declaration.
55116         (getcwd): New declaration, taken from old getcwd.h.
55117         (getlogin_r): New declaration, taken from old getlogin_r.h.
55118         (readlink): New declaration.
55119         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55120         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55121         (gl_PREREQ_UNISTD): Remove macro.
55122         (gl_UNISTD_MODULE_INDICATOR): New macro.
55123         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55124         many new variables. Don't set UNISTD_H.
55125         * modules/unistd (Description): Change.
55126         (Depends-on): Add link-warning.
55127         (configure.ac): Update.
55128         (Makefile.am): Create unistd.h always. Substitute many new variables
55129         into it.
55130
55131 2007-02-18  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55134         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55135         HAVE_GETSUBOPT.
55136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55137         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55138         * lib/getsubopt.h: Remove file.
55139         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55140         (Depends-on): Add stdlib.
55141         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55142         (Includes): Use <stdlib.h> instead of getsubopt.h.
55143         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55144         Set HAVE_GETSUBOPT.
55145         * lib/getsubopt.c: Don't include getsubopt.h.
55146
55147 2007-02-18  Bruno Haible  <bruno@clisp.org>
55148
55149         * modules/fchdir (Depends-on): Add dup2.
55150
55151 2007-02-18  Bruno Haible  <bruno@clisp.org>
55152
55153         * lib/stdlib_.h: Handle glibc's special invocation convention
55154         specially.
55155
55156 2007-02-18  Bruno Haible  <bruno@clisp.org>
55157
55158         * modules/stdlib-tests: New file.
55159         * tests/test-stdlib.c: New file.
55160
55161         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55162         (Depends-on): Add stdlib.
55163         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55164         (Includes): Use <stdlib.h> instead of mkstemp.h.
55165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55166         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55167         * lib/mkstemp.c: Don't include mkstemp.h.
55168         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55169         * lib/stdlib--.h: Don't include mkstemp.h.
55170
55171         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55172         (Depends-on): Add stdlib.
55173         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55174         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55175         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55176         HAVE_MKDTEMP.
55177         * lib/mkdtemp.c: Don't include mkdtemp.h.
55178         * lib/clean-temp.c: Don't include mkdtemp.h.
55179
55180         * modules/exit (Files): Remove lib/exit.h.
55181         (Depends-on): Add stdlib.
55182         (Makefile.am): Remove lib_SOURCES.
55183         (Include): Use <stdlib.h> instead of exit.h.
55184         * lib/argmatch.c: Don't include exit.h.
55185         * lib/execute.c: Likewise.
55186         * lib/pagealign_alloc.c: Likewise.
55187         * lib/pipe.c: Likewise.
55188         * lib/wait-process.c: Likewise.
55189         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55190         * lib/exitfail.c: Likewise.
55191         * lib/savewd.c: Likewise.
55192         * lib/xsetenv.c: Likewise.
55193
55194         * modules/stdlib: New file.
55195         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55196         and extra comments about mkstemp().
55197         * lib/exit.h: Remove file.
55198         * lib/mkdtemp.h: Remove file.
55199         * lib/mkstemp.h: Remove file.
55200         * m4/stdlib_h.m4: New file.
55201         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55202
55203 2007-02-18  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/math-tests: New file.
55206         * tests/test-math.c: New file.
55207
55208         * modules/math: New file.
55209         * modules/mathl (Files): Remove lib/mathl.h.
55210         (Depends-on): Add math.
55211         (Makefile.am): Don't mention mathl.h.
55212         (Include): Use <math.h> instead of mathl.h.
55213         * lib/math_.h: New file.
55214         * lib/mathl.h: Remove file.
55215         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55216         mathl.h.
55217         * lib/asinl.c: Likewise.
55218         * lib/atanl.c: Likewise.
55219         * lib/ceill.c: Likewise.
55220         * lib/cosl.c: Likewise.
55221         * lib/expl.c: Likewise.
55222         * lib/floorl.c: Likewise.
55223         * lib/frexpl.c: Likewise.
55224         * lib/ldexpl.c: Likewise.
55225         * lib/logl.c: Likewise.
55226         * lib/sincosl.c: Likewise.
55227         * lib/sinl.c: Likewise.
55228         * lib/sqrtl.c: Likewise.
55229         * lib/tanl.c: Likewise.
55230         * lib/trigl.c: Likewise.
55231         * m4/math_h.m4: New file.
55232         * MODULES.html.sh (Mathematics): Add math.
55233
55234 2007-02-17  Bruno Haible  <bruno@clisp.org>
55235
55236         * modules/wctype-tests: New file.
55237         * tests/test-wctype.c: New file.
55238
55239         * modules/wchar-tests: New file.
55240         * tests/test-wchar.c: New file.
55241
55242         * modules/unistd-tests: New file.
55243         * tests/test-unistd.c: New file.
55244
55245         * modules/time-tests: New file.
55246         * tests/test-time.c: New file.
55247
55248         * modules/sysexits-tests: New file.
55249         * tests/test-sysexits.c: New file.
55250
55251         * modules/sys_time-tests: New file.
55252         * tests/test-sys_time.c: New file.
55253
55254         * modules/sys_stat-tests: New file.
55255         * tests/test-sys_stat.c: New file.
55256
55257         * modules/sys_socket-tests: New file.
55258         * tests/test-sys_socket.c: New file.
55259
55260         * modules/sys_select-tests: New file.
55261         * tests/test-sys_select.c: New file.
55262
55263         * modules/string-tests: New file.
55264         * tests/test-string.c: New file.
55265
55266         * modules/stdbool-tests: New file.
55267         * tests/test-stdbool.c: New file.
55268
55269         * modules/netinet_in-tests: New file.
55270         * tests/test-netinet_in.c: New file.
55271
55272         * modules/inttypes-tests: New file.
55273         * tests/test-inttypes.c: New file.
55274
55275         * modules/fcntl-tests: New file.
55276         * tests/test-fcntl.c: New file.
55277
55278         * modules/byteswap-tests: New file.
55279         * tests/test-byteswap.c: New file.
55280
55281         * modules/arpa_inet-tests: New file.
55282         * tests/test-arpa_inet.c: New file.
55283
55284 2007-02-17  Bruno Haible  <bruno@clisp.org>
55285
55286         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55287         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55288         if the corresponding module is not enabled. Emit link warnings if
55289         the function is used nevertheless.
55290         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55291         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55292         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55293         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55294         * modules/inttypes (Depends-on): Add link-warning.
55295         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55296         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55297         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55298         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55299         * modules/imaxdiv (configure.ac): Likewise.
55300         * modules/strtoimax (configure.ac): Likewise.
55301         * modules/strtoumax (configure.ac): Likewise.
55302
55303 2007-02-17  Bruno Haible  <bruno@clisp.org>
55304
55305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55306         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55307         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55308         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55309
55310 2007-02-17  Bruno Haible  <bruno@clisp.org>
55311
55312         * modules/link-warning: New file.
55313         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55314         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55315         * modules/string (Depends-on): Add link-warning.
55316         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55317         string.h.
55318         * MODULES.html.sh (Support for building libraries and executables): Add
55319         link-warning.
55320
55321 2007-02-17  Bruno Haible  <bruno@clisp.org>
55322
55323         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55324         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55325         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55326         long lines.
55327
55328 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55329             Bruno Haible  <bruno@clisp.org>
55330
55331         * modules/tmpfile: New file.
55332         * lib/tmpfile.c: New file.
55333         * m4/tmpfile.m4: New file.
55334         * MODULES.html.sh (func_all_modules): New section "Input/output".
55335
55336 2007-02-15  Bruno Haible  <bruno@clisp.org>
55337
55338         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55339         (supports_delete_on_close): New function.
55340         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55341
55342 2007-02-14  Bruno Haible  <bruno@clisp.org>
55343
55344         * modules/mbspcasecmp-tests: New file.
55345         * tests/test-mbspcasecmp.sh: New file.
55346         * tests/test-mbspcasecmp.c: New file.
55347
55348         New module mbspcasecmp.
55349         * modules/mbspcasecmp: New file.
55350         * lib/mbspcasecmp.c: New file.
55351         * lib/string_.h (strncasecmp): Change warning message.
55352         (mbspcasecmp): New declaration.
55353         * m4/mbspcasecmp.m4: New file.
55354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55355         GNULIB_MBSPCASECMP.
55356         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55357         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55358
55359 2007-02-14  Bruno Haible  <bruno@clisp.org>
55360
55361         * modules/mbsncasecmp-tests: New file.
55362         * tests/test-mbsncasecmp.sh: New file.
55363         * tests/test-mbsncasecmp.c: New file.
55364
55365         New module mbsncasecmp.
55366         * modules/mbsncasecmp: New file.
55367         * lib/mbsncasecmp.c: New file.
55368         * lib/string_.h (mbsncasecmp): New declaration.
55369         * m4/mbsncasecmp.m4: New file.
55370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55371         GNULIB_MBSNCASECMP.
55372         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55373         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55374
55375 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55376
55377         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55378         Verify that it doesn't overlap with our flags.
55379         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55380         do not have the desired effect in multibyte locales; instead, use
55381         mbscasecmp.
55382         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55383         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55384         we don't require GNU fnmatch ourselves (if our users require it, they
55385         should do so explicitly).
55386
55387         Fix regex code so it doesn't rely on strcasecmp.
55388         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55389         Otherwise, include gnulib's langinfo.h.
55390         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55391         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55392         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55393         * modules/regex (FILES): Remove m4/codeset.m4.
55394         (Depends-on): Add localcharset.  Remove strcase.
55395
55396 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55397
55398         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55399         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55400
55401 2007-02-13  Bruno Haible  <bruno@clisp.org>
55402
55403         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55404         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55405
55406 2007-02-12  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55409         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55410         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55411         time warning rather than a link error.
55412
55413 2007-02-12  Bruno Haible  <bruno@clisp.org>
55414
55415         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55416         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55418
55419 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55420
55421         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55422         args, not 2.
55423
55424 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55425
55426         New module 'time', so that apps can include <time.h> as per
55427         POSIX and GNU instead of separate include files like time_r.h
55428         and timegm.h.  This implementation tries out a simpler approach
55429         for replacing decls in standard include files (as compared to
55430         the string module), somewhat as an experiment.
55431
55432         * config/srclist.txt: Comment out mktime.c for now.
55433         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55434         since it doesn't apply any more.  Use generic wording instead.
55435         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55436         'time'.
55437         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55438         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55439         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55440         Don't include <sys/types.h>; no longer needed since we assume C89.
55441         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55442         * lib/strftime.c: Likewise.
55443         * lib/time_r.c: Likewise.
55444         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55445         * lib/nanosleep.c: Include <time.h> first, to check interface.
55446         * lib/strptime.c: Likewise.
55447         * lib/time_r.c: Likewise.
55448         * lib/timegm.c: Likewise.
55449         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55450         needed.
55451         * lib/timegm.c: Don't include timegm.h; no longer needed.
55452         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55453         time.h now handles any problems in that area.
55454         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55455         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55456         that time.h defines struct timespec.
55457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55458         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55459         handles that.
55460         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55461         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55462         needed.  Set REPLACE_LOCALTIME.
55463         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55464         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55465         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55466         nanosleep; time_h.m4 now does that.  Don't require
55467         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55468         module handles this now.
55469         * modules/getdate (Depends-on): Remove timespec.  Add time.
55470         * modules/nanosleep (Depends-on): Likewise.
55471         * modules/stat-time (Depends-on): Likewise.
55472         * modules/nanosleep (Include): Include time.h, not timespec.h.
55473         * modules/strptime (Files): Remove lib/strptime.h.
55474         (Depends-on): Add extensions, time.
55475         (Include): Include time.h, not strptime.h.
55476         * modules/time_r (Files): Remove lib/time_r.h.
55477         (Depends-on): Add time.
55478         (Include): Include time.h, not time_r.h.
55479         * modules/timegm: Likewise.
55480         * modules/timespec (Description): Now does timespec-related decls
55481         of our own, instead of struct timespec itself.
55482         (Depends-on): Add time; remove extensions.
55483         (Maintainer): Add self.
55484         * modules/utimecmp (Depends-on): Add time; remove timespec.
55485         * modules/utimens (Depends-on): Likewise.
55486         * modules/xnanosleep (Depends-on): Likewise.
55487
55488 2007-02-11  Bruno Haible  <bruno@clisp.org>
55489
55490         * lib/c-strstr.c: Include allocsa.h.
55491         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55492         * lib/c-strcasestr.c: Include allocsa.h.
55493         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55494         * lib/strcasestr.c: Include allocsa.h.
55495         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55496         * lib/mbsstr.c: Include allocsa.h.
55497         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55498         allocsa/freesa instead of malloc/free.
55499         * lib/mbscasestr.c: Include allocsa.h.
55500         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55501         allocsa/freesa instead of malloc/free.
55502         * modules/c-strstr (Depends-on): Add allocsa.
55503         * modules/c-strcasestr (Depends-on): Likewise.
55504         * modules/strcasestr (Depends-on): Likewise.
55505         * modules/mbsstr (Depends-on): Likewise.
55506         * modules/mbscasestr (Depends-on): Likewise.
55507
55508 2007-02-11  Bruno Haible  <bruno@clisp.org>
55509
55510         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55511
55512         * modules/mbsspn-tests: New file.
55513         * tests/test-mbsspn.sh: New file.
55514         * tests/test-mbsspn.c: New file.
55515
55516 2007-02-11  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55519
55520         * modules/mbspbrk-tests: New file.
55521         * tests/test-mbspbrk.sh: New file.
55522         * tests/test-mbspbrk.c: New file.
55523
55524 2007-02-11  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55527         unneeded cast.
55528
55529         * modules/mbscspn-tests: New file.
55530         * tests/test-mbscspn.sh: New file.
55531         * tests/test-mbscspn.c: New file.
55532
55533 2007-02-11  Bruno Haible  <bruno@clisp.org>
55534
55535         * modules/mbscasecmp-tests: New file.
55536         * tests/test-mbscasecmp.sh: New file.
55537         * tests/test-mbscasecmp.c: New file.
55538
55539 2007-02-11  Bruno Haible  <bruno@clisp.org>
55540
55541         Ensure O(n) worst-case complexity of mbscasestr.
55542         * lib/mbscasestr.c: Include stdbool.h.
55543         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55544         functions.
55545         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55546         the bookkeeping indicates that it's worth it.
55547         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55548
55549         * modules/mbscasestr-tests: New file.
55550         * tests/test-mbscasestr1.c: New file.
55551         * tests/test-mbscasestr2.sh: New file.
55552         * tests/test-mbscasestr2.c: New file.
55553         * tests/test-mbscasestr3.sh: New file.
55554         * tests/test-mbscasestr3.c: New file.
55555         * tests/test-mbscasestr4.sh: New file.
55556         * tests/test-mbscasestr4.c: New file.
55557         * m4/locale-tr.m4: New file.
55558
55559 2007-02-11  Bruno Haible  <bruno@clisp.org>
55560
55561         Ensure O(n) worst-case complexity of mbsstr.
55562         * lib/mbsstr.c: Include stdbool.h.
55563         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55564         functions.
55565         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55566         bookkeeping indicates that it's worth it.
55567         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55568
55569         * modules/mbsstr-tests: New file.
55570         * tests/test-mbsstr1.c: New file.
55571         * tests/test-mbsstr2.sh: New file.
55572         * tests/test-mbsstr2.c: New file.
55573         * tests/test-mbsstr3.sh: New file.
55574         * tests/test-mbsstr3.c: New file.
55575         * m4/locale-fr.m4: New file.
55576
55577 2007-02-11  Bruno Haible  <bruno@clisp.org>
55578
55579         * lib/mbsrchr.c (mbsrchr): Fix bug.
55580
55581         * modules/mbsrchr-tests: New file.
55582         * tests/test-mbsrchr.sh: New file.
55583         * tests/test-mbsrchr.c: New file.
55584
55585 2007-02-11  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/mbschr.c (mbschr): Fix bug.
55588
55589         * modules/mbschr-tests: New file.
55590         * tests/test-mbschr.sh: New file.
55591         * tests/test-mbschr.c: New file.
55592         * m4/locale-zh.m4: New file.
55593
55594 2007-02-11  Bruno Haible  <bruno@clisp.org>
55595
55596         Support for copying multibyte string iterators.
55597         * lib/mbiter.h: Include <string.h>.
55598         (mbiter_multi_copy): New function.
55599         (mbi_copy): New macro.
55600         * lib/mbuiter.h: Include <string.h>.
55601         (mbuiter_multi_copy): New function.
55602         (mbui_copy): New macro.
55603
55604 2007-02-11  Bruno Haible  <bruno@clisp.org>
55605
55606         New module mbslen.
55607         * modules/mbslen: New file.
55608         * lib/mbslen.c: New file.
55609         * lib/string_.h (mbslen): New declaration.
55610         * m4/mbslen.m4: New file.
55611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55612         GNULIB_MBSLEN.
55613         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55614         * MODULES.html.sh (Internationalization functions): Add mbslen.
55615
55616 2007-02-11  Bruno Haible  <bruno@clisp.org>
55617
55618         Ensure O(n) worst-case complexity of strcasestr substitute.
55619         * lib/strcasestr.c: Include stdbool.h.
55620         (knuth_morris_pratt): New function.
55621         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55622         bookkeeping indicates that it's worth it.
55623         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55624
55625         * modules/strcasestr-tests: New file.
55626         * tests/test-strcasestr.c: New file.
55627
55628 2007-02-11  Bruno Haible  <bruno@clisp.org>
55629
55630         Ensure O(n) worst-case complexity of c_strcasestr.
55631         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55632         (knuth_morris_pratt): New function.
55633         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55634         the bookkeeping indicates that it's worth it.
55635         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55636
55637         * modules/c-strcasestr-tests: New file.
55638         * tests/test-c-strcasestr.c: New file.
55639
55640 2007-02-11  Bruno Haible  <bruno@clisp.org>
55641
55642         Ensure O(n) worst-case complexity of c_strstr.
55643         * lib/c-strstr.c: Include stdbool.h, string.h.
55644         (knuth_morris_pratt): New function.
55645         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55646         bookkeeping indicates that it's worth it.
55647         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55648
55649         * lib/c-strstr.c: Complete rewrite for maintainability.
55650
55651         * modules/c-strstr-tests: New file.
55652         * tests/test-c-strstr.c: New file.
55653
55654 2007-02-11  Bruno Haible  <bruno@clisp.org>
55655
55656         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55657         5.2.1 and earlier, whereby \055 was treated just like the range
55658         delimiter '-'.
55659         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55660
55661 2007-02-08  Bruno Haible  <bruno@clisp.org>
55662
55663         * modules/regex (Depends-on): Add stdbool.
55664         Reported by Dalibor Topic <robilad@kaffe.org>.
55665
55666 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55669         Prefer returning from main to exiting from it.
55670         Remove unnecessary parens after sizeof.
55671
55672 2007-02-05  Bruno Haible  <bruno@clisp.org>
55673
55674         New module mbssep.
55675         * modules/mbssep: New file.
55676         * lib/mbssep.c: New file.
55677         * lib/string_.h (strsep): Add a conditional link warning.
55678         (mbssep): New declaration.
55679         * m4/mbssep.m4: New file.
55680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55681         GNULIB_MBSSEP.
55682         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55683         * MODULES.html.sh (Internationalization functions): Add mbssep.
55684
55685 2007-02-05  Bruno Haible  <bruno@clisp.org>
55686
55687         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55688         Optimize search in case of 1 delimiter.
55689
55690 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55691
55692         * lib/acl.h: Include sys/types.h before sys/acl.h.
55693
55694 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55695
55696         Merge upstream fix for glibc bugzilla #3957:
55697
55698         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55699
55700         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55701         bit for RE_HAT_LISTS_NOT_NEWLINE.
55702         (build_charclass_op): Remove bogus comment.
55703
55704 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55705
55706         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55707
55708 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55709
55710         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55711         * lib/memmem.c [!defined _LIBC]: Include config.h.
55712
55713 2007-02-04  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55716         warning message.
55717
55718 2007-02-04  Bruno Haible  <bruno@clisp.org>
55719
55720         New module mbstok_r.
55721         * modules/mbstok_r: New file.
55722         * lib/mbstok_r.c: New file.
55723         * lib/string_.h (strtok_r): Change argument names to match the
55724         comments. Add a conditional link warning.
55725         (mbstok_r): New declaration.
55726         * m4/mbstok_r.m4: New file.
55727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55728         GNULIB_MBSTOK_R.
55729         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55730         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55731
55732 2007-02-04  Bruno Haible  <bruno@clisp.org>
55733
55734         New module mbsspn.
55735         * modules/mbsspn: New file.
55736         * lib/mbsspn.c: New file.
55737         * lib/string_.h (strspn): Add a conditional link warning.
55738         (mbsspn): New declaration.
55739         * m4/mbsspn.m4: New file.
55740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55741         GNULIB_MBSSPN.
55742         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55743         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55744
55745 2007-02-04  Bruno Haible  <bruno@clisp.org>
55746
55747         New module mbspbrk.
55748         * modules/mbspbrk: New file.
55749         * lib/mbspbrk.c: New file.
55750         * lib/string_.h (strpbrk): Add a conditional link warning.
55751         (mbspbrk): New declaration.
55752         * m4/mbspbrk.m4: New file.
55753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55754         GNULIB_MBSPBRK.
55755         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55756         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55757
55758 2007-02-04  Bruno Haible  <bruno@clisp.org>
55759
55760         New module mbscspn.
55761         * modules/mbscspn: New file.
55762         * lib/mbscspn.c: New file.
55763         * lib/string_.h (strcspn): Add a conditional link warning.
55764         (mbscspn): New declaration.
55765         * m4/mbscspn.m4: New file.
55766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55767         GNULIB_MBSCSPN.
55768         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55769         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55770
55771 2007-02-04  Bruno Haible  <bruno@clisp.org>
55772
55773         New module mbscasestr, reduced goal of strcasestr.
55774         * modules/mbscasestr: New file.
55775         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55776         (mbscasestr): Renamed from strcasestr.
55777         * lib/strcasestr.c: Don't include mbuiter.h.
55778         (strcasestr): Remove support for multibyte locales.
55779         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55780         Change the conditional link warning.
55781         (mbscasestr): New declaration.
55782         * m4/mbscasestr.m4: New file.
55783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55784         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55785         REPLACE_STRCASESTR.
55786         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55788         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55789         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55790         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55791         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55792         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55793         (Depends-on): Remove mbuiter.
55794         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55795
55796 2007-02-04  Bruno Haible  <bruno@clisp.org>
55797
55798         Simplify handling of strncasecmp.
55799         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55800         the conditional link warning.
55801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55802         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55803         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55804         * modules/strcase (configure.ac): Don't invoke
55805         gl_STRING_MODULE_INDICATOR.
55806         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55807
55808 2007-02-04  Bruno Haible  <bruno@clisp.org>
55809
55810         New module mbscasecmp, reduced goal of strcasecmp.
55811         * modules/mbscasecmp: New file.
55812         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55813         (mbscasecmp): Renamed from strcasecmp.
55814         * lib/strcasecmp.c: Don't include mbuiter.h.
55815         (strcasecmp): Remove support for multibyte locales.
55816         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55817         Change the conditional link warning.
55818         (mbscasecmp): New declaration.
55819         * m4/mbscasecmp.m4: New file.
55820         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55821         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55822         REPLACE_STRCASECMP.
55823         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55824         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55825         GNULIB_MBSCASECMP.
55826         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55827         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55828         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55829         (Depends-on): Remove mbuiter.
55830         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55831
55832 2007-02-04  Bruno Haible  <bruno@clisp.org>
55833
55834         New module mbsstr. Remove module strstr.
55835         * modules/mbsstr: New file.
55836         * modules/strstr: Remove file.
55837         * lib/mbsstr.c: Renamed from lib/strstr.c.
55838         (mbsstr): Renamed from strstr.
55839         * lib/string_.h (strstr): Remove declaration. Change the conditional
55840         link warning.
55841         (mbsstr): New declaration.
55842         * m4/mbsstr.m4: New file.
55843         * m4/strstr.m4: Remove file.
55844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55845         REPLACE_STRSTR.
55846         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55847         Don't initialize GNULIB_STRSTR.
55848         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55849         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55850         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55851         (Support for systems lacking ANSI C 89): Remove strstr.
55852
55853 2007-02-04  Bruno Haible  <bruno@clisp.org>
55854
55855         New module mbsrchr.
55856         * modules/mbsrchr: New file.
55857         * lib/mbsrchr.c: New file.
55858         * lib/string_.h (strrchr): Add a conditional link warning.
55859         (mbsrchr): New declaration.
55860         * m4/mbsrchr.m4: New file.
55861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55862         GNULIB_MBSRCHR.
55863         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55864         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55865
55866 2007-02-04  Bruno Haible  <bruno@clisp.org>
55867
55868         New module mbschr.
55869         * modules/mbschr: New file.
55870         * lib/mbschr.c: New file.
55871         * lib/string_.h (strchr): Add a conditional link warning.
55872         (mbschr): New declaration.
55873         * m4/mbschr.m4: New file.
55874         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55875         GNULIB_MBSCHR.
55876         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55877         * MODULES.html.sh (Internationalization functions): Add mbschr.
55878
55879 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55880
55881         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55882
55883         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55884
55885 2007-02-04  Bruno Haible  <bruno@clisp.org>
55886
55887         New module description section 'configure.ac-early'.
55888         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55889         (func_get_autoconf_early_snippet): New function.
55890         (func_import, func_create_testdir): Use it. Remove special cases for
55891         modules 'extensions' and 'lock'.
55892         * modules/extensions (configure.ac-early): Require
55893         gl_USE_SYSTEM_EXTENSIONS.
55894         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55895
55896 2007-02-04  Bruno Haible  <bruno@clisp.org>
55897
55898         Make use of gcj-4.3's -fsource and -ftarget option.
55899         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55900         and if so try the options -fsource and -ftarget.
55901         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55902         source_version, ftarget_option, target_version arguments.
55903         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55904         (is_envjavac_oldgcj_14_14_usable): Renamed from
55905         is_envjavac_gcj_14_14_usable.
55906         (is_envjavac_oldgcj_14_13_usable): Renamed from
55907         is_envjavac_gcj_14_13_usable.
55908         (is_gcj_present): Update.
55909         (is_gcj_43, is_gcj43_usable): New functions.
55910         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55911         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55912         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55913         try the options -fsource and -ftarget.
55914
55915 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55918         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55919         larger value.
55920
55921 2007-02-03  Jim Meyering  <jim@meyering.net>
55922
55923         Give tools a better chance to allocate space for very large buffers.
55924         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55925
55926         Make pwd and readlink work also when run with an unreadable parent dir
55927         on systems with openat support.
55928         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55929         provided getcwd function, even when we have openat support.
55930         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55931
55932 2007-02-02  Bruno Haible  <bruno@clisp.org>
55933
55934         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55935         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55936         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55937         portability problems if one of these functions is only used on specific
55938         platforms.
55939         Reported by Paul Eggert.
55940
55941 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55942
55943         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55944         is causing more trouble than it's curing.
55945         * lib/regex_internal.h (__mempcpy): Remove.
55946         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55947         (and make the code a tad smaller to boot).
55948         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55949
55950 2007-02-02  Jim Meyering  <jim@meyering.net>
55951
55952         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55953         section, not in the Makefile.am: one.
55954
55955 2007-02-02  Eric Blake  <ebb9@byu.net>
55956
55957         * lib/strchrnul.c: Always include config.h first.
55958
55959         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55960         gnulib strstr is not necessary here.
55961
55962 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55963
55964         * m4/socklen.m4: Fix typo.
55965
55966 2007-02-02  Eric Blake  <ebb9@byu.net>
55967
55968         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55969         * modules/netinet_in (Makefile.am): Likewise.
55970
55971 2007-02-01  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/string_.h (GL_LINK_WARNING): New macro.
55974         (strcasecmp, strstr, strcasestr): If provided by the system,
55975         conditionally define as a macro that leads to a warning instead of to
55976         an error.
55977         (strncasecmp): Conditionally define as a macro that leads to a warning.
55978
55979 2007-02-01  Karl Berry  <karl@gnu.org>
55980
55981         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55982
55983 2007-02-01  Bruno Haible  <bruno@clisp.org>
55984
55985         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55986         renamings.
55987
55988 2007-02-01  Eric Blake  <ebb9@byu.net>
55989
55990         * modules/regex (Depends-on): Revert dependence on mempcpy.
55991         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55992         module's definition of mempcpy.
55993         Reported by Paul Eggert.
55994
55995 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55996
55997         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55998         the symbol XYZ before redefining it.  This fixes a problem with
55999         programs that don't use XYZ, when compiled on systems that define
56000         XYZ to something else.
56001
56002 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56003
56004         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56005         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56006         writeable to group or other and (2) is intended to have a special
56007         mode bit that is set or cleared.  In such a case, the directory
56008         should be neither group- nor other-writeable until the special
56009         mode bits are right.
56010
56011 2007-01-31  Eric Blake  <ebb9@byu.net>
56012
56013         * modules/mountlist (Depends-on): Add strstr.
56014
56015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56016         bug.
56017         * modules/string (Makefile.am): Remove redundant replacement.
56018         * modules/regex (Depends-on): Add mempcpy.
56019
56020 2007-01-31  Bruno Haible  <bruno@clisp.org>
56021
56022         New module description field 'Link'.
56023         * gnulib-tool (func_usage): Document --extract-link-directive.
56024         (sed_extract_prog): Recognize 'Link' directive.
56025         (func_get_link_directive): New function.
56026         (func_import): Show summary of link directives.
56027         Handle --extract-link-directive option.
56028         * modules/acl (Link): New section.
56029         * modules/clock-time (Link): New section.
56030         * modules/euidaccess (Link): New section.
56031         * modules/gettext (Link): New section.
56032         * modules/iconv (Link): New section.
56033         * modules/lock (Link): New section.
56034         * modules/nanosleep (Link): New section.
56035         * modules/readline (Link): New section.
56036
56037 2007-01-27  Bruno Haible  <bruno@clisp.org>
56038
56039         Enforce the use of gnulib modules for unportable <string.h> functions.
56040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56041         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56042         (gl_HEADER_STRING_H_BODY): Require it.
56043         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56044         the symbol XYZ to one that gives a link error.
56045         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56046         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56047         * modules/mempcpy (configure.ac): Likewise.
56048         * modules/memrchr (configure.ac): Likewise.
56049         * modules/stpcpy (configure.ac): Likewise.
56050         * modules/stpncpy (configure.ac): Likewise.
56051         * modules/strcase (configure.ac): Likewise.
56052         * modules/strcasestr (configure.ac): Likewise.
56053         * modules/strchrnul (configure.ac): Likewise.
56054         * modules/strdup (configure.ac): Likewise.
56055         * modules/strndup (configure.ac): Likewise.
56056         * modules/strnlen (configure.ac): Likewise.
56057         * modules/strpbrk (configure.ac): Likewise.
56058         * modules/strsep (configure.ac): Likewise.
56059         * modules/strstr (configure.ac): Likewise.
56060         * modules/strtok_r (configure.ac): Likewise.
56061
56062 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56063
56064         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56065
56066 2007-01-30  Jim Meyering  <jim@meyering.net>
56067
56068         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56069
56070 2007-01-29  Bruno Haible  <bruno@clisp.org>
56071
56072         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56073         * lib/execute.c: Likewise.
56074         * lib/pipe.c: Likewise.
56075         * lib/printf-args.h: Likewise.
56076         * lib/printf-args.c: Likewise.
56077         * lib/printf-parse.c: Likewise.
56078         * lib/vasnprintf.c: Likewise.
56079
56080 2007-01-29  Eric Blake  <ebb9@byu.net>
56081
56082         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56083         declaration.
56084
56085 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56086
56087         * lib/strptime.h (strptime): Use 'restrict' for args where
56088         POSIX requires this.
56089         * lib/strptime.c (strptime): Likewise.
56090         Change license notice from LGPL to GPL, since gnulib-tool will
56091         change this as needed.
56092         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56093         defined.
56094         Include "strptime.h" first, to check interface.
56095         Do not #undef _LIBC and _NL_CURRENT.
56096         Do not include <stdlib.h>; no longer needed.
56097         Include "time_r.h" and declare ptime_locale_status
56098         only if _LIBC is not defined.
56099         (__P): Remove unused macro.
56100         (match_string): Bring back glibc version, but use it only if _LIBC
56101         is defined.
56102         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56103         Remove unnecessary assertion and abort() call.
56104         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56105         * m4/strptime.m4: Fix serial number comment.
56106         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56107         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56108         (Depends-on): Add time_r.
56109
56110 2007-01-29  Bruno Haible  <bruno@clisp.org>
56111
56112         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56113         strptime.
56114         * modules/strptime (Depends-on): Add stdbool.
56115         * lib/strptime.h: Include <time.h> always. Add comments.
56116
56117 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56118
56119         * modules/strptime: New file.
56120         * lib/strptime.h: New file.
56121         * lib/strptime.c: New file.
56122         * m4/strptime.m4: New file.
56123
56124 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * MODULES.html.sh: New module mpsort.
56127         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56128
56129         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56130         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56132         All uses changed.
56133         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56134         All uses changed.
56135         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56136         to _Restrict_.
56137         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56138         the parameter matches the prototype.
56139
56140 2007-01-28  Jim Meyering  <jim@meyering.net>
56141
56142         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56143         sys/time.h here, reverting that part of the previous patch:
56144         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56145
56146 2007-01-28  Bruno Haible  <bruno@clisp.org>
56147
56148         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56149         value of $(SYS_TIME_H).
56150         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56151         remove it conditionally, too. [added by Jim Meyering]
56152         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56153         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56154         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56155         GETTIMEOFDAY_REPLACEMENT to 1.
56156
56157 2007-01-28  Bruno Haible  <bruno@clisp.org>
56158
56159         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56160         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56162         Set UNISTD_H instead of UNISTD_H2.
56163         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56164
56165 2007-01-28  Bruno Haible  <bruno@clisp.org>
56166
56167         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56168         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56169
56170 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56171
56172         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56173         (func_create_testdir): Ensure C locale for `grep' and `tr'
56174         character ranges.
56175         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56176         ACLOCAL_AMFLAGS parsing state machine.
56177
56178 2007-01-27  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/unistr/base: Update.
56181
56182 2007-01-27  Bruno Haible  <bruno@clisp.org>
56183
56184         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56185         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56186         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56187         modules/unistr/u32-mbtouc.
56188         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56189         * lib/unistr.h: Update.
56190         * lib/linebreak.c: Update.
56191         * modules/unistr/u32-mbtouc: Renamed from
56192         modules/unistr/u32-mbtouc-safe.
56193         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56194         * lib/unistr.h: Update.
56195         * lib/unistr/u32-to-u8.c: Update.
56196         * lib/unistr/u32-to-u16.c: Update.
56197
56198 2007-01-27  Bruno Haible  <bruno@clisp.org>
56199
56200         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56201         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56202         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56203         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56204         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56205         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56206         modules/unistr/u16-mbtouc.
56207         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56208         * lib/unistr.h: Update.
56209         * lib/linebreak.c: Update.
56210         * modules/linebreak: Update.
56211         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56212         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56213         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56214         * modules/unistr/u16-mbtouc: Renamed from
56215         modules/unistr/u16-mbtouc-safe.
56216         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56217         * lib/unistr.h: Update.
56218         * lib/unistr/u16-to-u8.c: Update.
56219         * modules/unistr/u16-to-u8: Update.
56220         * lib/unistr/u16-to-u32.c: Update.
56221         * modules/unistr/u16-to-u32: Update.
56222
56223 2007-01-27  Bruno Haible  <bruno@clisp.org>
56224
56225         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56226         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56227         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56228         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56229         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56230         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56231         modules/unistr/u8-mbtouc.
56232         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56233         * lib/unistr.h: Update.
56234         * lib/striconveh.c: Update.
56235         * modules/striconveh: Update.
56236         * lib/linebreak.c: Update.
56237         * modules/linebreak: Update.
56238         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56239         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56240         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56241         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56242         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56243         * lib/unistr.h: Update.
56244         * lib/striconveh.c: Update.
56245         * modules/striconveh: Update.
56246         * lib/unistr/u8-to-u16.c: Update.
56247         * modules/unistr/u8-to-u16: Update.
56248         * lib/unistr/u8-to-u32.c: Update.
56249         * modules/unistr/u8-to-u32: Update.
56250
56251 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56252
56253         Sync from Libtool.
56254         * lib/argz.c: Do not include strings.h nor memory.h, include
56255         string.h unconditionally.  Patch by Simon Josefsson.
56256
56257 2007-01-27  Bruno Haible  <bruno@clisp.org>
56258
56259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56260         from gl_HEADER_STRING_H_BODY.
56261         (gl_HEADER_STRING_H_BODY): Require it.
56262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56263         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56264         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56265         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56266         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56267         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56269         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56270         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56271         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56272         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56273         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56274         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56275         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56276         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56277
56278 2007-01-27  Bruno Haible  <bruno@clisp.org>
56279
56280         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56281         check_PROGRAMS into noinst_PROGRAMS.
56282         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56283         check_PROGRAMS in this case.
56284         (func_import): Set for_test to false.
56285         (func_create_testdir): Set for_test to true.
56286
56287 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56288             Bruno Haible  <bruno@clisp.org>
56289
56290         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56291         (Depends-on): Add string.
56292         (Includes): Use <string.h> instead of strcasestr.h.
56293         * modules/string (Makefile.am): Also substitute the value of
56294         REPLACE_STRCASESTR.
56295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56296         assume strcasestr is declared in <string.h> not <strings.h>. Also
56297         set REPLACE_STRCASESTR.
56298         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56299         REPLACE_STRCASESTR.
56300         * lib/strcasestr.h: Remove file.
56301         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56302         * lib/string_.h (strcasestr): New declaration.
56303
56304 2007-01-27  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/string_.h: Use 'extern'.
56307
56308 2007-01-27  Jim Meyering  <jim@meyering.net>
56309
56310         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56311         of set-but-not-used local, "q".
56312
56313         * lib/mempcpy.c: Include <config.h> before <string.h>.
56314         This fixes a compilation error on HP-UX, due to the system's
56315         "restrict"-using mempcpy prototype.
56316
56317 2007-01-26  Bruno Haible  <bruno@clisp.org>
56318
56319         Small optimization.
56320         * lib/javacomp.c: Include c-strstr.h.
56321          (is_envjavac_gcj): Use c_strstr instead of strstr.
56322         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56323
56324 2007-01-26  Bruno Haible  <bruno@clisp.org>
56325
56326         * MODULES.html.sh (Unicode string functions): Add the new modules.
56327
56328         * modules/uniconv/u32-strconv-to-locale: New file.
56329         * lib/uniconv/u32-strconv-to-locale.c: New file.
56330
56331         * modules/uniconv/u16-strconv-to-locale: New file.
56332         * lib/uniconv/u16-strconv-to-locale.c: New file.
56333
56334         * modules/uniconv/u8-strconv-to-locale: New file.
56335         * lib/uniconv/u8-strconv-to-locale.c: New file.
56336
56337         * modules/uniconv/u32-strconv-from-locale: New file.
56338         * lib/uniconv/u32-strconv-from-locale.c: New file.
56339
56340         * modules/uniconv/u16-strconv-from-locale: New file.
56341         * lib/uniconv/u16-strconv-from-locale.c: New file.
56342
56343         * modules/uniconv/u8-strconv-from-locale: New file.
56344         * lib/uniconv/u8-strconv-from-locale.c: New file.
56345
56346         * modules/uniconv/u32-strconv-to-enc: New file.
56347         * lib/uniconv/u32-strconv-to-enc.c: New file.
56348         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56349         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56350
56351         * modules/uniconv/u16-strconv-to-enc: New file.
56352         * lib/uniconv/u16-strconv-to-enc.c: New file.
56353         * lib/uniconv/u-strconv-to-enc.h: New file.
56354         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56355         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56356
56357         * modules/uniconv/u8-strconv-to-enc: New file.
56358         * lib/uniconv/u8-strconv-to-enc.c: New file.
56359         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56360         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56361
56362         * modules/uniconv/u32-strconv-from-enc: New file.
56363         * lib/uniconv/u32-strconv-from-enc.c: New file.
56364         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56365         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56366
56367         * modules/uniconv/u16-strconv-from-enc: New file.
56368         * lib/uniconv/u16-strconv-from-enc.c: New file.
56369         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56370         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56371
56372         * modules/uniconv/u8-strconv-from-enc: New file.
56373         * lib/uniconv/u8-strconv-from-enc.c: New file.
56374         * lib/uniconv/u-strconv-from-enc.h: New file.
56375         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56376         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56377
56378         * modules/uniconv/u32-conv-from-enc: New file.
56379         * lib/uniconv/u32-conv-from-enc.c: New file.
56380         * modules/uniconv/u32-conv-from-enc-tests: New file.
56381         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56382
56383         * modules/uniconv/u16-conv-from-enc: New file.
56384         * lib/uniconv/u16-conv-from-enc.c: New file.
56385         * lib/uniconv/u-conv-from-enc.h: New file.
56386         * modules/uniconv/u16-conv-from-enc-tests: New file.
56387         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56388
56389         * modules/uniconv/u8-conv-from-enc: New file.
56390         * lib/uniconv/u8-conv-from-enc.c: New file.
56391         * modules/uniconv/u8-conv-from-enc-tests: New file.
56392         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56393
56394         * modules/uniconv/base: New file.
56395         * lib/uniconv.h: New file.
56396
56397 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56398
56399         * doc/gnulib-tool.texi (Initial import): Update to match current
56400         behavior with strdup module.
56401         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56402         * lib/memmem.h: Remove; all uses removed.  This is now done
56403         by <string.h>.
56404         * lib/mempcpy.h: Likewise.
56405         * lib/memrchr.h: Likewise.
56406         * lib/stpcpy.h: Likewise.
56407         * lib/stpncpy.h: Likewise.
56408         * lib/strcase.h: Likewise.
56409         * lib/strchrnul.h: Likewise.
56410         * lib/strdup.h: Likewise.
56411         * lib/strndup.h: Likewise.
56412         * lib/strnlen.h: Likewise.
56413         * lib/strpbrk.h: Likewise.
56414         * lib/strsep.h: Likewise.
56415         * lib/strstr.h: Likewise.
56416         * lib/strtok_r.h: Likewise.
56417         * lib/string_.h: New file.
56418         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56419         Rely on <string.h> instead.
56420         * lib/canon-host.c: Likewise.
56421         * lib/chdir-long.c: Likewise.
56422         * lib/concatpath.c: Likewise.
56423         * lib/exclude.c: Likewise.
56424         * lib/fchdir.c: Likewise.
56425         * lib/getaddrinfo.c: Likewise.
56426         * lib/getcwd.c: Likewise.
56427         * lib/getsubopt.c: Likewise.
56428         * lib/glob.c: Likewise.
56429         * lib/hard-locale.c: Likewise.
56430         * lib/iconvme.c: Likewise.
56431         * lib/javacomp.c: Likewise.
56432         * lib/mempcpy.c: Likewise.
56433         * lib/memrchr.c: Likewise.
56434         * lib/regex_internal.h: Likewise.
56435         * lib/stpncpy.c: Likewise.
56436         * lib/strcasecmp.c: Likewise.
56437         * lib/strchrnul.c: Likewise.
56438         * lib/strdup.c: Likewise.
56439         * lib/striconv.c: Likewise.
56440         * lib/striconveh.c: Likewise.
56441         * lib/striconveha.c: Likewise.
56442         * lib/strncasecmp.c: Likewise.
56443         * lib/strndup.c: Likewise.
56444         * lib/strnlen.c: Likewise.
56445         * lib/strsep.c: Likewise.
56446         * lib/strstr.c: Likewise.
56447         * lib/strtok_r.c: Likewise.
56448         * lib/userspec.c: Likewise.
56449         * lib/w32spawn.h: Likewise.
56450         * lib/xstrndup.c: Likewise.
56451         * lib/mountlist.c (strstr): Remove decl.
56452         * m4/string_h.m4: New file.
56453         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56454         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56456         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56457         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56458         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56459         Set REPLACE_STRCASECMP if necessary.
56460         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56461         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56462         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56463         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56464         HAVE_DECL_STRDUP if necessary.
56465         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56466         since gl_FUNC_STRNDUP does that now.
56467         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56468         Check for decl here...
56469         (gl_PREREQ_STRNLEN): ... not here.
56470         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56471         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56472         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56473         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56474         necessary.
56475         * modules/string: New file.
56476         * modules/memmem (Files): Remove special-purpose include file.
56477         (Depends-on): Add string.
56478         (Include): Include <string.h>, not the removed file.
56479         * modules/mempcpy: Likewise.
56480         * modules/memrchr: Likewise.
56481         * modules/stpcpy: Likewise.
56482         * modules/stpncpy: Likewise.
56483         * modules/strcase: Likewise.
56484         * modules/strchrnul: Likewise.
56485         * modules/strdup: Likewise.
56486         * modules/strndup: Likewise.
56487         * modules/strnlen: Likewise.
56488         * modules/strpbrk: Likewise.
56489         * modules/strsep: Likewise.
56490         * modules/strstr: Likewise.
56491         * modules/strtok_r: Likewise.
56492         * tests/test-dirname.c: Don't include "strdup.h", since
56493         <string.h> now suffices.
56494         * tests/test-memmem.c: Don't include "memmem.h", since
56495         <string.h> now suffices.
56496
56497 2007-01-25  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56500         *resultp is 0.
56501
56502         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56503         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56504         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56505         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56506
56507         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56508         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56509         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56510         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56511         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56512         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56513
56514 2007-01-24  Bruno Haible  <bruno@clisp.org>
56515
56516         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56518         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56519         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56520         gl_FUNC_FTS_CORE.
56521         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56522         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56523         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56524         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56525         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56526         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56527         gl_FUNC_FCHOWNAT.
56528         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56529         gl_FUNC_STRFTIME.
56530         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56531         Reported by Ralf Wildenhues.
56532
56533 2007-01-24  Bruno Haible  <bruno@clisp.org>
56534
56535         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56536         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56537         gl_GETADDRINFO.
56538         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56539         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56540         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56541
56542 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56545         Don't use 'exit'; just return from 'main'.
56546         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56547
56548         * lib/fnmatch_.h: Readjust white space and comments to match
56549         glibc, to avoid spurious diffs.
56550
56551 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56552
56553         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56554         2004-12-01 change by Jakub Jelinek, since this code won't compile
56555         if !LIBC.  Problem reported by Bob Proulx.
56556
56557 2007-01-23  Bruno Haible  <bruno@clisp.org>
56558
56559         * lib/striconveh.c: Include c-strcaseeq.h.
56560         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56561         * modules/striconveh (Depends-on): Add c-strcaseeq.
56562
56563 2007-01-23  Bruno Haible  <bruno@clisp.org>
56564
56565         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56566
56567         * modules/c-strcaseeq: New file.
56568         * lib/c-strcaseeq.h: New file.
56569
56570         * modules/streq: New file.
56571         * lib/streq.h: New file.
56572
56573 2007-01-23  Bruno Haible  <bruno@clisp.org>
56574
56575         * modules/striconveha-tests: New file.
56576         * tests/test-striconveha.c: New file.
56577
56578         * lib/striconveha.h: Include <stdbool.h>.
56579         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56580         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56581         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56582         (mem_iconveha): New function.
56583         (str_iconveha_notranslit): Renamed from str_iconveha.
56584         (str_iconveha): New function.
56585         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56586         c-strcase.
56587
56588 2007-01-23  Bruno Haible  <bruno@clisp.org>
56589
56590         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56591         encodings without forgiving before trying any encoding with handler.
56592         (str_iconveha): Try all encodings without forgiving before trying any
56593         encoding with handler.
56594
56595 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         Import the following changes from libc.
56598
56599         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56600
56601         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56602
56603         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56604
56605         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56606         normal_bracket label.
56607
56608         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56609
56610         [BZ #361]
56611         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56612         to normal_bracket after fetching the next character.
56613
56614 2007-01-22  Bruno Haible  <bruno@clisp.org>
56615
56616         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56617         argument.
56618         * lib/striconveh.c (iconv_carefully_1): New function.
56619         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56620         argument.
56621         (str_cd_iconveh): Update.
56622         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56623         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56624         * tests/test-striconveh.c (MAGIC): New macro.
56625         (new_offsets): New function.
56626         (main): Test call with and without offsets.
56627
56628 2007-01-22  Bruno Haible  <bruno@clisp.org>
56629
56630         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56631         * modules/sys_select (Makefile.am): Likewise.
56632         * modules/sys_socket (Makefile.am): Likewise.
56633         * modules/sys_time (Makefile.am): Likewise.
56634
56635 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56636
56637         * modules/gettimeofday (License): Change from GPL to LGPL, since
56638         gettimeofday is a library function.
56639
56640 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56641
56642         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56643
56644 2007-01-21  Bruno Haible  <bruno@clisp.org>
56645
56646         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56647
56648 2007-01-21  Bruno Haible  <bruno@clisp.org>
56649
56650         * modules/striconveha: New file.
56651         * lib/striconveha.h: New file.
56652         * lib/striconveha.c: New file.
56653         * MODULES.html.sh (Internationalization functions): Add striconveha.
56654         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56655         string.
56656         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56657
56658 2007-01-21  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56661         * lib/striconveh.c (str_iconveh): Likewise.
56662
56663 2007-01-21  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/striconveh.h (mem_iconveh): New declaration.
56666         * lib/striconveh.c (mem_iconveh): New function.
56667         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56668
56669 2007-01-21  Bruno Haible  <bruno@clisp.org>
56670
56671         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56672
56673         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56674         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56675         original result buffer.
56676         (str_cd_iconveh): Update.
56677         * tests/test-striconveh.c (main): Update.
56678
56679         * lib/striconv.h (mem_cd_iconv): Change specification.
56680         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56681         result buffer.
56682         (str_cd_iconv): Update.
56683         * tests/test-striconv.c (main): Update.
56684
56685 2007-01-21  Bruno Haible  <bruno@clisp.org>
56686
56687         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56688
56689 2007-01-20  Jim Meyering  <jim@meyering.net>
56690
56691         * lib/userspec.c (parse_with_separator): If a user or group string
56692         starts with "+", skip the corresponding name-to-ID look-up, since
56693         such a look-up must fail: user and group names may not include "+".
56694
56695 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56696
56697         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56698         since we now assume the sys_time module.
56699         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56700         check for sys/time.h; no longer needed.
56701         * modules/poll (Depends-on): Depend on sys_time.
56702
56703 2007-01-18  Bruno Haible  <bruno@clisp.org>
56704
56705         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56706         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56707
56708         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56709         gettimeofday.
56710
56711         * tests/test-gettimeofday.c: Include <time.h>.
56712         (dummy): Remove variable.
56713
56714         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56715         gl_HEADER_SYS_TIME_H.
56716         (gl_HEADER_SYS_TIME_H): New macro.
56717
56718         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56719         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56720         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56721         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56722         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56723         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56724         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56725         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56726         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56727         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56728         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56729
56730         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56731         last change; it caused a compilation error when cross-compiling to
56732         Cygwin.
56733
56734 2007-01-18  Jim Meyering  <jim@meyering.net>
56735
56736         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56737         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56738         than the race-prone "test -d sys || mkdir sys".
56739         (configure.ac): Use AC_PROG_MKDIR_P.
56740         * modules/sys_select: Likewise.
56741         * modules/sys_socket: Likewise.
56742         * modules/sys_time: Likewise.
56743
56744 2007-01-18  Eric Blake  <ebb9@byu.net>
56745
56746         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56747         replace gettimeofday.
56748         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56749         name, to avoid infinite recursion.
56750
56751 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56752
56753         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56754         module sys_time.
56755         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56756         assume timespec.h defines struct timeval.
56757         * lib/settime.c: Likewise.
56758         * lib/utimens.c: Likewise.
56759         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56760         since we now assume the gettimeofday module.
56761         * lib/tempname.c (__gen_tempname): Likewise.
56762         * lib/gettimeofday.h: Remove.
56763         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56764         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56765         Include <time.h>, for 'time()'.
56766         (localtime_buffer_addr): Also use this workaround if
56767         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56768         to simplify the uses.  All uses changed.
56769         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56770         that #undef is inside {}, and 'const' follows type name consistently.
56771         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56772         (gettimeofday): Do not use the maximum possible value for
56773         tv->tv_usec, since that might break usages other than ls.c.
56774         Instead, we'll leave ls.c alone.  This undoes today's patch
56775         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56776         we've never observed the problem but might as well keep the
56777         canary.
56778         * lib/nanosleep.c: Include timespec.h first, for interface check.
56779         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56780         now assume the sys_time module.
56781         * lib/tempname.c: Likewise.
56782         * lib/timespec.h: Likewise.
56783         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56784         needed.
56785         * lib/strftime.c: Likewise.
56786         * lib/timespec.h: Likewise.
56787         * lib/posixtm.c: Include posixtm.h first, for interface check.
56788         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56789         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56790         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56791         * lib/sys_time_.h: New file.
56792         * lib/timespec.h (struct timespec): Use long int, not long.
56793         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56794         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56795         Remove obsolescent call to AC_HEADER_TIME.
56796         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56798         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56799         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56800         Likewise.
56801         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56802         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56804         into the sys_time module.  Check for gettimeofday just once.
56805         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56806         for gettimeofday signature to just check the signature.  Merely
56807         compile it, since linking doesn't test signature.  Improve test for
56808         whether gettimeofday.o is actually needed.
56809         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56810         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56811         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56812         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56813         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56814         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56815         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56816         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56817         than worrying about sys/time.h.
56818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56819         Don't bother worrying about TIME_WITH_SYS_TIME.
56820         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56821         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56822         * m4/sys_time_h.m4: New file.
56823         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56824         Don't include sys/time.h.  Return from main rather than exiting.
56825         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56826         all uses changed.
56827         * modules/gethrxtime (Depends-on): Add sys_time.
56828         * modules/gettime (Depends-on): Likewise.
56829         * modules/gettimeofday (Depends-on): Likewise.
56830         * modules/nanosleep (Depends-on): Likewise.
56831         * modules/settime (Depends-on): Likewise.
56832         * modules/tempname (Depends-on): Likewise.
56833         * modules/utimens (Depends-on): Likewise.
56834         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56835         (Include): Change back to <sys/time.h>.
56836         (Maintainer): Add self.
56837         * modules/sys_time: New file.
56838         * modules/tempname (Depends-on): Add gettimeofday.
56839         * tests/test-gettimeofday.c: Include <sys/time.h>
56840         rather than gettimeofday.h.
56841
56842 2007-01-17  Bruno Haible  <bruno@clisp.org>
56843
56844         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56845         the license default to GPL.
56846         (func_create_testdir): Don't complain if a module is LGPL and its
56847         tests module depends on GPLed modules.
56848
56849 2007-01-17  Bruno Haible  <bruno@clisp.org>
56850
56851         * lib/gettimeofday.c (gettimeofday): Add code for the case
56852         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56853         maximum possible value for tv->tv_usec, rather than the minimum one.
56854
56855 2005-10-08  Martin Lambers  <marlam@marlam.de>
56856 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56857 2007-01-16  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56860         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56861         gl_FUNC_GETTIMEOFDAY.
56862         (Include): Add gettimeofday.h.
56863         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56864         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56865         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56866         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56867         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56868         * lib/gettimeofday.h: New file.
56869         * lib/gettimeofday.c: Include <sys/timeb.h>.
56870         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56871         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56872         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56873         fall back on time().
56874
56875         * tests/test-gettimeofday.c: New file.
56876         * modules/gettimeofday-tests: New file.
56877
56878 2007-01-16  Eric Blake  <ebb9@byu.net>
56879
56880         * modules/fnmatch (Depends-on): Depend on wchar.
56881         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56882         * m4/fnmatch.m4: Likewise.
56883         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56884         * m4/mbchar.m4: Likewise.
56885         * modules/mbswidth (Depends-on): Depend on wchar.
56886         * lib/mbswidth.c: Assume <wchar.h>.
56887         * m4/mbswidth.m4: Likewise.
56888         * modules/quotearg (Depends-on): Depend on wchar.
56889         * lib/quotearg.c: Assume <wchar.h>.
56890         * m4/quotearg.m4: Likewise.
56891         * modules/regex (Depends-on): Depend on wchar.
56892         * lib/regex_internal.h: Assume <wchar.h>.
56893         * m4/regex.m4: Likewise.
56894         * modules/stdint (Depends-on): Depend on wchar.
56895         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56896         * m4/stdint.m4: Likewise.
56897         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56898         * modules/strftime (Depends-on): Depend on wchar.
56899         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56900         * modules/strtol (Depends-on): Depend on wchar.
56901         * lib/strtol.c: Assume <wchar.h>.
56902         * modules/wcwidth (Depends-on): Depend on wchar.
56903         * lib/wcwidth.h: Assume <wchar.h>.
56904         * m4/wcwidth.m4: Likewise.
56905
56906 2007-01-16  Bruno Haible  <bruno@clisp.org>
56907
56908         * modules/csharpexec-script: New, created from...
56909         * modules/csharpexec: ... this.
56910
56911 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56912
56913         * modules/javaexec-script: New, created from...
56914         * modules/javaexec: ... this.
56915
56916 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56917
56918         * modules/poll (Dependencies): Add sys_select.
56919
56920 2007-01-15  Jim Meyering  <jim@meyering.net>
56921
56922         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56923         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56924         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56925         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56926
56927 2007-01-15  Bruno Haible  <bruno@clisp.org>
56928
56929         * modules/striconveh: New file.
56930         * lib/striconveh.h: New file.
56931         * lib/striconveh.c: New file.
56932         * MODULES.html.sh (Internationalization functions): Add striconveh.
56933
56934         * modules/striconveh-tests: New file.
56935         * tests/test-striconveh.c: New file.
56936
56937 2007-01-15  Bruno Haible  <bruno@clisp.org>
56938
56939         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56940         not from GNU libiconv or GNU libc.
56941
56942 2007-01-15  Bruno Haible  <bruno@clisp.org>
56943
56944         * doc/gnulib-intro.texi (Copyright): Explain the different license
56945         terms for module descriptions, autoconf macros, tests, documentation.
56946
56947 2007-01-14  Bruno Haible  <bruno@clisp.org>
56948
56949         * modules/striconv-tests: New file.
56950         * tests/test-striconv.c: New file.
56951
56952 2007-01-14  Bruno Haible  <bruno@clisp.org>
56953
56954         * modules/iconv-tests: New file.
56955         * tests/test-iconv.c: New file.
56956
56957 2007-01-14  Bruno Haible  <bruno@clisp.org>
56958
56959         * gnulib-tool (func_get_license): For test modules, use the license of
56960         the main module.
56961
56962 2007-01-14  Bruno Haible  <bruno@clisp.org>
56963
56964         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56965         if iconv is found to exist.
56966
56967 2007-01-14  Bruno Haible  <bruno@clisp.org>
56968
56969         * modules/c-ctype-tests: New file.
56970         * tests/test-c-ctype.c: New file.
56971
56972 2007-01-14  Bruno Haible  <bruno@clisp.org>
56973
56974         * modules/binary-io-tests: New file.
56975         * tests/test-binary-io.sh: New file.
56976         * tests/test-binary-io.c: New file.
56977
56978 2007-01-14  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/array-oset-tests: New file.
56981         * tests/test-array_oset.c: New file.
56982
56983 2007-01-14  Bruno Haible  <bruno@clisp.org>
56984
56985         * modules/array-list-tests: New file.
56986         * tests/test-array_list.c: New file.
56987
56988 2007-01-14  Bruno Haible  <bruno@clisp.org>
56989
56990         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56991         and make.
56992         Reported by Simon Josefsson in
56993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56994
56995 2007-01-14  Bruno Haible  <bruno@clisp.org>
56996
56997         * modules/allocsa-tests: New file.
56998         * tests/test-allocsa.c: New file.
56999
57000 2007-01-14  Bruno Haible  <bruno@clisp.org>
57001
57002         * modules/fchdir (Depends-on): Add absolute-header.
57003         * modules/unistd (Depends-on): Likewise.
57004
57005 2006-12-30  Bruno Haible  <bruno@clisp.org>
57006
57007         * modules/fchdir: New file.
57008         * modules/unistd (Files): Add lib/unistd_.h.
57009         (Makefile.am): Generate unistd.h from unistd_.h.
57010         * lib/fchdir.c: New file.
57011         * lib/dirent_.h: New file.
57012         * lib/unistd_.h: New file.
57013         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57014         * m4/fchdir.m4: New file.
57015         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57016         (gl_HEADER_UNISTD): Invoke it.
57017         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57018         function.
57019         * lib/backupfile.c (opendir, closedir): Undefine.
57020         * lib/chown.c (open, close): Undefine.
57021         * lib/clean-temp.c (open, close): Undefine.
57022         * lib/copy-file.c (open, close): Undefine.
57023         * lib/execute.c (open, close): Undefine.
57024         * lib/fsusage.c (open, close): Undefine.
57025         * lib/gc-gnulib.c (open, close): Undefine.
57026         * lib/getcwd.c (opendir, closedir): Undefine.
57027         * lib/glob.c (opendir, closedir): Undefine.
57028         * lib/javacomp.c (open, close): Undefine.
57029         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57030         * lib/openat-proc.c (open, close): Undefine.
57031         * lib/pagealign_alloc.c (open, close): Undefine.
57032         * lib/pipe.c (open, close): Undefine.
57033         * lib/progreloc.c (open, close): Undefine.
57034         * lib/savedir.c (opendir, closedir): Undefine.
57035         * lib/utime.c (open, close): Undefine.
57036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57037
57038 2007-01-10  Bruno Haible  <bruno@clisp.org>
57039
57040         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57041
57042 2007-01-12  Eric Blake  <ebb9@byu.net>
57043
57044         Provide a robust <wchar.h>.  Further simplifications are now
57045         possible in other modules, but not included here.
57046         * modules/wchar: New module.
57047         * m4/wchar.m4: New file.
57048         * lib/wchar_.h: Likewise.
57049         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57050         of the new module.
57051         * MODULES.html.sh (Extended multibyte and wide character utilities):
57052         New section.
57053
57054 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57055
57056         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57057         to a reasonable default for memory allocation.
57058         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57059         file system that reports garbage st_size values for symlinks.
57060         Problem reported by Liyang Hu.
57061
57062 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57063
57064         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57065         Emacs .#* auto-save files).
57066
57067 2007-01-11  Bruno Haible  <bruno@clisp.org>
57068
57069         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57070         directory.
57071
57072 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         Use @...@ consistently in lib/wctype_.h.
57075         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57076         on it being set to 1 or 0.
57077         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57078         go back to AC_SUBSTing it.
57079         * modules/wctype (Makefile.am): Undo previous change.
57080
57081 2007-01-10  Eric Blake  <ebb9@byu.net>
57082
57083         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57084         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57085         * modules/wctype (Makefile.am): Likewise.
57086         Reported by Chris McGuire.
57087
57088 2007-01-10  Jim Meyering  <jim@meyering.net>
57089
57090         fts.c: a small readability/maintainability improvement
57091         * lib/fts.c (fts_read): Make this code slightly more readable and
57092         maintainable by hoisting the "sp->fts_cur = p" assignments to
57093         immediately follow the statements that set P.  Derived from
57094         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57095
57096 2007-01-10  Eric Blake  <ebb9@byu.net>
57097
57098         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57099         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57101         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57102         Reported by Chris McGuire.
57103
57104 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57105
57106         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57107         in sed script.
57108
57109 2007-01-09  Bruno Haible  <bruno@clisp.org>
57110
57111         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57112         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57113         variables.
57114         (func_module): Use them.
57115
57116 2007-01-09  Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/unistr/base: New file.
57119         * lib/unistr.h: New file.
57120
57121         * modules/unistr/u8-to-u16: New file.
57122         * lib/unistr/u8-to-u16.c: New file.
57123
57124         * modules/unistr/u8-to-u32: New file.
57125         * lib/unistr/u8-to-u32.c: New file.
57126
57127         * modules/unistr/u16-to-u8: New file.
57128         * lib/unistr/u16-to-u8.c: New file.
57129
57130         * modules/unistr/u16-to-u32: New file.
57131         * lib/unistr/u16-to-u32.c: New file.
57132
57133         * modules/unistr/u32-to-u8: New file.
57134         * lib/unistr/u32-to-u8.c: New file.
57135
57136         * modules/unistr/u32-to-u16: New file.
57137         * lib/unistr/u32-to-u16.c: New file.
57138
57139         * modules/unistr/u8-check: New file.
57140         * modules/unistr/u16-check: New file.
57141         * modules/unistr/u32-check: New file.
57142         * lib/unistr/u8-check.c: New file.
57143         * lib/unistr/u16-check.c: New file.
57144         * lib/unistr/u32-check.c: New file.
57145
57146         * modules/unistr/u8-chr: New file.
57147         * modules/unistr/u16-chr: New file.
57148         * modules/unistr/u32-chr: New file.
57149         * lib/unistr/u8-chr.c: New file.
57150         * lib/unistr/u16-chr.c: New file.
57151         * lib/unistr/u32-chr.c: New file.
57152
57153         * modules/unistr/u8-cmp: New file.
57154         * modules/unistr/u16-cmp: New file.
57155         * modules/unistr/u32-cmp: New file.
57156         * lib/unistr/u8-cmp.c: New file.
57157         * lib/unistr/u16-cmp.c: New file.
57158         * lib/unistr/u32-cmp.c: New file.
57159
57160         * modules/unistr/u8-cpy: New file.
57161         * modules/unistr/u16-cpy: New file.
57162         * modules/unistr/u32-cpy: New file.
57163         * lib/unistr/u8-cpy.c: New file.
57164         * lib/unistr/u16-cpy.c: New file.
57165         * lib/unistr/u32-cpy.c: New file.
57166         * lib/unistr/u-cpy.h: New file.
57167
57168         * modules/unistr/u8-cpy-alloc: New file.
57169         * modules/unistr/u16-cpy-alloc: New file.
57170         * modules/unistr/u32-cpy-alloc: New file.
57171         * lib/unistr/u8-cpy-alloc.c: New file.
57172         * lib/unistr/u16-cpy-alloc.c: New file.
57173         * lib/unistr/u32-cpy-alloc.c: New file.
57174         * lib/unistr/u-cpy-alloc.h: New file.
57175
57176         * modules/unistr/u8-endswith: New file.
57177         * modules/unistr/u16-endswith: New file.
57178         * modules/unistr/u32-endswith: New file.
57179         * lib/unistr/u8-endswith.c: New file.
57180         * lib/unistr/u16-endswith.c: New file.
57181         * lib/unistr/u32-endswith.c: New file.
57182         * lib/unistr/u-endswith.h: New file.
57183
57184         * modules/unistr/u8-mblen: New file.
57185         * modules/unistr/u16-mblen: New file.
57186         * modules/unistr/u32-mblen: New file.
57187         * lib/unistr/u8-mblen.c: New file.
57188         * lib/unistr/u16-mblen.c: New file.
57189         * lib/unistr/u32-mblen.c: New file.
57190
57191         * modules/unistr/u8-mbtouc: New file.
57192         * modules/unistr/u16-mbtouc: New file.
57193         * modules/unistr/u32-mbtouc: New file.
57194         * lib/unistr/u8-mbtouc.c: New file.
57195         * lib/unistr/u16-mbtouc.c: New file.
57196         * lib/unistr/u32-mbtouc.c: New file.
57197
57198         * modules/unistr/u8-mbtouc-safe: New file.
57199         * modules/unistr/u16-mbtouc-safe: New file.
57200         * modules/unistr/u32-mbtouc-safe: New file.
57201         * lib/unistr/u8-mbtouc-safe.c: New file.
57202         * lib/unistr/u16-mbtouc-safe.c: New file.
57203         * lib/unistr/u32-mbtouc-safe.c: New file.
57204
57205         * modules/unistr/u8-move: New file.
57206         * modules/unistr/u16-move: New file.
57207         * modules/unistr/u32-move: New file.
57208         * lib/unistr/u8-move.c: New file.
57209         * lib/unistr/u16-move.c: New file.
57210         * lib/unistr/u32-move.c: New file.
57211         * lib/unistr/u-move.h: New file.
57212
57213         * modules/unistr/u8-next: New file.
57214         * modules/unistr/u16-next: New file.
57215         * modules/unistr/u32-next: New file.
57216         * lib/unistr/u8-next.c: New file.
57217         * lib/unistr/u16-next.c: New file.
57218         * lib/unistr/u32-next.c: New file.
57219
57220         * modules/unistr/u8-prev: New file.
57221         * modules/unistr/u16-prev: New file.
57222         * modules/unistr/u32-prev: New file.
57223         * lib/unistr/u8-prev.c: New file.
57224         * lib/unistr/u16-prev.c: New file.
57225         * lib/unistr/u32-prev.c: New file.
57226
57227         * modules/unistr/u8-set: New file.
57228         * modules/unistr/u16-set: New file.
57229         * modules/unistr/u32-set: New file.
57230         * lib/unistr/u8-set.c: New file.
57231         * lib/unistr/u16-set.c: New file.
57232         * lib/unistr/u32-set.c: New file.
57233         * lib/unistr/u-set.h: New file.
57234
57235         * modules/unistr/u8-startswith: New file.
57236         * modules/unistr/u16-startswith: New file.
57237         * modules/unistr/u32-startswith: New file.
57238         * lib/unistr/u8-startswith.c: New file.
57239         * lib/unistr/u16-startswith.c: New file.
57240         * lib/unistr/u32-startswith.c: New file.
57241         * lib/unistr/u-startswith.h: New file.
57242
57243         * modules/unistr/u8-stpcpy: New file.
57244         * modules/unistr/u16-stpcpy: New file.
57245         * modules/unistr/u32-stpcpy: New file.
57246         * lib/unistr/u8-stpcpy.c: New file.
57247         * lib/unistr/u16-stpcpy.c: New file.
57248         * lib/unistr/u32-stpcpy.c: New file.
57249         * lib/unistr/u-stpcpy.h: New file.
57250
57251         * modules/unistr/u8-stpncpy: New file.
57252         * modules/unistr/u16-stpncpy: New file.
57253         * modules/unistr/u32-stpncpy: New file.
57254         * lib/unistr/u8-stpncpy.c: New file.
57255         * lib/unistr/u16-stpncpy.c: New file.
57256         * lib/unistr/u32-stpncpy.c: New file.
57257         * lib/unistr/u-stpncpy.h: New file.
57258
57259         * modules/unistr/u8-strcat: New file.
57260         * modules/unistr/u16-strcat: New file.
57261         * modules/unistr/u32-strcat: New file.
57262         * lib/unistr/u8-strcat.c: New file.
57263         * lib/unistr/u16-strcat.c: New file.
57264         * lib/unistr/u32-strcat.c: New file.
57265         * lib/unistr/u-strcat.h: New file.
57266
57267         * modules/unistr/u8-strchr: New file.
57268         * modules/unistr/u16-strchr: New file.
57269         * modules/unistr/u32-strchr: New file.
57270         * lib/unistr/u8-strchr.c: New file.
57271         * lib/unistr/u16-strchr.c: New file.
57272         * lib/unistr/u32-strchr.c: New file.
57273
57274         * modules/unistr/u8-strcmp: New file.
57275         * modules/unistr/u16-strcmp: New file.
57276         * modules/unistr/u32-strcmp: New file.
57277         * lib/unistr/u8-strcmp.c: New file.
57278         * lib/unistr/u16-strcmp.c: New file.
57279         * lib/unistr/u32-strcmp.c: New file.
57280
57281         * modules/unistr/u8-strcpy: New file.
57282         * modules/unistr/u16-strcpy: New file.
57283         * modules/unistr/u32-strcpy: New file.
57284         * lib/unistr/u8-strcpy.c: New file.
57285         * lib/unistr/u16-strcpy.c: New file.
57286         * lib/unistr/u32-strcpy.c: New file.
57287         * lib/unistr/u-strcpy.h: New file.
57288
57289         * modules/unistr/u8-strcspn: New file.
57290         * modules/unistr/u16-strcspn: New file.
57291         * modules/unistr/u32-strcspn: New file.
57292         * lib/unistr/u8-strcspn.c: New file.
57293         * lib/unistr/u16-strcspn.c: New file.
57294         * lib/unistr/u32-strcspn.c: New file.
57295         * lib/unistr/u-strcspn.h: New file.
57296
57297         * modules/unistr/u8-strdup: New file.
57298         * modules/unistr/u16-strdup: New file.
57299         * modules/unistr/u32-strdup: New file.
57300         * lib/unistr/u8-strdup.c: New file.
57301         * lib/unistr/u16-strdup.c: New file.
57302         * lib/unistr/u32-strdup.c: New file.
57303         * lib/unistr/u-strdup.h: New file.
57304
57305         * modules/unistr/u8-strlen: New file.
57306         * modules/unistr/u16-strlen: New file.
57307         * modules/unistr/u32-strlen: New file.
57308         * lib/unistr/u8-strlen.c: New file.
57309         * lib/unistr/u16-strlen.c: New file.
57310         * lib/unistr/u32-strlen.c: New file.
57311         * lib/unistr/u-strlen.h: New file.
57312
57313         * modules/unistr/u8-strmblen: New file.
57314         * modules/unistr/u16-strmblen: New file.
57315         * modules/unistr/u32-strmblen: New file.
57316         * lib/unistr/u8-strmblen.c: New file.
57317         * lib/unistr/u16-strmblen.c: New file.
57318         * lib/unistr/u32-strmblen.c: New file.
57319
57320         * modules/unistr/u8-strmbtouc: New file.
57321         * modules/unistr/u16-strmbtouc: New file.
57322         * modules/unistr/u32-strmbtouc: New file.
57323         * lib/unistr/u8-strmbtouc.c: New file.
57324         * lib/unistr/u16-strmbtouc.c: New file.
57325         * lib/unistr/u32-strmbtouc.c: New file.
57326
57327         * modules/unistr/u8-strncat: New file.
57328         * modules/unistr/u16-strncat: New file.
57329         * modules/unistr/u32-strncat: New file.
57330         * lib/unistr/u8-strncat.c: New file.
57331         * lib/unistr/u16-strncat.c: New file.
57332         * lib/unistr/u32-strncat.c: New file.
57333         * lib/unistr/u-strncat.h: New file.
57334
57335         * modules/unistr/u8-strncmp: New file.
57336         * modules/unistr/u16-strncmp: New file.
57337         * modules/unistr/u32-strncmp: New file.
57338         * lib/unistr/u8-strncmp.c: New file.
57339         * lib/unistr/u16-strncmp.c: New file.
57340         * lib/unistr/u32-strncmp.c: New file.
57341
57342         * modules/unistr/u8-strncpy: New file.
57343         * modules/unistr/u16-strncpy: New file.
57344         * modules/unistr/u32-strncpy: New file.
57345         * lib/unistr/u8-strncpy.c: New file.
57346         * lib/unistr/u16-strncpy.c: New file.
57347         * lib/unistr/u32-strncpy.c: New file.
57348         * lib/unistr/u-strncpy.h: New file.
57349
57350         * modules/unistr/u8-strnlen: New file.
57351         * modules/unistr/u16-strnlen: New file.
57352         * modules/unistr/u32-strnlen: New file.
57353         * lib/unistr/u8-strnlen.c: New file.
57354         * lib/unistr/u16-strnlen.c: New file.
57355         * lib/unistr/u32-strnlen.c: New file.
57356         * lib/unistr/u-strnlen.h: New file.
57357
57358         * modules/unistr/u8-strpbrk: New file.
57359         * modules/unistr/u16-strpbrk: New file.
57360         * modules/unistr/u32-strpbrk: New file.
57361         * lib/unistr/u8-strpbrk.c: New file.
57362         * lib/unistr/u16-strpbrk.c: New file.
57363         * lib/unistr/u32-strpbrk.c: New file.
57364         * lib/unistr/u-strpbrk.h: New file.
57365
57366         * modules/unistr/u8-strrchr: New file.
57367         * modules/unistr/u16-strrchr: New file.
57368         * modules/unistr/u32-strrchr: New file.
57369         * lib/unistr/u8-strrchr.c: New file.
57370         * lib/unistr/u16-strrchr.c: New file.
57371         * lib/unistr/u32-strrchr.c: New file.
57372
57373         * modules/unistr/u8-strspn: New file.
57374         * modules/unistr/u16-strspn: New file.
57375         * modules/unistr/u32-strspn: New file.
57376         * lib/unistr/u8-strspn.c: New file.
57377         * lib/unistr/u16-strspn.c: New file.
57378         * lib/unistr/u32-strspn.c: New file.
57379         * lib/unistr/u-strspn.h: New file.
57380
57381         * modules/unistr/u8-strstr: New file.
57382         * modules/unistr/u16-strstr: New file.
57383         * modules/unistr/u32-strstr: New file.
57384         * lib/unistr/u8-strstr.c: New file.
57385         * lib/unistr/u16-strstr.c: New file.
57386         * lib/unistr/u32-strstr.c: New file.
57387         * lib/unistr/u-strstr.h: New file.
57388
57389         * modules/unistr/u8-strtok: New file.
57390         * modules/unistr/u16-strtok: New file.
57391         * modules/unistr/u32-strtok: New file.
57392         * lib/unistr/u8-strtok.c: New file.
57393         * lib/unistr/u16-strtok.c: New file.
57394         * lib/unistr/u32-strtok.c: New file.
57395         * lib/unistr/u-strtok.h: New file.
57396
57397         * modules/unistr/u8-uctomb: New file.
57398         * modules/unistr/u16-uctomb: New file.
57399         * modules/unistr/u32-uctomb: New file.
57400         * lib/unistr/u8-uctomb.c: New file.
57401         * lib/unistr/u16-uctomb.c: New file.
57402         * lib/unistr/u32-uctomb.c: New file.
57403
57404         * MODULES.html.sh (Unicode string functions): Add the new modules.
57405
57406 2007-01-08  Bruno Haible  <bruno@clisp.org>
57407
57408         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57409         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57410         subdirectories.
57411
57412 2007-01-08  Karl Berry  <karl@gnu.org>
57413
57414         * doc/error.texi: mention that main() fns must set program_name
57415         when progname is used.
57416
57417 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57418
57419         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57420         WCTYPE_H is empty, for the benefit of builds from non-distclean
57421         directories.  Problem reported by Eric Blake in
57422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57423
57424 2007-01-08  Bruno Haible  <bruno@clisp.org>
57425
57426         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57427         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57428         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57429         PROVIDE_CANONICALIZE_FILENAME_MODE.
57430         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57431
57432 2007-01-08  Bruno Haible  <bruno@clisp.org>
57433
57434         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57435         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57436         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57437         * lib/fts.c: Likewise.
57438         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57439
57440 2006-12-25  Bruno Haible  <bruno@clisp.org>
57441
57442         * modules/utf8-ucs4-safe: New file.
57443         * lib/utf8-ucs4-safe.h: New file.
57444         * lib/unistr/utf8-ucs4-safe.c: New file.
57445
57446         * modules/utf16-ucs4-safe: New file.
57447         * lib/utf16-ucs4-safe.h: New file.
57448         * lib/unistr/utf16-ucs4-safe.c: New file.
57449
57450         * MODULES.html.sh (Unicode string functions): Add the new modules.
57451
57452 2007-01-08  Bruno Haible  <bruno@clisp.org>
57453
57454         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57455         (Depends-on): Add unitypes.
57456         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57457         (u8_mbtouc_aux): Move out to separate file.
57458         (u8_mbtouc): Use ucs4_t, uint8_t types.
57459         * lib/unistr/utf8-ucs4.c: New file.
57460
57461         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57462         (Depends-on): Add unitypes.
57463         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57464         (u16_mbtouc_aux): Move out to separate file.
57465         (u16_mbtouc): Use ucs4_t, uint16_t types.
57466         * lib/unistr/utf16-ucs4.c: New file.
57467
57468         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57469         (Depends-on): Add unitypes.
57470         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57471         (u8_uctomb_aux): Move out to separate file.
57472         (u8_uctomb): Use ucs4_t, uint8_t types.
57473         * lib/unistr/ucs4-utf8.c: New file.
57474
57475         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57476         (Depends-on): Add unitypes.
57477         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57478         (u16_uctomb_aux): Move out to separate file.
57479         (u16_uctomb): Use ucs4_t, uint16_t types.
57480         * lib/unistr/ucs4-utf16.c: New file.
57481
57482 2006-12-25  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/unitypes: New file.
57485         * lib/unitypes.h: New file.
57486         * MODULES.html.sh (func_all_modules): New section "Unicode string
57487         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57488         this section. Add unitypes.
57489
57490 2007-01-08  Bruno Haible  <bruno@clisp.org>
57491
57492         Avoid variable names that conflict with those from libtool.
57493         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57494         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57495         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57496         library_names_spec to acl_library_names_spec, hardcode_* to
57497         acl_hardcode_*.
57498         Reported by Ralf Wildenhues.
57499
57500 2007-01-08  Bruno Haible  <bruno@clisp.org>
57501
57502         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57503         definition.
57504         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57505         definition.
57506         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57507         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57508         definition.
57509         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57510         definition.
57511         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57512         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57513         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57514         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57515         definition.
57516         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57517         definition.
57518         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57519         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57520         GC_USE_<algorithm>.
57521         * lib/gc-libgcrypt.c: Likewise.
57522         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57523         * modules/gc-arctwo (configure.ac): Likewise.
57524         * modules/gc-des (configure.ac): Likewise.
57525         * modules/gc-hmac-md5 (configure.ac): Likewise.
57526         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57527         * modules/gc-md2 (configure.ac): Likewise.
57528         * modules/gc-md4 (configure.ac): Likewise.
57529         * modules/gc-md5 (configure.ac): Likewise.
57530         * modules/gc-random (configure.ac): Likewise.
57531         * modules/gc-rijndael (configure.ac): Likewise.
57532         * modules/gc-sha1 (configure.ac): Likewise.
57533
57534 2007-01-08  Bruno Haible  <bruno@clisp.org>
57535
57536         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57537         macro definition.
57538         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57539         definition.
57540         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57541         definition.
57542         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57543         * modules/fcntl-safer (configure.ac): Likewise.
57544         * modules/fopen-safer (configure.ac): Likewise.
57545         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57546         GNULIB_FWRITEERROR macro definition.
57547
57548 2007-01-08  Bruno Haible  <bruno@clisp.org>
57549
57550         * m4/gnulib-common.m4: New file.
57551         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57552         (func_get_filelist): Add m4/gnulib-common.m4.
57553
57554 2007-01-08  Bruno Haible  <bruno@clisp.org>
57555
57556         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57557         command.
57558
57559 2007-01-08  Jim Meyering  <jim@meyering.net>
57560
57561         Use a more robust test for a "can't happen" condition.
57562         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57563         narrowed the st_size value.  Presuming the "can't happen" condition
57564         is true, that narrowing could conceivably convert an invalid st_size
57565         value into a valid one.  Instead, use a change based on Matthew
57566         Woehlke's original patch.
57567
57568         Slight readability improvement: use an assert-like macro
57569         in place of literal "abort ()" uses.
57570         * lib/fts.c (fts_assert): Define.
57571         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57572         Use this macro instead of a bare 'abort'.
57573
57574 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57575
57576         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57577         simply work around them.
57578         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57579         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57580         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57581         declaring.
57582         Don't bother to define as macros, since the standard doesn't require it.
57583         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57584         longer worry about IRIX 5.3.
57585         (HAVE_WCTYPE_CTMP_BUG): Remove.
57586
57587 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57588
57589         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57590         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57591         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57592         Problems reported by Georg Schwarz for IRIX 5.3.
57593
57594         * gnulib-tool (autoconf_minversion): Take the maximum version number
57595         found, not the minimum.  Problem reported by James Youngman.
57596
57597 2007-01-03  Karl Berry  <karl@gnu.org>
57598
57599         * doc/error.texi: new file, explaining interaction with progname.
57600         * doc/gnulib.texi: include it.  Update copyright.
57601
57602 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57603
57604         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57605         AC_CANONICAL_HOST, to improve autobuild outputs.
57606
57607 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57608             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57609
57610         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57611         sockets, server sockets, and other file descriptors.  Count errors
57612         to compute the return value.  Reorder the code a bit to be easier
57613         to follow.  Don't set event bits that were not requested (except
57614         POLLERR and POLLHUP).
57615
57616 2007-01-01  Bruno Haible  <bruno@clisp.org>
57617
57618         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57619
57620 2007-01-03  Jim Meyering  <jim@meyering.net>
57621
57622         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57623
57624 2007-01-02  Bruno Haible  <bruno@clisp.org>
57625
57626         * modules/settime (Include): Require timespec.h.
57627         * modules/nanosleep (Include): Likewise.
57628
57629 2007-01-01  Bruno Haible  <bruno@clisp.org>
57630
57631         * gnulib-tool (func_emit_copyright_notice): Bump year.
57632         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57633
57634 2007-01-01  Bruno Haible  <bruno@clisp.org>
57635
57636         Improve support for OpenBSD.
57637         * build-aux/config.rpath (libname_spec): Export.
57638         (library_names_spec): New variable. Export.
57639         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57640         library_names_spec from the config.rpath output. Locate shared library
57641         through the name pattern in library_names_spec.
57642
57643 2007-01-01  Eric Blake  <ebb9@byu.net>
57644
57645         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57646
57647 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57648
57649         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57650         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57651         assume the C locale, and avoid an "eval" that could cause trouble.
57652         Problem with SORT reported by Bob Proulx.
57653
57654         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57655         Define.  Trivial patch from Henning Nielsen Lund, originally
57656         sent to bug-grep@gnu.org today.
57657
57658 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57659
57660         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57661         struct stat.  Problem reported by Henning Nielsen Lund.
57662         * lib/acl.c: Include acl.h first, to check interface.  Don't
57663         bother to include sys/types.h and sys/stat.h again.
57664
57665 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         Import the following change from libc; problem reported by
57668         Sven Verdoolaege.
57669
57670         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57671
57672         [BZ #1373]
57673         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57674
57675 2006-12-28  Jim Meyering  <jim@meyering.net>
57676
57677         * build-aux/announce-gen: Do not assume that the package
57678         builds any of tar.gz, tar.bz2, and .xdelta files.
57679         Suggestion from Simon Josefsson.
57680
57681 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57682
57683         * modules/announce-gen: New file.
57684
57685 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57686
57687         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57688         handles its gotchas now.
57689         * lib/mbswidth.c: Likewise.
57690         * lib/wcwidth.h: Likewise.
57691         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57692         and iswcntrl; the wctype module does this stuff now.
57693         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57695         * modules/mbchar (Depends-on): Add wctype.
57696         * modules/mbswidth (Depends-on): Likewise.
57697         * modules/wcwidth (Depends-on): Likewise.
57698
57699 2006-12-27  Eric Blake  <ebb9@byu.net>
57700
57701         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57702         module uses more than what <wctype.h> is required to provide.
57703
57704 2006-12-26  Eric Blake  <ebb9@byu.net>
57705
57706         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57707
57708 2006-12-26  Eric Blake  <ebb9@byu.net>
57709
57710         * modules/absolute-header: New module.
57711         * modules/fcntl (Depends-on): Depend on it.
57712         * modules/inttypes (Depends-on): Likewise.
57713         * modules/stdint (Depends-on): Likewise.
57714         * modules/sys_stat (Depends-on): Likewise.
57715         * modules/wctype (Depends-on): Likewise.
57716         * MODULES.html.sh (Support for building libraries and
57717         executables): Document it.
57718
57719 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57720
57721         * gnulib-tool (SED): Remove, undoing previous change.
57722         The problem was that it broke coreutils on Solaris, because
57723         "sed --posix" leaked into a makefile.
57724         (sed): New alias, if 'alias' and GNU sed.
57725
57726 2006-12-24  Jim Meyering  <jim@meyering.net>
57727
57728         Work around an fchownat bug in glibc-2.4:
57729         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57730         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57731         in spite of the -P option.
57732         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57733         New macros.
57734         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57735         * modules/openat (Files): Add lib/fchownat.c.
57736         * lib/openat.c (fchownat): Don't define here.  Move to...
57737         * lib/fchownat.c: ...this new file.
57738
57739 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57740
57741         Fix bug reported by Bruno Haible in
57742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57743         where quotearg.c didn't compile on Mac OS X 10.2 because it
57744         lacks <wchar.h> and wint_t.
57745         * lib/wctype_.h (__wctype_wint_t): New type.
57746         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57747         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57748         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57749         Arg is now of type __wctype_wint_t, not wint_t.
57750         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57751         substitute HAVE_WINT_T.
57752         * modules/wctype (Files): Add m4/wint_t.m4.
57753         (wctype.h): Substitute HAVE_WINT_T.
57754
57755 2006-12-23  Bruno Haible  <bruno@clisp.org>
57756
57757         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57758
57759 2006-12-23  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57762         S_ISLNK.
57763         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57764         mingw.
57765
57766 2006-12-22  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/copy-file.c: Include acl.h.
57769         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57770         Close the file descriptors only after being done with copy_acl.
57771         * modules/copy-file (Depends-on): Add acl.
57772
57773 2006-12-22  Bruno Haible  <bruno@clisp.org>
57774
57775         * gnulib-tool (SED): New variable.
57776         Use $SED instead of sed everywhere.
57777
57778 2006-12-22  Bruno Haible  <bruno@clisp.org>
57779
57780         * modules/no-c++: New file.
57781         * m4/no-c++.m4: New file.
57782         * MODULES.html.sh (Support for building libraries and executables):
57783         Add no-c++.
57784
57785 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57786
57787         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57788         Include <limits.h>, and use its INT_MAX to rewrite the
57789         j loop so that it does not overflow 'int'.  Problem reported by
57790         Ralf Wildenhues in
57791         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57792         Play it safe by shifting left by 1 rather than multiplying by 2,
57793         as GCC is less likely to optimize this away when the value
57794         is signed (when it assumes overflow leads to undefined behavior).
57795         Also, don't assume time_t uses two's complement.
57796
57797 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57798
57799         * MODULES.html.sh: New module wctype.
57800         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57801         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57802         <wctype.h>, since the new wctype module should fix this.
57803         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57804         the wctype module should arrange for it.
57805         * lib/regex_internal.h: Likewise.
57806         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57807         since the wctype module should handle this now.
57808         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57809         * modules/fnmatch (Depends-on): Add wctype.
57810         * modules/quotearg (Depends-on): Likewise.
57811         * modules/regex (Depends-on): Likewise.
57812
57813 2006-12-19  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57816         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57817
57818 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57819
57820         * modules/savewd (Depends-on): Fix dependency on fcntl.
57821
57822 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57825         conforms to C99, rather than relying on the user's environment
57826         setting of STDINT_H.
57827
57828 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57829         and Eric Blake  <ebb9@byu.net>
57830
57831         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57832         This is more consistent with the other defines here.
57833         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57834         Port to z/OS.  Problem reported by Paul Gilmartin.
57835         Change local vars to use gl_ prefix rather than ac_.
57836         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57837         with other defines.
57838         * modules/double-slash-root: New module.
57839         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57840         (Depends-on): Add double-slash-root.
57841         * MODULES.html.sh (File system functions): Mention new module.
57842
57843 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57844
57845         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57846         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57847         This is for the benefit of gzip, which doesn't do i18n.
57848
57849 2006-12-12  Jim Meyering  <jim@meyering.net>
57850
57851         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57852         Reported by Andreas Schwab <schwab@suse.de>.
57853
57854 2006-12-12  Bruno Haible  <bruno@clisp.org>
57855
57856         Merge these changes.
57857         2006-09-05  Bruno Haible  <bruno@clisp.org>
57858         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57859         iconv_alloc succeeded.
57860         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57861         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57862         test for " && dest " at the end - dest is always != NULL there. Call
57863         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57864         with 2xNULL arguments, also to flush the state storage. Handle the
57865         IRIX iconv behaviour. Realloc the final result, to throw away unused
57866         memory.
57867
57868 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57869
57870         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57871         and fchmodat unconditionally, since glibc 2.4 has them.
57872         Problem reported by Arkadiusz Miskiewicz.
57873
57874 2006-12-10  Bruno Haible  <bruno@clisp.org>
57875
57876         * gnulib-tool (func_import): Show the include files only for those
57877         modules that are copied and specified.
57878         Reported by Karl Berry.
57879
57880 2006-12-08  Jim Meyering  <jim@meyering.net>
57881
57882         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57883         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57884
57885         * build-aux/announce-gen: Add two new options, both optional:
57886         --bootstrap-tools=TOOL_LIST
57887               a comma-separated list of tools, e.g.,
57888               autoconf,automake,bison,gnulib
57889         --gnulib-snapshot-date=DATE
57890               if gnulib is in the bootstrap tool list,
57891               then report this as the snapshot date.
57892               If not specified, use the current date/time.
57893               If you specify a date here, be sure it's UTC.
57894
57895 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57896
57897         * tests/test-argp-2.sh: Fix test to match actual output.
57898         (func_compare): Fix sed script to be portable.
57899
57900 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57901
57902         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57903         workaround for this case.  It is not autoconfigured now; offhand
57904         it's hard to see how to autoconfigure it.
57905
57906 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57907
57908         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57909         a directory that is about to be chowned.  Such a directory's
57910         initial file permissions should permit the owner only and this
57911         should not be changed until after the chown, since the group and
57912         other bits would be incorrect if they granted permission before
57913         the chown.
57914
57915         Fix porting problem for iswctype reported by Georg Schwarz in:
57916         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57917         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57918         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57919         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57920         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57921
57922 2006-12-03  Jim Meyering  <jim@meyering.net>
57923
57924         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57925         p->fts_statp may not yet be defined.
57926         (fts_read): Instead, set it in the caller, once p->fts_statp is
57927         sure to be defined, and corresponds to a top-level directory.
57928         This bug made du -x fail.  Here's the coreutils test case:
57929         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57930         Reported by Mike Frysinger.
57931
57932 2006-12-01  Jim Meyering  <jim@meyering.net>
57933
57934         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57935         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57936         Reported by Simon Josefsson.
57937
57938 2006-11-30  Jim Meyering  <jim@meyering.net>
57939
57940         * m4/warning.m4: Use the all-permissive copyright notice
57941         recommended by RMS (rather than LGPL).
57942         * m4/vararrays.m4: Likewise.
57943         * m4/flexmember.m4: Likewise.
57944
57945 2006-11-29  Bruno Haible  <bruno@clisp.org>
57946
57947         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57948         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57949         using +=.
57950         Reported by Simon Josefsson <simon@josefsson.org>.
57951
57952 2006-11-28  James Youngman <jay@gnu.org>
57953
57954         * README: Advise users that they might find the bug-gnulib@gnu.org
57955         and autotools-announce@gnu.org mailing lists useful.
57956
57957 2006-11-28  Bruno Haible  <bruno@clisp.org>
57958
57959         * m4/ptrdiff_max.m4: Remove file.
57960
57961 2006-11-21  Bruno Haible  <bruno@clisp.org>
57962
57963         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57964         _AC_COMPUTE_INT.
57965         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57966         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57967         _AC_COMPUTE_INT.
57968         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57969         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57970         _AC_COMPUTE_INT.
57971         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57972
57973 2006-11-28  Jim Meyering  <jim@meyering.net>
57974
57975         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57976         warning from "gcc -Wshadow" about shadowing the builtin.
57977
57978 2006-11-27  Bruno Haible  <bruno@clisp.org>
57979
57980         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57981         _AC_COMPUTE_INT.
57982         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57983
57984 2006-11-27  Bruno Haible  <bruno@clisp.org>
57985             Paul Eggert  <eggert@cs.ucla.edu>
57986
57987         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57988
57989 2006-11-26  Bruno Haible  <bruno@clisp.org>
57990
57991         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57992         noinst_LTLIBRARIES.
57993
57994 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57995             Bruno Haible  <bruno@clisp.org>
57996
57997         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57998         if compiling with "gcc -ansi".
57999
58000 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58001
58002         Fix some incompatibilities with gcc -ansi -pedantic.
58003         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58004         if compiling pedantically with GCC, unless it's C99 or later.
58005         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58006         it mishandles gcc -ansi -pedantic as well.
58007         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58008         if gcc -pedantic.
58009         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58010         initializers for struct if -pedantic, unless it's C99 or later.
58011
58012 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58013
58014         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58015         Don't close an fd more than once. Identical atimes indicate
58016         success, not failure.
58017
58018 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58019
58020         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58021
58022 2006-11-23  Jim Meyering  <jim@meyering.net>
58023
58024         * build-aux/announce-gen: New file.  From coreutils.
58025
58026 2006-11-22  Jim Meyering  <jim@meyering.net>
58027
58028         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58029         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58030         (fts_read): Use a temporary to narrow the overused st_size member
58031         before using it in a switch statement.  Reported by Matthew Woehlke.
58032
58033         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58034         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58035
58036 2006-11-20  Bruno Haible  <bruno@clisp.org>
58037
58038         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58039         changequote instead of pairs of brackets.
58040         Reported by Andreas Schwab <schwab@suse.de>.
58041
58042 2006-11-21  Jim Meyering  <jim@meyering.net>
58043
58044         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58045         so as to remain compatible with older compilers.
58046         Patch from Michael Deutschmann.
58047
58048 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * MODULES.html.sh (File system functions): Add openat.
58051
58052         * lib/openat.h (rpl_fstatat): New macro, if
58053         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58054         (fstatat): Define to rpl_fstatat under the same conditions,
58055         unless COMPILING_FSTATAT.
58056         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58057         seems to have the bug.
58058         * lib/fstatat.c: New file.
58059         * modules/openat (Files): Add it.
58060
58061 2006-11-20  Bruno Haible  <bruno@clisp.org>
58062
58063         * Makefile: New file.
58064
58065 2006-11-20  Jim Meyering  <jim@meyering.net>
58066
58067         The beginnings of syntax-related checks for gnulib.
58068         * lib/Makefile: New file.
58069         * lib/t-idcache: New script.  Ensure that the two halves of
58070         idcache.c stay in sync.
58071
58072         * lib/idcache.c: Adjust comments in user- and group- portions to
58073         be more accurate, and to be consistent with one another.
58074
58075 2006-11-20  Jim Meyering  <jim@meyering.net>
58076
58077         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58078         continue using the flexible array member (thus, this module performs
58079         half as many malloc calls), with the addition that...
58080         (getgroup, getuser): Consistently record a non-match via an empty
58081         "name" string, and map an empty string match to a NULL return value.
58082         * modules/idcache (Depends-on): Re-add flexmember.
58083
58084         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58085         (getuidbyname, getgroup, getgidbyname): Likewise.
58086
58087         Use cleaner syntax: NULL rather than 0.
58088         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58089
58090 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58091
58092         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58093         It mishandled the case where the group was missing.
58094         Problem reported by Greg Schafer.
58095         * modules/idcache: Likewise.
58096
58097 2006-11-18  Jim Meyering  <jim@meyering.net>
58098
58099         * check-module (%exempt_header): Add exception for some
58100         conditionally-included headers.
58101
58102         * modules/i-ring (Depends-on): Add verify.
58103         (License): Change to LGPL.
58104
58105 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58108         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58109         and inttostr.h.  Use snprintf rather than uinttostr, so that
58110         LGPLed code doesn't depend on GPLed.
58111
58112 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58113
58114         * modules/inline (License): Change from GPL to LGPL.
58115
58116 2006-11-17  Jim Meyering  <jim@meyering.net>
58117
58118         * modules/d-type (License): Switch to LGPL.
58119
58120 2006-11-15  Bruno Haible  <bruno@clisp.org>
58121
58122         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58123
58124 2006-11-15  Eric Blake  <ebb9@byu.net>
58125
58126         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58127         the module dependency.
58128
58129 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58130             Bruno Haible  <bruno@clisp.org>
58131
58132         * gnulib-tool (func_create_testdir): Add license consistency check.
58133
58134 2006-11-15  Eric Blake  <ebb9@byu.net>
58135
58136         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58137         random "(cached)" in configure output.
58138
58139 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58140
58141         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58142         test for conforming inttypes.h is both announced and cached.
58143
58144         * MODULES.html.sh (seen_modules, seen_files): New variables.
58145         (func_module): Rewrite to use a few less gnulib-tool and sed
58146         invocations.  Avoid a couple of quadratic algorithms for ...
58147         (missed_modules, missed_files): ... these, with ...
58148         (func_append, func_tmpdir): ... these new functions, from
58149         gnulib-tool.  Analogously, install traps for cleanup.
58150
58151         * tests/test-gc.c (main): Remove unused variables.
58152         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58153
58154 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         * modules/inttostr (License): Change to LGPL.
58157
58158 2006-11-14  Eric Blake  <ebb9@byu.net>
58159
58160         * modules/tempname (License): Change to LGPL.
58161
58162 2006-11-14  Eric Blake  <ebb9@byu.net>
58163
58164         * doc/functions.texi (Function Portability): *printf functions on
58165         Cygwin now understand all POSIX size specifiers.
58166
58167 2006-11-14  Bruno Haible  <bruno@clisp.org>
58168
58169         * modules/c-ctype (License): Change to LGPL.
58170
58171 2006-11-12  Bruno Haible  <bruno@clisp.org>
58172
58173         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58174         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58175         for GNOME libraries, for which the include files are installed in
58176         subdirectories of $prefix/include.
58177
58178 2006-11-12  Bruno Haible  <bruno@clisp.org>
58179
58180         * m4/lib-link.m4: Require at least autoconf-2.54.
58181         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58182         name to underscores for the --with option.
58183
58184 2006-11-13  Bruno Haible  <bruno@clisp.org>
58185
58186         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58187         the tests directory.
58188         Reported by Ralf Wildenhues.
58189
58190 2006-11-13  Bruno Haible  <bruno@clisp.org>
58191
58192         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58193         (func_emit_initmacro_end): Undo the override here.
58194         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58195         Works around the famous automake error in coreutils.
58196
58197 2006-11-13  Eric Blake  <ebb9@byu.net>
58198
58199         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58200         element, not its node.
58201
58202 2006-11-12  Bruno Haible  <bruno@clisp.org>
58203
58204         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58205         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58206
58207 2006-11-12  Bruno Haible  <bruno@clisp.org>
58208
58209         * gnulib-tool: New option --local-symlink.
58210         (func_usage): Document it.
58211         (lsymbolic): New variable.
58212         (func_import, func_create_testdir): If --symlink was not specified,
58213         test whether --local-symlink was specified and the file comes from
58214         the local_gnulib_dir.
58215
58216 2006-11-12  Bruno Haible  <bruno@clisp.org>
58217
58218         * gnulib-tool (func_ln): New function.
58219         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58220
58221 2006-11-12  Bruno Haible  <bruno@clisp.org>
58222
58223         Finish support for source files in subdirectories.
58224         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58225         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58226         AUTOMAKE_OPTIONS.
58227         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58228
58229 2006-11-12  Bruno Haible  <bruno@clisp.org>
58230
58231         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58232         EXTRA_lib_SOURCES augmentation.
58233         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58234
58235 2006-11-12  Jim Meyering  <jim@meyering.net>
58236
58237         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58238         file descriptors.  This also averts a failure on systems with
58239         native openat support when a traversed directory lacks "x" access.
58240         * lib/fts_.h: Include "i-ring.h"
58241         (struct FTS) [fts_fd_ring]: New member.
58242         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58243         (FCHDIR): Add parentheses.
58244         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58245         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58246         When descending, rather than simply closing the previous
58247         fts_cwd_fd value, push that file descriptor onto the ring.
58248         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58249         (fts_open): Initialize the new fd_ring member.
58250         (fts_close): Clear the ring.
58251         (fts_safe_changedir): When possible, use our new fd_ring to skip
58252         the diropen and fstat and dev/ino comparison that would normally
58253         accompany a virtual `chdir ("..")'.
58254
58255         * modules/fts (Depends-on): Add i-ring.
58256         * modules/i-ring: New module.
58257         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58258         * m4/i-ring.m4: New file.
58259
58260 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58261
58262         * gnulib-tool (func_create_testdir): Fix replacement of
58263         `build-aux' in configure.ac.  Run autotools in gltests
58264         subdirectory.
58265         (func_create_testdir, func_create_megatestdir, test): There is
58266         no need for '--force' in most autotool invocations in a new
58267         tree.  Actually fail the whole test if any of the tools, or the
58268         configure or make stages fail.
58269
58270         Sync from Automake.
58271         * build-aux/gnupload: Revert last change.  Add pointer to upload
58272         instructions of the GNU Maintenance Instructions.
58273         Suggestion by Karl Berry.
58274
58275 2006-11-10  Jim Meyering  <jim@meyering.net>
58276
58277         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58278
58279 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58280
58281         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58282         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58283         (bind_textdomain_codeset) [! ENABLE_NLS]:
58284         Evaluate all the arguments.  That way, callers get compatible behavior
58285         if the arguments have side effects.  Also, it avoids some GCC
58286         diagnostics in some cases; Joel E. Denny reported problems when Bison
58287         was configured with --enable-gcc-warnigs.
58288
58289 2006-11-10  Jim Meyering  <jim@meyering.net>
58290
58291         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58292         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58293         account.
58294
58295 2006-11-10  Jim Meyering  <jim@meyering.net>
58296
58297         * modules/inline: New file/module.
58298         * modules/xalloc (Files): Remove m4/inline.m4.
58299         (Depends-on): Add inline, instead.
58300         * modules/oset: Likewise.
58301         * modules/list: Likewise.
58302
58303 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58306         Problem reported by Matthew Woehlke.
58307
58308 2006-11-09  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/tempname.c (gen_tempname): Remove variant that invokes
58311         __gen_tempname.
58312         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58313         __gen_tempname.
58314
58315 2006-11-08  Bruno Haible  <bruno@clisp.org>
58316
58317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58318         to 'yes' instead of 'cross-compiling'.
58319
58320 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * lib/quotearg.h (quotearg_free): New decl.
58323         * lib/quotearg.c (quotearg_free): New function.
58324         (slot0, nslots, slotvec0, slotvec):
58325         Now file-scope so that quotearg_free can get at them.
58326
58327 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58328
58329         Sync from Automake.
58330         * build-aux/gnupload: Add missing 'gnu' to example URL.
58331         Report by Karl Berry.
58332
58333 2006-11-08  Bruno Haible  <bruno@clisp.org>
58334
58335         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58336         Suggested by Paul Eggert.
58337
58338 2006-11-08  Jim Meyering  <jim@meyering.net>
58339
58340         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58341         It's already included if !_LIBC.
58342         (fts_safe_changedir): Add a comment.
58343
58344 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58345
58346         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58347         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58348         Matthew Woehlke.
58349
58350         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58351         definitions up, to avoid colliding with change below.
58352         (static_inline) [HAVE_INLINE]: New macro.
58353         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58354         Provide extern decls when !HAVE_INLINE.  Do not define unless
58355         static_inline is defined, either by us or by xmalloc.c.  Use
58356         static_inline rather than static inline.
58357         (XCALLOC): Optimize sizeof(T) = 1 case.
58358         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58359
58360 2006-11-07  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58363         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58364         AC_C_INLINE.
58365         * modules/xalloc (Files): Add m4/inline.m4.
58366
58367 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58368
58369         * README: Fix typo.
58370         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58371         (Miscellanous Notes): ...from this.
58372
58373 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58376         Mention that offsetof should be used instead of sizeof.
58377         From Bruno Haible.
58378
58379 2006-11-07  Bruno Haible  <bruno@clisp.org>
58380
58381         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58382
58383 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58386         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58387         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58388         (gl_tree_add_before, gl_tree_add_after):
58389         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58390         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58391         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58392         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58393         (gl_linked_add_after, gl_linked_add_at): Likewise.
58394         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58395         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58396         (gl_tree_add_before, gl_tree_add_after): Likewise.
58397         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58398         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58399         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58400
58401 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58402
58403         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58404
58405 2006-11-06  Bruno Haible  <bruno@clisp.org>
58406
58407         * m4/inline.m4: New file.
58408         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58409         * modules/list (Files): Add m4/inline.m4.
58410         * modules/oset (Files): Likewise.
58411
58412 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         * lib/idcache.c: Include <stddef.h>, for offsetof.
58415         (struct userid.name): Change from char * to a flexible array member.
58416         All uses changed.
58417         * modules/idcache (Depends-on): Add flexmember.
58418
58419         * MODULES.html.sh (Core language properties): New module flexmember.
58420         * modules/flexmember, m4/flexmember.m4: New files.
58421
58422         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58423         inline functions that are identical with the old xnmalloc_inline,
58424         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58425         that we can avoid some unnecessary integer multiplications and
58426         divisions in the common case where the element size is known at
58427         compile time.
58428         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58429         needed.
58430         (xnboundedmalloc): Remove.
58431         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58432         arguments, for consistency with rest of this header.
58433         (xcharalloc): Rewrite using XNMALLOC.
58434         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58435         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58436         versions have been moved to lib/xalloc.h and renamed to be the
58437         non-*_inline versions.
58438         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58439         and xnrealloc functions, since those functions are now inline and
58440         now call us.
58441         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58442         renaming described above.
58443         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58444         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58445         captures the dependency in AC_C_INLINE.
58446
58447         New module canonicalize-lgpl, proposed by Charles Wilson in
58448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58449         with a few small changes afterwards.
58450         * MODULES.html.sh (File system functions): New module
58451         canonicalize-lgpl.
58452         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58453         and canonicalize_file_name.
58454         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58455         * modules/canonicalize-lgpl: New files.
58456
58457 2006-11-05  Bruno Haible  <bruno@clisp.org>
58458
58459         * gnulib-tool (func_import, func_create_testdir): Create directories
58460         also for files in subdirectories of lib/.
58461
58462 2006-11-05  Bruno Haible  <bruno@clisp.org>
58463
58464         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58465         ANSI C compliant.
58466
58467 2006-11-03  Bruno Haible  <bruno@clisp.org>
58468
58469         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58470         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58471         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58472         (xnboundedmalloc): New inline function.
58473         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58474         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58475         xmalloc.
58476         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58477         xmalloc.
58478         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58479         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58480         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58481         xmalloc.
58482         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58483         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58484         xmalloc.
58485         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58486         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58487         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58488         xmalloc.
58489         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58490         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58491         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58492         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58493         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58494         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58495         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58496
58497 2006-11-03  Bruno Haible  <bruno@clisp.org>
58498
58499         * lib/c-ctype.h [C++]: Define functions without name mangling.
58500         * lib/fwriteerror.h [C++]: Likewise.
58501         * lib/gcd.h [C++]: Likewise.
58502         * lib/linebreak.h [C++]: Likewise.
58503
58504 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58505
58506         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58507         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58508         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58509         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58510         Check for functions and headers just once.
58511         Check for declaration of canonicalize_file_name.
58512         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58513
58514 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58515
58516         * gnulib-tool (func_import): Fix typo in actioncmd.
58517
58518 2006-11-02  Bruno Haible  <bruno@clisp.org>
58519
58520         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58521         newline sequence in the Makefile.am snippet as a space, like "make"
58522         does.
58523         Reported by Roger Persson <perrog@gmail.com>.
58524
58525 2006-11-01  Bruno Haible  <bruno@clisp.org>
58526
58527         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58528         already declared in <string.h>.
58529         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58530
58531 2006-11-01  Bruno Haible  <bruno@clisp.org>
58532
58533         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58534         * lib/strcase.h: Include <string.h>.
58535         (strcasecmp): Define to rpl_strcasecmp here.
58536
58537 2006-11-01  Bruno Haible  <bruno@clisp.org>
58538
58539         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58540
58541 2006-11-01  Eric Blake  <ebb9@byu.net>
58542
58543         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58544
58545         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58546
58547 2006-10-29  Bruno Haible  <bruno@clisp.org>
58548
58549         Make it compile in C++ mode.
58550         * lib/full-write.c (full_rw): Add a cast.
58551
58552 2006-11-01  Bruno Haible  <bruno@clisp.org>
58553
58554         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58555         be POSIX compliant.
58556         Reported by Roger Persson <perrog@gmail.com>.
58557
58558 2006-11-01  Eric Blake  <ebb9@byu.net>
58559
58560         * lib/getopt_.h: Fix comments.
58561
58562 2006-10-31  Eric Blake  <ebb9@byu.net>
58563
58564         * modules/tmpdir (Depends-on): Add sys_stat.
58565         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58566         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58567         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58568         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58569         tempname.
58570
58571 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58572
58573         Avoid some C++ diagnostics reported by Bruno Haible.
58574         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58575         xmalloc.
58576         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58577         (struct slotvec): Move to top level.
58578         (quotearg_n_options): Rewrite to avoid xmalloc.
58579         * lib/xalloc.h (xcharalloc): New function.
58580         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58581         [defined __cplusplus]: Add function template that provides result
58582         type propagation.  This part of the change is from Bruno Haible.
58583
58584 2006-10-29  Bruno Haible  <bruno@clisp.org>
58585
58586         Make it compile in C++ mode.
58587         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58588         * lib/strnlen1.c (strnlen1): Cast memchr result.
58589         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58590         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58591         (create_temp_dir): Rename local variable 'template'.
58592         (compile_csharp_using_sscli): Add cast.
58593         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58594         * lib/findprog.c (find_in_path): Likewise.
58595         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58596         * lib/wait-process.c (register_slave_subprocess): Likewise.
58597
58598 2006-10-22  Bruno Haible  <bruno@clisp.org>
58599
58600         * modules/tsearch: New file.
58601         * lib/tsearch.h: New file.
58602         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58603         * m4/tsearch.m4: New file.
58604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58605
58606 2006-10-29  Eric Blake  <ebb9@byu.net>
58607
58608         * lib/arcfour.c: Assume config.h.
58609         * lib/arctwo.c: Likewise.
58610         * lib/base64.c: Likewise.
58611         * lib/check-version.c: Likewise.
58612         * lib/crc.c: Likewise.
58613         * lib/des.c: Likewise.
58614         * lib/gc-gnulib.c: Likewise.
58615         * lib/gc-libgcrypt.c: Likewise.
58616         * lib/gc-pbkdf2-sha1.c: Likewise.
58617         * lib/getaddrinfo.c: Likewise.
58618         * lib/getdelim.c: Likewise.
58619         * lib/getline.c: Likewise.
58620         * lib/hmac-md5.c: Likewise.
58621         * lib/hmac-sha1.c: Likewise.
58622         * lib/iconvme.c: Likewise.
58623         * lib/md2.c: Likewise.
58624         * lib/md4.c: Likewise.
58625         * lib/memxor.c: Likewise.
58626         * lib/read-file.c: Likewise.
58627         * lib/readline.c: Likewise.
58628         * lib/rijndael-alg-fst.c: Likewise.
58629         * lib/rijndael-api-fst.c: Likewise.
58630         * lib/xgetdomainname.c: Likewise.
58631
58632 2006-10-28  Eric Blake  <ebb9@byu.net>
58633
58634         * lib/xstrndup.c: Assume config.h.
58635
58636 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58637
58638         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58639         stat-macros.h is now for our own macros, whereas stat_h is for
58640         macros in the <sys/stat.h> name space.
58641         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58642         (STAT_MACROS_H): Remove.
58643         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58644         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58645         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58646         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58647         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58648         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58649         Move these macros to ...
58650         * lib/stat_.h: here.  Don't include stat-macros.h.
58651         * lib/canonicalize.c: Don't include stat-macros.h.
58652         * lib/chown.c: Likewise.
58653         * lib/euidaccess.c: Likewise.
58654         * lib/file-type.c: Likewise.
58655         * lib/filemode.c: Likewise.
58656         * lib/glob.c: Likewise.
58657         * lib/isapipe.c: Likewise.
58658         * lib/lchown.c: Likewise.
58659         * lib/lstat.c: Likewise.
58660         * lib/mkdir-p.c: Likewise.
58661         * lib/rmdir.c: Likewise.
58662         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58664         unless mkdir isn't declared, to speed up 'configure'.
58665         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58666         would define all the S_* symbols.
58667         * modules/canonicalize (Depends-on):
58668         Depend on sys_stat, not stat-macros.
58669         * modules/chown: Likewise.
58670         * modules/euidaccess: Likewise.
58671         * modules/filemode: Likewise.
58672         * modules/file-type: Likewise.
58673         * modules/glob: Likewise.
58674         * modules/isapipe: Likewise.
58675         * modules/lchown: Likewise.
58676         * modules/lstat: Likewise.
58677         * modules/mkancesdirs: Likewise.
58678         * modules/rmdir: Likewise.
58679         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58680         * modules/modechange: Likewise.
58681         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58682         (configure.ac): Remove gl_STAT_MACROS.
58683         * modules/sys_stat (Depends-on): Remove stat-macros.
58684
58685 2006-10-27  Bruno Haible  <bruno@clisp.org>
58686
58687         * m4/signed.m4: Remove file.
58688         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58689         invocation.
58690         * modules/vasnprintf (Files): Remove m4/signed.m4.
58691
58692 2006-10-27  Bruno Haible  <bruno@clisp.org>
58693
58694         Update to GNU gettext 0.16.
58695         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58696         m4/inttypes-h.m4, m4/signed.m4.
58697         * m4/gettext.m4: Update to GNU gettext 0.16.
58698         * m4/intl.m4: New file, from GNU gettext.
58699         * m4/intldir.m4: New file, from GNU gettext.
58700         * config/srclist.txt: Update
58701
58702 2006-10-27  Eric Blake  <ebb9@byu.net>
58703
58704         * MODULES.html.sh: Document tempname.
58705         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58706         dependencies.
58707         (Files): Move lib/tempname.c...
58708         * modules/tempname: ...to this new module.
58709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58710         (gl_PREREQ_TEMPNAME): Move...
58711         * m4/tempname.m4: ...to this new file.
58712         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58713         * modules/sys_stat (Depends-on): Add stat-macros.
58714         * lib/stat_.h (includes): Pick up stat macros.
58715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58716         if stat macros are broken.
58717         * lib/tempname.c (includes): No need to include "stat-macros.h".
58718         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58719         (direxists, __path_search) [!_LIBC]: Don't compile these in
58720         gnulib; the tmpdir module covers that.
58721         * lib/tempname.h: New file.
58722
58723 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58724
58725         * COPYING: Explain how gnulib-tool converts licence headers.
58726         Almost all wording by Eric Blake.
58727
58728 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58729
58730         * lib/mbchar.h (is_basic_table): Make read-only.
58731         * lib/mbchar.c (is_basic_table): Likewise.
58732         Reported by John Darrington.
58733
58734 2006-10-25  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/progname.h (set_program_name): Undefine before defining.
58737
58738 2006-10-25  Bruno Haible  <bruno@clisp.org>
58739
58740         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58741         false for non-gcc C++ compilers.
58742         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58743
58744 2006-10-24  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58747         iconv implementations like Irix iconv.
58748
58749 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * modules/vararrays: New file.
58752         * m4/vararrays.m4: New file, taken from diffutils.
58753         * MODULES.html.sh: New module vararrays.
58754
58755 2006-10-24  Karl Berry  <karl@gnu.org>
58756
58757         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58758         Don't call GNU Unix.
58759
58760 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58761
58762         * users.txt: Add Libtool.
58763
58764         Sync from Libtool:
58765
58766         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58767
58768         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58769         to gnulib's policy of including config.h unconditionally.
58770
58771 2006-10-24  Bruno Haible  <bruno@clisp.org>
58772
58773         * modules/wcwidth (Files): Add m4/wint_t.m4.
58774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58775         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58776
58777 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58778
58779         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58780         to pacify GCC with some -W flags enabled.  Problem reported by
58781         Bruno Haible.
58782
58783 2006-10-24  Jim Meyering  <jim@meyering.net>
58784
58785         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58786         Reported by Karl Berry.
58787
58788 2006-10-23  Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58791
58792 2006-10-24  Bruno Haible  <bruno@clisp.org>
58793
58794         * lib/gl_list.h: Use C comment style, not C++ comment style.
58795
58796 2006-10-23  Eric Blake  <ebb9@byu.net>
58797
58798         * lib/getaddrinfo.c (includes): Add missing include.
58799
58800 2006-10-23  Bruno Haible  <bruno@clisp.org>
58801             Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         Ability to rename obstack_free.
58804         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58805         obstack_free.
58806         (obstack_free): Invoke the __obstack_free macro.
58807         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58808
58809 2006-10-23  Bruno Haible  <bruno@clisp.org>
58810             Paul Eggert  <eggert@cs.ucla.edu>
58811
58812         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58813         __argc, __argv from the declaration. (They are defined as macros on
58814         mingw.)
58815
58816 2006-10-22  Bruno Haible  <bruno@clisp.org>
58817
58818         * doc/gnulib-intro.texi: New file.
58819         * doc/gnulib.texi: Include it.
58820
58821 2006-10-21  Bruno Haible  <bruno@clisp.org>
58822
58823         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58824         "Introduction", "Miscellanous Notes", "Particular Modules".
58825
58826 2006-10-21  Bruno Haible  <bruno@clisp.org>
58827
58828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58829         Change mostlyclean-local rule to avoid sh syntax error from bash
58830         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58831
58832 2006-10-23  Jim Meyering  <jim@meyering.net>
58833
58834         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58835         in place of snprintf.
58836
58837         * modules/inttostr (Files): Add lib/uinttostr.c.
58838         * lib/uinttostr.c (inttostr): New file/function.
58839         * lib/inttostr.h (uinttostr): Declare.
58840         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58841         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58842         Add uinttostr.
58843         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58844
58845 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * lib/canonicalize.c (ELOOP): Define if not already defined.
58848         Problem reported by Bruno Haible in
58849         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58850
58851 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58854         Problem reported by Perry Smith and Ville Laurikari.
58855
58856         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58857         uses.
58858
58859 2006-10-19  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58862         for mingw.
58863
58864 2006-10-19  Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58867         Needed for mingw.
58868
58869 2006-10-19  Bruno Haible  <bruno@clisp.org>
58870
58871         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58872
58873 2006-10-19  Bruno Haible  <bruno@clisp.org>
58874
58875         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58876         it.
58877
58878 2006-10-19  Bruno Haible  <bruno@clisp.org>
58879
58880         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58881         invocation.
58882
58883 2006-10-19  Bruno Haible  <bruno@clisp.org>
58884
58885         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58886         mountlist by default.
58887
58888 2006-10-16  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/c-strstr.c: Include c-strstr.h.
58891
58892 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58893
58894         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58895         in a slash.
58896
58897 2006-10-18  Bruno Haible  <bruno@clisp.org>
58898
58899         * lib/lock.h [C++]: Wrap definitions in extern "C".
58900
58901 2006-10-18  Bruno Haible  <bruno@clisp.org>
58902
58903         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58904         gl_LIBOBJS list.
58905
58906 2006-10-18  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58909
58910 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         * lib/xstrtol.h: Include gettext.h.
58913         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58914         Problem reported by Eric Blake.
58915         * modules/xstrtol (Depends-on): Add gettext-h.
58916
58917 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58918
58919         * lib/strftime.c (advance): New macro.
58920         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58921         incomplete type, so you can't add 0 to it.  Problem and patch
58922         reported by Eelco Dolstra for dietlibc.
58923
58924 2006-10-18  Jim Meyering  <jim@meyering.net>
58925
58926         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58927         type for a local, and rename it: s/up/user_proc/.
58928
58929 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58930
58931         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58932         READ_UTMP_USER_PROCESS.
58933         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58934
58935 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58936
58937         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58938         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58939
58940 2006-10-17  Eric Blake  <ebb9@byu.net>
58941
58942         * lib/sigprocmask.c (sigprocmask): Fix typo.
58943
58944         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58945
58946         * modules/clean-temp (Makefile.am): Don't add to make output...
58947         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58948         config.h.
58949
58950 2006-10-17  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58953         differently if DEFAULT_TEXT_DOMAIN is set.
58954
58955 2006-10-16  Bruno Haible  <bruno@clisp.org>
58956
58957         * lib/clean-temp.c: Include fwriteerror.h.
58958
58959 2006-10-16  Bruno Haible  <bruno@clisp.org>
58960
58961         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58962
58963 2006-10-16  Bruno Haible  <bruno@clisp.org>
58964
58965         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58966         * lib/sigprocmask.h: Include <sys/types.h>.
58967         (sigset_t): Use the system's definition if present.
58968
58969 2006-10-17  Eric Blake  <ebb9@byu.net>
58970
58971         * lib/xvasprintf.c (includes): Assume config.h.
58972         * lib/xasprintf.c (includes): Likewise.
58973
58974 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58975
58976         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58977         at least as wide as intmax_t.
58978
58979 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58980
58981         (Imported from Automake.)
58982         * build-aux/gnupload: Update to version 1.1 of directive file.
58983
58984 2006-10-16  Eric Blake  <ebb9@byu.net>
58985
58986         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58987         match Automake 1.10a.
58988
58989 2006-10-14  Bruno Haible  <bruno@clisp.org>
58990
58991         * modules/sigprocmask: New file.
58992         * lib/sigprocmask.h: New file.
58993         * lib/sigprocmask.c: New file.
58994         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58995         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58996         request sigprocmask.o.
58997         (gl_PREREQ_SIGPROCMASK): New macro.
58998         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58999         (Depends-on): Add sigprocmask.
59000         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59001         gt_SIGNALBLOCKING. Test for 'raise' only once.
59002         * lib/fatal-signal.c: Include sigprocmask.h.
59003         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59004         unblock_fatal_signals): Define always.
59005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59006         sigprocmask.
59007
59008 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59009
59010         Sync from Automake.
59011         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59012         which incorrectly sets the mode of an existing destination
59013         directory.  In some cases the unpatched install-sh could do the
59014         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59015         system.  We hope this is rare in practice, but it's clearly worth
59016         fixing.  Problem reported by Alex Unleashed in
59017         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59018         Also, don't bother to check for -m bugs unless we're using -m;
59019         suggested by Stepan Kasal.
59020
59021 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59022
59023         Sync from Automake.
59024         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59025         `-c' flag, so they appear at the same position as in %FASTDEP%
59026         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59027         which ignores unknown options only after the first non-option.
59028         Bug report against M4 by Nelson H. F. Beebe.
59029
59030 2006-10-13  Jim Meyering  <jim@meyering.net>
59031
59032         Fix a bug in yesterday's change.
59033         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59034         p->fts_statp->st_dev would be used uninitialized.
59035         Ensures that we always call fts_stat on the very first entry.
59036         Miklos Szeredi reported that find -xdev stopped working.
59037
59038 2006-10-12  Bruno Haible  <bruno@clisp.org>
59039
59040         * gnulib-tool (func_get_automake_snippet): Append an automatically
59041         computed EXTRA_DIST augmentation.
59042         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59043         * modules/alloca-opt (Makefile.am): Likewise.
59044         * modules/allocsa (Makefile.am): Likewise.
59045         * modules/arcfour (Makefile.am): Likewise.
59046         * modules/arctwo (Makefile.am): Likewise.
59047         * modules/argmatch (Makefile.am): Likewise.
59048         * modules/argz (Makefile.am): Likewise.
59049         * modules/atexit (Makefile.am): Likewise.
59050         * modules/backupfile (Makefile.am): Likewise.
59051         * modules/byteswap (Makefile.am): Likewise.
59052         * modules/c-strtod (Makefile.am): Likewise.
59053         * modules/c-strtold (Makefile.am): Likewise.
59054         * modules/calloc (Makefile.am): Likewise.
59055         * modules/canon-host (Makefile.am): Likewise.
59056         * modules/canonicalize (Makefile.am): Likewise.
59057         * modules/chdir-long (Makefile.am): Likewise.
59058         * modules/chdir-safer (Makefile.am): Likewise.
59059         * modules/check-version (Makefile.am): Likewise.
59060         * modules/chown (Makefile.am): Likewise.
59061         * modules/cloexec (Makefile.am): Likewise.
59062         * modules/close-stream (Makefile.am): Likewise.
59063         * modules/closeout (Makefile.am): Likewise.
59064         * modules/crc (Makefile.am): Likewise.
59065         * modules/csharpexec (Makefile.am): Likewise.
59066         * modules/cycle-check (Makefile.am): Likewise.
59067         * modules/des (Makefile.am): Likewise.
59068         * modules/dev-ino (Makefile.am): Likewise.
59069         * modules/dirfd (Makefile.am): Likewise.
59070         * modules/dirname (Makefile.am): Likewise.
59071         * modules/dup2 (Makefile.am): Likewise.
59072         * modules/eealloc (Makefile.am): Likewise.
59073         * modules/error (Makefile.am): Likewise.
59074         * modules/euidaccess (Makefile.am): Likewise.
59075         * modules/exclude (Makefile.am): Likewise.
59076         * modules/exitfail (Makefile.am): Likewise.
59077         * modules/fcntl-safer (Makefile.am): Likewise.
59078         * modules/fcntl (Makefile.am): Likewise.
59079         * modules/file-type (Makefile.am): Likewise.
59080         * modules/fileblocks (Makefile.am): Likewise.
59081         * modules/filemode (Makefile.am): Likewise.
59082         * modules/filenamecat (Makefile.am): Likewise.
59083         * modules/fnmatch (Makefile.am): Likewise.
59084         * modules/fopen-safer (Makefile.am): Likewise.
59085         * modules/fpending (Makefile.am): Likewise.
59086         * modules/fprintftime (Makefile.am): Likewise.
59087         * modules/free (Makefile.am): Likewise.
59088         * modules/fsusage (Makefile.am): Likewise.
59089         * modules/ftruncate (Makefile.am): Likewise.
59090         * modules/fts (Makefile.am): Likewise.
59091         * modules/gc-arcfour (Makefile.am): Likewise.
59092         * modules/gc-des (Makefile.am): Likewise.
59093         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59094         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59095         * modules/gc-md4 (Makefile.am): Likewise.
59096         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59097         * modules/gc-sha1 (Makefile.am): Likewise.
59098         * modules/gc (Makefile.am): Likewise.
59099         * modules/getaddrinfo (Makefile.am): Likewise.
59100         * modules/getcwd (Makefile.am): Likewise.
59101         * modules/getdelim (Makefile.am): Likewise.
59102         * modules/getdomainname (Makefile.am): Likewise.
59103         * modules/getgroups (Makefile.am): Likewise.
59104         * modules/gethostname (Makefile.am): Likewise.
59105         * modules/gethrxtime (Makefile.am): Likewise.
59106         * modules/getline (Makefile.am): Likewise.
59107         * modules/getloadavg (Makefile.am): Likewise.
59108         * modules/getlogin_r (Makefile.am): Likewise.
59109         * modules/getndelim2 (Makefile.am): Likewise.
59110         * modules/getopt (Makefile.am): Likewise.
59111         * modules/getpagesize (Makefile.am): Likewise.
59112         * modules/getpass-gnu (Makefile.am): Likewise.
59113         * modules/getpass (Makefile.am): Likewise.
59114         * modules/getsubopt (Makefile.am): Likewise.
59115         * modules/gettime (Makefile.am): Likewise.
59116         * modules/gettimeofday (Makefile.am): Likewise.
59117         * modules/getugroups (Makefile.am): Likewise.
59118         * modules/getusershell (Makefile.am): Likewise.
59119         * modules/glob (Makefile.am): Likewise.
59120         * modules/group-member (Makefile.am): Likewise.
59121         * modules/hard-locale (Makefile.am): Likewise.
59122         * modules/hash (Makefile.am): Likewise.
59123         * modules/hmac-md5 (Makefile.am): Likewise.
59124         * modules/hmac-sha1 (Makefile.am): Likewise.
59125         * modules/human (Makefile.am): Likewise.
59126         * modules/idcache (Makefile.am): Likewise.
59127         * modules/imaxabs (Makefile.am): Likewise.
59128         * modules/imaxdiv (Makefile.am): Likewise.
59129         * modules/inet_ntop (Makefile.am): Likewise.
59130         * modules/inet_pton (Makefile.am): Likewise.
59131         * modules/intprops (Makefile.am): Likewise.
59132         * modules/inttostr (Makefile.am): Likewise.
59133         * modules/inttypes (Makefile.am): Likewise.
59134         * modules/isapipe (Makefile.am): Likewise.
59135         * modules/javaversion (Makefile.am): Likewise.
59136         * modules/lchmod (Makefile.am): Likewise.
59137         * modules/lchown (Makefile.am): Likewise.
59138         * modules/localcharset (Makefile.am): Likewise.
59139         * modules/long-options (Makefile.am): Likewise.
59140         * modules/lstat (Makefile.am): Likewise.
59141         * modules/malloc (Makefile.am): Likewise.
59142         * modules/mathl (Makefile.am): Likewise.
59143         * modules/mbchar (Makefile.am): Likewise.
59144         * modules/md2 (Makefile.am): Likewise.
59145         * modules/md4 (Makefile.am): Likewise.
59146         * modules/md5 (Makefile.am): Likewise.
59147         * modules/memcasecmp (Makefile.am): Likewise.
59148         * modules/memchr (Makefile.am): Likewise.
59149         * modules/memcmp (Makefile.am): Likewise.
59150         * modules/memcoll (Makefile.am): Likewise.
59151         * modules/memcpy (Makefile.am): Likewise.
59152         * modules/memmem (Makefile.am): Likewise.
59153         * modules/memmove (Makefile.am): Likewise.
59154         * modules/mempcpy (Makefile.am): Likewise.
59155         * modules/memrchr (Makefile.am): Likewise.
59156         * modules/memset (Makefile.am): Likewise.
59157         * modules/memxor (Makefile.am): Likewise.
59158         * modules/mkancesdirs (Makefile.am): Likewise.
59159         * modules/mkdir-p (Makefile.am): Likewise.
59160         * modules/mkdir (Makefile.am): Likewise.
59161         * modules/mkdtemp (Makefile.am): Likewise.
59162         * modules/mkstemp (Makefile.am): Likewise.
59163         * modules/mktime (Makefile.am): Likewise.
59164         * modules/modechange (Makefile.am): Likewise.
59165         * modules/mountlist (Makefile.am): Likewise.
59166         * modules/nanosleep (Makefile.am): Likewise.
59167         * modules/obstack (Makefile.am): Likewise.
59168         * modules/openat (Makefile.am): Likewise.
59169         * modules/pagealign_alloc (Makefile.am): Likewise.
59170         * modules/pathmax (Makefile.am): Likewise.
59171         * modules/physmem (Makefile.am): Likewise.
59172         * modules/poll (Makefile.am): Likewise.
59173         * modules/posixtm (Makefile.am): Likewise.
59174         * modules/posixver (Makefile.am): Likewise.
59175         * modules/putenv (Makefile.am): Likewise.
59176         * modules/quote (Makefile.am): Likewise.
59177         * modules/quotearg (Makefile.am): Likewise.
59178         * modules/raise (Makefile.am): Likewise.
59179         * modules/read-file (Makefile.am): Likewise.
59180         * modules/readline (Makefile.am): Likewise.
59181         * modules/readlink (Makefile.am): Likewise.
59182         * modules/readtokens (Makefile.am): Likewise.
59183         * modules/readutmp (Makefile.am): Likewise.
59184         * modules/realloc (Makefile.am): Likewise.
59185         * modules/regex (Makefile.am): Likewise.
59186         * modules/rename-dest-slash (Makefile.am): Likewise.
59187         * modules/rename (Makefile.am): Likewise.
59188         * modules/rijndael (Makefile.am): Likewise.
59189         * modules/rmdir (Makefile.am): Likewise.
59190         * modules/rpmatch (Makefile.am): Likewise.
59191         * modules/safe-read (Makefile.am): Likewise.
59192         * modules/safe-write (Makefile.am): Likewise.
59193         * modules/same-inode (Makefile.am): Likewise.
59194         * modules/same (Makefile.am): Likewise.
59195         * modules/save-cwd (Makefile.am): Likewise.
59196         * modules/savedir (Makefile.am): Likewise.
59197         * modules/setenv (Makefile.am): Likewise.
59198         * modules/settime (Makefile.am): Likewise.
59199         * modules/sha1 (Makefile.am): Likewise.
59200         * modules/sig2str (Makefile.am): Likewise.
59201         * modules/snprintf (Makefile.am): Likewise.
59202         * modules/stat-macros (Makefile.am): Likewise.
59203         * modules/stat-time (Makefile.am): Likewise.
59204         * modules/stdbool (Makefile.am): Likewise.
59205         * modules/stdint (Makefile.am): Likewise.
59206         * modules/stdlib-safer (Makefile.am): Likewise.
59207         * modules/stpcpy (Makefile.am): Likewise.
59208         * modules/stpncpy (Makefile.am): Likewise.
59209         * modules/strcase (Makefile.am): Likewise.
59210         * modules/strcasestr (Makefile.am): Likewise.
59211         * modules/strchrnul (Makefile.am): Likewise.
59212         * modules/strcspn (Makefile.am): Likewise.
59213         * modules/strdup (Makefile.am): Likewise.
59214         * modules/strerror (Makefile.am): Likewise.
59215         * modules/strftime (Makefile.am): Likewise.
59216         * modules/strndup (Makefile.am): Likewise.
59217         * modules/strnlen (Makefile.am): Likewise.
59218         * modules/strpbrk (Makefile.am): Likewise.
59219         * modules/strsep (Makefile.am): Likewise.
59220         * modules/strstr (Makefile.am): Likewise.
59221         * modules/strtod (Makefile.am): Likewise.
59222         * modules/strtoimax (Makefile.am): Likewise.
59223         * modules/strtok_r (Makefile.am): Likewise.
59224         * modules/strtol (Makefile.am): Likewise.
59225         * modules/strtoll (Makefile.am): Likewise.
59226         * modules/strtoul (Makefile.am): Likewise.
59227         * modules/strtoull (Makefile.am): Likewise.
59228         * modules/strtoumax (Makefile.am): Likewise.
59229         * modules/strverscmp (Makefile.am): Likewise.
59230         * modules/sys_socket (Makefile.am): Likewise.
59231         * modules/sys_stat (Makefile.am): Likewise.
59232         * modules/sysexits (Makefile.am): Likewise.
59233         * modules/time_r (Makefile.am): Likewise.
59234         * modules/timegm (Makefile.am): Likewise.
59235         * modules/timespec (Makefile.am): Likewise.
59236         * modules/tmpfile-safer (Makefile.am): Likewise.
59237         * modules/trim (Makefile.am): Likewise.
59238         * modules/unistd-safer (Makefile.am): Likewise.
59239         * modules/unlinkdir (Makefile.am): Likewise.
59240         * modules/unlocked-io (Makefile.am): Likewise.
59241         * modules/userspec (Makefile.am): Likewise.
59242         * modules/utime (Makefile.am): Likewise.
59243         * modules/utimecmp (Makefile.am): Likewise.
59244         * modules/utimens (Makefile.am): Likewise.
59245         * modules/vasnprintf (Makefile.am): Likewise.
59246         * modules/vasprintf (Makefile.am): Likewise.
59247         * modules/vsnprintf (Makefile.am): Likewise.
59248         * modules/xalloc (Makefile.am): Likewise.
59249         * modules/xgetcwd (Makefile.am): Likewise.
59250         * modules/xnanosleep (Makefile.am): Likewise.
59251         * modules/xreadlink (Makefile.am): Likewise.
59252         * modules/xstrtod (Makefile.am): Likewise.
59253         * modules/xstrtol (Makefile.am): Likewise.
59254         * modules/xstrtold (Makefile.am): Likewise.
59255         * modules/yesno (Makefile.am): Likewise.
59256         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59257
59258 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * modules/error (Makefile.am): Distribute files through
59261         EXTRA_DIST, not lib_SOURCES.
59262
59263 2006-10-12  Eric Blake  <ebb9@byu.net>
59264
59265         * modules/error (Makefile.am): Distribute files in /lib.
59266         * modules/obstack (Makefile.am): Likewise.
59267
59268 2006-10-12  Bruno Haible  <bruno@clisp.org>
59269
59270         * modules/acl (Makefile.am): Distribute all files in lib/ through
59271         EXTRA_DIST.
59272         * modules/arcfour (Makefile.am): Likewise.
59273         * modules/arctwo (Makefile.am): Likewise.
59274         * modules/argmatch (Makefile.am): Likewise.
59275         * modules/argz (Makefile.am): Likewise.
59276         * modules/atexit (Makefile.am): Likewise.
59277         * modules/backupfile (Makefile.am): Likewise.
59278         * modules/c-strtod (Makefile.am): Likewise.
59279         * modules/c-strtold (Makefile.am): Likewise.
59280         * modules/calloc (Makefile.am): Likewise.
59281         * modules/canon-host (Makefile.am): Likewise.
59282         * modules/canonicalize (Makefile.am): Likewise.
59283         * modules/chdir-long (Makefile.am): Likewise.
59284         * modules/chdir-safer (Makefile.am): Likewise.
59285         * modules/check-version (Makefile.am): Likewise.
59286         * modules/chown (Makefile.am): Likewise.
59287         * modules/cloexec (Makefile.am): Likewise.
59288         * modules/close-stream (Makefile.am): Likewise.
59289         * modules/closeout (Makefile.am): Likewise.
59290         * modules/crc (Makefile.am): Likewise.
59291         * modules/cycle-check (Makefile.am): Likewise.
59292         * modules/des (Makefile.am): Likewise.
59293         * modules/dirfd (Makefile.am): Likewise.
59294         * modules/dirname (Makefile.am): Likewise.
59295         * modules/dup2 (Makefile.am): Likewise.
59296         * modules/euidaccess (Makefile.am): Likewise.
59297         * modules/exclude (Makefile.am): Likewise.
59298         * modules/exitfail (Makefile.am): Likewise.
59299         * modules/fcntl-safer (Makefile.am): Likewise.
59300         * modules/file-type (Makefile.am): Likewise.
59301         * modules/fileblocks (Makefile.am): Likewise.
59302         * modules/filemode (Makefile.am): Likewise.
59303         * modules/filenamecat (Makefile.am): Likewise.
59304         * modules/fnmatch (Makefile.am): Likewise.
59305         * modules/fopen-safer (Makefile.am): Likewise.
59306         * modules/fpending (Makefile.am): Likewise.
59307         * modules/fprintftime (Makefile.am): Likewise.
59308         * modules/free (Makefile.am): Likewise.
59309         * modules/fsusage (Makefile.am): Likewise.
59310         * modules/ftruncate (Makefile.am): Likewise.
59311         * modules/fts (Makefile.am): Likewise.
59312         * modules/gc (Makefile.am): Likewise.
59313         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59314         * modules/getaddrinfo (Makefile.am): Likewise.
59315         * modules/getcwd (Makefile.am): Likewise.
59316         * modules/getdelim (Makefile.am): Likewise.
59317         * modules/getdomainname (Makefile.am): Likewise.
59318         * modules/getgroups (Makefile.am): Likewise.
59319         * modules/gethostname (Makefile.am): Likewise.
59320         * modules/gethrxtime (Makefile.am): Likewise.
59321         * modules/getline (Makefile.am): Likewise.
59322         * modules/getloadavg (Makefile.am): Likewise.
59323         * modules/getlogin_r (Makefile.am): Likewise.
59324         * modules/getopt (Makefile.am): Likewise.
59325         * modules/getpass (Makefile.am): Likewise.
59326         * modules/getpass-gnu (Makefile.am): Likewise.
59327         * modules/getsubopt (Makefile.am): Likewise.
59328         * modules/gettime (Makefile.am): Likewise.
59329         * modules/gettimeofday (Makefile.am): Likewise.
59330         * modules/getugroups (Makefile.am): Likewise.
59331         * modules/getusershell (Makefile.am): Likewise.
59332         * modules/glob (Makefile.am): Likewise.
59333         * modules/group-member (Makefile.am): Likewise.
59334         * modules/hard-locale (Makefile.am): Likewise.
59335         * modules/hash (Makefile.am): Likewise.
59336         * modules/hmac-md5 (Makefile.am): Likewise.
59337         * modules/hmac-sha1 (Makefile.am): Likewise.
59338         * modules/human (Makefile.am): Likewise.
59339         * modules/idcache (Makefile.am): Likewise.
59340         * modules/imaxabs (Makefile.am): Likewise.
59341         * modules/imaxdiv (Makefile.am): Likewise.
59342         * modules/inet_ntop (Makefile.am): Likewise.
59343         * modules/inet_pton (Makefile.am): Likewise.
59344         * modules/inttostr (Makefile.am): Likewise.
59345         * modules/isapipe (Makefile.am): Likewise.
59346         * modules/lchown (Makefile.am): Likewise.
59347         * modules/long-options (Makefile.am): Likewise.
59348         * modules/lstat (Makefile.am): Likewise.
59349         * modules/malloc (Makefile.am): Likewise.
59350         * modules/mathl (Makefile.am): Likewise.
59351         * modules/mbchar (Makefile.am): Likewise.
59352         * modules/md2 (Makefile.am): Likewise.
59353         * modules/md4 (Makefile.am): Likewise.
59354         * modules/md5 (Makefile.am): Likewise.
59355         * modules/memcasecmp (Makefile.am): Likewise.
59356         * modules/memchr (Makefile.am): Likewise.
59357         * modules/memcmp (Makefile.am): Likewise.
59358         * modules/memcoll (Makefile.am): Likewise.
59359         * modules/memcpy (Makefile.am): Likewise.
59360         * modules/memmem (Makefile.am): Likewise.
59361         * modules/memmove (Makefile.am): Likewise.
59362         * modules/mempcpy (Makefile.am): Likewise.
59363         * modules/memrchr (Makefile.am): Likewise.
59364         * modules/memset (Makefile.am): Likewise.
59365         * modules/memxor (Makefile.am): Likewise.
59366         * modules/mkancesdirs (Makefile.am): Likewise.
59367         * modules/mkdir (Makefile.am): Likewise.
59368         * modules/mkdir-p (Makefile.am): Likewise.
59369         * modules/mkdtemp (Makefile.am): Likewise.
59370         * modules/mkstemp (Makefile.am): Likewise.
59371         * modules/mktime (Makefile.am): Likewise.
59372         * modules/modechange (Makefile.am): Likewise.
59373         * modules/mountlist (Makefile.am): Likewise.
59374         * modules/nanosleep (Makefile.am): Likewise.
59375         * modules/openat (Makefile.am): Likewise.
59376         * modules/pagealign_alloc (Makefile.am): Likewise.
59377         * modules/physmem (Makefile.am): Likewise.
59378         * modules/poll (Makefile.am): Likewise.
59379         * modules/posixtm (Makefile.am): Likewise.
59380         * modules/posixver (Makefile.am): Likewise.
59381         * modules/putenv (Makefile.am): Likewise.
59382         * modules/quote (Makefile.am): Likewise.
59383         * modules/quotearg (Makefile.am): Likewise.
59384         * modules/raise (Makefile.am): Likewise.
59385         * modules/read-file (Makefile.am): Likewise.
59386         * modules/readline (Makefile.am): Likewise.
59387         * modules/readlink (Makefile.am): Likewise.
59388         * modules/readtokens (Makefile.am): Likewise.
59389         * modules/readutmp (Makefile.am): Likewise.
59390         * modules/realloc (Makefile.am): Likewise.
59391         * modules/regex (Makefile.am): Likewise.
59392         * modules/rename (Makefile.am): Likewise.
59393         * modules/rename-dest-slash (Makefile.am): Likewise.
59394         * modules/rijndael (Makefile.am): Likewise.
59395         * modules/rmdir (Makefile.am): Likewise.
59396         * modules/rpmatch (Makefile.am): Likewise.
59397         * modules/safe-read (Makefile.am): Likewise.
59398         * modules/safe-write (Makefile.am): Likewise.
59399         * modules/same (Makefile.am): Likewise.
59400         * modules/save-cwd (Makefile.am): Likewise.
59401         * modules/savedir (Makefile.am): Likewise.
59402         * modules/setenv (Makefile.am): Likewise.
59403         * modules/settime (Makefile.am): Likewise.
59404         * modules/sha1 (Makefile.am): Likewise.
59405         * modules/sig2str (Makefile.am): Likewise.
59406         * modules/snprintf (Makefile.am): Likewise.
59407         * modules/stdlib-safer (Makefile.am): Likewise.
59408         * modules/stpcpy (Makefile.am): Likewise.
59409         * modules/stpncpy (Makefile.am): Likewise.
59410         * modules/strcase (Makefile.am): Likewise.
59411         * modules/strcasestr (Makefile.am): Likewise.
59412         * modules/strchrnul (Makefile.am): Likewise.
59413         * modules/strcspn (Makefile.am): Likewise.
59414         * modules/strdup (Makefile.am): Likewise.
59415         * modules/strerror (Makefile.am): Likewise.
59416         * modules/strftime (Makefile.am): Likewise.
59417         * modules/strndup (Makefile.am): Likewise.
59418         * modules/strnlen (Makefile.am): Likewise.
59419         * modules/strpbrk (Makefile.am): Likewise.
59420         * modules/strsep (Makefile.am): Likewise.
59421         * modules/strstr (Makefile.am): Likewise.
59422         * modules/strtod (Makefile.am): Likewise.
59423         * modules/strtoimax (Makefile.am): Likewise.
59424         * modules/strtok_r (Makefile.am): Likewise.
59425         * modules/strtol (Makefile.am): Likewise.
59426         * modules/strtoll (Makefile.am): Likewise.
59427         * modules/strtoul (Makefile.am): Likewise.
59428         * modules/strtoull (Makefile.am): Likewise.
59429         * modules/strtoumax (Makefile.am): Likewise.
59430         * modules/strverscmp (Makefile.am): Likewise.
59431         * modules/time_r (Makefile.am): Likewise.
59432         * modules/timegm (Makefile.am): Likewise.
59433         * modules/tmpfile-safer (Makefile.am): Likewise.
59434         * modules/unistd-safer (Makefile.am): Likewise.
59435         * modules/unlinkdir (Makefile.am): Likewise.
59436         * modules/userspec (Makefile.am): Likewise.
59437         * modules/utime (Makefile.am): Likewise.
59438         * modules/utimecmp (Makefile.am): Likewise.
59439         * modules/utimens (Makefile.am): Likewise.
59440         * modules/vasnprintf (Makefile.am): Likewise.
59441         * modules/vasprintf (Makefile.am): Likewise.
59442         * modules/vsnprintf (Makefile.am): Likewise.
59443         * modules/xalloc (Makefile.am): Likewise.
59444         * modules/xgetcwd (Makefile.am): Likewise.
59445         * modules/xnanosleep (Makefile.am): Likewise.
59446         * modules/xreadlink (Makefile.am): Likewise.
59447         * modules/xstrtod (Makefile.am): Likewise.
59448         * modules/xstrtol (Makefile.am): Likewise.
59449         * modules/xstrtold (Makefile.am): Likewise.
59450         * modules/yesno (Makefile.am): Likewise.
59451
59452 2006-10-12  Jim Meyering  <jim@meyering.net>
59453
59454         * m4/getloadavg.m4: Revert the change below.
59455
59456         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59457         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59458         fail with a symlink, which is what coreutils' ./bootstrap now
59459         creates by default.
59460
59461 2006-10-12  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59464         mingw.
59465         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59466         MSVC and mingw explicitly.
59467
59468 2006-10-11  Simon Josefsson  <jas@extundo.com>
59469             Bruno Haible  <bruno@clisp.org>
59470
59471         Add support for multiple gnulib-tool invocations in the scope of a
59472         single configure.ac file.
59473         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59474         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59475         with the same contents as the _LIBADD variable.
59476         (func_emit_initmacro_start, func_emit_initmacro_end,
59477         func_emit_initmacro_done): New functions.
59478         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59479         gl_LIBOBJS and gl_LTLIBOBJS.
59480
59481 2006-10-11  Bruno Haible  <bruno@clisp.org>
59482
59483         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59484         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59485         autoreconf. Instead, invoke autopoint explicitly but move back the
59486         *.m4 files from gnulib.
59487
59488 2006-10-11  Bruno Haible  <bruno@clisp.org>
59489
59490         * gnulib-tool (func_usage): Make module names after --create-testdir
59491         optional.
59492         (func_create_testdir): If no module was specified, use nearly all
59493         modules.
59494
59495 2006-10-12  Jim Meyering  <jim@meyering.net>
59496
59497         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59498         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59499         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59500         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59501         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59502         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59503         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59504         (fts_set_stat_required): New function.
59505         (fts_open): Defer the calls to fts_stat, if possible or requested.
59506         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59507         into fts_stat itself.
59508         (fts_read): Perform any required (deferred) fts_stat call.
59509         (fts_build): Likewise, for the directory we're about to open and read.
59510         In the readdir loop, carefully decide whether each entry will require
59511         an eventual call to fts_stat, using dirent.d_type info if available.
59512         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59513         a command line argument into this function.  Update all callers.
59514         Map a return value of FTS_DOT to FTS_D for a command line argument.
59515         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59516         Thanks to Miklos Szeredi for his tenacity and for the initial
59517         bug report about "find" failing on a FUSE-based file system.
59518
59519         * lib/fts.c (fts_open): Use consistent indentation.
59520
59521 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59524         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59525         reported by Jim Meyering.  All uses of cache variables renamed
59526         to match Autoconf's.
59527         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59528         the other one.
59529
59530         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59531         Fix misspelling in diagnostic.
59532
59533 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59536         defined.  Problem reported by Matthew Woehlke.
59537
59538         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59539         Add support for Tandem NonStop R series.
59540         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59541         Use new macro.
59542
59543         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59544         (has_trailing_slash): Omit size arg; all callers changed.
59545         Omit 'inline', since it doesn't help performance and we'd
59546         need to configure it.
59547         Don't count //, ///, etc. as having a trailing slash.
59548         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59549         (rpl_rename_dest_slash): On failure, use rename's errno rather
59550         than (in some cases) an incorrect or junk errno.
59551         Simplify code by removing need to compute length; this does
59552         cause it to make two passes instead of one over the file name,
59553         but it's worth it.
59554
59555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59556         change, since Autoconf's version may no longer be appropriate now
59557         that we are using CVS Autoconf's version.  Add support for Tandem.
59558
59559 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59560             Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59563         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59564         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59565         gl_AC_TYPE_LONG_LONG.
59566
59567         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59568         instead of HAVE_LONG_LONG.
59569         * lib/printf-args.c (printf_fetchargs): Likewise.
59570         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59571         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59572         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59573         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59574         gl_AC_TYPE_LONG_LONG.
59575
59576 2006-10-11  Bruno Haible  <bruno@clisp.org>
59577
59578         * m4/longlong.m4: Add comments.
59579         * m4/ulonglong.m4: Likewise.
59580
59581 2006-10-10  Bruno Haible  <bruno@clisp.org>
59582
59583         Make it possible to #define stpcpy, strdup to aliases.
59584         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59585         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59586
59587 2006-10-10  Bruno Haible  <bruno@clisp.org>
59588
59589         Make it possible to #define gcd to an alias.
59590         * lib/gcd.c: Include config.h.
59591
59592 2006-10-10  Bruno Haible  <bruno@clisp.org>
59593
59594         Make it possible to #define c_isascii to an alias.
59595         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59596         defined. Undefine the macros before defining them, to avoid gcc
59597         warnings.
59598         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59599         define NO_C_CTYPE_MACROS early.
59600
59601 2006-10-10  Bruno Haible  <bruno@clisp.org>
59602
59603         Make it possible to #define set_program_name to an alias.
59604         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59605         ENABLE_RELOCATABLE early.
59606
59607 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59608
59609         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59610         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59611         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59612         More generally, don't assume that 64-bit signed int is available
59613         if unsigned int is, and vice versa.
59614         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59615         unsigned symbols, not on their signed counterparts.
59616         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59617         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59618         (UINT64_C, UINTMAX_C):
59619         Likewise.
59620         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59621         unsigned counterparts.
59622         (Have_long_long, Unsigned): New macros.
59623         (Int): Renamed from INT.
59624         (strtoimax): Use the new macros.
59625         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59626         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59627         * modules/inttypes (inttypes.h): Substitute
59628         HAVE_UNSIGNED_LONG_LONG_INT.
59629         * modules/stdint (stdint.h): Likewise.
59630         (Files): Add m4/ulonglong.m4.
59631
59632 2006-10-10  Bruno Haible  <bruno@clisp.org>
59633
59634         Fix a gcc -Wshadow warning.
59635         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59636         to 'bucket'.
59637         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59638         gl_linked_indexof_from_to): Likewise.
59639         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59640         Likewise.
59641         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59642         Likewise.
59643         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59644         Reported by Eric Blake.
59645
59646 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59649         for NetBSD.  Problem reported by Bruno Haible.
59650
59651 2006-10-09  Jim Meyering  <jim@meyering.net>
59652
59653         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59654         Patch from Bruno Haible.
59655
59656 2006-10-09  Jim Meyering  <jim@meyering.net>
59657
59658         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59659         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59660         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59661
59662 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59663
59664         Don't include <config.h> twice; this doesn't work in some cases,
59665         e.g., when config.h has "#define intmax_t long long int" and
59666         we include <config.h>, <inttypes.h>, <config.h> in that order.
59667         Problem reported by Matthew Woehlke in:
59668         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59669         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59670         * lib/fts-cycle.c: Don't include config.h.
59671         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59672         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59673         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59674         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59675         inttypes.h.
59676         * lib/xstrtoumax.c: Likewise.
59677         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59678         __strtol and the like, so that this module is more like its siblings.
59679         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59680         Remove; no longer needed now that we assume gnulib inttypes.h.
59681
59682 2006-10-08  Bruno Haible  <bruno@clisp.org>
59683
59684         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59685         option.
59686
59687 2006-10-07  Jim Meyering  <jim@meyering.net>
59688
59689         * modules/inttypes (inttypes.h): Revert what seems to have been
59690         an inadvertent part of today's change: use "|", not "/" in the
59691         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59692
59693 2006-10-07  Bruno Haible  <bruno@clisp.org>
59694
59695         * modules/sublist: New file.
59696
59697 2006-10-07  Bruno Haible  <bruno@clisp.org>
59698
59699         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59700         * modules/argz (argz.h): Likewise.
59701         * modules/arpa_inet (arpa/inet.h): Likewise.
59702         * modules/byteswap (byteswap.h): Likewise.
59703         * modules/configmake (configmake.h): Likewise.
59704         * modules/fcntl (fcntl.h): Likewise.
59705         * modules/fnmatch (fnmatch.h): Likewise.
59706         * modules/getopt (getopt.h): Likewise.
59707         * modules/glob (glob.h): Likewise.
59708         * modules/inttypes (inttypes.h): Likewise.
59709         * modules/netinet_in (netinet/in.h): Likewise.
59710         * modules/poll (poll.h): Likewise.
59711         * modules/stdbool (stdbool.h): Likewise.
59712         * modules/stdint (stdint.h): Likewise.
59713         * modules/sys_select (sys/select.h): Likewise.
59714         * modules/sys_socket (sys/socket.h): Likewise.
59715         * modules/sys_stat (sys/stat.h): Likewise.
59716         * modules/sysexits (sysexits.h): Likewise.
59717         * modules/unistd (unistd.h): Likewise.
59718         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59719         Add a "DO NOT EDIT" comment to the generated file.
59720         (func_import): Likewise for gnulib-comp.m4.
59721
59722 2006-10-07  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/gl_sublist.h: New file.
59725         * lib/gl_sublist.c: New file.
59726
59727 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59730         name (relative to the original working directory) and the file
59731         name component (relative to the temporary working directory).  All
59732         callers changed.
59733         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59734         * lib/mkdir-p.c (make_dir_parents): Likewise.
59735         * lib/mkdir-p.h (make_dir_parents): Likewise.
59736
59737 2006-10-06  Eric Blake  <ebb9@byu.net>
59738
59739         Define several macros for use by the clean-temp module.
59740         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59741         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59742         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59743
59744         * lib/clean-temp.h (close_stream_temp): New declaration.
59745         * lib/clean-temp.c (includes): Pull in headers according to what
59746         other modules are in use.
59747         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59748
59749 2006-10-06  Bruno Haible  <bruno@clisp.org>
59750
59751         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59752         instead of fopen, fwriteerror.
59753
59754 2006-10-06  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59757         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59758         int.
59759         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59760         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59761         Return an error indicator.
59762         Suggested by Eric Blake.
59763
59764 2006-10-06  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59767         Reported by Eric Blake.
59768
59769 2006-10-06  Bruno Haible  <bruno@clisp.org>
59770
59771         * modules/closeout (Description): Mention stderr too.
59772
59773 2006-10-06  Bruno Haible  <bruno@clisp.org>
59774         and Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         * lib/closeout.c (close_stdout): Also close stderr.
59777         * lib/closeout.h: Update comment.
59778
59779 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59780
59781         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59782         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59783         * lib/dirchownmod.c: Include lchown.h.
59784         * lib/lchown.c: Don't include files that lchown.h now includes.
59785         Don't declare chown, since lchown.h now does that.
59786         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59787         (lchown): Define to rpl_chown if lchown is declared but
59788         does not exist.  Declare using a prototype if lchown is not
59789         declared.  Add a copyright notice.
59790         * lib/mkstemp.h: Include <unistd.h>.
59791         * lib/openat.c: Include lchown.h.
59792
59793         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59794         we now test for that separately.
59795         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59796         rather than O_NOFOLLOW, when testing whether it's possible to
59797         avoid a race condition reliably.
59798         * lib/savewd.c (savewd_chdir): Likewise.
59799
59800         Remove macros that are no longer needed now that stdint.h is
59801         reliable.
59802         * lib/fsusage.c (UINTMAX_MAX): Remove.
59803         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59804         * lib/utimecmp.c (SIZE_MAX): Remove.
59805
59806         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59807
59808         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59809         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59810         O_NOATIME works.
59811
59812 2006-10-05  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/gl_list.h (gl_sortedlist_search_from_to,
59815         gl_sortedlist_indexof_from_to): New declarations.
59816         (gl_list_implementation): New fields sortedlist_search_from_to,
59817         sortedlist_indexof_from_to.
59818         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59819         inline functions.
59820         * lib/gl_list.c (gl_sortedlist_search_from_to,
59821         gl_sortedlist_indexof_from_to): New functions.
59822         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59823         function.
59824         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59825         (gl_array_sortedlist_search_from_to): New function.
59826         (gl_array_list_implementation): Update.
59827         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59828         function.
59829         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59830         (gl_carray_sortedlist_search_from_to): New function.
59831         (gl_carray_list_implementation): Update.
59832         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59833         gl_linked_sortedlist_indexof_from_to): New functions.
59834         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59835         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59836         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59837         gl_tree_sortedlist_indexof_from_to): New functions.
59838         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59839         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59840         Update.
59841         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59842         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59843         Update.
59844
59845 2006-10-05  Bruno Haible  <bruno@clisp.org>
59846
59847         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59848         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59849         (struct gl_list_implementation): Add fields search_from_to,
59850         indexof_from_to. Remove fields search, indexof.
59851         (gl_list_search): Use the search_from_to method.
59852         (gl_list_search_from, gl_list_search_from_to): New functions.
59853         (gl_list_indexof): Use the indexof_from_to method.
59854         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59855         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59856         (gl_list_search_from, gl_list_search_from_to): New functions.
59857         (gl_list_indexof): Use the indexof_from_to method.
59858         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59859         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59860         gl_array_indexof. Add start_index, end_index arguments.
59861         (gl_array_search_from_to): Renamed from gl_array_search. Add
59862         start_index, end_index arguments.
59863         (gl_array_remove, gl_array_list_implementation): Update.
59864         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59865         gl_carray_indexof. Add start_index, end_index arguments.
59866         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59867         start_index, end_index arguments.
59868         (gl_carray_remove, gl_carray_list_implementation): Update.
59869         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59870         gl_linked_search. Add start_index, end_index arguments.
59871         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59872         start_index, end_index arguments.
59873         (gl_linked_remove): Update.
59874         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59875         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59876         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59877         field to 'size_t'.
59878         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59879         gl_tree_search. Add start_index, end_index arguments.
59880         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59881         start_index, end_index arguments.
59882         (gl_tree_remove): Update.
59883         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59884         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59885         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59886         function.
59887         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59888         gl_tree_search. Add start_index, end_index arguments.
59889         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59890         start_index, end_index arguments.
59891         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59892         Update.
59893         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59894
59895 2006-10-05  Bruno Haible  <bruno@clisp.org>
59896
59897         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59898
59899         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59900         fwriteerror_temp): New declarations.
59901         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59902         (descriptors): New variable.
59903         (cleanup): First, close the descriptors.
59904         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59905         fclose_temp, fwriteerror_temp): New functions.
59906
59907 2006-10-04  Jim Meyering  <jim@meyering.net>
59908
59909         * lib/fts.c (fts_open): Tiny comment change.
59910
59911 2006-10-04  Bruno Haible  <bruno@clisp.org>
59912
59913         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59914         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59915         gl_LOCK_BODY.
59916         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59917         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59918         gl_LOCK_EARLY_BODY.
59919         (gl_LOCK): Require gl_LOCK_BODY.
59920
59921 2006-10-04  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59924         (gl_oset_search_atleast): New declaration.
59925         (struct gl_oset_implementation): Add field 'search_atleast'.
59926         (gl_oset_search_atleast): New inline function.
59927         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59928         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59929         (gl_array_oset_implementation): Update.
59930         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59931         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59932         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59933
59934 2006-10-04  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59937
59938 2006-10-03  Bruno Haible  <bruno@clisp.org>
59939
59940         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59941         from gl_avltreehash_list_implementation.
59942
59943 2006-10-03  Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/gl_oset.c (gl_oset_add): Fix return type.
59946
59947 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59948
59949         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59950
59951 2006-10-02  Eric Blake  <ebb9@byu.net>
59952
59953         * modules/strnlen (Depends-on): Add extensions.
59954
59955 2006-10-02  Eric Blake  <ebb9@byu.net>
59956
59957         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59958         definition in 2.60+.
59959
59960 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59961
59962         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59963         checks.
59964
59965 2006-10-02  Bruno Haible  <bruno@clisp.org>
59966
59967         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59968         to the AUTOMAKE_OPTIONS.
59969         Reported by Jim Meyering.
59970
59971 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59972
59973         Work around bug in Solaris 10 /proc file system:
59974         /proc/self/fd/NNN/.. isn't the parent directory of
59975         the directory whose file descriptor is NNN.  This needs to
59976         be worked around at run time, not compile time, since a
59977         program might be built on Solaris 8, where things work, and
59978         run on Solaris 10.
59979         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59980         to use the following interface instead:
59981         (OPENAT_BUFFER_SIZE): New macro.
59982         (openat_proc_name): New function.
59983         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59984         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59985         Likewise.
59986         * lib/openat-proc.c: New file.
59987         * modules/openat (Files): Add lib/openat-proc.c.
59988         (Depends-on): Add same-inode, stdbool.
59989         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59990
59991 2006-09-29  Bruno Haible  <bruno@clisp.org>
59992
59993         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59994         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59995         argument. Set stdout_closed before testing for ferror, not after.
59996         (fwriteerror, fwriteerror_no_ebadf): New functions.
59997
59998 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59999
60000         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60001
60002 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60003
60004         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60005         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60006
60007 2006-09-28  Jim Meyering  <jim@meyering.net>
60008
60009         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60010         Include <unistd.h>.
60011
60012 2006-09-28  Bruno Haible  <bruno@clisp.org>
60013
60014         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60015         * modules/linkedhash-list (Depends-on): Likewise.
60016         * modules/rbtreehash-list (Depends-on): Likewise.
60017
60018 2006-09-28  Bruno Haible  <bruno@clisp.org>
60019
60020         * lib/strndup.h: Simplify the redefinition of strndup.
60021         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60022         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60023
60024 2006-09-28  Bruno Haible  <bruno@clisp.org>
60025
60026         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60027         * lib/gl_linkedhash_list.c: Likewise.
60028         * lib/gl_rbtreehash_list.c: Likewise.
60029
60030 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60031
60032         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60033         getaddrinfo.
60034
60035         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60036         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60037         it causes <stdio_ext.h> to cause a compile-time error.
60038         Problem reported by Nelson H. F. Beebe.
60039         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60040         of HAVE_DECL___PENDING.
60041
60042         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60043         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60044         declaration.
60045
60046 2006-09-27  Jim Meyering  <jim@meyering.net>
60047
60048         This file could end up with a definition for a function
60049         named __strndup, rather than rpl_strndup on a system with
60050         incomplete weak_alias support.
60051         * lib/strndup.c (strndup): Rename from __strndup.
60052         Remove #defines that used to map __strndup to strndup.
60053         Don't use K&R prototypes.
60054         Remove LIBC-related code, since this file is not sync'd with glibc.
60055         * lib/strndup.h: Revamp, accordingly.
60056         * m4/strndup.m4: Modernize.
60057
60058 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60059
60060         * modules/savewd (Depends-on): Add 'raise'.
60061         * lib/savewd.c: Include <signal.h>, for 'raise'.
60062
60063 2006-09-26  Jim Meyering  <jim@meyering.net>
60064
60065         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60066         when we detect Darwin 8.7.0's acl_get_file bug.
60067         Rearrange to perform the new (below) run-test while $LIBS
60068         contains any acl-related library.  Set USE_ACL at the end.
60069         (gl_ACL_GET_FILE): New function.
60070
60071 2006-09-26  Eric Blake  <ebb9@byu.net>
60072
60073         * lib/verror.c: Include <config.h> unconditionally.
60074
60075 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60076
60077         * modules/clock-time (Maintainer): Add self.
60078         * modules/getlogin_r (Depends-on): Add extensions.
60079
60080 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60081
60082         * modules/clock-time: New module.
60083         * modules/nanosleep (Depends-on): Add clock-time.
60084         * modules/gethrxtime (Depends-on): Likewise.
60085         * modules/gettime (Depends-on): Likewise.
60086         * modules/settime (Depends-on): Likewise.
60087
60088         * modules/fts-lgpl: Depend on openat.
60089         * modules/mkancesdirs: Depend on savewd.
60090         * modules/mkdir-p: Likewise.
60091
60092 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60093
60094         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60095
60096         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60097         `gl_have_arbitrary_file_name_length_limit' to
60098         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60099         actually works between configure runs.
60100
60101 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60102             Bruno Haible  <bruno@clisp.org>
60103
60104         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60105
60106 2006-09-25  Jim Meyering  <jim@meyering.net>
60107
60108         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60109         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60110
60111 2006-09-25  Eric Blake  <ebb9@byu.net>
60112
60113         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60114         exec's in 2006-09-18 patch when shuffling fds.
60115
60116 2006-09-25  Bruno Haible  <bruno@clisp.org>
60117
60118         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60119         Reported by Jim Meyering.
60120
60121 2006-09-24  Jim Meyering  <jim@meyering.net>
60122
60123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60124         compare a pointer against a literal "0".  That caused failures with
60125         at least HP-UX's hpcc.
60126
60127 2006-09-22  Simon Josefsson  <jas@extundo.com>
60128
60129         * modules/gc-sha1:
60130         * modules/gc-md4:
60131         * modules/gc-hmac-sha1:
60132         * modules/gc-hmac-md5:
60133         * modules/gc-des:
60134         * modules/gc-arcfour: Distribute more files.
60135
60136 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60137
60138         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60139         (gl_linked_iterator_from_to): Initialize struct completely.
60140         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60141         (gl_tree_iterator_from_to): Likewise
60142         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60143         * lib/gl_array_list.c [lint] (gl_array_iterator)
60144         (gl_array_iterator_from_to): Likewise.
60145         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60146         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60147         (gl_carray_iterator_from_to): Likewise.
60148
60149         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60150         * lib/md4.c (md4_process_block): Remove unused variable.
60151         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60152         parentheses for clarity.
60153
60154 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60155
60156         * modules/bison-i18n (Depends-on): Add gettext.
60157
60158 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60159
60160         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60161         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60162         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60163         also add missing comma that caused broken test.
60164         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60165         stdlib.h, for `abort'.
60166         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60167         variables.
60168         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60169         include unistd.h if present, for `rmdir'.
60170         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60171         variables.
60172         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60173         in the process include standard headers for prototypes.
60174         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60175         gets declared on GNU/Linux.
60176         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60177         unistd.h, for `rmdir'.
60178         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60179
60180         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60181         always true.
60182         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60183
60184         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60185
60186 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60187
60188         * gnulib-tool (func_version): Create output all at once.  This
60189         may help avoid triggering unnecessary SIGPIPEs, and at any
60190         rate it doesn't hurt.
60191
60192 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60193             Bruno Haible  <bruno@clisp.org>
60194
60195         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60196         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60197         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60198
60199         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60200         (gl_FUNC_VASPRINTF): Invoke it.
60201
60202 2006-09-22  Bruno Haible  <bruno@clisp.org>
60203
60204         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60205         getloadavg.c as first argument.
60206
60207 2006-09-22  Bruno Haible  <bruno@clisp.org>
60208
60209         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60210         at the beginning of the gl_INIT macro.
60211         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60212         gl_GETLOADAVG.
60213
60214 2006-09-22  Bruno Haible  <bruno@clisp.org>
60215
60216         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60217         module.
60218         Suggested by Ralf Wildenhues.
60219
60220 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60221
60222         Import this patch from libc:
60223
60224         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60225
60226         * lib/regex_internal.c (re_string_reconstruct): Handle
60227         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60228         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60229         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60230         re_string_context_at.
60231
60232         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60233         now requires it.
60234         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60235         gl_REGEX now does it for us.
60236         (gl_REGEX): Add test taken from
60237         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60238
60239         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60240         Check that large offsets work.  Modernize Autoconf usages.
60241         Prefer "yes" to mean a good thing rather than a bad.
60242         Don't put "#define mkstemp" in config.h, as this might interfere
60243         with standard system headers that "#define mkstemp mkstemp64".
60244
60245         * modules/mkstemp (Depends-on): Add extensions, so that
60246         mkstemp is visible on some platforms.
60247         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60248         (Include): Change to "mkstemp.h" from <stdlib.h>.
60249         (Files): Add mkstemp.h.
60250
60251         * lib/mkstemp.h: New file, since some standard headers
60252         #define mkstemp.
60253         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60254         Include "mkstemp.h".
60255         Make the _LIBC code resemble glibc original more,
60256         e.g., use K&R style.
60257         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60258         (mkstemp): Remove, since mkstemp.h does this for us.
60259         * lib/stdlib--.h: Include mkstemp.h.
60260
60261         Import this patch from libc:
60262
60263         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60264
60265         * lib/tempname.c (__gen_tempname): Change attempts_min
60266         into a macro.  Use preprocessor to decide how to initialize
60267         attempts [Coverity CID 67].
60268
60269 2006-09-20  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/mkdtemp.c: Import from libc.
60272         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60273                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60274                 attempts_min into a macro.  Use preprocessor to decide how to
60275                 initialize attempts [Coverity CID 67].
60276         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60277                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60278                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60279
60280 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60281
60282         * gnulib-tool (func_exit): New function, to allow to pass the
60283         exit status portably through the trap.  Use everywhere.
60284         (--help, --version): Signal a write error.
60285         (trap): catch SIGPIPE, for write errors.
60286         Exit at the end of the trap, with the correct exit status.
60287
60288 2006-09-19  Karl Berry  <karl@gnu.org>
60289
60290         * doc/gnulib.texi: note about the license texinfo files.
60291
60292 2006-09-19  Eric Blake  <ebb9@byu.net>
60293
60294         * gnulib-tool: Avoid space-tab.
60295
60296 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60297
60298         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60299         that prevented coreutils 6.1 from building.  Problem reported
60300         by Petter Reinholdtsen.
60301
60302 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60303
60304         * gnulib-tool (avoidlist): Fix typo that broke options like
60305         --avoid=lock that are used by coreutils bootstrap.
60306
60307 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60308
60309         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60310         more systematically.
60311
60312 2006-09-18  Jim Meyering  <jim@meyering.net>
60313
60314         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60315
60316 2006-09-18  Bruno Haible  <bruno@clisp.org>
60317
60318         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60319
60320 2006-09-18  Bruno Haible  <bruno@clisp.org>
60321
60322         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60323         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60324         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60325         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60326         * m4/gettext.m4: Require autoconf >= 2.52.
60327         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60328         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60329         of gl_cv_header_inttypes_h.
60330
60331 2006-09-18  Bruno Haible  <bruno@clisp.org>
60332
60333         * lib/javaversion.c: Include configmake.h.
60334
60335 2006-09-18  Bruno Haible  <bruno@clisp.org>
60336
60337         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60338         avoid that the while loops be executed in a subshell.
60339
60340 2006-09-18  Bruno Haible  <bruno@clisp.org>
60341
60342         * MODULES.html.sh (func_module): Break long lines.
60343         Suggested by Bruce Korb <bkorb@gnu.org>.
60344
60345 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60346
60347         Speed up by a factor of 1.12.
60348         * gnulib-tool (nl): New variable.
60349         (func_import): Rewrite include directive extraction to only read each
60350         directive once.
60351
60352 2006-09-17  Bruno Haible  <bruno@clisp.org>
60353
60354         * modules/javaversion (Makefile.am): Remove DEFS setting.
60355         (Depends-on): Add configmake, for PKGDATADIR definition.
60356
60357 2006-09-17  Bruno Haible  <bruno@clisp.org>
60358
60359         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60360
60361 2006-09-17  Bruno Haible  <bruno@clisp.org>
60362
60363         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60364         (func_modules_transitive_closure, func_modules_add_dummy,
60365         func_modules_to_filelist, func_import, func_create_testdir,
60366         func_create_megatestdir, ...): Use it wherever possible.
60367         Suggested by Ralf Wildenhues.
60368
60369 2006-09-16  Karl Berry  <karl@gnu.org>
60370
60371         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60372         to avoid sectioning errors.
60373         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60374         [ifinfo]: blank line after @center-ed titles.
60375         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60376         Spell FSF address consistently with others.
60377         (These changes approved by rms.)
60378
60379 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60380
60381         Speed up by a factor of 1.61.
60382         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60383         already checked module names again.
60384
60385 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60386
60387         Speed up by a factor of 1.13.
60388         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60389         for new_files, and the input to func_add_or_update.
60390
60391 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60392
60393         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60394         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60395
60396 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         * modules/mkancesdirs (Depends-on): Add fcntl.
60399         * modules/savewd: New file.
60400         * MODULES.html.sh (File system functions): Add savewd.
60401
60402         * modules/configmake (Makefile.am): Add support for the
60403         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60404
60405 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * m4/savewd.m4: New file.
60408
60409 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60412         (dirchownmod): New arg FD.  All callers changed.
60413         Use FD rather than opening the directory ourself, as opening is
60414         now the caller's responsibility.
60415         * lib/dirchownmod.h: Likewise.
60416         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60417         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60418         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60419         (test_dir): Remove.
60420         (mkancesdirs): Return length of prefix of FILE that has already
60421         been made, or -2 if there is a child doing the work.  Redo
60422         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60423         ".", and treat ".." specially since it might stray back into
60424         already-created areas.  Use a subprocess if necessary.  New arg
60425         WD; all users changed.  MAKE_DIR function should now return 1
60426         if it creates a directory that is not readable.  Return -2 if
60427         a child process is spun off.
60428         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60429         Adjust signature to match code.
60430         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60431         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60432         all users changed.
60433         * lib/savewd.c, lib/savewd.h: New files.
60434
60435 2006-09-15  Jim Meyering  <jim@meyering.net>
60436
60437         * modules/rename-dest-slash: New module.
60438         * MODULES.html.sh (posix_compat): Add it here.
60439
60440         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60441
60442 2006-09-15  Jim Meyering  <jim@meyering.net>
60443
60444         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60445         file.
60446
60447         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60448
60449 2006-09-15  Jim Meyering  <jim@meyering.net>
60450
60451         * lib/rename-dest-slash.c (has_trailing_slash): Use
60452         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60453         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60454         test before testing whether SRC is a directory.
60455         Suggestions from Bruno Haible.
60456
60457         Avoid a warning about an unused variable.
60458         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60459         into the #ifdef block where it's used.
60460
60461         * lib/rename-dest-slash.c: New file.
60462
60463 2006-09-14  Bruno Haible  <bruno@clisp.org>
60464
60465         * lib/allocsa.c: Include <config.h> unconditionally.
60466         * lib/asnprintf.c: Likewise.
60467         * lib/asprintf.c: Likewise.
60468         * lib/c-strcasecmp.c: Likewise.
60469         * lib/c-strcasestr.c: Likewise.
60470         * lib/c-strncasecmp.c: Likewise.
60471         * lib/c-strstr.c: Likewise.
60472         * lib/classpath.c: Likewise.
60473         * lib/clean-temp.c: Likewise.
60474         * lib/concatpath.c: Likewise.
60475         * lib/copy-file.c: Likewise.
60476         * lib/csharpcomp.c: Likewise.
60477         * lib/csharpexec.c: Likewise.
60478         * lib/execute.c: Likewise.
60479         * lib/fatal-signal.c: Likewise.
60480         * lib/findprog.c: Likewise.
60481         * lib/fwriteerror.c: Likewise.
60482         * lib/gl_array_list.c: Likewise.
60483         * lib/gl_array_oset.c: Likewise.
60484         * lib/gl_avltree_list.c: Likewise.
60485         * lib/gl_avltree_oset.c: Likewise.
60486         * lib/gl_avltreehash_list.c: Likewise.
60487         * lib/gl_carray_list.c: Likewise.
60488         * lib/gl_linked_list.c: Likewise.
60489         * lib/gl_linkedhash_list.c: Likewise.
60490         * lib/gl_list.c: Likewise.
60491         * lib/gl_oset.c: Likewise.
60492         * lib/gl_rbtree_list.c: Likewise.
60493         * lib/gl_rbtree_oset.c: Likewise.
60494         * lib/gl_rbtreehash_list.c: Likewise.
60495         * lib/imaxabs.c: Likewise.
60496         * lib/imaxdiv.c: Likewise.
60497         * lib/javacomp.c: Likewise.
60498         * lib/javaexec.c: Likewise.
60499         * lib/javaversion.c: Likewise.
60500         * lib/linebreak.c: Likewise.
60501         * lib/localcharset.c: Likewise.
60502         * lib/lock.c: Likewise.
60503         * lib/mbchar.c: Likewise.
60504         * lib/mbswidth.c: Likewise.
60505         * lib/mkdtemp.c: Likewise.
60506         * lib/pipe.c: Likewise.
60507         * lib/printf-args.c: Likewise.
60508         * lib/printf-parse.c: Likewise.
60509         * lib/progname.c: Likewise.
60510         * lib/progreloc.c: Likewise.
60511         * lib/readlink.c: Likewise.
60512         * lib/sh-quote.c: Likewise.
60513         * lib/stpcpy.c: Likewise.
60514         * lib/stpncpy.c: Likewise.
60515         * lib/strcasecmp.c: Likewise.
60516         * lib/strcasestr.c: Likewise.
60517         * lib/strcspn.c: Likewise.
60518         * lib/striconv.c: Likewise.
60519         * lib/strncasecmp.c: Likewise.
60520         * lib/strnlen1.c: Likewise.
60521         * lib/strstr.c: Likewise.
60522         * lib/strtok_r.c: Likewise.
60523         * lib/tls.c: Likewise.
60524         * lib/tmpdir.c: Likewise.
60525         * lib/unicodeio.c: Likewise.
60526         * lib/unsetenv.c: Likewise.
60527         * lib/vasnprintf.c: Likewise.
60528         * lib/vasprintf.c: Likewise.
60529         * lib/wait-process.c: Likewise.
60530         * lib/xallocsa.c: Likewise.
60531         * lib/xsetenv.c: Likewise.
60532         * lib/xstriconv.c: Likewise.
60533
60534 2006-09-13  Simon Josefsson  <jas@extundo.com>
60535
60536         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60537         that internally, suggested by Ralf Wildenhues
60538         <Ralf.Wildenhues@gmx.de>.
60539
60540 2006-09-13  Simon Josefsson  <jas@extundo.com>
60541
60542         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60543         @LIBOBJS@.
60544         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60545
60546 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60547
60548         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60549         longer worry about uses that don't define HAVE_CONFIG_H.
60550         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60551         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60552         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60553         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60554         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60555         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60556         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60557         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60558         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60559         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60560         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60561         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60562         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60563         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60564         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60565         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60566         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60567         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60568         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60569         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60570         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60571         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60572         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60573         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60574         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60575         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60576         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60577         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60578         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60579         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60580         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60581         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60582         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60583         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60584         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60585         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60586         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60587         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60588         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60589         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60590         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60591         Likewise.
60592
60593 2006-09-13  Eric Blake  <ebb9@byu.net>
60594
60595         * lib/getopt.c: Fix typo in last commit.
60596
60597 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60598
60599         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60600         dgettext.
60601
60602 2006-09-12  Jim Meyering  <jim@meyering.net>
60603
60604         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60605         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60606         Reported by Nelson H. F. Beebe.
60607
60608 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60609
60610         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60611         program_invocation_name and program_invocation_short_name are
60612         initialized.
60613         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60614         and program_invocation_short_name to argp.h, so they are visible
60615         to user programs.
60616         * lib/argp.h: Likewise
60617
60618 2006-09-10  Bruno Haible  <bruno@clisp.org>
60619
60620         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60621         m4/inttypes_h.m4, m4/uintmax_t.m4.
60622
60623 2006-09-10  Bruno Haible  <bruno@clisp.org>
60624
60625         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60626         gl_AC_TYPE_UINTMAX_T.
60627
60628 2006-09-10  Bruno Haible  <bruno@clisp.org>
60629
60630         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60631
60632 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60633
60634         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60635         convention.  Text proposed by Bruno Haible.
60636         (struct argp_option): Document the use of N_() wrappers.
60637
60638         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60639         '\v', and translate the two parts separately, instead of feeding
60640         the whole string to gettext.  This allows to exclude
60641         '\v' from the strings visible to the translator by writing doc
60642         strings as N_("..") "\v" N_("..").
60643
60644 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60645
60646         * config/srclist.txt: Undo latest change; the bug was fixed.
60647
60648 2006-09-09  Bruno Haible  <bruno@clisp.org>
60649
60650         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60651         assignments if building a library without libtool.
60652         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60653         in func_emit_lib_Makefile_am.
60654         (func_import): When building a static library libfoo.a, arrange to
60655         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60656         (func_create_testdir): Likewise.
60657         * modules/gc (configure.ac, Makefile.am): If building statically,
60658         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60659         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60660         * modules/striconv (configure.ac, Makefile.am): Likewise.
60661         Based on a suggestion by Ralf Wildenhues.
60662
60663 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60664
60665         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60666         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60667         Also:
60668
60669         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60670         Add year_2050_test to catch glibc bug 2821
60671         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60672
60673         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60674         Prefer #ifdef to #if.
60675
60676         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60677         Return from 'main' instead of calling 'exit'.
60678
60679 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60682         returned the maximum time_t value rather than (time_t) -1.
60683         Problem originally reported by William Bardwell
60684         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60685
60686         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60687         Moved to here ...
60688         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60689         ... from here.
60690
60691 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60692
60693         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60694         2821 is fixed.
60695
60696 2006-09-08  Jim Meyering  <jim@meyering.net>
60697
60698         Don't make generated files read-only.  That would bother too many
60699         people.  However, do retain the ability to work when targets are
60700         read-only: remove the destination and temporary files before writing
60701         them (when generated via sed or echo), or by using the -f option for
60702         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60703         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60704         * modules/byteswap, modules/configmake, modules/fcntl:
60705         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60706         * modules/localcharset, modules/netinet_in, modules/poll:
60707         * modules/stdbool, modules/stdint, modules/sys_select:
60708         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60709
60710 2006-09-08  Jim Meyering  <jim@meyering.net>
60711
60712         Avoid new build failure on FreeBSD 6.0.
60713         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60714         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60715         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60716
60717 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60718
60719         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60720
60721 2006-09-07  Jim Meyering  <jim@meyering.net>
60722
60723         Fix global typo in last change: use chmod u-w, not chmod u-x.
60724         Spotted by Paul Eggert and Bruce Korb.
60725         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60726         * modules/byteswap, modules/configmake, modules/fcntl:
60727         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60728         * modules/localcharset, modules/netinet_in, modules/poll:
60729         * modules/stdbool, modules/stdint, modules/sys_select:
60730         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60731
60732 2006-09-06  Jim Meyering  <jim@meyering.net>
60733
60734         Make generated files be read-only.
60735         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60736         Ensure that each generated file is now read-only.
60737         * modules/argz: Likewise.
60738         * modules/arpa_inet: Likewise.
60739         * modules/byteswap: Likewise.
60740         * modules/configmake: Likewise.
60741         * modules/fcntl: Likewise.
60742         * modules/fnmatch: Likewise.
60743         * modules/getopt: Likewise.
60744         * modules/glob: Likewise.
60745         * modules/inttypes: Likewise.
60746         * modules/netinet_in: Likewise.
60747         * modules/poll: Likewise.
60748         * modules/stdbool: Likewise.
60749         * modules/stdint: Likewise.
60750         * modules/sys_select: Likewise.
60751         * modules/sys_socket: Likewise.
60752         * modules/sys_stat: Likewise.
60753         * modules/sysexits: Likewise.
60754         * modules/localcharset: Same as above, but continue using temporary
60755         file named "t-$@" (why different?) rather than the "$@-t" used
60756         everywhere else.
60757
60758         * modules/sysexits (Makefile.am): Replace literal occurrences
60759         of "sysexit.h" more readable, and more consistent, "$@".
60760
60761 2006-09-06  Bruno Haible  <bruno@clisp.org>
60762
60763         * modules/striconv: New file.
60764         * modules/xstriconv: New file.
60765         * MODULES.html.sh (Internationalization functions): Add striconv,
60766         xstriconv.
60767
60768 2006-09-06  Bruno Haible  <bruno@clisp.org>
60769
60770         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60771         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60772         not using libtool correctly.
60773
60774 2006-09-06  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/striconv.h: New file.
60777         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60778         iconvstring.c.
60779         * lib/xstriconv.h: New file.
60780         * lib/xstriconv.c: New file.
60781
60782 2006-09-06  Bruno Haible  <bruno@clisp.org>
60783
60784         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60785         lib_..._LDFLAGS.
60786
60787 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60788
60789         * lib/argz_.h: Sync from Libtool.
60790
60791         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60792                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60793
60794         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60795
60796 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60797
60798         * modules/trim: New file.
60799
60800 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60801
60802         * lib/trim.h: New file.
60803         * lib/trim.c: New file.
60804
60805 2006-09-05  Bruno Haible  <bruno@clisp.org>
60806
60807         * MODULES.html.sh (String handling): Add trim.
60808
60809 2006-09-04  Karl Berry  <karl@gnu.org>
60810
60811         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60812         until next release.
60813
60814 2006-09-03  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60817         correctly.
60818
60819 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60820
60821         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60822         not gl_GETLOADAVG.  Omit unneeded semicolons.
60823         Problems reported by Ralf Wildenhues in
60824         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60825         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60826         at the end, which is the usual gnulib style.
60827
60828         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60829         of doing all the work ourselves.
60830         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60831         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60832
60833 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60834
60835         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60836         Problem reported by Ralf Wildenhues in
60837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60838
60839         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60840         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60841
60842 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60843
60844         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60845         yesterday's patch by changing test -n to test -z.
60846
60847 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60848
60849         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60850         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60851         the former is now obsolescent.
60852
60853         * modules/chdir-long (Depends-on): Add fcntl.
60854
60855 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60856
60857         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60858         obsolescent, and programs should use gnulib instead.
60859         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60860         but with prefixes changed.
60861
60862 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60863
60864         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60865         or stdbool.h, because they might not exist while configuring.
60866
60867         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60868         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60869         does that for us.
60870         (O_DIRECTORY): Remove.
60871
60872 2006-08-31  Eric Blake  <ebb9@byu.net>
60873
60874         * gnulib-tool: Don't let emacs change spaces to TAB.
60875
60876 2006-08-31  Bruno Haible  <bruno@clisp.org>
60877
60878         * gnulib-tool: When calling func_import more than once, do it in a
60879         subshell.
60880         Reported by Eric Blake <ebb9@byu.net>.
60881
60882 2006-08-31  Bruno Haible  <bruno@clisp.org>
60883
60884         * gnulib-tool (nl): Remove variable.
60885         (sed_transform_lib_file): Use more robust test for config-h module.
60886         (func_import): Fix typo in 2006-08-25 patch.
60887
60888 2006-08-31  Bruno Haible  <bruno@clisp.org>
60889
60890         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60891         specified, augment Makefile.am variables instead of assigning them.
60892
60893 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60894
60895         Work around a bug in both the Linux and SunOS 64-bit kernels:
60896         nanosleep mishandles sleeps for longer than 2**31 seconds.
60897         Problem reported by Frank v Waveren in
60898         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60900         Check for nanosleep bug.
60901         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60902
60903 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60904
60905         Work around a bug in both the Linux and SunOS 64-bit kernels:
60906         nanosleep mishandles sleeps for longer than 2**31 seconds.
60907         Problem reported by Frank v Waveren in
60908         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60909         * lib/nanosleep.c (BILLION): New constant.
60910         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60911         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60912         implementation.
60913
60914 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         * modules/nanosleep (Depends-on): Add gettime.
60917
60918 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60919         and Simon Josefsson  <jas@extundo.com>
60920         and Oskar Liljeblad  <oskar@osk.mine.nu>
60921
60922         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60923         * gnulib-tool (func_import): New license type 'unmodifiable license
60924         text'.
60925         * modules/fdl: Use it.  Longer description.
60926         * module/gpl, module/lgpl: New files.
60927
60928 2006-08-30  Jim Meyering  <jim@meyering.net>
60929
60930         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60931         shadowing the parameter.
60932
60933 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60934
60935         Sync from Libtool:
60936
60937         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60938
60939         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60940         sharing with gnulib.  Report by Eric Blake.
60941
60942 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * modules/isapipe: New file.
60945         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60946
60947 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         * modules/configmake (Makefile.am): Add a comment, and omit
60950         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60951         by Bruno Haible.
60952
60953 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         * m4/isapipe.m4: New file.
60956
60957 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         * lib/isapipe.c, lib/isapipe.h: New files.
60960
60961 2006-08-29  Jim Meyering  <jim@meyering.net>
60962
60963         * modules/configmake (Makefile.am): Make configmake.h depend on
60964         Makefile.  Otherwise, a stale configmake.h could hang around.
60965
60966 2006-08-29  Eric Blake  <ebb9@byu.net>
60967
60968         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60969         resolution of upstream bug 3044.
60970
60971 2006-08-29  Bruno Haible  <bruno@clisp.org>
60972
60973         * modules/localcharset (Depends-on): Add configmake.
60974         (Makefile.am): Remove setting of LIBDIR through DEFS.
60975
60976 2006-08-29  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60979         defined.
60980
60981 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         * modules/fcntl: New file.
60984         * modules/chdir-safer (Depends-on): Add fcntl.
60985         * modules/fts: Likewise.
60986         * modules/mkdir-p: Likewise.
60987
60988         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60989         This undoes the most recent change, since we're now addressing the
60990         problem in a different way.
60991
60992         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60993         into output, since the output might be called Makefile.am even
60994         if $makefile_name is something different.
60995         (func_import): Use $makefile_am rather than
60996         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60997         empty.
60998
60999         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61000
61001 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61004         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61005         recent change to stdint.m4, since we're now addressing the problem in a
61006         different way.
61007
61008 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * m4/fcntl_h.m4: New file.
61011
61012 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61013
61014         * lib/fcntl_.h: New file.
61015         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61016         the fcntl module.
61017         * lib/dirchownmod.c: Likewise.
61018         * lib/fts.c: Likewise.
61019
61020         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61021         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61022         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61023         just before including <inttypes.h>, to avoid circular inclusion.
61024
61025 2006-08-28  Jim Meyering  <jim@meyering.net>
61026
61027         * doc/visibility.texi: Actually read and correct the grammar of the
61028         sentence affected by yesterday's change.
61029
61030 2006-08-28  Eric Blake  <ebb9@byu.net>
61031
61032         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61033         needs wrapper.
61034
61035 2006-08-28  Eric Blake  <ebb9@byu.net>
61036
61037         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61038
61039 2006-08-28  Eric Blake  <ebb9@byu.net>
61040
61041         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61042
61043 2006-08-28  Bruno Haible  <bruno@clisp.org>
61044
61045         * modules/c-strstr: New file, from GNU gettext.
61046         * MODULES.html.sh (String handling): Add c-strstr.
61047
61048 2006-08-28  Bruno Haible  <bruno@clisp.org>
61049
61050         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61051         macros.
61052         Reported by Eric Blake.
61053
61054 2006-08-28  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61057         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61058         * lib/vasprintf.c: Include errno.h, limits.h.
61059         (EOVERFLOW): New fallback definition.
61060         (vasprintf): Test here whether the string length is > INT_MAX.
61061         * lib/vsnprintf.c: Include errno.h, limits.h.
61062         (EOVERFLOW): New fallback definition.
61063         (vsnprintf): Fix bug when generated string was too long for the buffer.
61064         Test here whether the string length is > INT_MAX.
61065
61066 2006-08-28  Bruno Haible  <bruno@clisp.org>
61067
61068         * lib/inttypes_.h (SCNX*): Remove definitions.
61069         Reported by Eric Blake.
61070
61071 2006-08-28  Bruno Haible  <bruno@clisp.org>
61072
61073         * lib/c-strstr.h: New file, from GNU gettext.
61074         * lib/c-strstr.c: New file, from GNU gettext.
61075
61076 2006-08-28  Bruno Haible  <bruno@clisp.org>
61077
61078         * gnulib-tool: Reorder some statements.
61079
61080 2006-08-28  Bruno Haible  <bruno@clisp.org>
61081
61082         * gnulib-tool: New option --makefile-name.
61083         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61084         $makefile_name.
61085         (func_import): Write $makefile_name to the cache file, and read it from
61086         there unless explicitly specified. Use $makefile_name as file name
61087         instead of Makefile.am. Adjust the recommendations accordingly.
61088
61089 2006-08-28  Bruno Haible  <bruno@clisp.org>
61090
61091         * gnulib-tool (func_verify_module): Check against misapplying patch.
61092
61093 2006-08-28  Bruno Haible  <bruno@clisp.org>
61094
61095         * gnulib-tool (func_relativize, func_relconcat): New functions.
61096         Give an error if --local-dir is given with --update.
61097         Remove trailing slashes from $local_gnulib_dir.
61098         (func_import): Store the relativized $local_gnulib_dir in
61099         gnulib-cache.m4, and read it from there if not specified explicitly.
61100
61101 2006-08-28  Bruno Haible  <bruno@clisp.org>
61102
61103         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61104         is the current directory. Respect also $local_gnulib_dir.
61105
61106 2006-08-28  Bruno Haible  <bruno@clisp.org>
61107             Simon Josefsson  <jas@extundo.com>
61108
61109         BeOS portability.
61110         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61111
61112 2006-08-27  Jim Meyering  <jim@meyering.net>
61113
61114         * doc/visibility.texi: Remove duplicate word: "pointer".
61115
61116 2006-08-26  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61119         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61120         (Makefile.am): Create inttypes.h from inttypes_.h.
61121         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61122
61123         * modules/imaxabs: New file.
61124
61125         * modules/imaxdiv: New file.
61126
61127 2006-08-26  Bruno Haible  <bruno@clisp.org>
61128
61129         * m4/inttypes.m4: New file.
61130         * m4/_inttypes_h.m4: Remove file.
61131         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61132         PRI_MACROS_BROKEN.
61133         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61134
61135         * m4/imaxabs.m4: New file.
61136
61137         * m4/imaxdiv.m4: New file.
61138
61139 2006-08-26  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/inttypes_.h: New file.
61142         * lib/inttypes.h: Remove file.
61143         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61144
61145         * lib/imaxabs.c: New file.
61146
61147         * lib/imaxdiv.c: New file.
61148
61149 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         New config-h module, so that "make" output needn't be cluttered
61152         by -DHAVE_CONFIG_H.
61153         * MODULES.html.sh (Support for building libraries and executables):
61154         Add config-h.
61155         * modules/config-h: New file.
61156         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61157         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61158         the config-h module is used.
61159
61160         New configmake module, so that "make" output needn't be cluttered
61161         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61162         * MODULES.html.sh (Support for building libraries and executables):
61163         Add configmake.
61164         * modules/configmake: New file.
61165
61166 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61167
61168         * m4/config-h.m4: New file.
61169
61170 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * config/srclist.txt: Add elisp-comp.
61173
61174 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61175
61176         * MODULES.html.sh (Support for building libraries and executables):
61177         Add elisp-comp.
61178         * build-aux/elisp-comp: New file.
61179         * modules/elisp-comp: New file.
61180
61181 2006-08-24  Bruno Haible  <bruno@clisp.org>
61182
61183         * gnulib-tool (func_create_testdir): Use non-default values of
61184         sourcebase and m4base.
61185
61186 2006-08-24  Bruno Haible  <bruno@clisp.org>
61187
61188         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61189         HTML structure.
61190
61191 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61192
61193         * modules/openat (Depends-on): Add lchown.
61194
61195 2006-08-23  Bruno Haible  <bruno@clisp.org>
61196
61197         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61198         of gl_LOCK_EARLY instead of gl_LOCK.
61199
61200 2006-08-23  Bruno Haible  <bruno@clisp.org>
61201
61202         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61203         on OSF/1 to no.
61204         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61205
61206 2006-08-23  Bruno Haible  <bruno@clisp.org>
61207
61208         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61209         as unusable.
61210
61211         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61212         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61213         (gl_LOCK): New macro.
61214
61215 2006-08-22  Simon Josefsson  <jas@extundo.com>
61216
61217         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61218         to md5 module.
61219
61220 2006-08-22  Simon Josefsson  <jas@extundo.com>
61221
61222         * MODULES.html.sh: Add "Support for maintaining and release
61223         projects".
61224
61225         * build-aux/gnupload: New file, from coreutils.
61226
61227 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61228
61229         Avoid the need for AC_LIBSOURCES in m4 macros.
61230         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61231         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61232         * modules/check-version (EXTRA_DIST): Add check-version.h.
61233         * modules/crc (EXTRA_DIST): Add crc.h.
61234         * modules/des (EXTRA_DIST): Add des.h.
61235         * modules/gc (EXTRA_DIST): Add gc.h.
61236         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61237         * modules/getline (EXTRA_DIST): Add getline.h.
61238         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61239         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61240         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61241         * modules/md2 (EXTRA_DIST): Add md2.h.
61242         * modules/md4 (EXTRA_DIST): Add md4.h.
61243         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61244         * modules/read-file (EXTRA_DIST): Add read-file.h.
61245         * modules/readline (EXTRA_DIST): Add readline.h.
61246         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61247         rijndael-api-fst.h.
61248
61249 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         * m4/rijndael.m4 (gl_ARCFOUR):
61252         * m4/arctwo.m4 (gl_ARCTWO):
61253         * m4/check-version.m4 (gl_CHECK_VERSION):
61254         * m4/crc.m4 (gl_CRC):
61255         * m4/des.m4 (gl_DES):
61256         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61257         * m4/gc.m4 (gl_GC):
61258         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61259         * m4/getline.m4 (gl_FUNC_GETLINE):
61260         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61261         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61262         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61263         * m4/md2.m4 (gl_MD2):
61264         * m4/md4.m4 (gl_MD4):
61265         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61266         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61267         * m4/readline.m4 (gl_FUNC_READLINE):
61268         * m4/rijndael.m4 (gl_RIJNDAEL):
61269         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61270         to get the necessary .h files and whatnot.
61271
61272 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61275         gnulib rather than the other way around.
61276         * config/srclistvars.sh (COREUTILS): Remove.
61277
61278 2006-08-22  Jim Meyering  <jim@meyering.net>
61279
61280         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61281
61282         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61283
61284 2006-08-22  Eric Blake  <ebb9@byu.net>
61285
61286         * modules/regexprops-generic: New file.
61287         * MODULES.html.sh (Support for building documentation): List it.
61288
61289 2006-08-22  Eric Blake  <ebb9@byu.net>
61290
61291         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61292         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61293         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61294         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61295
61296 2006-08-22  Bruno Haible  <bruno@clisp.org>
61297
61298         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61299         and lib_LTLIBRARIES like the other lib_* variables.
61300
61301 2006-08-22  Bruno Haible  <bruno@clisp.org>
61302
61303         * build-aux/x-to-1.in: New file, from GNU gettext.
61304
61305 2006-08-22  Bruno Haible  <bruno@clisp.org>
61306
61307         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61308         <utmpx.h> exists.
61309
61310 2006-08-22  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61313         <utmpx.h> exists.
61314
61315 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61316
61317         BeOS portability.
61318         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61319         exist.
61320         Problem reported by Bruno Haible.
61321
61322 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61323
61324         Avoid the need for AC_LIBSOURCES in m4 macros.
61325         * modules/acl (EXTRA_DIST): Add acl.h.
61326         * modules/argmatch (Files): Add m4/argmatch.m4.
61327         (configure.ac): Add gl_ARGMATCH.
61328         (EXTRA_DIST): Renamed from lib_SOURCES, for
61329         consistency with the other modules.  Remove argmatch.c.
61330         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61331         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61332         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61333         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61334         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61335         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61336         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61337         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61338         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61339         * modules/closeout (EXTRA_DIST): Add closeout.h.
61340         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61341         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61342         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61343         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61344         dirname.h; remove basename.c and stripslash.c.
61345         * modules/exclude (EXTRA_DIST): Add exclude.h.
61346         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61347         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61348         * modules/file-type (EXTRA_DIST): Add file-type.h.
61349         * modules/filemode (EXTRA_DIST): Add filemode.h.
61350         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61351         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61352         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61353         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61354         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61355         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61356         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61357         * modules/getdate (EXTRA_DIST): Add getdate.c.
61358         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61359         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61360         * modules/getpass (EXTRA_DIST): Add getpass.h.
61361         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61362         * modules/group-member (EXTRA_DIST): Add group-member.h.
61363         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61364         * modules/hash (EXTRA_DIST): Add hash.h.
61365         * modules/human (EXTRA_DIST): Add human.h.
61366         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61367         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61368         * modules/lchown (EXTRA_DIST): Add lchown.h.
61369         * modules/long-options (EXTRA_DIST): Add long-options.h.
61370         * modules/lstat (EXTRA_DIST): Add lstat.h.
61371         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61372         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61373         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61374         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61375         * modules/memxor (EXTRA_DIST): Add memxor.h.
61376         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61377         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61378         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61379         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61380         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61381         * modules/physmem (EXTRA_DIST): Add physmem.h.
61382         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61383         * modules/posixver (EXTRA_DIST): Add posixver.h.
61384         * modules/quote (EXTRA_DIST): Add quote.h.
61385         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61386         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61387         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61388         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61389         regex_internal.h regexec.c.
61390         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61391         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61392         * modules/same (EXTRA_DIST): Add same.h.
61393         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61394         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61395         * modules/savedir (EXTRA_DIST): Add savedir.h.
61396         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61397         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61398         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61399         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61400         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61401         * modules/strdup (EXTRA_DIST): Add strdup.h.
61402         * modules/strftime (EXTRA_DIST): Add strftime.h.
61403         * modules/strndup (EXTRA_DIST): Add strndup.h.
61404         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61405         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61406         * modules/time_r (EXTRA_DIST): Add time_r.h.
61407         * modules/timespec (EXTRA_DIST): Add timespec.h.
61408         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61409         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61410         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61411         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61412         * modules/userspec (EXTRA_DIST): Add userspec.h.
61413         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61414         * modules/utimens (EXTRA_DIST): Add utimens.h.
61415         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61416         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61417         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61418         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61419         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61420         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61421         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61422         * modules/yesno (EXTRA_DIST): Add yesno.h.
61423
61424 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61427
61428         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61429         * m4/dev-ino.m4, same-inode.m4: Remove.
61430
61431         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61432         * m4/acl.m4 (AC_FUNC_ACL):
61433         * m4/backupfile.m4 (gl_BACKUPFILE):
61434         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61435         * m4/canon-host.m4 (gl_CANON_HOST):
61436         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61437         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61438         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61439         * m4/cloexec.m4 (gl_CLOEXEC):
61440         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61441         * m4/closeout.m4 (gl_CLOSEOUT):
61442         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61443         * m4/dirname.m4 (gl_DIRNAME):
61444         * m4/exclude.m4 (gl_EXCLUDE):
61445         * m4/exitfail.m4 (gl_EXITFAIL):
61446         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61447         * m4/file-type.m4 (gl_FILE_TYPE):
61448         * m4/filemode.m4 (gl_FILEMODE):
61449         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61450         * m4/fpending.m4 (gl_FUNC_FPENDING):
61451         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61452         * m4/fts.m4 (gl_FUNC_FTS):
61453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61454         * m4/getdate.m4 (gl_GETDATE):
61455         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61456         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61457         * m4/getpass.m4 (gl_FUNC_GETPASS):
61458         * m4/gettime.m4 (gl_GETTIME):
61459         * m4/getugroups.m4 (gl_GETUGROUPS):
61460         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61461         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61462         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61463         * m4/hash.m4 (gl_HASH):
61464         * m4/idcache.m4 (gl_IDCACHE):
61465         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61466         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61467         * m4/long-options.m4 (gl_LONG_OPTIONS):
61468         * m4/lstat.m4 (gl_FUNC_LSTAT):
61469         * m4/md5.m4 (gl_MD5):
61470         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61471         * m4/memcoll.m4 (gl_MEMCOLL):
61472         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61473         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61474         * m4/memxor.m4 (gl_MEMXOR):
61475         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61476         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61477         * m4/modechange.m4 (gl_MODECHANGE):
61478         * m4/mountlist.m4 (gl_MOUNTLIST):
61479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61480         * m4/openat.m4 (gl_FUNC_OPENAT):
61481         * m4/pathmax.m4 (gl_PATHMAX):
61482         * m4/physmem.m4 (gl_PHYSMEM):
61483         * m4/posixtm.m4 (gl_POSIXTM):
61484         * m4/posixver.m4 (gl_POSIXVER):
61485         * m4/quote.m4 (gl_QUOTE):
61486         * m4/quotearg.m4 (gl_QUOTEARG):
61487         * m4/readtokens.m4 (gl_READTOKENS):
61488         * m4/readutmp.m4 (gl_READUTMP):
61489         * m4/regex.m4 (gl_REGEX):
61490         * m4/safe-read.m4 (gl_SAFE_READ):
61491         * m4/safe-write.m4 (gl_SAFE_WRITE):
61492         * m4/same.m4 (gl_SAME):
61493         * m4/save-cwd.m4 (gl_SAVE_CWD):
61494         * m4/savedir.m4 (gl_SAVEDIR):
61495         * m4/settime.m4 (gl_SETTIME):
61496         * m4/sha1.m4 (gl_SHA1):
61497         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61498         * m4/stat-macros.m4 (gl_STAT_MACROS):
61499         * m4/stat-time.m4 (gl_STAT_TIME):
61500         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61501         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61502         * m4/strdup.m4 (gl_FUNC_STRDUP):
61503         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61504         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61505         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61506         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61507         * m4/time_r.m4 (gl_TIME_R):
61508         * m4/timespec.m4 (gl_TIMESPEC):
61509         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61510         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61511         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61512         * m4/userspec.m4 (gl_USERSPEC):
61513         * m4/utimecmp.m4 (gl_UTIMECMP):
61514         * m4/utimens.m4 (gl_UTIMENS):
61515         * m4/xalloc.m4 (gl_XALLOC):
61516         * m4/xgetcwd.m4 (gl_XGETCWD):
61517         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61518         * m4/xreadlink.m4 (gl_XREADLINK):
61519         * m4/xstrtod.m4 (gl_XSTRTOD):
61520         * m4/yesno.m4 (gl_YESNO):
61521         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61522         to get the necessary .h files and whatnot.
61523
61524 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61525             Bruno Haible  <bruno@clisp.org>
61526
61527         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61528         /bin/sh understanding of '!' conditional negation.
61529
61530 2006-08-21  Jim Meyering  <jim@meyering.net>
61531
61532         * modules/openat (Depends-on): Really alphabetize.
61533
61534         * modules/acl (Depends-on): Add error and quote.
61535
61536         * check-module (find_included_lib_files): Add at-func.c to the
61537         ok-to-include-more-than-once white list.
61538
61539         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61540
61541 2006-08-21  Bruno Haible  <bruno@clisp.org>
61542
61543         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61544         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61545         Reported by Martin Lambers <marlam@marlam.de>.
61546
61547 2006-08-21  Bruno Haible  <bruno@clisp.org>
61548
61549         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61550         specify an installation location, don't emit a noinst_LIBRARIES or
61551         noinst_LTLIBRARIES assignment.
61552
61553 2006-08-21  Bruno Haible  <bruno@clisp.org>
61554
61555         BeOS portability.
61556         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61557         BeOS has mbrtowc() but no <wctype.h>.
61558
61559 2006-08-21  Bruno Haible  <bruno@clisp.org>
61560
61561         BeOS portability.
61562         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61563         exist.
61564
61565 2006-08-21  Bruno Haible  <bruno@clisp.org>
61566
61567         BeOS portability.
61568         * lib/mbchar.h: Include <wctype.h> only if it exists.
61569
61570 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         Remove files that are no longer needed by their respective modules.
61573         * m4/obstack.m4: Remove.
61574         * m4/strerror_r.m4: Remove.
61575         * m4/uint32_t.m4: Remove.
61576         * m4/uintptr_t.m4: Remove.
61577         * m4/ullong_max.m4: Remove.
61578         * m4/xstrtoimax.m4: Remove.
61579         * m4/xstrtoumax.m4: Remove.
61580
61581         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61582         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61583         dependencies now capture this.
61584
61585         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61586         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61587         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61588         * m4/human.m4 (gl_HUMAN): Likewise.
61589         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61590         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61591
61592         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61593
61594         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61595         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61596         stdint.
61597         * m4/human.m4 (gl_HUMAN): Likewise.
61598         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61599         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61600         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61601         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61602         * m4/xstrtol (gl_XSTRTOL): Likewise.
61603
61604         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61605         AC_TYPE_LONG_LONG_INT.
61606         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61607         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61608         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61609         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61610
61611         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61612         on stdbool.
61613
61614         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61615         (gl_PREREQ_XSTRTOUL): Remove.
61616
61617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61618
61619         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61620         mode.
61621
61622 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61623
61624         Add and change modules to make it easier for coreutils to use
61625         gnulib-tool.
61626         * modules/backupfile (Files): Remove m4/d-ino.m4.
61627         (Depends-on): Add d-ino.
61628         * modules/cycle-check (Depends-on): Add stdint.
61629         (lib_SOURCES): Add cycle-check.h.
61630         * modules/d-ino: New module.
61631         * modules/d-type: New module.
61632         * modules/error (Files): Remove m4/strerror_r.m4.
61633         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61634         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61635         m4/inttypes_h.m4, m4/uintmax_t.m4.
61636         (Depends-on): Add stdint.
61637         (lib_SOURCES): Add fsusage.h.
61638         * modules/getcwd (Files): Remove d-ino.m4.
61639         (Depends-on): Add d-ino.
61640         * modules/getndelim2 (Depends-on): Add stdint.
61641         * modules/glob (Files): Remove m4/d-type.m4.
61642         (Depends-on): Add d-type.
61643         * modules/host-os: New module.
61644         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61645         m4/inttypes_h.m4, m4/uintmax_t.m4.
61646         * Depends-on: Add stdint.
61647         (lib_SOURCES): Add human.h.
61648         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61649         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61650         m4/uintmax_t.m4, m4/ulonglong.m4.
61651         (Depends-on): Add stdint.
61652         (EXTRA_DIST): Add inttostr.h.
61653         * modules/lchmod: New module.
61654         * modules/link-follow: New module.
61655         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61656         (Depends-on): Add lchmod.
61657         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61658         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61659         (Depends-on): Add stdint.
61660         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61661         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61662         (Depends-on): Add stdint.
61663         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61664         * modules/perl: New module.
61665         * modules/regex (Depends-on): Add stdint.
61666         * modules/rmdir-errno: New module.
61667         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61668         m4/intmax_t.m4.
61669         (Depends-on): Add stdint.
61670         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61671         m4/uintmax_t.m4.
61672         (Depends-on): Add stdint.
61673         * modules/unlink-busy: New module.
61674         * modules/utimecmp (Depends-on): Add stdint.
61675         * modules/uptime: New module.
61676         * modules/winsz-ioctl: New module.
61677         * modules/winsz-termios: New module.
61678         * modules/xnanosleep (Depends-on): Add nanosleep.
61679         * modules/ullong_max: Remove.
61680         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61681         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61682         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61683         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61684         (Depends-on): Add inttypes.
61685         (lib_SOURCES): Add xstrtol.h.
61686         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61687         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61688         * MODULES.html.sh: Move 'assert' into the assert section.
61689         Move 'dummy' into the linking section.
61690         Remove ullong_max.
61691         Add section for compatibility checks for POSIX:2001 functions,
61692         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61693         winsz-ioctl, and winsz-termios into it.
61694         Add lchmod.
61695         Add top-level Misc section and put host-os, perl, and uptime
61696         into it.
61697
61698 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61699
61700         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61701         now assume the stdint module.  Do not include inttypes.h.
61702         * lib/fsusage.h: Likewise.
61703         * lib/getndelim2.c: Likewise.
61704         * lib/human.h: Likewise.
61705         * lib/inttostr.h: Likewise.
61706         * lib/obstack.c: Likewise.
61707         * lib/regex_internal.h: Likewise.
61708         * lib/tempname.c: Likewise.
61709         * lib/utimecmp.c: Likewise.
61710         * lib/xstrtol.h: Likewise.
61711
61712         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61713
61714         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61715         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61716         * lib/xtime.h: Likewise.
61717
61718 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61719
61720         * modules/openat (Files): Add lib/fchmodat.c.
61721         Fixes problem reported by Jay Youngman.
61722
61723 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61726         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61727
61728 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61729             Bruno Haible  <bruno@clisp.org>
61730
61731         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61732         and is a script that invokes bison. Tighten the code. Add comments.
61733
61734 2006-08-18  Jim Meyering  <jim@meyering.net>
61735
61736         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61737         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61738         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61739         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61740
61741 2006-08-18  Bruno Haible  <bruno@clisp.org>
61742
61743         * modules/bison-i18n: New file.
61744         * MODULES.html.sh (Internationalization functions): Add it.
61745
61746 2006-08-18  Bruno Haible  <bruno@clisp.org>
61747
61748         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61749         sys/statvfs.h. When getmntinfo was found, check its declaration and
61750         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61751
61752 2006-08-18  Bruno Haible  <bruno@clisp.org>
61753
61754         * m4/bison-i18n.m4: New file, from bison.
61755
61756 2006-08-18  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61759         (ME_DUMMY): Treat "kernfs" as a dummy.
61760         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61761
61762 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         Update from coreutils.
61765
61766         2006-08-15  Jim Meyering  <jim@meyering.net>
61767
61768         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61769
61770         2006-01-17  Jim Meyering  <jim@meyering.net>
61771
61772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61773
61774         2006-01-11  Jim Meyering  <jim@meyering.net>
61775
61776         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61777         Check for the lchmod function.
61778
61779 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61780
61781         Update from coreutils.
61782
61783         * lib/__fpending.h: Add copyright notice.
61784         * lib/fprintftime.h: Likewise.
61785         * lib/savedir.c: Use (C) in copyright notice.
61786         * lib/savedir.h: Likewise.
61787
61788         2006-08-15  Jim Meyering  <jim@meyering.net>
61789
61790         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61791         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61792         in support of the EXPECTED_ERRNO macro.
61793         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61794         definitions.  Instead, define the appropriate symbols and include
61795         "at-func.c".
61796         * lib/mkdirat.c (mkdirat): Likewise.
61797         * lib/fchmodat.c (fchmodat): Likewise.
61798         (ENOSYS): Remove definition.
61799         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61800         it.  Don't include "unistd--.h" -- it wasn't ever used.
61801
61802         2006-01-17  Jim Meyering  <jim@meyering.net>
61803
61804         Rewrite fts.c not to change the current working directory,
61805         by using openat, fstatat, fdopendir, etc..
61806
61807         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61808         (HAVE_OPENAT_SUPPORT): Define.
61809         [_LIBC] (fchdir): Don't undef or define; no longer used.
61810         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61811         Now, this `function' always succeeds, and consumes its file descriptor
61812         parameter -- so callers must not close such FDs.  Update callers.
61813         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61814         (diropen): Add parameter, SP.  Adjust all callers.
61815         Implement using diropen_fd, rather than open.
61816         (fts_open): Initialize new member, fts_cwd_fd.
61817         Remove fts_rft-setting code.
61818         (fts_close): Close fts_cwd_fd, if necessary.
61819         (__opendir2): Define in terms of opendir or opendirat,
61820         depending on whether the FST_NOCHDIR flag is set.
61821         (fts_build): Since fts_safe_changedir consumes its FD, and since
61822         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61823         and close the dup'd file descriptor upon failure.
61824         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61825         (fts_safe_changedir): Tweak semantics to reflect that this function
61826         now calls cwd_advance_fd and hence consumes its FD argument.
61827         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61828         [struct FTS] (fts_rft): Remove now-unused member.
61829         [struct FTS] (fts_cycle.state): Improve comment.
61830
61831         * lib/openat.c (openat_needs_fchdir): New function.
61832         * lib/openat.h (openat_needs_fchdir): Declare it.
61833
61834 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61835
61836         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61837         Problem and fix reported by Pádraig Brady in
61838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61839
61840 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61843
61844 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61845
61846         * lib/memcoll.c (memcoll): Optimize for the common case where the
61847         arguments are bytewise equal.
61848
61849 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         * doc/regexprops-generic.texi: Add a copyright notice.
61852
61853 2006-08-15  Bruno Haible  <bruno@clisp.org>
61854
61855         * modules/tmpdir (License): Change to LGPL.
61856
61857 2006-08-15  Bruno Haible  <bruno@clisp.org>
61858
61859         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61860         module.
61861
61862 2006-08-14  Simon Josefsson  <jas@extundo.com>
61863
61864         * config/srclist.txt: Add gnupload.
61865
61866 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61867
61868         Change copyright notice from LGPL 2 to GPL 2, since that's the
61869         standard form used in the gnulib repository.
61870         * tests/test-lock.c: Likewise.
61871         * tests/test-stdint.c: Likewise.
61872         * tests/test-tls.c: Likewise.
61873
61874         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61875         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61876         Add copyright notice.
61877
61878         * check-module: Add copyright notice.  Output a copyright
61879         notice if "--version" is specified.
61880         * modules/COPYING: New file.
61881         * tests/test-getaddrinfo.c: Add copyright notice.
61882         * tests/test-verify.c: Likewise.
61883
61884 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         Change copyright notice from LGPL 2 to GPL 2, since that's the
61887         standard form used in the gnulib repository.
61888         * lib/lock.c: LGPL -> GPL.
61889         * lib/lock.h: Likewise.
61890         * lib/strnlen1.c: Likewise.
61891         * lib/strnlen1.h: Likewise.
61892         * lib/tls.c: Likewise.
61893         * lib/tls.h: Likewise.
61894         * lib/tmpdir.c: Likewise.
61895
61896         * lib/TODO: Remove; this belongs only in coreutils.
61897
61898 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61899
61900         Add copyright notices to long-enough files that lack them, since
61901         otherwise the files aren't clearly free.  Use the same notice that
61902         getdate.texi already uses.
61903         * doc/alloca-opt.texi: Add copyright notice.
61904         * doc/alloca.texi: Likewise.
61905         * doc/ctime.texi: Likewise.
61906         * doc/functions.texi: Likewise.
61907         * doc/gcd.texi: Likewise.
61908         * doc/gnulib-tool.texi: Likewise.
61909         * doc/inet_ntoa.texi: Likewise.
61910         * doc/visibility.texi: Likewise.
61911
61912         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61913         * doc/quote.texi: Add copyright notice.
61914
61915         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61916         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61917         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61918         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61919         is now obsolete, and give a pointer to the Sun list.
61920         Add copyright notice.
61921
61922 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * config/srclistvars.sh: Add copyright notice.
61925
61926 2006-08-14  Eric Blake  <ebb9@byu.net>
61927
61928         Import the following change from libc:
61929
61930         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61931
61932         Upstream bug 2997.
61933         * lib/misc/error.c: Add space between program name and message if file
61934         name is missing.
61935
61936 2006-08-12  Karl Berry  <karl@gnu.org>
61937
61938         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61939         remove, these originate in gnulib now.
61940
61941 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61942
61943         * doc/Makefile (standards.info standards.html standards.dvi):
61944         Also depend on make-stds.texi.
61945
61946 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61949         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61950
61951         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61952         in wchar_t.  Problem reported by Eric Blake.
61953
61954         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61955         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61956         Also, help the compiler to keep LEN in a register.
61957
61958 2006-08-11  Eric Blake  <ebb9@byu.net>
61959
61960         * users.txt: Sort.  Add tar.
61961
61962 2006-08-11  Bruno Haible  <bruno@clisp.org>
61963
61964         * users.txt: New file.
61965
61966 2006-08-11  Bruno Haible  <bruno@clisp.org>
61967
61968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61969         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61970
61971 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61972
61973         * modules/snprintf (Depends-on): Remove minmax.
61974         (Maintainer): Add self and Bruno.
61975
61976 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61977
61978         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61979         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61980         (EOVERFLOW): Define if the system does not.
61981         Do not include "minmax.h"; it wasn't used.
61982         (snprintf): Don't assume size_t promotes to an unsigned type.
61983         Fix bug when generated string was too long for the buffer: the
61984         buffer's contents are supposed to be the initial prefix of the
61985         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61986         exceeds INT_MAX; do the check ourselves.
61987
61988         Import the following changes from libc:
61989
61990         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61991
61992         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61993         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61994         set wc to the byte which couldn't be converted.
61995         (re_string_reconstruct): Don't clear valid_raw_len before calling
61996         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61997         tip_context using re_string_context_at.
61998
61999         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62000
62001         * lib/posix/regex.h: g++ still cannot handled [restrict].
62002
62003         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62004
62005         * lib/posix/regex.h: Remove special handling for VMS.
62006
62007 2006-08-10  Jim Meyering  <jim@meyering.net>
62008
62009         * modules/same-inode: New module.
62010         * modules/dev-ino: New module.
62011         * modules/cycle-check: Depend on these modules, rather than simply
62012         including their .h files.
62013         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62014         required via m4/cycle-check.m4.
62015         * modules/same: Depend on new same-inode module, rather than
62016         including same-inode.h.
62017         * modules/chdir-safer: New file.
62018
62019         * modules/chown (Depends-on): Add stat-macros.
62020
62021 2006-08-10  Jim Meyering  <jim@meyering.net>
62022
62023         * m4/cycle-check.m4: New file.
62024         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62025         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62026
62027 2006-08-10  Eric Blake  <ebb9@byu.net>
62028
62029         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62030         in from original proposal.
62031
62032 2006-08-10  Eric Blake  <ebb9@byu.net>
62033         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62034
62035         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62036         namespace.
62037
62038 2006-08-10  Bruno Haible  <bruno@clisp.org>
62039
62040         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62041         as well.
62042
62043 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62044
62045         Sync from coreutils.
62046
62047         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62048
62049         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62050         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62051
62052 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62053
62054         * modules/restrict: Remove; no longer needed now that we assume
62055         Autoconf 2.59 or later.
62056         * MODULES.html.sh: Remove 'restrict'.
62057         * modules/argp (Depends-on): Remove 'restrict'.
62058         * modules/base64 (Depends-on): Likewise.
62059         * modules/gc (Depends-on): Likewise.
62060         * modules/getaddrinfo (Depends-on): Likewise.
62061         * modules/glob (Depends-on): Likewise.
62062         * modules/inet_ntop (Depends-on): Likewise.
62063         * modules/inet_pton (Depends-on): Likewise.
62064         * modules/memxor (Depends-on): Likewise.
62065         * modules/regex (Depends-on): Likewise.
62066         * modules/strtok_r (Depends-on): Likewise.
62067         * modules/time_r (Depends-on): Likewise.
62068
62069 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62070
62071         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62072         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62073         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62074         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62075         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62076         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62077         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62078         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62079
62080         Merge from coreutils.
62081         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62082         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62083         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62084         * m4/time_r.m4 (gl_TIME_R): Likewise.
62085
62086 2006-08-09  Karl Berry  <karl@gnu.org>
62087
62088         * config/srclist.txt: no more gettext-tools, per Bruno.
62089
62090 2006-08-08  Eric Blake  <ebb9@byu.net>
62091
62092         * modules/verror: New module.
62093         * MODULES.html.sh: Document it.
62094
62095 2006-08-08  Eric Blake  <ebb9@byu.net>
62096
62097         * lib/verror.h, lib/verror.c: New files.
62098
62099 2006-08-08  Eric Blake  <ebb9@byu.net>
62100
62101         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62102         verror_at_line output complies with GNU Coding Standards even when
62103         file is NULL.
62104
62105 2006-08-07  Bruno Haible  <bruno@clisp.org>
62106
62107         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62108         versions of AIX.
62109         Reported by Ralf Wildenhues.
62110
62111 2006-08-07  Bruno Haible  <bruno@clisp.org>
62112
62113         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62114         in an AC_DEFUN. Needed so that the autoconf snippets can use
62115         AC_REQUIRE.
62116
62117 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62118
62119         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62120         Initialize pkgdata_DATA.
62121         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62122         overriding it.
62123
62124 2006-08-06  Eric Blake  <ebb9@byu.net>
62125
62126         * lib/error.h: Fold in some upstream changes from glibc.
62127         * lib/error.c: Likewise.
62128
62129 2006-08-04  Bruno Haible  <bruno@clisp.org>
62130
62131         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62132         Make the mostlyclean-local rule depend on mostlyclean-generic.
62133         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62134
62135 2006-07-31  Bruno Haible  <bruno@clisp.org>
62136
62137         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62138         <stdlib.h>, <string.h>.
62139
62140 2006-07-30  Bruno Haible  <bruno@clisp.org>
62141
62142         * modules/readlink (License): Change to LGPL.
62143
62144 2006-07-30  Bruno Haible  <bruno@clisp.org>
62145
62146         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62147         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62148         set PKGDATADIR to point to it.
62149
62150 2006-07-30  Bruno Haible  <bruno@clisp.org>
62151
62152         * modules/csharpexec (configure.ac): Comment out macro invocation.
62153         * modules/javaexec (configure.ac): Likewise.
62154         * modules/javacomp-script (configure.ac): Likewise.
62155
62156         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62157
62158 2006-07-30  Bruno Haible  <bruno@clisp.org>
62159
62160         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62161         linked-list.
62162
62163 2006-07-30  Bruno Haible  <bruno@clisp.org>
62164
62165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62166
62167 2006-07-30  Bruno Haible  <bruno@clisp.org>
62168
62169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62170         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62171         get removed.
62172
62173 2006-07-29  Bruno Haible  <bruno@clisp.org>
62174
62175         Make it possible for gnulib-tool to work with locally modified or
62176         augmented gnulib repositories.
62177         * gnulib-tool (func_usage): Document --local-dir option.
62178         (local_gnulib_dir): New variable.
62179         Handle --local-dir option.
62180         (func_lookup_file): New function.
62181         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62182         (func_get_description, func_get_filelist, func_get_description,
62183         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62184         func_get_automake_snippet, func_get_include_directive,
62185         func_get_license, func_get_maintainer): Use func_lookup_file.
62186         (func_import, func_create_testdir): Use func_lookup_file.
62187
62188 2006-07-29  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/setenv (Depends-on): Add unistd.
62191
62192 2006-07-29  Bruno Haible  <bruno@clisp.org>
62193
62194         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62195
62196 2006-07-29  Bruno Haible  <bruno@clisp.org>
62197
62198         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62199
62200 2006-07-29  Bruno Haible  <bruno@clisp.org>
62201
62202         * gnulib-tool (import, update): If there is no Makefile.am, look at
62203         aclocal.m4, instead of bailing out.
62204
62205 2006-07-29  Bruno Haible  <bruno@clisp.org>
62206
62207         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62208         Categorize the options by when they are useful.
62209
62210 2006-07-29  Bruno Haible  <bruno@clisp.org>
62211
62212         * gnulib-tool (func_usage): Document option --no-libtool.
62213         Handle option --no-libtool.
62214         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62215         for changed semantics of $libtool variable.
62216         (func_import): Likewise. If libtool is not used, show this through
62217         an option --no-libtool.
62218         (func_create_testdir): Update.
62219
62220 2006-07-29  Bruno Haible  <bruno@clisp.org>
62221
62222         * gnulib-tool (func_import): Extend error message about missing
62223         --doc-base.
62224
62225 2006-07-29  Bruno Haible  <bruno@clisp.org>
62226
62227         * gnulib-tool (func_import): Don't create the $docbase directory if
62228         there is no file to store there.
62229
62230 2006-07-29  Bruno Haible  <bruno@clisp.org>
62231
62232         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62233         relevant, look for configure.ac there, not in the current directory.
62234         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62235
62236 2006-07-29  Bruno Haible  <bruno@clisp.org>
62237
62238         * gnulib-tool (SORT): New variable.
62239         (func_usage): Undocument --assume-autoconf option.
62240         Remove --assume-autoconf option handling.
62241         (autoconf_minversion): Determine from the contents of configure.ac.
62242         (func_import): Remove autoconf_minversion handling.
62243         Suggested by Eric Blake.
62244
62245 2006-07-29  Bruno Haible  <bruno@clisp.org>
62246
62247         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62248
62249 2006-07-29  Bruno Haible  <bruno@clisp.org>
62250
62251         * config/srclist.txt (*setenv.[ch]): Remove rules.
62252
62253 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62254
62255         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62256
62257 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62258
62259         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62260         arpa/inet.h.
62261
62262 2006-07-28  Simon Josefsson  <jas@extundo.com>
62263
62264         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62265         * modules/inet_pton (Depends-on): Likewise.
62266
62267 2006-07-28  Simon Josefsson  <jas@extundo.com>
62268
62269         * m4/netinet_in_h.m4: New file.
62270
62271 2006-07-28  Simon Josefsson  <jas@extundo.com>
62272
62273         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62274         #include's.
62275
62276 2006-07-28  Simon Josefsson  <jas@extundo.com>
62277
62278         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62279         #include's.
62280
62281 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62284         setgid on directories only if they set these bits.
62285         * lib/modechange.h: Remove obsolete comment about masks.
62286
62287 2006-07-28  Eric Blake  <ebb9@byu.net>
62288
62289         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62290         macro expansion.
62291
62292 2006-07-28  Bruno Haible  <bruno@clisp.org>
62293
62294         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62295
62296 2006-07-28  Bruno Haible  <bruno@clisp.org>
62297
62298         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62299
62300 2006-07-28  Bruno Haible  <bruno@clisp.org>
62301
62302         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62303         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62304         Define fallbacks.
62305         Avoids link error on FreeBSD 4.x.
62306         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62307
62308         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62309         encoding.
62310         * lib/mbswidth.c (iswcntrl): Likewise.
62311
62312 2006-07-27  Bruno Haible  <bruno@clisp.org>
62313
62314         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62315         test.
62316
62317 2006-07-27  Bruno Haible  <bruno@clisp.org>
62318
62319         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62320         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62321         defined.
62322
62323 2006-07-26  Eric Blake  <ebb9@byu.net>
62324
62325         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62326
62327 2006-07-26  Eric Blake  <ebb9@byu.net>
62328
62329         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62330         like mingw that lack mkstemp.
62331         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62332         avoid compilation warning on mingw.
62333
62334 2006-07-26  Bruno Haible  <bruno@clisp.org>
62335
62336         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62337         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62338         INT_FAST*_MIN, INTPTR_MIN.
62339
62340 2006-07-25  Bruno Haible  <bruno@clisp.org>
62341
62342         * modules/version-etc (Depends-on): Add stdarg.
62343
62344 2006-07-25  Bruno Haible  <bruno@clisp.org>
62345
62346         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62347         complex commands.
62348
62349 2006-07-25  Bruno Haible  <bruno@clisp.org>
62350
62351         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62352         defined in <stdarg.h> or config.h.
62353
62354 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62357         (gl_STDIO_SAFER): Remove.
62358
62359 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * MODULES.html.sh (File stream based Input/Output):
62362         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62363         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62364         * modules/fopen-safer, modules/tmpfile-safer: New files.
62365         * modules/stdio-safer: Remove.
62366
62367 2006-07-24  Bruno Haible  <bruno@clisp.org>
62368
62369         * modules/tmpdir: New file.
62370         * MODULES.html.sh (File system functions): Add it.
62371
62372 2006-07-24  Bruno Haible  <bruno@clisp.org>
62373
62374         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62375         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62376
62377 2006-07-24  Bruno Haible  <bruno@clisp.org>
62378
62379         * modules/clean-temp: New file.
62380
62381 2006-07-24  Bruno Haible  <bruno@clisp.org>
62382
62383         * m4/tmpdir.m4: New file, from GNU gettext.
62384
62385 2006-07-24  Bruno Haible  <bruno@clisp.org>
62386
62387         * lib/tmpdir.h: New file, from GNU gettext.
62388         * lib/tmpdir.c: New file, from GNU gettext.
62389
62390 2006-07-24  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/clean-temp.h: New file, from GNU gettext.
62393         * lib/clean-temp.c: New file, from GNU gettext.
62394
62395 2006-07-23  Eric Blake  <ebb9@byu.net>
62396
62397         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62398         (Depends-on): Add binary-io.
62399
62400 2006-07-23  Eric Blake  <ebb9@byu.net>
62401
62402         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62403
62404 2006-07-23  Eric Blake  <ebb9@byu.net>
62405
62406         * lib/tmpfile-safer.c: New file.
62407         * lib/stdio-safer.h (fopen_safer): Add prototype.
62408         * lib/stdio--.h (tmpfile): Make safer.
62409
62410 2006-07-23  Bruno Haible  <bruno@clisp.org>
62411
62412         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62413         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62414         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62415         gl_linked_remove_at): Use it.
62416
62417 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62418         and Simon Josefsson <jas@extundo.com>
62419
62420         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62421
62422         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62423
62424 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62425
62426         * modules/close-stream: New file.
62427         * modules/closeout (Description): Make it clear that it exits
62428         with a diagnostic on error.
62429         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62430         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62431
62432 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         * m4/close-stream.m4: New file.
62435
62436 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62437
62438         * lib/close-stream.c, lib/close-stream.h: New files.
62439
62440 2006-07-22  Bruno Haible  <bruno@clisp.org>
62441
62442         Merge from GNU gettext 0.15.
62443
62444         2006-05-01  Bruno Haible  <bruno@clisp.org>
62445
62446                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62447
62448         2006-07-22  Bruno Haible  <bruno@clisp.org>
62449
62450                 * modules/javaversion: New file.
62451                 * MODULES.html.sh (Java): Add javaversion.
62452
62453         2006-03-12  Bruno Haible  <bruno@clisp.org>
62454
62455                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62456
62457         2005-12-04  Bruno Haible  <bruno@clisp.org>
62458
62459                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62460                 (untested).
62461
62462         2006-06-21  Bruno Haible  <bruno@clisp.org>
62463
62464                 Avoid warnings from recent versions of mcs.
62465                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62466                 -o, -L, -r any more. Use options documented since mcs-1.0
62467                 instead. Similarly for -g.
62468
62469         2005-12-04  Bruno Haible  <bruno@clisp.org>
62470
62471                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62472                 .resources, not .resource.
62473
62474         2005-07-09  Bruno Haible  <bruno@clisp.org>
62475
62476                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62477                 add a .dll suffix.
62478                 Reported by Mark Junker <mjscod@gmx.de>.
62479
62480         2006-07-22  Bruno Haible  <bruno@clisp.org>
62481
62482                 * modules/gettext: Upgrade to gettext-0.15.
62483                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62484                 m4/visibility.m4.
62485                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62486
62487 2006-07-22  Bruno Haible  <bruno@clisp.org>
62488
62489         Merge from GNU gettext 0.15.
62490
62491         2006-03-25  Bruno Haible  <bruno@clisp.org>
62492
62493                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62494
62495         2006-07-21  Bruno Haible  <bruno@clisp.org>
62496
62497                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62498                 "1.1".
62499
62500         2006-05-09  Bruno Haible  <bruno@clisp.org>
62501
62502                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62503                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62504                 for the conftestver execution.
62505
62506         2006-05-01  Bruno Haible  <bruno@clisp.org>
62507
62508                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62509                 optional target-version argument. Verify that the compiler
62510                 groks source of the specified source-version, or add -source
62511                 option as necessary. Verify that the compiler produces
62512                 bytecode in the specified target-version, or add -target and
62513                 -source options as necessary. Make the result of the test
62514                 available as variable CONF_JAVAC. Also log error output in
62515                 config.log.
62516
62517         2006-03-11  Bruno Haible  <bruno@clisp.org>
62518
62519                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62520
62521         2006-05-09  Bruno Haible  <bruno@clisp.org>
62522
62523                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62524                 CLASSPATH_SEPARATOR to a semicolon.
62525
62526         2006-03-12  Bruno Haible  <bruno@clisp.org>
62527
62528                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62529                 available as variable CONF_JAVA, for subsequent autoconf
62530                 tests. Also log error output in config.log.
62531
62532         2006-07-19  Bruno Haible  <bruno@clisp.org>
62533
62534                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62535                 that getline works on glibc2 systems. Needed to avoid trouble
62536                 in relocatable.c.
62537                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62538
62539         2005-12-04  Bruno Haible  <bruno@clisp.org>
62540
62541                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62542                 launcher (untested).
62543
62544         2005-12-04  Bruno Haible  <bruno@clisp.org>
62545
62546                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62547
62548         2006-07-22  Bruno Haible  <bruno@clisp.org>
62549
62550                 * gettext.m4: Update from GNU gettext-0.15.
62551                 * nls.m4: Likewise.
62552                 * po.m4: Likewise.
62553                 * inttypes-pri.m4: Likewise.
62554                 * inttypes-h.m4: Renamed from inttypes.m4.
62555                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62556
62557 2006-07-22  Bruno Haible  <bruno@clisp.org>
62558
62559         Merge from GNU gettext 0.15.
62560
62561         2005-07-05  Bruno Haible  <bruno@clisp.org>
62562
62563                 * printf-args.c (printf_fetchargs): Work around broken
62564                 definition of wint_t on mingw.
62565
62566         2005-02-12  Bruno Haible  <bruno@clisp.org>
62567
62568                 * xallocsa.h: Add extern "C" for C++.
62569
62570         2006-05-17  Bruno Haible  <bruno@clisp.org>
62571
62572                 Cygwin portability.
62573                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62574
62575         2006-04-30  Bruno Haible  <bruno@clisp.org>
62576
62577                 * progreloc.c: Include <mach-o/dyld.h> if available.
62578                 (find_executable): Use _NSGetExecutablePath when possible.
62579
62580         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62581
62582                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62583                 function.
62584
62585         2005-12-29  Bruno Haible  <bruno@clisp.org>
62586
62587                 * progreloc.c (set_program_name_and_installdir): Fix
62588                 compilation error.
62589
62590         2005-12-04  Bruno Haible  <bruno@clisp.org>
62591
62592                 Cygwin portability.
62593                 * progreloc.c: Include <windows.h> also on Cygwin.
62594                 (find_executable): Add support for Cygwin.
62595                 (set_program_name_and_installdir): Handle also platforms with
62596                 nonempty EXEEXT.
62597
62598         2006-07-11  Bruno Haible  <bruno@clisp.org>
62599
62600                 * javacomp.c: Fix a comment.
62601                 Reported by Jim Meyering.
62602
62603         2006-04-30  Bruno Haible  <bruno@clisp.org>
62604
62605                 * javacomp.h (compile_java_class): Add source_version,
62606                 target_version arguments.
62607                 * javacomp.c: Rewritten to choose only a compiler that
62608                 respects the specified source_version and target_version.
62609
62610         2006-06-27  Bruno Haible  <bruno@clisp.org>
62611
62612                 Assume correct S_ISDIR macro.
62613                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62614
62615         2006-07-22  Bruno Haible  <bruno@clisp.org>
62616
62617                 * javaversion.h: New file, from GNU gettext.
62618                 * javaversion.c: New file, from GNU gettext.
62619                 * javaversion.java: New file, from GNU gettext.
62620                 * javaversion.class: New file, from GNU gettext.
62621
62622         2006-05-17  Bruno Haible  <bruno@clisp.org>
62623
62624                 Cygwin portability.
62625                 * javaexec.c (execute_java_class): Test for jview program
62626                 also on Cygwin.
62627
62628         2006-04-09  Bruno Haible  <bruno@clisp.org>
62629
62630                 * fatal-signal.c: Don't include string.h.
62631                 (at_fatal_signal): Use a copying loop instead of memcpy.
62632
62633         2005-12-04  Bruno Haible  <bruno@clisp.org>
62634
62635                 * csharpexec.c: Add support for 'clix' launcher (untested).
62636                 (execute_csharp_using_sscli): New function.
62637                 (execute_csharp_program): Call it.
62638
62639         2006-06-21  Bruno Haible  <bruno@clisp.org>
62640
62641                 Avoid warnings from recent versions of mcs.
62642                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62643                 -o, -L, -r any more. Use options documented since mcs-1.0
62644                 instead. Similarly for -g.
62645
62646         2005-07-09  Bruno Haible  <bruno@clisp.org>
62647
62648                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62649                 add a .dll suffix.
62650                 Reported by Mark Junker <mjscod@gmx.de>.
62651
62652         2006-06-17  Bruno Haible  <bruno@clisp.org>
62653
62654                 * config.charset: Update for NetBSD 3.0.
62655
62656         2006-05-17  Bruno Haible  <bruno@clisp.org>
62657
62658                 Cygwin portability.
62659                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62660
62661         2006-05-16  Bruno Haible  <bruno@clisp.org>
62662
62663                 * localcharset.c [CYGWIN]: Include <windows.h>.
62664                 (get_charset_aliases): For Cygwin, return the same CPxxx
62665                 aliases list as under WIN32.
62666                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62667                 the environment variables. Fall back to GetACP().
62668
62669         2006-04-05  Bruno Haible  <bruno@clisp.org>
62670
62671                 * config.charset: Update Juan Manuel Guerrero's address.
62672
62673         2005-02-12  Bruno Haible  <bruno@clisp.org>
62674
62675                 * allocsa.h: Add extern "C" for C++.
62676
62677         2005-02-10  Bruno Haible  <bruno@clisp.org>
62678
62679                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62680                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62681
62682         2006-07-22  Bruno Haible  <bruno@clisp.org>
62683
62684                 * gettext.h: Update to GNU gettext-0.15.
62685
62686 2006-07-22  Bruno Haible  <bruno@clisp.org>
62687
62688         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62689         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62690         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62691
62692 2006-07-21  Eric Blake  <ebb9@byu.net>
62693
62694         * modules/stdlib-safer: New file.
62695         * MODULES.html.sh (File stream based Input/Output): Add
62696         stdlib-safer.
62697
62698 2006-07-21  Eric Blake  <ebb9@byu.net>
62699
62700         * lib/stdlib-safer.h: New file from coreutils, required by
62701         stdlib--.h.
62702
62703 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62704
62705         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62706
62707 2006-07-20  Bruno Haible  <bruno@clisp.org>
62708
62709         * gnulib-tool: Recognize new option --assume-autoconf.
62710         (autoconf_minversion): New variable.
62711         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62712
62713 2006-07-20  Bruno Haible  <bruno@clisp.org>
62714
62715         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62716
62717 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62718
62719         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62720         Reindent and repaginate.
62721
62722 2006-07-19  Derek Price  <derek@ximbiot.com>
62723
62724         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62725         Correct grammar.
62726
62727 2006-07-17  Bruno Haible  <bruno@clisp.org>
62728
62729         * modules/list: New file.
62730         * modules/array-list: New file.
62731         * modules/carray-list, modules/carray-list-tests: New files.
62732         * modules/linked-list, modules/linked-list-tests: New files.
62733         * modules/avltree-list, modules/avltree-list-tests: New files.
62734         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62735         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62736         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62737         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62738         * modules/oset: New file.
62739         * modules/array-oset: New file.
62740         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62741         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62742         * tests/test-carray_list.c: New file.
62743         * tests/test-linked_list.c: New file.
62744         * tests/test-avltree_list.c: New file.
62745         * tests/test-rbtree_list.c: New file.
62746         * tests/test-linkedhash_list.c: New file.
62747         * tests/test-avltreehash_list.c: New file.
62748         * tests/test-rbtreehash_list.c: New file.
62749         * tests/test-avltree_oset.c: New file.
62750         * tests/test-rbtree_oset.c: New file.
62751         * MODULES.html.sh (Container data structures): New section.
62752
62753 2006-07-17  Bruno Haible  <bruno@clisp.org>
62754
62755         * m4/gl_list.m4: New file.
62756
62757 2006-07-17  Bruno Haible  <bruno@clisp.org>
62758
62759         * lib/gl_list.h: New file.
62760         * lib/gl_list.c: New file.
62761         * lib/gl_array_list.h: New file.
62762         * lib/gl_array_list.c: New file.
62763         * lib/gl_carray_list.h: New file.
62764         * lib/gl_carray_list.c: New file.
62765         * lib/gl_linked_list.h: New file.
62766         * lib/gl_linked_list.c: New file.
62767         * lib/gl_anylinked_list1.h: New file.
62768         * lib/gl_anylinked_list2.h: New file.
62769         * lib/gl_avltree_list.h: New file.
62770         * lib/gl_avltree_list.c: New file.
62771         * lib/gl_anyavltree_list1.h: New file.
62772         * lib/gl_anyavltree_list2.h: New file.
62773         * lib/gl_rbtree_list.h: New file.
62774         * lib/gl_rbtree_list.c: New file.
62775         * lib/gl_anyrbtree_list1.h: New file.
62776         * lib/gl_anyrbtree_list2.h: New file.
62777         * lib/gl_anytree_list1.h: New file.
62778         * lib/gl_anytree_list2.h: New file.
62779         * lib/gl_linkedhash_list.h: New file.
62780         * lib/gl_linkedhash_list.c: New file.
62781         * lib/gl_anyhash_list1.h: New file.
62782         * lib/gl_anyhash_list2.h: New file.
62783         * lib/gl_avltreehash_list.h: New file.
62784         * lib/gl_avltreehash_list.c: New file.
62785         * lib/gl_rbtreehash_list.h: New file.
62786         * lib/gl_rbtreehash_list.c: New file.
62787         * lib/gl_anytreehash_list1.h: New file.
62788         * lib/gl_anytreehash_list2.h: New file.
62789
62790         * lib/gl_oset.h: New file.
62791         * lib/gl_oset.c: New file.
62792         * lib/gl_array_oset.h: New file.
62793         * lib/gl_array_oset.c: New file.
62794         * lib/gl_avltree_oset.h: New file.
62795         * lib/gl_avltree_oset.c: New file.
62796         * lib/gl_rbtree_oset.h: New file.
62797         * lib/gl_rbtree_oset.c: New file.
62798         * lib/gl_anytree_oset.h: New file.
62799
62800 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * m4/mkancesdirs.m4: New file.
62803         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62804         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62805         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62806         it.
62807
62808 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62811         * lib/mkancesdirs.h: New files.
62812         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62813         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62814         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62815         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62816         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62817         callers changed.  Revamp internals significantly, by not
62818         attempting to create directories that are temporarily more
62819         permissive than the final results.  Do not attempt to use
62820         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62821         This removes some race conditions, fixes some bugs, and simplifies
62822         things.  Use new dirchownmod function to do owner and mode changes.
62823         * lib/mkdir-p.h: Likewise.
62824         * lib/modechange.c (octal_to_mode): New function.
62825         (struct mode_change): New member mentioned.
62826         (make_node_op_equals): New arg mentioned.  All callers changed.
62827         (mode_compile): Keep track of which mode bits the user has explicitly
62828         mentioned.
62829         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62830         New arg PMODE_BITS, to keep track of which mode bits the user
62831         mentioned; it treats S_ISUID and S_ISGID speciall.
62832         All callers changed.
62833         * lib/modechange.h: Likewise.
62834
62835 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62836
62837         * MODULES.html.sh: Add mkancestors.
62838         * modules/mkancesdirs: New module.
62839         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62840         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62841         The chdir-safer and afs files are now orphans; I'll remove them
62842         unless someone speaks up.
62843         Add lib/dirchownmod.c, lib/dirchownmod.h.
62844         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62845         Add lchown, mkancesdirs.
62846         (Maintainer): Add self.
62847
62848 2006-07-15  Karl Berry  <karl@gnu.org>
62849
62850         * gnulib-tool: help message wording/arrangement.
62851
62852 2006-07-14  Simon Josefsson  <jas@extundo.com>
62853
62854         * doc/gnulib.texi (Libtool and Windows): New section.
62855
62856 2006-07-12  Simon Josefsson  <jas@extundo.com>
62857
62858         * modules/gendocs (License): Fix license, approved by Karl.
62859
62860 2006-07-12  Eric Blake  <ebb9@byu.net>
62861
62862         * MODULES.html.sh: Add gendocs.
62863
62864 2006-07-11  Eric Blake  <ebb9@byu.net>
62865
62866         * modules/fdl: New module, to install doc/fdl.texi.
62867         * MODULES.html.sh: Add new section for documentation modules.
62868         * gnulib-tool: Avoid space-tab.
62869         (--doc-base): New option, to manage files from doc.
62870
62871 2006-07-11  Eric Blake  <ebb9@byu.net>
62872
62873         * m4/absolute-header.m4: Fix comments to match recent change.
62874
62875 2006-07-11  Eric Blake  <ebb9@byu.net>
62876
62877         * gnulib-tool: List --doc-base before --tests-base.
62878
62879 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62880
62881         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62882
62883 2006-07-11  Bruno Haible  <bruno@clisp.org>
62884
62885         * README: Mention where to put documentation.
62886
62887 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62888
62889         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62890
62891 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62892
62893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62894         to stdint.m4.
62895
62896 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62897
62898         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62899         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62900         "no/such/file/stdint.h" when there is no such file, so that
62901         the resulting C code can be parsed by dodgy compilers.
62902         Problems reported by Bob Proulx.
62903
62904 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62905
62906         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62907         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62908         macros into the GNU _D_EXACT_NAMLEN.
62909         * lib/savedir.c:  Likewise.
62910         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62911
62912 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62913         and Paul Eggert  <eggert@cs.ucla.edu>
62914
62915         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62916         * m4/savedir.m4:
62917         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62918         macros into the GNU _D_EXACT_NAMLEN.
62919
62920 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62923         around the absolute name, to work around a problem with the HP-UX
62924         11.23 native C compiler, reported by Bob Proulx.
62925
62926 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * doc/maintain.texi, make-stds.texi: Sync from
62929         <http://savannah.gnu.org/projects/gnustandards>.
62930
62931 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62934
62935 2006-07-09  Jim Meyering  <jim@meyering.net>
62936
62937         * m4/glob.m4: Remove a doubled word in a comment.
62938
62939 2006-07-09  Jim Meyering  <jim@meyering.net>
62940
62941         * lib/argp-pv.c: Remove a doubled word in a comment.
62942         * lib/check-version.c (check_version): Likewise.
62943         * lib/javacomp.c (compile_java_class): Likewise.
62944
62945 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62948         for the benefit of people using Autoconf 2.60.  If you want to
62949         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62950         (or m4/onceonly.m4, if pre-2.57) manually.
62951
62952 2006-07-08  Jim Meyering  <jim@meyering.net>
62953
62954         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62955         comment.
62956         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62957         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62958         comment.
62959
62960 2006-07-08  Jim Meyering  <jim@meyering.net>
62961
62962         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62963
62964 2006-07-07  Simon Josefsson  <jas@extundo.com>
62965
62966         * tests/test-crc.c: Change expected crc value, the test vector
62967         were probably computed using the old broken crc.c?
62968
62969 2006-07-06  Simon Josefsson  <jas@extundo.com>
62970
62971         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62972         now the canonical place for the M4 file).
62973
62974         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62975         from the sys_socket dependency now.
62976
62977         * modules/inet_pton (Files): Ditto.
62978
62979         * modules/inet_ntop (Files): Ditto.
62980
62981 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62982
62983         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62984         not gl_PREREQ_GETUSERSHELL.
62985
62986 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62987
62988         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62989         with only one argument, for Autoconf 2.60.
62990         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62991         expand to nothing, so add a shell command to avoid syntax error.
62992         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62993
62994 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62995
62996         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62997
62998 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62999
63000         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63001         no longer needed.  Check for isblank decl.
63002         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63003         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63004         of existence.
63005
63006 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63007
63008         * lib/getloadavg.c: Use __VMS, not VMS.
63009         * lib/getopt.c: Likewise.
63010         * lib/getpagesize.h: Likewise.
63011         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63012         and probably does not work.
63013
63014 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         * lib/.cppi-disable: Add wcwidth.
63017         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63018         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63019         (ISGRAPH): Remove.  All uses changed to isgraph.
63020         (FOLD) [!defined _LIBC]: Remove special case.
63021         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63022         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63023         HAVE_ISBLANK.
63024         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63025         case.
63026
63027 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63028
63029         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63030         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63031         brackets.  Other minor changes to suppress some compiler
63032         warnings.
63033
63034 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63035         and Paul Eggert  <eggert@cs.ucla.edu>
63036
63037         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63038         of invoking obsolescent AC_HEADER_DIRENT macro.
63039         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63040         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63041         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63042         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63043         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63044         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63045         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63046         * m4/readdir.m4: Remove; no longer needed.
63047
63048 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63049         and Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63052         Don't worry about this obsolete case any more.
63053         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63054         directories.
63055         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63056         worry about this obsolete case any more.
63057         * lib/fts.c: Likewise.
63058         * lib/getcwd.c: Likewise.
63059         * lib/glob.h: Likewise.
63060         * lib/savedir.c: Likewise.
63061
63062 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63063
63064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63065         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63066         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63067         needed.
63068         All uses removed.
63069         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63070         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63071         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63072         needed.
63073         * m4/getdate.m4 (gl_GETDATE): Likewise.
63074         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63075         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63076         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63077         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63078         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63079         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63080         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63081         needed.
63082
63083 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * lib/memcasecmp.c: Include <limits.h>.
63086         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63087         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63088         Don't assume isdigit succeeds only on '0' through '9'.
63089
63090 2006-07-05  Eric Blake  <ebb9@byu.net>
63091
63092         * modules/getaddrinfo (Depends-on): Add snprintf.
63093
63094 2006-07-05  Eric Blake  <ebb9@byu.net>
63095
63096         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63097         to avoid 'header present but could not be compiled' on cygwin.
63098
63099 2006-07-05  Eric Blake  <ebb9@byu.net>
63100
63101         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63102         missing from netdb.h.
63103         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63104
63105 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63106
63107         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63108         no longer needed.
63109         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63110         * m4/getdate.m4 (gl_GETDATE): Likewise.
63111         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63112         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63113         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63114         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63115         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63116
63117 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63118
63119         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63120         All uses of is_space replaced by isspace.
63121         * lib/exit.h: Don't talk about STDC_HEADERS.
63122         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63123         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63124         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63125         replaced by isprint etc.
63126         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63127         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63128         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63129         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63130         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63131         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63132
63133 2006-07-05  Bruno Haible  <bruno@clisp.org>
63134
63135         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63136         the function exists, before testing against AIX.
63137         Reported by Martin Lambers <marlam@marlam.de>.
63138
63139 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63140
63141         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63142         From Mark D. Baushke.
63143
63144 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63147         to the absolute name, not just one, to bypass Sun C 5.8's
63148         "warning: #include of /usr/include/... may be non-portable".
63149
63150 2006-07-04  Eric Blake  <ebb9@byu.net>
63151
63152         * modules/dirname-tests: New test module.
63153         * tests/test-dirname.c: New file, replacing dirname.c
63154         TEST_DIRNAME section that was recently deleted.
63155
63156 2006-07-04  Bruno Haible  <bruno@clisp.org>
63157
63158         Assume ANSI C header files and <ctype.h> functions.
63159         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63160         (mbsnwidth): Use isprint, iscntrl instead.
63161
63162 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63163
63164         Merge from coreutils.
63165         * MODULES.html.sh: Add xstrtold.
63166         * modules/xstrtold: New file.
63167         * modules/cycle-check (Files): Add lib/same-inode.h.
63168         * modules/dirname (Files): Add m4/double-slash-root.m4.
63169         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63170         * modules/mkdir-p (Files): Add lib/same-inode.h.
63171         * modules/same (Files): Add lib/same-inode.h.
63172
63173 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63176         This is to keep the terminology clean; POSIX talks about
63177         "absolute pathnames", not "full pathnames", but the GNU
63178         Coding Standards say to use "path" for something else;
63179         so use "absolute" to keep both sides happy.
63180         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63181         Set gl_absolute_header, not gl_full_header_path.
63182         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63183         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63184         All uses changed.
63185
63186         Merge from coreutils.
63187
63188         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63191         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63192         want to require the building of c-strtod.o.
63193         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63194         needs -lm directly.
63195         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63196
63197         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63200         --as-needed option if available.  Problem reported by Albert Chin in
63201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63202         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63203         cc merely issues a bunch of annoying warnings for --as-needed
63204         (this problem was reported by Bob Proulx).  Also, try linking with
63205         -lm to detect a bug in binutils 2.16 (this problem was reported
63206         by Ralf Wildenhues).
63207
63208         2006-06-18  Jim Meyering  <jim@meyering.net>
63209
63210         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63211         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63212         macro.
63213         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63214         also check for glibc-2.4's abort-inducing bug.
63215
63216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63217         Low-probability clean-up should be to use rmdir to get rid of
63218         the just-created directory, not unlink.
63219
63220         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63221         configure fail, and request a bug report to inform us about it.
63222         Add a comment that, barring reports to the contrary, in 2007 we'll
63223         assume ftruncate is universally available.
63224
63225         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63228
63229         2006-03-12  Jim Meyering  <jim@meyering.net>
63230
63231         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63232         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63233         * m4/same.m4 (gl_SAME): Likewise.
63234         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63235
63236         2006-03-11  Eric Blake  <ebb9@byu.net>
63237
63238         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63239         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63240         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63241         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63242
63243 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63244
63245         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63246         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63247         reported by Mark D. Baushke, one in
63248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63249
63250         Merge from coreutils.
63251
63252         * lib/.cppi-disable: Add stdint_.h.
63253         * lib/.cvsignore: Add stdint.h.
63254
63255         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63258         both double and long double versions.
63259         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63260         * lib/xstrtold.c: New file.
63261         * lib/xstrtod.h (xstrtold): New decl.
63262
63263         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * lib/filemode.c (setst): Remove.
63266         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63267         (arguably) clearer, and the generated code is a bit smaller on my
63268         Debian GNU/Linux stable x86 host.
63269
63270         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63271
63272         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63273         Assume that filemode.h includes sys/types.h and sys/stat.h.
63274         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63275         (ftypelet): Reorder to put common cases first, for efficiency.
63276         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63277         to do 'M'.
63278         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63279         of 10, for compatibility with FreeBSD.  All callers changed.
63280         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63281         types that can't be deduced solely from st_mode.  First arg is now a
63282         const pointer.
63283         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63284         (strmode): Renamed from mode_string.
63285         (filemodestring): New decl.
63286         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63287         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63288         needed.
63289         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63290
63291         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63294         fsusage.h now does that.  Include fsusage.h first, to test interface.
63295         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63296         at most one method (the old code could have generated decls that
63297         didn't conform to C89, not that this was ever exercised).
63298         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63299
63300         2006-03-19  Jim Meyering  <jim@meyering.net>
63301
63302         Work even in a chroot where d_ino values for entries in "/"
63303         don't match the stat.st_ino values for the same names.
63304         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63305         number, iterate through all entries again, using lstat instead.
63306         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63307         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63308
63309         * lib/getcwd.c (__getcwd): Clarify a comment.
63310         Use memcpy in place of a call to strcpy.
63311
63312         2006-03-12  Jim Meyering  <jim@meyering.net>
63313
63314         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63315         matches that of the current directory (which we're about to chdir ".."
63316         out of), then save the dev-ino of the parent, instead.
63317
63318         * lib/same-inode.h (SAME_INODE): New file/macro.
63319         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63320         Include "same-inode.h", instead.
63321         * lib/same.c: Likewise.
63322         * lib/cycle-check.h: Include "same-inode.h".
63323         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63324         * lib/cycle-check.c (SAME_INODE): Remove definition.
63325         * lib/root-dev-ino.h: Include "same-inode.h".
63326
63327         2006-03-11  Eric Blake  <ebb9@byu.net>
63328
63329         * lib/same.c (same_name): s/base_name/last_component/
63330         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63331         * lib/filenamecat.c (file_name_concat): Likewise.
63332
63333         2006-03-11  Eric Blake  <ebb9@byu.net>,
63334                     Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63337         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63338         drive prefix.
63339         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63340         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63341         (last_component): New method.
63342         * lib/dirname.c (dir_len): Determine when drive letters need a
63343         subsequent slash.  Preserve // when it is special.
63344         (dir_name): Don't append dot when drive letter is absolute.
63345         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63346         * lib/basename.c (base_name): New semantics - malloc the result.
63347         Preserve // when it is special.  Preserve relative files that look
63348         like drive letters.
63349         (base_len): Preserve // when it is special.
63350         (last_component): New method, similar to old base_name semantics.
63351         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63352         base_name.  Strip redundant slashes from ///.
63353
63354 2006-07-03  Jim Meyering  <jim@meyering.net>
63355
63356         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63357         macro is used before the first cycle_check call.
63358
63359 2006-07-03  Eric Blake  <ebb9@byu.net>
63360
63361         * modules/dirname (Depends-on): Add xstrndup.
63362
63363 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63366         test cases, so that config.log is a bit easier to follow.
63367
63368 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63371         both are 64 bits, since this seems to be the tradition, and this
63372         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63373         we ever run into a host that prefers long long to long in this
63374         case, we'll need another configure-time test.  Problem reported by
63375         Jim Meyering.
63376
63377 2006-07-02  Eric Blake  <ebb9@byu.net>
63378
63379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63380
63381 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * modules/inttypes (Depends-on): No longer depends on stdint.
63384         * modules/stdint (Description): Say more about assumptions.
63385         Say that the fast types might differ.  Say macros are used.
63386         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63387         (Makefile.am): Revise list of substituted symbols to match
63388         new stdint.m4.
63389         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63390         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63391         * tests/test-stdint.c (verify_same_types)
63392         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63393         the code conforms to C99/C89.
63394         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63395         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63396
63397 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63400         but fix a bug, by requiring at least 64 bits.
63401         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63402         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63403         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63404         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63405
63406         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63407         changes.  Make 2.59 a prerequisite.  Check and substitute for
63408         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63409         inttypes.h.  Do not use special include files; just use the
63410         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63411         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63412         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63413         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63414         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63415         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63416         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63417         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63418         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63419         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63420         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63421         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63422         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63423         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63424         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63425         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63426         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63427         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63428         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63429         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63430         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63431         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63432         not check for things that C99 does not require, e.g., int8_t.  If
63433         a test isn't needed unless <stdint.h> isn't working, and is
63434         unlikely to be needed for any other reason, then don't do it
63435         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63436         size_t, since we assume C89 freestanding at least.  Do not check
63437         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63438         the right thing even if the types are not defined.  Instead use:
63439         (gl_STDINT_TYPE_PROPERTIES): New macro.
63440         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63441         testing whether <sys/types.h> clashes, as Autoconf does this for
63442         us now.  All uses removed.
63443         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63444         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63445         (gl_CHECK_TYPE_SAME):
63446         Remove; no longer needed.
63447         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63448         exists, since we'll return 0 anyway in that case.
63449         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63450
63451 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63454         possible collision with system files.
63455         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63456         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63457         WCHAR_MIN and WCHAR_MAX in this case.
63458         (<stddef.h>): Do not include; no longer needed.
63459         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63460         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63461         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63462         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63463         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63464         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63465         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63466         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63467         !defined(__c99))]: Include in this case too, since it's harmless
63468         now.
63469         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63470         dangerous to do so.
63471         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63472         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63473         (_STDINT_MIN, _STDINT_MAX): New macros.
63474         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63475         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63476         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63477         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63478         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63479         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63480         macros, not typedefs; this simplifies things quite a bit.
63481         Use long int for all types narrower than int64_t.
63482         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63483         Define in terms of long long int or int64_t or long int,
63484         not int64_t or int32_t.  This saves some compile-time testing.
63485         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63486         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63487         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63488         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63489         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63490         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63491         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63492         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63493         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63494         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63495         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63496         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63497         undef any previous version and define our own version, for
63498         simplicity and consistency with the new macros for types.
63499         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63500         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63501         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63502         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63503         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63504         @WINT_T_SUFFIX@ to keep things simple here.
63505         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63506         Simplify by assuming typical 8/16/32/64 host, since we're
63507         already doing that elsewhere anyway.
63508         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63509         and assume long long int is 64 bits if available.  This
63510         speeds up 'configure'.
63511
63512 2006-07-01  Eric Blake  <ebb9@byu.net>
63513
63514         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63515         Reported by Andreas Buening.
63516
63517 2006-07-01  Eric Blake  <ebb9@byu.net>
63518
63519         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63520
63521 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63522
63523         * lib/getaddrinfo.c: fixed typo
63524
63525 2006-06-29  Jim Meyering  <jim@meyering.net>
63526
63527         * modules/strftime (Maintainer): Add my name, since with the
63528         FPRINTFTIME changes strftime.c has forked from glibc.
63529
63530 2006-06-29  Eric Blake  <ebb9@byu.net>
63531
63532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63533
63534 2006-06-29  Eric Blake  <ebb9@byu.net>
63535
63536         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63537
63538 2006-06-29  Eric Blake  <ebb9@byu.net>
63539
63540         * lib/stat_.h: New file.
63541
63542 2006-06-29  Eric Blake  <ebb9@byu.net>
63543
63544         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63545         unused static function.
63546
63547 2006-06-29  Eric Blake  <ebb9@byu.net>
63548
63549         * doc/functions.texi (Function Portability): Document missing lstat
63550         on mingw.
63551
63552 2006-06-29  Eric Blake  <ebb9@byu.net>
63553
63554         * MODULES.html.sh: Add sys_stat.
63555         * modules/sys_stat: New module.
63556         * modules/mkstemp (Depends-on): Add sys_stat.
63557
63558 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63559
63560         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63561
63562 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63563
63564         * m4/c-bs-a.m4: Removed.
63565
63566 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63567
63568         * lib/strftime.c: Assume strftime() exists.
63569
63570 2006-06-29  Derek Price  <derek@ximbiot.com>
63571
63572         * modules/c-bs-a: Removed - \a is C89.
63573         * MODULES.html.sh: Remove c-bs-a.
63574
63575 2006-06-29  Bruno Haible  <bruno@clisp.org>
63576
63577         * modules/wcwidth (License): Change to LGPL.
63578
63579 2006-06-28  Simon Josefsson  <jas@extundo.com>
63580
63581         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63582         on _WIN32.
63583
63584         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63585         getnameinfo.
63586
63587 2006-06-28  Simon Josefsson  <jas@extundo.com>
63588
63589         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63590
63591 2006-06-28  Simon Josefsson  <jas@extundo.com>
63592
63593         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63594         functions there.  It will succeed on Windows XP, but on Windows
63595         2000 and (presumably) earlier, it will fail, and use the internal
63596         re-implementation.
63597         (use_win32_p): New function.
63598         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63599         Support AI_NUMERICSERV to disable getservbyname.
63600         (getnameinfo): New function, only supports
63601         NI_NUMERICHOST|NI_NUMERICSERV for now.
63602
63603         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63604         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63605         getnameinfo.
63606
63607 2006-06-28  Eric Blake  <ebb9@byu.net>
63608
63609         * modules/wcwidth: New file.
63610         * modules/mbchar (Depends-on): Add wcwidth.
63611         * modules/mbswidth (Depends-on): Add wcwidth.
63612         * MODULES.html.sh: Add wcwidth.
63613
63614 2006-06-28  Eric Blake  <ebb9@byu.net>
63615
63616         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63618
63619 2006-06-28  Eric Blake  <ebb9@byu.net>
63620
63621         * lib/xvasprintf.h: Fix comments.
63622
63623 2006-06-28  Eric Blake  <ebb9@byu.net>
63624
63625         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63626         * lib/mbswidth.c (wcwidth): Move from here...
63627         * lib/wcwidth.h: ...to this new file.
63628
63629 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63630
63631         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63632
63633         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63634         it's obsolete.
63635         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63636
63637 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63638
63639         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63640         Autoconf 2.60 says this stuff was obsolete.
63641
63642 2006-06-28  Bruno Haible  <bruno@clisp.org>
63643
63644         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63645
63646 2006-06-28  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63649         gt_TYPE_WCHAR_T.
63650
63651 2006-06-28  Bruno Haible  <bruno@clisp.org>
63652
63653         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63654         declaration for wcwidth.
63655         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63656
63657 2006-06-28  Bruno Haible  <bruno@clisp.org>
63658
63659         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63660         (mkdir): Define using _mkdir.
63661
63662 2006-06-28  Bruno Haible  <bruno@clisp.org>
63663
63664         * lib/getaddrinfo.h: Fix POSIX URL.
63665         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63666         _WIN32.
63667         (use_win32_p): Make static.
63668         (getaddrinfo): Reject service name if it is empty or does not consist
63669         solely of decimal digits, or if its value is > 65535.
63670         (getnameinfo): Remove useless casts.
63671
63672 2006-06-27  Simon Josefsson  <jas@extundo.com>
63673
63674         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63675         Eggert and Martin Lambers.
63676
63677 2006-06-27  Simon Josefsson  <jas@extundo.com>
63678
63679         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63680         Eggert and Martin Lambers.
63681
63682 2006-06-27  Bruno Haible  <bruno@clisp.org>
63683
63684         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63685         result to 0, not to empty.
63686         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63687
63688 2006-06-27  Bruno Haible  <bruno@clisp.org>
63689
63690         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63691
63692 2006-06-26  Simon Josefsson  <jas@extundo.com>
63693
63694         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63695         present.
63696
63697 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63700         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63702
63703 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63704
63705         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63706
63707 2006-06-26  Bruno Haible  <bruno@clisp.org>
63708
63709         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63710
63711 2006-06-26  Bruno Haible  <bruno@clisp.org>
63712
63713         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63714
63715 2006-06-26  Bruno Haible  <bruno@clisp.org>
63716
63717         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63718         SGI C compiler in pre-C99 mode.
63719         Suggested by Mark D. Baushke and Larry Jones.
63720
63721 2006-06-26  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63724         WCHAR_MAX.
63725         Reported by Mark D. Baushke and Larry Jones.
63726
63727 2006-06-26  Bruno Haible  <bruno@clisp.org>
63728
63729         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63730         in pre-C99 mode.
63731         Suggested by Mark D. Baushke and Larry Jones.
63732
63733 2006-06-23  Simon Josefsson  <jas@extundo.com>
63734             Bruno Haible  <bruno@clisp.org>
63735
63736         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63737         Emit mostlyclean-local rule.
63738         (func_emit_tests_Makefile_am): Likewise.
63739         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63740
63741 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63742
63743         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63744
63745 2006-06-23  Bruno Haible  <bruno@clisp.org>
63746
63747         * tests/test-stdint.c: Update to match ISO C 99 Technical
63748         Corrigendum 1.
63749
63750 2006-06-23  Bruno Haible  <bruno@clisp.org>
63751
63752         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63753
63754 2006-06-23  Bruno Haible  <bruno@clisp.org>
63755
63756         * lib/stdint_.h: Treat IRIX like OpenBSD.
63757
63758 2006-06-23  Bruno Haible  <bruno@clisp.org>
63759
63760         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63761         ISO C 99 Technical Corrigendum 1.
63762
63763 2006-06-22  Simon Josefsson  <jas@extundo.com>
63764
63765         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63766         MinGW.
63767
63768 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63769
63770         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63771         needed.  Some compiler complained about some of them.  Problem reported
63772         by Larry Jones in
63773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63774
63775 2006-06-21  Simon Josefsson  <jas@extundo.com>
63776
63777         * tests/test-getaddrinfo.c: New file.
63778
63779         * modules/getaddrinfo-tests: New file.
63780
63781         * MODULES.html.sh: Add inet_pton.
63782
63783         * modules/inet_pton: New file.
63784
63785 2006-06-21  Simon Josefsson  <jas@extundo.com>
63786
63787         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63788         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63789         of using the (limited) gnulib implementation on Windows XP.
63790
63791         * m4/inet_pton.m4: New file.
63792
63793 2006-06-21  Simon Josefsson  <jas@extundo.com>
63794
63795         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63796         variable.
63797
63798         * lib/socket_.h: Don't define WINVER.
63799
63800         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63801         slightly modified to work in gnulib.
63802
63803 2006-06-21  Simon Josefsson  <jas@extundo.com>
63804
63805         * doc/gnulib.texi (Windows sockets): Add.
63806
63807 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         * lib/read-file.c (fread_file): Start with buffer allocation of
63810         0 bytes rather than 1 byte; this simplifies the code.
63811         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63812         code to free buffer and save/restore errno.
63813         (internal_read_file): Remove unused local.
63814
63815 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63818         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63819         Problem reported by Denis Excoffier in
63820         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63821
63822 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63823
63824         * modules/sys_socket, modules/socklen: Include sys/types since
63825         FreeBSD 4.x's sys/socket.h needs it.
63826
63827 2006-06-19  Simon Josefsson  <jas@extundo.com>
63828
63829         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63830
63831 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63832
63833         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63834
63835 2006-06-19  Bruno Haible  <bruno@clisp.org>
63836
63837         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63838         and FULL_PATH_INTTYPES_H in angle brackets.
63839         Reported by Mark D. Baushke <mdb@gnu.org>.
63840
63841 2006-06-17  Eric Blake  <ebb9@byu.net>
63842
63843         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63844         errno.
63845
63846 2006-06-17  Bruno Haible  <bruno@clisp.org>
63847
63848         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63849         <sys/inttypes.h>.
63850
63851 2006-06-17  Bruno Haible  <bruno@clisp.org>
63852
63853         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63854         whether errno is declared. Assume <errno.h> declares errno.
63855
63856 2006-06-17  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63859
63860 2006-06-17  Bruno Haible  <bruno@clisp.org>
63861
63862         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63863         problem on Solaris 2.5.1.
63864
63865 2006-06-16  Eric Blake  <ebb9@byu.net>
63866
63867         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63868         * lib/unicodeio.c [!defined errno]: Likewise.
63869         * lib/strtol.c [!defined errno]: Likewise.
63870         * lib/strtod.c [!defined errno]: Likewise.
63871
63872 2006-06-15  Eric Blake  <ebb9@byu.net>
63873
63874         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63875
63876 2006-06-15  Eric Blake  <ebb9@byu.net>
63877
63878         * config/srclist.txt (ssize_t.m4): Lose sync.
63879
63880 2006-06-15  Bruno Haible  <bruno@clisp.org>
63881
63882         * modules/stdint (Files): Include m4/full-header-path.m4,
63883         m4/size_max.m4, m4/wchar_t.m4.
63884         (Makefile.am): Many more substitutions.
63885         * modules/stdint-tests: New file.
63886         * tests/test-stdint.c: New file.
63887
63888 2006-06-15  Bruno Haible  <bruno@clisp.org>
63889
63890         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63891         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63892         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63893         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63894         gl_CHECK_TYPE_SAME): New macros.
63895
63896 2006-06-15  Bruno Haible  <bruno@clisp.org>
63897
63898         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63899
63900 2006-06-15  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/stdint_.h: Rewritten to be fully auto-configured.
63903         Fixes bug on HP-UX/IA64.
63904
63905 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63906
63907         * lib/getdate.y (__attribute__): Don't define if already defined.
63908         Problem reported by Larry Jones.
63909         * lib/utimens.c (__attribute__): Likewise.
63910
63911 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63914         reported by Andreas Schwab.
63915
63916 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63917             Bruno Haible  <bruno@clisp.org>
63918
63919         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63920         check for the declaration of strnlen and a run test that exposes the
63921         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63922         rpl_strndup.
63923
63924 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63925             Bruno Haible  <bruno@clisp.org>
63926
63927         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63928
63929 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63930
63931         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63932         compile test, for Tru64 4.0D.
63933
63934 2006-05-28  Karl Berry  <karl@gnu.org>
63935
63936         * config/srclist.txt (printf-args.c): lose sync.
63937
63938 2006-05-26  Martin Lambers  <marlam@marlam.de>
63939
63940         * lib/getpass.c: Updates the test for the native W32 API, and adds
63941         missing includes, thus fixing compilation warnings.
63942
63943 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63944
63945         * lib/exclude.c (exclude_fnmatch): New function.
63946         (excluded_file_name): Call exclude_fnmatch.
63947         * lib/exclude.h (excluded_file_name): New prototype
63948
63949 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * lib/tempname.c (small_open, large_open): New macros.
63952         (__open, __open64) [!_LIBC]: Remove.
63953         (__gen_tempname): Use small_open and large_open instead of __open
63954         and __open64.  This fixes a portability bug on HP-UX 11.11i
63955         reported by Simon Wing-Tang in
63956         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63957
63958 2006-05-24  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63961         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63962         Reported by Thorsten Maerz <torte@netztorte.de> via
63963         Aaron Stone <aaron@serendipity.cx>.
63964
63965 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63966
63967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63968         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63969         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63970         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63971         not really conditional on the cache.
63972         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63973
63974 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63977         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63978         (my_usleep): Don't mishandle maximum value.
63979
63980 2006-05-19  Jim Meyering  <jim@meyering.net>
63981
63982         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63983
63984 2006-05-17  Bruno Haible  <bruno@clisp.org>
63985
63986         Cygwin portability.
63987         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63988
63989 2006-05-17  Bruno Haible  <bruno@clisp.org>
63990
63991         * lib/stdint_.h: Fix recognition of Cygwin.
63992
63993 2006-05-15  Bruno Haible  <bruno@clisp.org>
63994
63995         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63996         on libtool patch by Ralf Wildenhues.
63997
63998 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63999
64000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64001         test for C99 conformance; (bool) 0.5 is an integer constant
64002         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64003         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64004
64005 2006-05-11  Simon Josefsson  <jas@extundo.com>
64006
64007         * m4/xvasprintf.m4: Fix obvious typo.
64008
64009 2006-05-11  Jim Meyering  <jim@meyering.net>
64010
64011         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64012         James Lemley.
64013
64014 2006-05-10  Simon Josefsson  <jas@extundo.com>
64015
64016         * lib/md4.c: Typo fix, update copyright years.
64017         (K1, K2): Don't use L because it turn computations into 64-bit on
64018         64-bit platforms.
64019
64020 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64023         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64024         unwanted sign propagation, e.g., on hosts with 64-bit int.
64025         There still are some problems with reeelly weird theoretical hosts
64026         (e.g., 33-bit int) but it's not worth worrying about now.
64027         * lib/sha1.c (rol): Likewise.
64028         (K1, K2, K3, K4): Remove unnecessary L suffix.
64029
64030 2006-05-10  Bruno Haible  <bruno@clisp.org>
64031
64032         * lib/des.c: Cast to avoid warnings.
64033
64034 2006-05-09  Bruno Haible  <bruno@clisp.org>
64035
64036         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64037         (Depends-on): Depend also on xsize, stdarg.
64038         (configure.ac): Add gl_XVASPRINTF.
64039
64040 2006-05-09  Bruno Haible  <bruno@clisp.org>
64041
64042         * m4/xvasprintf.m4: New file.
64043
64044 2006-05-09  Bruno Haible  <bruno@clisp.org>
64045
64046         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64047         (EOVERFLOW): Define fallback value.
64048         (xstrcat): New function.
64049         (xvasprintf): Recognize the special case of a string concatenation.
64050
64051 2006-05-08  Eric Blake  <ebb9@byu.net>
64052
64053         * gnulib-tool (func_version): Base copyright year on CVS date.
64054         (func_emit_copyright_notice): New function.
64055         (func_emit_lib_Makefile_am): Use it.
64056         (func_emit_tests_Makefile_am): Likewise.
64057         (func_import): Likewise.
64058
64059 2006-05-08  Bruno Haible  <bruno@clisp.org>
64060
64061         * modules/stdarg: New file.
64062         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64063
64064 2006-05-08  Bruno Haible  <bruno@clisp.org>
64065
64066         * m4/stdarg.m4: New file, from GNU gettext.
64067
64068 2006-05-08  Bruno Haible  <bruno@clisp.org>
64069
64070         * config/srclist.txt (build-aux/config.rpath): different from latest
64071         release.
64072
64073 2006-05-08  Bruno Haible  <bruno@clisp.org>
64074
64075         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64076
64077 2006-05-05  Jim Meyering  <jim@meyering.net>
64078
64079         * m4/warning.m4: New file, derived from bison's file by the same name.
64080
64081 2006-05-03  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/stdint_.h: Shorter URL.
64084         * lib/inttypes.h: Likewise.
64085
64086 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64089
64090 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * lib/verify.h: Document the internals better.  Most of this change
64093         was written by Bruno Haible.
64094
64095 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64096
64097         * doc/verify.texi: New file, partly based on a proposal by
64098         Bruno Haible.
64099
64100 2006-05-02  Bruno Haible  <bruno@clisp.org>
64101
64102         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64103         test from here...
64104         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64105
64106 2006-04-29  Bruno Haible  <bruno@clisp.org>
64107
64108         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64109         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64110
64111 2006-04-29  Bruno Haible  <bruno@clisp.org>
64112
64113         * gnulib-tool: Make --update option actually work.
64114
64115 2006-04-29  Bruno Haible  <bruno@clisp.org>
64116
64117         * doc/gcd.texi: New file.
64118         * doc/gnulib.texi: Include it.
64119
64120 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * lib/getdate.y (get_date): When adding relative date, start with the
64123         initial time, not with the result of the first mktime call.
64124
64125 2006-04-25  Bruno Haible  <bruno@clisp.org>
64126
64127         * gnulib-tool (func_import): Output the include directives in three
64128         blocks, sorted separately.
64129         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64130
64131 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64132
64133         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64134         to define main with arguments, for C++.  Reported by Eric Blake.
64135         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64136         Prefer 'int main ()' to 'int main (void)', for C++.
64137         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64138         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64139         for 'main', for C99 and C++.
64140
64141 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64144         Don't assume that exit status -1 is valid.
64145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64146         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64147         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64148         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64149         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64150         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64151         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64152         functions can be used without declaring them, or that you can
64153         exit with status -1.
64154         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64155
64156 2006-04-24  Karl Berry  <karl@gnu.org>
64157
64158         * config/srclist.txt (longdouble.m4): sync lost.
64159
64160 2006-04-24  Eric Blake  <ebb9@byu.net>
64161
64162         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64163
64164 2006-04-24  Bruno Haible  <bruno@clisp.org>
64165
64166         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64167         poll() implementation in AIX.
64168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64169
64170 2006-04-24  Bruno Haible  <bruno@clisp.org>
64171
64172         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64173         assigned exactly once.
64174
64175 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64176             Bruno Haible  <bruno@clisp.org>
64177
64178         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64179         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64180         for AM_CPPFLAGS.
64181
64182 2006-04-23  Bruno Haible  <bruno@clisp.org>
64183
64184         * modules/copy-file: Depend on unistd.
64185         * modules/execute: Likewise.
64186         * modules/fatal-signal: Likewise.
64187         * modules/findprog: Likewise.
64188         * modules/mkdtemp : Likewise.
64189         * modules/pipe: Likewise.
64190         * modules/wait-process: Likewise.
64191
64192 2006-04-23  Bruno Haible  <bruno@clisp.org>
64193
64194         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64195         condition was already detected.
64196         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64197
64198 2006-04-23  Bruno Haible  <bruno@clisp.org>
64199
64200         * lib/copy-file.c: Include <unistd.h> unconditionally.
64201         * lib/execute.c: Likewise.
64202         * lib/fatal-signal.c: Likewise.
64203         * lib/findprog.c: Likewise.
64204         * lib/mkdtemp.c: Likewise.
64205         * lib/pipe.h: Likewise.
64206         * lib/pipe.c: Likewise.
64207         * lib/wait-process.h: Likewise.
64208
64209 2006-04-23  Bruno Haible  <bruno@clisp.org>
64210
64211         * gnulib-tool (func_usage): Fix --import description. Document
64212         --update.
64213         (func_import): Create temporary file in a temporary directory, if
64214         --dry-run is specified. Silence errors from 'grep' when there are no
64215         m4 files in $m4dir.
64216         (func_create_testdir): Silence errors from 'grep' when there are no
64217         m4 files in $m4dir.
64218         Reported by Karl Berry <karl@freefriends.org>.
64219
64220 2006-04-20  Bruno Haible  <bruno@clisp.org>
64221
64222         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64223         one argument, so that the code will be portable to Autoconf 2.60.
64224         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64225         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64226         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64227
64228 2006-04-19  Derek Price  <derek@ximbiot.com>
64229             Eric Blake  <ebb9@byu.net>
64230
64231         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64232         rather than "/full/path.h".  Update comment to match.  Shorten &
64233         generalize m4_translit call via AS_TR_CPP.
64234
64235 2006-04-19  Derek Price  <derek@ximbiot.com>
64236             Eric Blake  <ebb9@byu.net>
64237
64238         * lib/inttypes.h: Correct grammar in comment.
64239
64240 2006-04-18  Derek Price  <derek@ximbiot.com>
64241             Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * modules/inttypes: New file.
64244         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64245
64246 2006-04-18  Derek Price  <derek@ximbiot.com>
64247             Paul Eggert  <eggert@cs.ucla.edu>
64248
64249         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64250         New files.
64251
64252 2006-04-18  Derek Price  <derek@ximbiot.com>
64253             Paul Eggert  <eggert@cs.ucla.edu>
64254
64255         * lib/inttypes.h: New file.
64256         * lib/strtoimax.c: Assume <inttypes.h>.
64257
64258 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64259
64260         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64261         isn't mounted.  Problem reported by Kir Kolyshkin.
64262
64263 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64264
64265         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64266         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64267         Derek R. Price.
64268         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64269         implementation.
64270
64271 2006-04-12  Eric Blake  <ebb9@byu.net>
64272
64273         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64274         is now done automatically by the corresponding Autoconf macro.
64275
64276 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64279         time_r.h.
64280
64281 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64282
64283         Merge regex changes from libc, removing some of our
64284         POSIX-conformance changes that were rejected and redoing them in a
64285         less-intrusive way.
64286
64287         * lib/regcomp.c (re_compile_internal, init_dfa):
64288         Length arg is now size_t, not Idx.  All uses changed.
64289         (peek_token): Forward decl now says internal_function.
64290         (__re_error_msgid, __re_error_msgid_idx):
64291         Now static rather than extern with attribute_hidden.
64292         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64293         For some reason libc prefers K&R style defns for external functions.
64294         (regerror) [!defined _LIBC]: Likewise.
64295         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64296         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64297         (build_range_exp, build_collating_symbol):
64298         Use K&R-style defn.
64299         (re_compile_fastmap): Use '\0' to memset, not 0.
64300         (utf8_sb_map): Make the calculations more obvious.
64301         (init_dfa, parse_bracket_exp, build_charclass_op):
64302         Call calloc and cast result, as glibc does.
64303         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64304         (build_range_exp, build_collating_symbol):
64305         Now internal functions.
64306
64307         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64308
64309         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64310         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64311         Don't depend on VMS; depend on __VMS instead, for POSIX
64312         namespace cleanness.
64313         (regoff_t): Define to ssize_t, not long int.
64314
64315         Remove the REG_ macros named below.  Instead, make the old names
64316         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64317         __USE_GNU_REGEX.
64318         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64319         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64320         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64321         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64322         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64323         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64324         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64325         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64326         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64327         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64328         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64329         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64330         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64331         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64332         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64333         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64334         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64335         (REG_NREGS):
64336         Remove.  All uses replaced by the old RE_* names.
64337         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64338         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64339         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64340         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64341         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64342         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64343         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64344         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64345         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64346         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64347         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64348         Don't bother having these macros be independent of each others'
64349         values, since they no longer exist in the POSIX name space.
64350
64351         Rename the following member names back to their old names,
64352         unless !__USE_GNU_REGEX.  All uses changed back.
64353         (buffer): Renamed from re_buffer.
64354         (allocated): Renamed from re_allocated.
64355         (used): Renamed from re_used.
64356         (syntax): Renamed from re_syntax.
64357         (fastmap): Renamed from re_fastmap.
64358         (translate): Renamed from re_translate.
64359         (can_be_null): Renamed from re_can_be_null.
64360         (regs_allocated): Renamed from re_regs_allocated.
64361         (fastmap_accurate): Renamed from re_fastmap_accurate.
64362         (no_sub): Renamed from re_no_sub.
64363         (not_bol): Renamed from re_not_bol.
64364         (not_eol): Renamed from re_not_eol.
64365         (newline_anchor): Renamed from re_newline_anchor.
64366         (num_regs): Renamed from rm_num_regs.
64367         (start): Renamed from rm_start.
64368         (end): Renamed from rm_end.
64369
64370         (free_state): Move up a bit.
64371
64372         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64373         #define to be empty.
64374         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64375         when that is what is intended.
64376         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64377         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64378         (MAX): New macro.
64379         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64380         All uses changed back to re_malloc, etc.  It's now the caller's
64381         responsibility to check for overflow; all callers changed.
64382         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64383         (re_x2nrealloc): Remove.
64384         (free_state): Remove decl.
64385
64386         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64387         (re_set_registers, re_exec):
64388         Use K&R-style defn.
64389
64390         2006-01-31  Roland McGrath  <roland@redhat.com>
64391
64392         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64393         Reported by Mike Frysinger <vapier@gentoo.org>.
64394
64395         2006-01-15  Andreas Jaeger  <aj@suse.de>
64396
64397         [BZ #1950]
64398         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64399         build_wcs_upper_buffer change.
64400         (build_wcs_upper_buffer): Change return type.
64401
64402         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64403
64404         * lib/regex_internal.h: Include <stdint.h> if available.
64405
64406         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64407
64408         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64409
64410         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64411
64412         * lib/regcomp.c: Adjust for changed secondary hash function.
64413
64414         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64415
64416         * lib/regex.h: Pretty printing.
64417         Clean up namespace a bit.
64418
64419         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64420
64421         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64422         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64423
64424         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64425                     Ulrich Drepper  <drepper@redhat.com>
64426
64427         [BZ #1302]
64428         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64429         changed.
64430         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64431
64432         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64433
64434         [BZ #281]
64435         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64436         * lib/regcomp.c: Remove unnecessary uses of
64437         unsigned RE_TRANSLATE_TYPE.
64438         * lib/regex_internal.h: Likewise.
64439         * lib/regex_internal.c: Likewise.
64440         * lib/regexec.c: Likewise.
64441         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64442
64443         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64444
64445         * lib/regexec.c (find_recover_state): Remove unnecessary
64446         initialization.
64447         (transit_state_bkref): Make DFA a const pointer.
64448         (get_subexp): Likewise.
64449         (check_arrival): Likewise.
64450         (update_cur_sifted_state): Likewise.
64451         (re_search_internal): Likewise.
64452         (prune_impossible_nodes): Likewise.
64453         (acquire_init_state_context): Likewise.
64454         (proceed_next_node): Likewise.
64455         (set_regs): Likewise.
64456         (free_fail_stack_return): Likewise.
64457         (check_arrival_expand_ecl): Mark DFA parameter as const.
64458         (check_arrival_expand_ecl_sub): Likewise.
64459         (check_subexp_limits): Likewise.
64460         (sub_epsilon_src_nodes):  Likewise.
64461         (add_epsilon_src_nodes):  Likewise.
64462         (merge_state_array): Likewise.
64463         (update_regs): Likewise.
64464         (build_trtable): Likewise.
64465         (sift_states_backward): Mark MCTX parameter as const.
64466         (build_sifted_states): Likewise.
64467         (update_cur_sifted_state): Likewise.
64468         (sift_states_mkref): Likewise.
64469         (check_arrival_expand_ecl): Mark eclosure as const.
64470         (check_dst_limits_calc_pos_1): Likewise.
64471         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64472         pointer.
64473
64474         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64475
64476         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64477         (transit_state_sb): Likewise.
64478         (transit_state_mb): Likewise.
64479         (sift_states_iter_mb): Likewise.
64480         (check_arrival_add_next_nodes): Likewise.
64481         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64482         [_LIBC] (re_search_2_stub): Use mempcpy.
64483
64484         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64485         mbrtowc for very simple UTF-8 case.
64486
64487         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64488         a pointer-to-const.
64489         (re_acquire_state_context): Likewise.
64490         * lib/regex_internal.h: Adjust prototypes.
64491
64492         * lib/regex.c: Prevent using C++ compilers.
64493
64494         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64495         (re_acquire_state_context): Likewise.
64496
64497 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         * modules/regex (Depends-on): Add ssize_t.
64500
64501 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64504         translation table.
64505
64506 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64507
64508         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64509
64510 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64511             Bruno Haible  <bruno@clisp.org>
64512
64513         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64514         <sys/types.h> and <inttypes.h>.
64515
64516 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64517
64518         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64519         `__error_t_defined', so argp.h will not typedef the former.
64520
64521 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64522
64523         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64524         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64525         glibc names.  Even if glibc is changed to conform to POSIX, the
64526         traditional names will be available anyway, since regex depends on
64527         the extensions module.  Also, fix a longstanding typo in the
64528         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64529         reported by Emanuele Giaquinta.  Also, change sense of cached
64530         variable, so that the message makes sense.
64531
64532 2006-03-24  Simon Josefsson  <jas@extundo.com>
64533
64534         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64535         including some doc fixes.
64536         (base64_encode_alloc): Fix +1 bug on allocation failures.
64537
64538 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64539
64540         * lib/base64.c (base64_encode): Do not read past end of array with
64541         unsanitized input on systems with CHAR_BIT > 8.
64542
64543 2006-03-24  Eric Blake  <ebb9@byu.net>
64544
64545         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64546
64547 2006-03-22  Karl Berry  <karl@gnu.org>
64548
64549         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64550         * config/srclistvars.sh (COREUTILS): new var.
64551
64552 2006-03-17  Jim Meyering  <jim@meyering.net>
64553
64554         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64555         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64556
64557 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64560         no longer needs it.  Instead, check that regoff_t is as least
64561         as wide as ptrdiff_t.
64562
64563         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64564         so that our regex.h stays compatible with the installed regex.
64565         This is helpful for installers who configure --without-included-regex.
64566         Problem reported by Emanuele Giaquinta.
64567
64568 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64571         Typedef to long int, not to off_, as POSIX will likely change
64572         in that direction.
64573
64574 2006-03-15  Eric Blake  <ebb9@byu.net>
64575
64576         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64577
64578 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64579
64580         * lib/argp-help.c (validate_uparams): Fix typo
64581         * lib/argp-parse.c (argp_default_options): Consistently begin help
64582         messages with a lowercase letter.
64583
64584 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64585
64586         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64587         overrun buffers and shouldn't be used (much as gets shouldn't be
64588         used).
64589         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64590
64591 2006-03-08  Simon Josefsson  <jas@extundo.com>
64592
64593         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64594         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64595
64596 2006-03-08  Simon Josefsson  <jas@extundo.com>
64597
64598         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64599         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64600
64601 2006-03-08  Simon Josefsson  <jas@extundo.com>
64602
64603         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64604         signal that configure disabled the device.
64605
64606 2006-03-08  Simon Josefsson  <jas@extundo.com>
64607
64608         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64609         languages.
64610
64611 2006-03-07  Simon Josefsson  <jas@extundo.com>
64612
64613         * modules/getopt (Depends-on): Add unistd.
64614
64615         * modules/unistd: New file.
64616
64617 2006-03-07  Simon Josefsson  <jas@extundo.com>
64618
64619         * modules/gc-random: New file.
64620
64621 2006-03-07  Simon Josefsson  <jas@extundo.com>
64622
64623         * m4/unistd_h.m4: New file.
64624
64625 2006-03-07  Simon Josefsson  <jas@extundo.com>
64626
64627         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64628         test to be side-effect free by storing the result in the cache
64629         variable gl_cv_lib_readline, and moving the assignment of
64630         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64631         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64632
64633 2006-03-07  Simon Josefsson  <jas@extundo.com>
64634
64635         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64636         error on missing devices (the functions will return an error).
64637
64638         * m4/gc.m4: Move random stuff to gc-random.m4
64639
64640 2006-03-07  Simon Josefsson  <jas@extundo.com>
64641
64642         * lib/unistd_.h: New file.
64643
64644 2006-03-07  Simon Josefsson  <jas@extundo.com>
64645
64646         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64647
64648 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64651         Problem reported by Juan Manuel Guerrero.
64652
64653 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64656         the unistd module.
64657         * lib/getlogin_r.c: Likewise.
64658         * lib/getlogin_r.h: Likewise.
64659         * lib/glob.c: Likewise.
64660         * lib/pagealign_alloc.c: Likewise.
64661         * lib/unistd_.h: Remove; no longer needed.
64662
64663 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64664
64665         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64666         Add unistd.
64667         * modules/c-stack (Depends-on): Add unistd.
64668         * modules/getlogin_r: Likewise.
64669         * modules/glob: Likewise.
64670         * modules/pagealign_alloc: Likewise.
64671         * modules/unistd (Files): Remove lib/unistd_.h.
64672         (EXTRA_DIST): Remove.
64673         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64674         need unistd_.h.
64675         (MOSTLYCLEANFILES): Remove unistd.h-t.
64676
64677 2006-03-03  Simon Josefsson  <jas@extundo.com>
64678
64679         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64680
64681 2006-03-03  Simon Josefsson  <jas@extundo.com>
64682
64683         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64684         libidn and bison.
64685
64686 2006-03-03  Simon Josefsson  <jas@extundo.com>
64687
64688         * build-aux/maint.mk: Add indent target.
64689
64690 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64691
64692         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64693         our replacement poll.h in any case, to avoid a differing
64694         declaration from a system header.  Seen on AIX.
64695
64696 2006-03-01  Simon Josefsson  <jas@extundo.com>
64697
64698         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64699         <kasal@ucw.cz>.
64700
64701 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64702
64703         * modules/gettime (Depends-on): Add extensions module.
64704         * modules/nanosleep (Depends-on): Likewise.
64705         * modules/settime (Depends-on): Likewise.
64706
64707 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64710         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64711         pedantically.
64712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64713         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64714
64715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64716         not "==".  Reported by Ralf Wildenhues.
64717
64718 2006-03-01  Karl Berry  <karl@gnu.org>
64719
64720         * doc/Copyright/request-*: new files, synced from gnuorg.
64721
64722 2006-03-01  Karl Berry  <karl@gnu.org>
64723
64724         * config/srclist.txt (Copyright/*): new entries.
64725
64726 2006-02-28  Simon Josefsson  <jas@extundo.com>
64727
64728         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64729
64730 2006-02-27  Simon Josefsson  <jas@extundo.com>
64731
64732         * lib/base64.h: Indent #define's.  From Jim Meyering
64733         <jim@meyering.net>.
64734
64735 2006-02-27  Jim Meyering  <jim@meyering.net>
64736
64737         Revert the change of 2006-02-24, so these files can continue
64738         to be sync'd from gettext.
64739         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64740         of `config.h'.
64741
64742 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64743
64744         * modules/intprops: New file.
64745         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64746         Add intprops.
64747         * modules/getloadavg (Files): Remove lib/intprops.h.
64748         (Depends-on): Add intprops.
64749         * modules/human: Likewise.
64750         * modules/inttostr: Likewise.
64751         * modules/openat: Likewise.
64752         * modules/sig2str: Likewise.
64753         * modules/userspec: Likewise.
64754         * modules/utimecmp: Likewise.
64755         * modules/xnanosleep: Likewise.
64756         * modules/xstrtol: Likewise.
64757
64758 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64759
64760         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64761         * modules/lock-tests (TESTS): Use $(EXEEXT).
64762         * modules/tls-tests: Likewise.
64763         * modules/argp-tests: Likewise.
64764         (check_PROGRAMS): New var, replacing...
64765         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64766
64767 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64768
64769         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64770         `config.h'.
64771
64772 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64773
64774         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64775
64776 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64777
64778         Sync from coreutils.
64779         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64780         gl_CHDIR_SAFER.
64781
64782 2006-02-22  Jim Meyering  <jim@meyering.net>
64783
64784         Sync from coreutils.
64785         * m4/chdir-safer.m4: New file.
64786
64787 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64788
64789         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64790         AT_FDCWD exceeds INT_MAX.
64791         * lib/openat.h (AT_FDCWD): Likewise.
64792
64793 2006-02-17  Eric Blake  <address@hidden>
64794
64795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64796
64797 2006-02-16  Simon Josefsson  <jas@extundo.com>
64798
64799         * modules/getaddrinfo (Depends-on): Add sys_socket.
64800
64801 2006-02-15  Simon Josefsson  <jas@extundo.com>
64802
64803         * build-aux/maint.mk: Add dsyntax-check rule.
64804
64805 2006-02-15  Eric Blake  <ebb9@byu.net>
64806
64807         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64808         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64809         'present but cannot compile' warnings on cygwin.
64810         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64811         use ws2tcpip.h if sys/socket.h works.
64812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64813         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64814
64815 2006-02-14  Simon Josefsson  <jas@extundo.com>
64816
64817         * modules/maintainer-makefile (Files): Rename.
64818
64819         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64820         and (the local) Makefile.cfg to maint-cfg.mk.
64821
64822         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64823         to the latter.
64824
64825         * modules/maintainer-makefile: New module.
64826
64827         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64828         severaly stripped to make it possible to build it up from scratch
64829         with reliable tests.
64830
64831         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64832         fixes to permit overriding the default actions when configure and
64833         makefile are not available.
64834
64835 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64836
64837         Sync from coreutils.
64838         * modules/lstat (Depends-on): Don't depend on xalloc.
64839         (License): Change from GPL to LGPL, since this is now simply a
64840         replacement for a libc function.
64841
64842 2006-02-14  Jim Meyering  <jim@meyering.net>
64843
64844         Sync from coreutils.
64845
64846         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64847         failure on deficient systems, and simplify gnulib lgpl dependencies.
64848         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64849         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64850
64851         * lib/xalloc-die.c: Remove unused definition of N_.
64852
64853 2006-02-14  Jim Meyering  <jim@meyering.net>
64854
64855         Sync from coreutils.
64856         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64857         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64858         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64859         double-quote uses of that variable, to accommodate the rare case in
64860         which getmntent is available in none of the libraries checked.  This
64861         happens at least on FreeBSD 5.0.
64862
64863 2006-02-13  Simon Josefsson  <jas@extundo.com>
64864
64865         * gnulib-tool (Usage): Fix --import, from
64866         karl@freefriends.org (Karl Berry).
64867
64868 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64869
64870         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64871
64872 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64873
64874         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64875         "autoupdate" on 2005-12-12.
64876
64877 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64878
64879         * modules/closeout (Depends-on): Remove atexit.
64880
64881 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64882
64883         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64884         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64885
64886 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64889         __EXTENSIONS__ if this causes compilation to fail.  Problem
64890         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64891         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64892
64893 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64894
64895         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64896         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64897         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64898         All uses changed.
64899
64900 2006-01-26  Simon Josefsson  <jas@extundo.com>
64901
64902         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64903         prototype is visible on mingw32.
64904
64905         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64906         for mingw32.
64907
64908         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64909         mingw32).
64910
64911 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64912
64913         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64914         attempt to open for write; this always fails, at least on POSIX
64915         hosts.  This reinstates the 2006-01-09 change, which was
64916         inadvertently removed.
64917
64918 2006-01-26  Bruno Haible  <bruno@clisp.org>
64919
64920         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64921         Reported by Paul Eggert.
64922
64923 2006-01-26  Bruno Haible  <bruno@clisp.org>
64924             Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * lib/stdbool_.h (_Bool)
64927         [(! (defined __cplusplus || defined __BEOS__)
64928           && !defined __GNUC__
64929           && !(defined __HP_cc || defined __xlc__
64930                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64931                || defined __sgi))]:
64932         #define to signed char in these cases too; this simplifies
64933         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64934         etc., separately) and makes it more conservative.
64935
64936 2006-01-25  Simon Josefsson  <jas@extundo.com>
64937
64938         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64939         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64940         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64941
64942 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64943
64944         * lib/argp-namefrob.h: Bugfix. Remove stray #
64945
64946 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64947
64948         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64949         so that we test the test.
64950         Check for yet another HP-UX cc bug involving *bool |= bool.
64951
64952 2006-01-25  Karl Berry  <karl@gnu.org>
64953
64954         * config/srclist.txt (vasnprintf.c): sync lost.
64955
64956 2006-01-25  Jim Meyering  <jim@meyering.net>
64957
64958         Sync from the stable (b5) branch of coreutils:
64959
64960         * lib/fts.c (fts_children): Don't let close() clobber errno from
64961         failed fchdir().
64962
64963         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64964         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64965         a dangling symlink.  That can also happen at least for ELOOP.
64966         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64967         FYI, this bug predates the inclusion of fts.c in coreutils.
64968
64969         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64970         in their own block, so pre-c99 compilers don't object.
64971
64972         Avoid the double-free (first in fts_read, second in fts_close) that
64973         would occur when an `active' directory is made inaccessible (e.g.,
64974         via chmod a-x) during a traversal.
64975         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64976         before returning.  Reproduce this failure by
64977         mkdir -p a/b; cd a; chmod a-x . b
64978         Reported by Stavros Passas.
64979
64980 2006-01-25  Jim Meyering  <jim@meyering.net>
64981
64982         * lib/fileblocks.c: Remove more useless parentheses.
64983         * lib/readutmp.h: Likewise.
64984
64985 2006-01-25  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64988         warnings.
64989         Reported by Paul Eggert.
64990
64991 2006-01-25  Bruno Haible  <bruno@clisp.org>
64992
64993         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64994         rid of a trap command. For Solaris sh.
64995         Reported by Mark D. Baushke <mdb@gnu.org>.
64996
64997 2006-01-24  Simon Josefsson  <jas@extundo.com>
64998
64999         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65000         Bruno.
65001
65002 2006-01-24  Karl Berry  <karl@gnu.org>
65003
65004         * config/srclist.txt (argp-namefrob.h): sync lost.
65005
65006 2006-01-24  Jim Meyering  <jim@meyering.net>
65007
65008         * modules/openat (Files): Add lib/intprops.h.
65009         From Mark D. Baushke.
65010
65011 2006-01-24  Jim Meyering  <jim@meyering.net>
65012
65013         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65014         Reported by Mark D. Baushke.
65015
65016 2006-01-24  Jim Meyering  <jim@meyering.net>
65017
65018         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65019
65020 2006-01-24  Bruno Haible  <bruno@clisp.org>
65021
65022         * modules/strnlen (Maintainer): Change from glibc to all.
65023
65024 2006-01-24  Bruno Haible  <bruno@clisp.org>
65025
65026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65027         Patch by Paul Eggert.
65028
65029 2006-01-24  Bruno Haible  <bruno@clisp.org>
65030
65031         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65032         already has it.
65033         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65034         2005-11-26.
65035
65036         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65037         'signed char' to avoid problems with the built-in _Bool type.
65038         Reported by Paul Eggert on 2005-11-26.
65039
65040 2006-01-24  Bruno Haible  <bruno@clisp.org>
65041
65042         * gnulib-tool (func_import): Avoid constructing complicated sed
65043         expressions inside backquote.
65044         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65045
65046 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65047
65048         These changes imported from libc.
65049         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65050         test and two separate function calls.
65051         * lib/strndup.c (__strndup): Add libc_hidden_def.
65052
65053 2006-01-23  Simon Josefsson  <jas@extundo.com>
65054
65055         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65056         Remove the test_*_SOURCES variable: automake infers it by default.
65057         * modules/tls-tests: Likewise.
65058
65059 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         Work around porting bugs reported by Dieter in
65062         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65063         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65064         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65065         Include "getopt.h" first, to check interface.
65066         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65067         !HAVE_DECL_GETENV.
65068         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65069         (__strndup): Revert to K&R-style function dfns, the glibc style.
65070         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65071         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65072         Include strnlen.h first, to get prototype properly.
65073         (strnlen): Renamed from __strnlen.
65074         Remove weak alias.
65075
65076 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65077
65078         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65079
65080 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65081
65082         * config/srclist.txt: Adjust to reflect glibc reorganization.
65083         This affects only comments.
65084
65085 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65086
65087          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65088          Reported by Bruce Korb <bkorb@gnu.org>.
65089
65090 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65091
65092         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65093         to pacify gcc -Wswitch-default.
65094
65095 2006-01-22  Bruno Haible  <bruno@clisp.org>
65096
65097         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65098         temporary buffer for sprintf, take into account the precision also
65099         for 'd', 'i', 'u', 'o', 'x', 'X'.
65100
65101 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65102
65103         * modules/argp-tests: New module
65104         * tests/test-argp.c: New file
65105         * tests/test-argp-2.sh: New file
65106
65107 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65108
65109         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65110         (__argp_base_name): Removed
65111         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65112         typo.
65113         (__argp_base_name): Provide macro definition or extern declaration
65114         depending on the configuration
65115
65116 2006-01-20  Simon Josefsson  <jas@extundo.com>
65117
65118         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65119
65120 2006-01-20  Simon Josefsson  <jas@extundo.com>
65121
65122         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65123
65124 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65127         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65128         Suggested by Bruno Haible.
65129
65130 2006-01-20  Karl Berry  <karl@gnu.org>
65131
65132         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65133         until changes propagate, I guess.
65134
65135 2006-01-19  Simon Josefsson  <jas@extundo.com>
65136
65137         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65138
65139 2006-01-19  Simon Josefsson  <jas@extundo.com>
65140
65141         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65142
65143 2006-01-19  Simon Josefsson  <jas@extundo.com>
65144
65145         * gnulib-tool: Set check_PROGRAMS.
65146
65147         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65148         modules/des-tests, modules/gc-arcfour-tests,
65149         modules/gc-arctwo-tests, modules/gc-des-tests,
65150         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65151         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65152         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65153         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65154         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65155         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65156         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65157         test_*_SOURCES.
65158
65159 2006-01-18  Simon Josefsson  <jas@extundo.com>
65160
65161         * modules/socklen (Depends-on): Depend on sys_socket.
65162
65163 2006-01-18  Simon Josefsson  <jas@extundo.com>
65164
65165         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65166         modules/des-tests, modules/gc-arcfour-tests,
65167         modules/gc-arctwo-tests, modules/gc-des-tests,
65168         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65169         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65170         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65171         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65172         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65173         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65174         $(EXEEXT) to automake TESTS variable, for mingw32.
65175
65176 2006-01-17  Simon Josefsson  <jas@extundo.com>
65177
65178         * modules/socklen (Include): Need sys/socket.h.
65179
65180 2006-01-17  Bruno Haible  <bruno@clisp.org>
65181
65182         * modules/ssize_t (Include): Add <sys/types.h>.
65183
65184 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65187         it's not portable and it doesn't work with cross-compiles.
65188         Problem reported by Bruno Haible.  Fix missing-$ typo in
65189         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65190         -zignore from being used with Sun's C compiler.
65191
65192 2006-01-12  Simon Josefsson  <jas@extundo.com>
65193
65194         * lib/base64.c: Fix warning, reported by Bruno Haible
65195         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65196
65197 2006-01-12  Bruno Haible  <bruno@clisp.org>
65198
65199         * modules/ldd: New file.
65200         * build-aux/ldd.sh.in: New file.
65201         * MODULES.html.sh (Support for building libraries and executables): Add
65202         ldd.
65203
65204 2006-01-12  Bruno Haible  <bruno@clisp.org>
65205
65206         * m4/ldd.m4: New file.
65207
65208 2006-01-12  Bruno Haible  <bruno@clisp.org>
65209
65210         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65211         endless loop while replacing $auxdir with build-aux.
65212
65213 2006-01-11  Simon Josefsson  <jas@extundo.com>
65214
65215         * lib/stdint_.h (SIZE_MAX): Add missing (.
65216
65217 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65218
65219         Sync from coreutils.
65220         * lib/md5.c: Fix commentary typos.
65221         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65222         * lib/md5.h (__attribute__): Remove; unused.
65223         * lib/sha1.c: Fix commentary to match md5 better.
65224         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65225         so that we don't need to worry about alignment.  All uses changed.
65226         This merges the 2005-10-28 md5 change into sha1.
65227
65228 2006-01-11  Jim Meyering  <jim@meyering.net>
65229
65230         Sync from coreutils.
65231         * lib/md5.c (OP): Fix spacing.
65232
65233 2006-01-11  Bruno Haible  <bruno@clisp.org>
65234
65235         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65236         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65237         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65238
65239 2006-01-11  Bruno Haible  <bruno@clisp.org>
65240
65241         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65242         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65243         the "early" section as well.
65244
65245 2006-01-11  Bruno Haible  <bruno@clisp.org>
65246
65247         Avoid "ar: no archive members specified" error on MacOS X.
65248         * gnulib-tool (func_modules_add_dummy): New function.
65249         (func_import, func_create_testdir): Invoke it.
65250
65251 2006-01-11  Bruno Haible  <bruno@clisp.org>
65252
65253         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65254         with $auxdir in AC_CONFIG_FILES statements.
65255
65256 2006-01-11  Bruno Haible  <bruno@clisp.org>
65257
65258         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65259         Initialize also noinst_HEADERS to empty.
65260
65261 2006-01-11  Bruno Haible  <bruno@clisp.org>
65262
65263         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65264         variables.
65265         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65266         autoreconf.
65267
65268 2006-01-11  Bruno Haible  <bruno@clisp.org>
65269
65270         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65271         overridable by the user.
65272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65273
65274 2006-01-10  Simon Josefsson  <jas@extundo.com>
65275
65276         * modules/sys_socket: New file.
65277
65278 2006-01-10  Simon Josefsson  <jas@extundo.com>
65279
65280         * m4/sys_socket_h.m4: New file.
65281
65282 2006-01-10  Simon Josefsson  <jas@extundo.com>
65283
65284         * lib/socket_.h: New file.
65285
65286 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65287
65288         * modules/readutmp (Maintainer): Add myself.
65289
65290 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65293         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65294         People who are still concerned with buggy memcmp implementations
65295         can invoke gl_FUNC_MEMCMP themselves.
65296
65297 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65298
65299         * lib/regex_internal.h (BITSET_WORD_BITS):
65300         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65301         preprocessor mishandles large unsigned values as if they were signed.
65302         Problem reported by Claudio Fontana in
65303         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65304
65305 2006-01-10  Jim Meyering  <jim@meyering.net>
65306
65307         Avoid the double-free (first in fts_read, second in fts_close) that
65308         would occur when an `active' directory is made inaccessible (e.g.,
65309         via chmod a-x) during a traversal.
65310         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65311         before returning.  Reproduce this failure by
65312         mkdir -p a/b; cd a; chmod a-x . b
65313         Reported by Stavros Passas.
65314
65315         Sync from coreutils.
65316         * lib/sha1.c: Tweak grammar in a comment.
65317
65318 2006-01-10  Jim Meyering  <jim@meyering.net>
65319
65320         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65321         Patch by Joerg Sonnenberger.
65322
65323 2006-01-10  Bruno Haible  <bruno@clisp.org>
65324
65325         * modules/readutmp: Depend on module free.
65326         * modules/strtok_r: Depend on module restrict.
65327
65328 2006-01-10  Bruno Haible  <bruno@clisp.org>
65329
65330         * modules/gettext (configure.ac): Add an invocation of
65331         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65332
65333 2006-01-10  Bruno Haible  <bruno@clisp.org>
65334
65335         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65336         Reported by Werner Lemberg <wl@gnu.org>.
65337
65338 2006-01-10  Bruno Haible  <bruno@clisp.org>
65339
65340         * lib/localcharset.c: Update from GNU gettext.
65341
65342 2006-01-10  Bruno Haible  <bruno@clisp.org>
65343
65344         * lib/argp.h (__const): Remove macro. Use const instead.
65345         * lib/argp-fmtstream.h (__const): Likewise.
65346         * lib/glob_.h (__const): Remove macro.
65347         * lib/glob-libc.h: Use const instead of __const.
65348
65349 2006-01-10  Bruno Haible  <bruno@clisp.org>
65350
65351         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65352         variable.
65353         Needed to avoid an automake error regarding the 'gettext' module.
65354
65355 2006-01-09  Simon Josefsson  <jas@extundo.com>
65356
65357         * modules/inet_ntop (Depends-on): Add restrict.
65358
65359 2006-01-09  Simon Josefsson  <jas@extundo.com>
65360
65361         * modules/gc-rijndael-tests (License): Put under LGPL.
65362
65363         * modules/gc-des-tests (License): Likewise.
65364
65365         * modules/gc-arcfour-tests (License): Likewise.
65366
65367         * modules/gc-arctwo-tests (License): Likewise.
65368
65369         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65370
65371         * modules/gc-hmac-sha1-tests (Files): Likewise.
65372
65373         * modules/gc-hmac-md5-tests (License): Likewise.
65374
65375         * modules/gc-sha1-tests (License): Likewise.
65376
65377         * modules/gc-md5-tests (License): Likewise.
65378
65379         * modules/gc-md4-tests (License): Likewise.
65380
65381         * modules/gc-md2-tests (License): Likewise.
65382
65383         * modules/gc-tests (License): Likewise.
65384
65385         * modules/des-tests (License): Likewise.
65386
65387         * modules/md4-tests (License): Likewise.
65388
65389         * modules/md2-tests (License): Likewise.
65390
65391 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         Sync from coreutils:
65394
65395         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65396         * modules/lib-ignore: New file.
65397         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65398         chdir-safer.m4, lchmod.m4.
65399         * modules/openat: Add mkdirat.c, openat-priv.h.
65400
65401 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         Sync from coreutils.
65404         * m4/lib-ignore.m4: New file.
65405         * m4/lchmod.m4: New file.
65406
65407 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65408
65409         Sync from coreutils.
65410         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65411         for write access: POSIX says that must fail.
65412         * lib/fts.c (diropen): Likewise.
65413         * lib/save-cwd.c (save_cwd): Likewise.
65414         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65415         well, for minor improvements on hosts that lack O_DIRECTORY.
65416         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65417         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65418         Fall back on chown if open failed with EACCES.
65419
65420         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65421         Report an error at compile-time if only a 1-second nominal clock
65422         resolution is found.
65423
65424         * lib/lchmod.h: New file.
65425         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65426         (make_dir_parents): Use lchown rather than chown, and
65427         lchmod rather than chmod.
65428
65429         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65430         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65431         "proc" reported by n0dalus.
65432
65433         * lib/mountlist.c: Include <limits.h>.
65434         (dev_from_mount_options)
65435         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65436         New function.  It no longer assumes "dev=" has the System V meaning
65437         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65438         (read_file_system_list)
65439         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65440         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65441         dev= in that case.
65442
65443         * lib/posixtm.h (PDS_PRE_2000): New macro.
65444         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65445         allow_century.  All usages changed.  Reject dates outside the range
65446         1969-1999 if PDS_PRE_2000 is used.
65447
65448 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65449
65450         Sync from coreutils.
65451         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65452         (Time of day items): Mention the possibility of leap seconds.
65453         Problem reported by Dr. David Alan Gilbert.
65454
65455 2006-01-09  Jim Meyering  <jim@meyering.net>
65456
65457         Sync from coreutils.
65458
65459         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65460
65461         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65462
65463         * lib/modechange.c (mode_compile): Reject an invalid mode string
65464         that starts with an octal digit.  From Andreas Gruenbacher.
65465
65466         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65467         and dup to open_safer and dup_safer, respectively.
65468         (openat_permissive): Fix typo in comment.
65469
65470         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65471         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65472         (_): Remove; no longer needed.
65473         (openat): Renamed from rpl_openat; no need for rpl_openat
65474         since openat.h renames openat for us.
65475         Replace most of the body with a call to openat_permissive,
65476         to avoid duplicate code.
65477         Port to (probably hypothetical) environments were mode_t is
65478         wider than int.
65479         (openat_permissive): Require mode arg, so that we can check
65480         types better.  Put it just after flags.  Change cwd failure
65481         indicator from pointer-to-bool to pointer-to-errno-value.
65482         All callers changed.
65483         Invoke openat_save_fail and/or openat_restore_fail if
65484         cwd_errno is null, so that openat can call us.
65485         (openat_permissive, fdopendir, fstatat, unlinkat):
65486         Simplify errno handling to avoid some duplicate code,
65487         as it's OK to set errno on success.
65488         * lib/openat.h: Revamp code so that function macros depend on
65489         __OPENAT_PREFIX only, not also on AT_FDCWD.
65490         (openat_ro): Remove.  Caller changed to use openat_permissive.
65491         (openat_permissive): Now a macro, if not a function.
65492         (openat_restore_fail, openat_save_fail): Now always functions,
65493         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65494
65495         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65496         and openat.c.
65497         * lib/mkdirat.c: Include openat-priv.h.
65498         Remove definitions of macros defined therein.
65499         * lib/openat.c: Likewise.
65500
65501         * lib/mkdirat.c (mkdirat): New file and function.
65502         * lib/openat.h (mkdirat): Declare.
65503
65504         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65505
65506         * lib/openat.h (openat_permissive): Declare.
65507         (openat_ro): Define.
65508
65509         * lib/openat.c (EXPECTED_ERRNO): New macro.
65510         (openat_permissive): New function -- used in remove.c rewrite.
65511         (all functions): Set errno just before returning, only if there
65512         was an actual failure.
65513         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65514
65515         Emulate openat-family functions using Linux's procfs, if possible.
65516         Idea and some code based on Ulrich Drepper's glibc changes.
65517
65518         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65519         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65520         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65521         before falling back on save_cwd and restore_cwd.
65522         (fdopendir, fstatat, unlinkat): Likewise.
65523
65524         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65525         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65526
65527         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65528         as second argument to va_arg.  Otherwise, some versions of gcc
65529         warn that `if this code is reached, the program will abort'.
65530
65531 2006-01-09  Jim Meyering  <jim@meyering.net>
65532
65533         Sync from coreutils.
65534         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65535         Require openat-priv.h.
65536
65537 2006-01-09  Bruno Haible  <bruno@clisp.org>
65538
65539         * modules/strnlen (Include): Use strnlen.h.
65540
65541 2006-01-09  Bruno Haible  <bruno@clisp.org>
65542
65543         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65544
65545 2006-01-09  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/sysexit_.h (EX_OK): New macro.
65548         Suggested by Martin Lambers <marlam@marlam.de>.
65549
65550 2006-01-09  Bruno Haible  <bruno@clisp.org>
65551
65552         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65553         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65554
65555 2006-01-09  Bruno Haible  <bruno@clisp.org>
65556
65557         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65558         numbers.
65559
65560 2006-01-09  Bruno Haible  <bruno@clisp.org>
65561
65562         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65563         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65564         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65565         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65566
65567 2006-01-09  Bruno Haible  <bruno@clisp.org>
65568
65569         * build-aux/javacomp.sh.in: New file, moved from lib/.
65570         * modules/javacomp-script (Files): Update.
65571         (configure.ac): Add AC_CONFIG_FILES invocation.
65572         (EXTRA_DIST): Remove variable.
65573
65574         * build-aux/javaexec.sh.in: New file, moved from lib/.
65575         * modules/javaexec (Files): Update.
65576         (configure.ac): Add AC_CONFIG_FILES invocation.
65577         (EXTRA_DIST): Remove javaexec.sh.in.
65578
65579         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65580         * modules/csharpcomp-script (Files): Update.
65581         (configure.ac): Add AC_CONFIG_FILES invocation.
65582         (EXTRA_DIST): Remove variable.
65583
65584         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65585         * modules/csharpexec (Files): Update.
65586         (configure.ac): Add AC_CONFIG_FILES invocation.
65587         (EXTRA_DIST): Remove csharpexec.sh.in.
65588
65589 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65590
65591         Sync from coreutils.
65592
65593         Add POSIX ACL support
65594         * lib/acl.h (copy_acl, set_acl): Add declarations.
65595         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65596         systems other than Linux.
65597         (chmod_or_fchmod): New function: use fchmod when possible,
65598         and chmod otherwise.
65599         (file_has_acl): Add a POSIX ACL implementation, with a
65600         Linux-specific subcase.
65601         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65602         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65603         acls are unsupported.
65604         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65605         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65606         are unsupported.
65607
65608 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65609
65610         Sync from coreutils.
65611         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65612
65613 2006-01-07  Bruno Haible  <bruno@clisp.org>
65614
65615         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65616         gl_EARLY.
65617
65618 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65619
65620         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65621         Problem reported for Mingw by Mark Junker.
65622
65623 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * README: Gnulib normally doesn't generate a tarball.
65626
65627 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65630         long int, not int, for nanosecond counts, so that people who are
65631         used to POSIX struct timespec won't be surprised.  Reported by Jim
65632         Meyering.
65633
65634 2005-12-28  Bruno Haible  <bruno@clisp.org>
65635
65636         * build-aux/config.rpath: Update from GNU gettext.
65637
65638 2005-12-16  Jim Meyering  <jim@meyering.net>
65639
65640         * modules/fprintftime: New module.
65641         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65642
65643 2005-12-16  Jim Meyering  <jim@meyering.net>
65644
65645         * m4/fprintftime.m4: New file.
65646
65647 2005-12-16  Jim Meyering  <jim@meyering.net>
65648
65649         * lib/fprintftime.c, lib/fprintftime.h: New files.
65650
65651 2005-12-15  Simon Josefsson  <jas@extundo.com>
65652
65653         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65654         new m4/socklen.m4.
65655
65656 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65657
65658         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65659         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65660
65661 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65662
65663         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65664         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65665         struct uparams is valid. Fall back to the default values if it is
65666         not.
65667
65668 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65669
65670         * modules/argp (Files): Add argp-pin.c
65671         (Depends-on): dirname
65672         (lib_SOURCES): Add argp-pin.c
65673
65674 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65675
65676         * m4/argp.m4:  Check if program_invocation_name and
65677         program_invocation_short_name are declared and define appropriate
65678         macros if they are not.
65679
65680 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65681
65682         * lib/argp-help.c (__argp_base_name): New function
65683         (__argp_short_program_name): Rewrite using __argp_base_name
65684         * lib/argp-namefrob.h: Define program_invocation_name and
65685         program_invocation_short_name if requested
65686         (__argp_base_name): Add prototype
65687         * lib/argp-parse.c (argp_def): Use gettext wrappers
65688         (argp_default_parser): Use __argp_base_name
65689         * lib/argp-pin.c: New file. Defines program_invocation_name and
65690         program_invocation_short_name on systems that lack them.
65691
65692 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65695         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65696         porting problem reported by Georg Schwarz in
65697         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65698
65699 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65702         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65703         porting problem reported by Georg Schwarz in
65704         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65705
65706 2005-12-05  Bruno Haible  <bruno@clisp.org>
65707
65708         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65709         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65710         Reported by Mark Junker <mjscod@gmx.de>.
65711
65712 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65715         Use implementation from Albert Chin, with some
65716         comments/corrections by Stepan Kasal and myself.
65717
65718 2005-12-02  Bruno Haible  <bruno@clisp.org>
65719
65720         * gnulib-tool (func_import): Accept GPLed build tool modules when
65721         --lgpl is given.
65722         * modules/csharpcomp-script: New file.
65723         * modules/csharpcomp: Depend on it.
65724         * modules/javacomp-script: New file.
65725         * modules/javacomp: Depend on it.
65726         Suggested by Simon Josefsson.
65727
65728 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65731         statement, to work around an HP-UX 10.20 compiler bug reported by
65732         Peter O'Gorman.
65733
65734 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65735
65736         * modules/savedir (Depends-on): Add openat.
65737
65738 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65739
65740         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65741         (uintmax_t) [defined uintmax_t]: Do not declare.
65742         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65743         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65744         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65745         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65746         sake of portability to weird hosts that C allows (though we don't
65747         know of any practical examples).
65748
65749         * lib/savedir.h (fdsavedir): New decl.
65750         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65751         contains most of the former guts of savedir.
65752         (savedir): Use savedirstream.
65753         Include "openat.h".
65754
65755 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * modules/obstack (Files): Add m4/ulonglong.m4.
65758         Problem reported by Davide Angelocola.
65759
65760 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65763         coreutils no longer futzes with rounding modes.
65764
65765 2005-11-14  Jim Meyering  <jim@meyering.net>
65766
65767         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65768         replacement of mkstemp.
65769
65770 2005-11-10  Simon Josefsson  <jas@extundo.com>
65771
65772         * lib/readline.c: Remove EOL.
65773
65774 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         * modules/gethrxtime (Depends-on): Add gettime.
65777
65778 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65779
65780         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65781         or gettimeofday; no longer needed.
65782
65783 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65784
65785         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65786         time business.
65787         (gethrxtime) [! (HAVE_NANOUPTIME
65788         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65789         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65790         our own approximation.
65791
65792 2005-11-08  Eric Blake  <ebb9@byu.net>
65793
65794         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65795
65796 2005-11-08  Eric Blake  <ebb9@byu.net>
65797
65798         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65799
65800 2005-11-04  Bruno Haible  <bruno@clisp.org>
65801
65802         * gnulib-tool: Implement --update mode.
65803
65804 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         Fix porting problem reported by Theodoros V. Kalamatianos.
65807         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65808         Don't assume that futimes failing means we must fail.
65809
65810 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65811
65812         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65813         variables to suggest the intended function of the PATH_MAX check.
65814
65815 2005-10-30  Kean Johnston  <jkj@sco.com>
65816
65817         Trivial changes to support SCO systems.
65818         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65819         as PATH_MAX.
65820         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65821         where __ptr is null when no I/O is pending.
65822
65823 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65826         leave errno alone.  Problem reported by Dmitry V. Levin.
65827
65828 2005-10-28  Simon Josefsson  <jas@extundo.com>
65829
65830         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65831         Test more.
65832
65833         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65834
65835         * modules/md2, modules/md2-tests: New files.
65836
65837 2005-10-28  Simon Josefsson  <jas@extundo.com>
65838
65839         * m4/inet_ntop.m4: More tests.
65840
65841         * m4/gc-md2.m4, md2.m4: New file.
65842
65843 2005-10-28  Simon Josefsson  <jas@extundo.com>
65844
65845         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65846         "restrict" keywords, as per POSIX.  Protect the function
65847         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65848         Don't use K&R prototypes.  Check the sprintf return values.
65849         Re-define EAFNOSUPPORT if not present.  Indent.
65850
65851         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65852         suggested by Bruno Haible <bruno@clisp.org>.
65853
65854         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65855
65856         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65857
65858         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65859         libgcrypt).
65860
65861         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65862
65863         * lib/md2.h, lib/md2.c: New files.
65864
65865 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65868         errno alone.  Problem reported by Frederic Jolliton.
65869
65870 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * modules/verify (License): Change from GPL to LGPL.  This is a
65873         tiny module and there are apparently near-equivalents that are
65874         under the BSD license.
65875
65876 2005-10-24  Simon Josefsson  <jas@extundo.com>
65877
65878         * modules/sha1: Relicense to LGPL.
65879
65880 2005-10-24  Simon Josefsson  <jas@extundo.com>
65881
65882         * lib/md4.h: Shrink buffer size, now that we changed the type.
65883
65884 2005-10-23  Simon Josefsson  <jas@extundo.com>
65885
65886         * gnulib-tool (func_import): Fix --tests-base.
65887
65888 2005-10-22  Simon Josefsson  <jas@extundo.com>
65889
65890         * modules/arcfour (Depends-on): Need stdint.
65891
65892 2005-10-22  Simon Josefsson  <jas@extundo.com>
65893
65894         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65895         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65896
65897 2005-10-22  Simon Josefsson  <jas@extundo.com>
65898
65899         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65900         suggested by Bruno Haible <bruno@clisp.org>.
65901
65902 2005-10-22  Simon Josefsson  <jas@extundo.com>
65903
65904         * lib/crc.h: Include stddef.h, for size_t.
65905
65906 2005-10-22  Simon Josefsson  <jas@extundo.com>
65907
65908         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65909         arcfour_context struct (simplify test vector testing in GNU
65910         Shishi).
65911
65912 2005-10-21  Simon Josefsson  <jas@extundo.com>
65913
65914         * modules/des, modules/des-tests: New files.
65915
65916         * modules/gc-des, modules/gc-des-tests: New files.
65917
65918         * tests/test-des.c, tests/test-gc-des.c: New file.
65919
65920 2005-10-21  Simon Josefsson  <jas@extundo.com>
65921
65922         * modules/arctwo, modules/arctwo-tests: New files.
65923
65924         * tests/test-arctwo.c: New file.
65925
65926         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65927
65928         * tests/test-gc-arctwo.c: New file.
65929
65930 2005-10-21  Simon Josefsson  <jas@extundo.com>
65931
65932         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65933         Bruno Haible <bruno@clisp.org>.
65934
65935         * m4/gc-des.m4: New file.
65936
65937 2005-10-21  Simon Josefsson  <jas@extundo.com>
65938
65939         * m4/arctwo.m4: New file.
65940
65941         * m4/gc-arctwo.m4: New file.
65942
65943 2005-10-21  Simon Josefsson  <jas@extundo.com>
65944
65945         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65946         block.
65947
65948 2005-10-21  Simon Josefsson  <jas@extundo.com>
65949
65950         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65951         <bruno@clisp.org>.
65952
65953         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65954
65955         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65956         Bruno Haible <bruno@clisp.org>.
65957
65958         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65959         <bruno@clisp.org>.
65960
65961 2005-10-21  Simon Josefsson  <jas@extundo.com>
65962
65963         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65964
65965 2005-10-21  Simon Josefsson  <jas@extundo.com>
65966
65967         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65968
65969 2005-10-21  Simon Josefsson  <jas@extundo.com>
65970
65971         * lib/des.h, lib/des.c: New files.
65972
65973         * lib/gc-gnulib.c: Support DES.c
65974
65975 2005-10-21  Simon Josefsson  <jas@extundo.com>
65976
65977         * lib/arctwo.h, lib/arctwo.c: New files.
65978
65979         * lib/gc-gnulib.c: Support ARCTWO.
65980
65981 2005-10-21  Simon Josefsson  <jas@extundo.com>
65982
65983         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65984         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65985
65986 2005-10-21  Simon Josefsson  <jas@extundo.com>
65987
65988         * gnulib-tool (func_import, func_create_testdir): Define automake
65989         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65990         Makefile.am snippet),
65991         suggested by Bruno Haible <bruno@clisp.org>.
65992
65993         * modules/gc (Makefile.am): Use it.
65994
65995 2005-10-21  Bruno Haible  <bruno@clisp.org>
65996
65997         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65998         patch.
65999
66000 2005-10-19  Simon Josefsson  <jas@extundo.com>
66001
66002         * tests/test-gc-rijndael.c: New file.
66003
66004         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66005
66006 2005-10-19  Simon Josefsson  <jas@extundo.com>
66007
66008         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66009         interface too.
66010
66011 2005-10-19  Simon Josefsson  <jas@extundo.com>
66012
66013         * tests/test-gc-arcfour.c: New file.
66014
66015         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66016
66017 2005-10-19  Simon Josefsson  <jas@extundo.com>
66018
66019         * modules/gc-md4, modules/gc-md4-tests: New file.
66020
66021         * tests/test-gc-md4.c: New file.
66022
66023 2005-10-19  Simon Josefsson  <jas@extundo.com>
66024
66025         * m4/gc-md4.m4: New file.
66026
66027 2005-10-19  Simon Josefsson  <jas@extundo.com>
66028
66029         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66030         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66031         <kasal@ucw.cz>.
66032
66033 2005-10-19  Simon Josefsson  <jas@extundo.com>
66034
66035         * m4/gc-arcfour.m4: New file.
66036
66037         * m4/gc-rijndael.m4: New file.
66038
66039 2005-10-19  Simon Josefsson  <jas@extundo.com>
66040
66041         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66042
66043 2005-10-19  Simon Josefsson  <jas@extundo.com>
66044
66045         * lib/gc-gnulib.c: Support ARCFOUR.
66046
66047 2005-10-19  Simon Josefsson  <jas@extundo.com>
66048
66049         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66050         support.
66051
66052         * lib/gc.h: Add ECB enum type.
66053
66054         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66055
66056 2005-10-18  Simon Josefsson  <jas@extundo.com>
66057
66058         * tests/test-md5.c: New file.
66059
66060         * modules/md5-tests: New file.
66061
66062 2005-10-18  Simon Josefsson  <jas@extundo.com>
66063
66064         * tests/test-md4.c: New file.
66065
66066         * modules/md4, modules/md4-tests: New files.
66067
66068 2005-10-18  Simon Josefsson  <jas@extundo.com>
66069
66070         * m4/md4.m4: New file.
66071
66072 2005-10-18  Simon Josefsson  <jas@extundo.com>
66073
66074         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66075
66076 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66077
66078         * gnulib-tool (func_create_testdir): Omit the second check whether
66079         BUILT_SOURCES in nonempty.
66080
66081 2005-10-17  Simon Josefsson  <jas@extundo.com>
66082
66083         * tests/test-rijndael.c: New file.
66084
66085 2005-10-17  Simon Josefsson  <jas@extundo.com>
66086
66087         * modules/sha1: Depend on stdint instead of md5.
66088
66089         * modules/md5: Depend on stdint, remove uint32_t.
66090
66091 2005-10-17  Simon Josefsson  <jas@extundo.com>
66092
66093         * modules/gc-sha1-tests: New file.
66094
66095         * tests/test-gc-sha1.c: New file.
66096
66097 2005-10-17  Simon Josefsson  <jas@extundo.com>
66098
66099         * m4/md5.m4: Remove call to uint32_t.m4.
66100
66101 2005-10-17  Simon Josefsson  <jas@extundo.com>
66102
66103         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66104
66105         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66106         md5.h.
66107
66108         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66109
66110         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66111
66112 2005-10-17  Simon Josefsson  <jas@extundo.com>
66113
66114         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66115
66116 2005-10-17  Simon Josefsson  <jas@extundo.com>
66117
66118         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66119
66120 2005-10-17  Simon Josefsson  <jas@extundo.com>
66121
66122         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66123
66124         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66125
66126 2005-10-17  Bruno Haible  <bruno@clisp.org>
66127
66128         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66129         that it can also be used in a test.
66130
66131 2005-10-16  Bruno Haible  <bruno@clisp.org>
66132
66133         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66134         TESTS_ENVIRONMENT, so that individual tests can augment it.
66135
66136         * gnulib-tool (func_create_testdir): Use an intermediate target for
66137         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66138         macros, like $(ALLOCA_H), which cannot be passed through the command
66139         line.
66140
66141 2005-10-15  Simon Josefsson  <jas@extundo.com>
66142
66143         * modules/rijndael-tests: New file.
66144
66145         * modules/rijndael: New file.
66146
66147 2005-10-15  Simon Josefsson  <jas@extundo.com>
66148
66149         * m4/rijndael.m4: New file.
66150
66151 2005-10-15  Simon Josefsson  <jas@extundo.com>
66152
66153         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66154
66155         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66156
66157 2005-10-14  Simon Josefsson  <jas@extundo.com>
66158
66159         * tests/test-arcfour.c: New file.
66160
66161         * modules/arcfour, modules/arcfour-tests: New files.
66162
66163 2005-10-14  Simon Josefsson  <jas@extundo.com>
66164
66165         * m4/arcfour.m4: New file.
66166
66167 2005-10-14  Simon Josefsson  <jas@extundo.com>
66168
66169         * lib/arcfour.h, lib/arcfour.c: New files.
66170
66171 2005-10-14  Roland McGrath  <roland@redhat.com>
66172
66173         Import from libc.  [BZ #1331]
66174         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66175         macro argument.
66176         Reported by Matej Vela <vela@debian.org>.
66177
66178 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66179
66180         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66181         include <wchar.h>; no longer needed.
66182
66183 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66184
66185         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66186
66187 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66188         and  Ulrich Drepper  <drepper@redhat.com>
66189
66190         Import from libc.
66191         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66192         instead of inline stream orientation test and two separate
66193         function calls.  Pay no attention to USE_IN_LIBIO.
66194
66195 2005-10-13  Simon Josefsson  <jas@extundo.com>
66196
66197         * modules/gc-hmac-md5-tests: New file.
66198
66199         * tests/test-gc-hmac-sha1.c: New file.
66200
66201         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66202
66203         * modules/gc-hmac-md5-tests: New file.
66204
66205         * tests/test-gc-md5.c: New file.
66206
66207         * modules/gc-md5-tests: New file.
66208
66209 2005-10-13  Simon Josefsson  <jas@extundo.com>
66210
66211         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66212         Move memory allocation outside of loop.
66213
66214 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66215
66216         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66217         intermediate directory is in a read-only file system.  Problem
66218         reported by Eric Blake.
66219
66220 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66221
66222         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66223
66224 2005-10-12  Simon Josefsson  <jas@extundo.com>
66225
66226         * tests/test-hmac-sha1.c: New file.
66227
66228         * modules/hmac-sha1-tests: New file.
66229
66230         * modules/hmac-sha1: New file.
66231
66232 2005-10-12  Simon Josefsson  <jas@extundo.com>
66233
66234         * modules/gc-sha1: New file.
66235
66236 2005-10-12  Simon Josefsson  <jas@extundo.com>
66237
66238         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66239
66240         * tests/test-gc-pbkdf2-sha1.c: New file.
66241
66242 2005-10-12  Simon Josefsson  <jas@extundo.com>
66243
66244         * modules/gc-md5, modules/gc-hmac-md5: New files.
66245
66246         * modules/gc (Files): Remove md5, memxor and hmac files.
66247
66248 2005-10-12  Simon Josefsson  <jas@extundo.com>
66249
66250         * m4/gc-pbkdf2-sha1.m4: New file.
66251
66252         * m4/gc-hmac-sha1.m4: New file.
66253
66254         * m4/gc-sha1: New file.
66255
66256         * m4/hmac-sha1.m4: New file.
66257
66258 2005-10-12  Simon Josefsson  <jas@extundo.com>
66259
66260         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66261
66262         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66263
66264 2005-10-12  Simon Josefsson  <jas@extundo.com>
66265
66266         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66267         suggested by Bruno Haible <bruno@clisp.org>.
66268
66269 2005-10-12  Simon Josefsson  <jas@extundo.com>
66270
66271         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66272
66273 2005-10-12  Simon Josefsson  <jas@extundo.com>
66274
66275         * lib/gc-pbkdf2-sha1.c: New file.
66276
66277         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66278
66279 2005-10-12  Simon Josefsson  <jas@extundo.com>
66280
66281         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66282
66283         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66284
66285 2005-10-12  Simon Josefsson  <jas@extundo.com>
66286
66287         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66288         GC_USE_HMAC_MD5, respectively.
66289
66290         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66291         (gc_md5): Fix typo.
66292
66293         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66294
66295         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66296
66297         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66298
66299 2005-10-12  Bruno Haible  <bruno@clisp.org>
66300
66301         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66302         Reported by Stepan Kasal <kasal@ucw.cz>.
66303
66304 2005-10-11  Simon Josefsson  <jas@extundo.com>
66305
66306         * tests/test-crc.c: New file.
66307
66308         * modules/crc, modules/crc-tests: New files.
66309
66310 2005-10-11  Simon Josefsson  <jas@extundo.com>
66311
66312         * m4/crc.m4: New file.
66313
66314 2005-10-11  Simon Josefsson  <jas@extundo.com>
66315
66316         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66317
66318         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66319
66320         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66321
66322 2005-10-11  Simon Josefsson  <jas@extundo.com>
66323
66324         * lib/crc.h, lib/crc.c: New files.
66325
66326         * lib/gc.h (gc_hash_buffer): Add doc.
66327
66328 2005-10-11  Bruno Haible  <bruno@clisp.org>
66329
66330         * modules/c-strcasestr: New file.
66331         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66332
66333 2005-10-11  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/c-strcase: New file.
66336         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66337
66338 2005-10-11  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/strcasecmp.c: Include limits.h.
66341         (strcasecmp): Avoid integer overflow on exotic platforms.
66342         * lib/strncasecmp.c: Include limits.h.
66343         (strncasecmp): Avoid integer overflow on exotic platforms.
66344         Reported by Paul Eggert.
66345
66346 2005-10-11  Bruno Haible  <bruno@clisp.org>
66347
66348         * lib/c-strcasestr.h: New file, from GNU gettext.
66349         * lib/c-strcasestr.c: New file, from GNU gettext.
66350
66351 2005-10-11  Bruno Haible  <bruno@clisp.org>
66352
66353         * lib/c-strcase.h: New file, from GNU gettext.
66354         * lib/c-strcasecmp.c: New file, from GNU gettext.
66355         * lib/c-strncasecmp.c: New file, from GNU gettext.
66356
66357 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * modules/mempcpy (License): GPL -> LGPL.
66360         * modules/strchrnul (License): Likewise.
66361         * modules/sysexits (License): Likewise.
66362
66363 2005-10-08  Simon Josefsson  <jas@extundo.com>
66364
66365         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66366
66367 2005-10-07  Simon Josefsson  <jas@extundo.com>
66368
66369         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66370
66371 2005-10-06  Simon Josefsson  <jas@extundo.com>
66372
66373         * tests/test-hmac-md5.c: New file.
66374
66375         * modules/hmac-md5-tests: New file.
66376
66377         * modules/hmac-md5: New file.
66378
66379 2005-10-06  Simon Josefsson  <jas@extundo.com>
66380
66381         * m4/hmac-md5.m4: New file.
66382
66383         * m4/memxor.m4: Require gl_C_RESTRICT.
66384
66385 2005-10-06  Simon Josefsson  <jas@extundo.com>
66386
66387         * lib/memxor.c (memxor): Avoid casts and warnings.
66388
66389 2005-10-06  Simon Josefsson  <jas@extundo.com>
66390
66391         * lib/hmac-md5.c: New file.
66392
66393         * lib/hmac.h: New file.
66394
66395 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66398         promotes to int, not unsigned int, to catch the AIX 5.3
66399         compiler bug.
66400
66401 2005-10-05  Simon Josefsson  <jas@extundo.com>
66402
66403         * modules/memxor: New file.
66404
66405         * modules/iconv (Files): Move config.rpath to havelib, it is used
66406         there.
66407
66408         * modules/havelib (Files): Add config.rpath.
66409
66410 2005-10-05  Simon Josefsson  <jas@extundo.com>
66411
66412         * m4/memxor.m4: New file.
66413
66414 2005-10-05  Simon Josefsson  <jas@extundo.com>
66415
66416         * lib/memxor.c (memxor): Fix compiler error.
66417
66418         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66419         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66420
66421         * lib/memxor.h, lib/memxor.c: New files.
66422
66423         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66424         we assume all systems have it, suggested by Jim Meyering
66425         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66426         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66427         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66428         same reasons.
66429
66430 2005-10-05  Simon Josefsson  <jas@extundo.com>
66431
66432         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66433
66434 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66437         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66438         needed, since the source code now assumes these .h files.
66439
66440 2005-10-05  Derek Price  <derek@ximbiot.com>
66441
66442         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66443
66444 2005-10-05  Bruno Haible  <bruno@clisp.org>
66445
66446         * modules/stdint (License): Change to LGPL.
66447
66448 2005-10-04  Simon Josefsson  <jas@extundo.com>
66449
66450         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66451         D. Baushke" <mdb@gnu.org>.
66452
66453 2005-10-04  Bruno Haible  <bruno@clisp.org>
66454
66455         * lib/verify.h (verify_true): Provide alternative definition for C++.
66456
66457 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66460         (SSIZE_MAX): New macro, if not already defined.
66461         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66462         than 2 GiB.
66463
66464 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         Sync from coreutils.
66467         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66468         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66469         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66470         ULLONG_MAX doesn't work with 2.7.2.1.
66471
66472 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66475         From Ben Pfaff.
66476
66477         * modules/exclude (Depends-on): Depend on verify.
66478         * modules/strtoimax (Depends-on): Likewise.
66479         * modules/utimecmp (Depends-on): Likewise.
66480
66481 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66482
66483         * lib/exclude.c: Include verify.h.
66484         (verify): Remove.  All callers changed to use verify.h's version.
66485         * lib/strtoimax.c: Likewise.
66486         * lib/utimecmp.c: Likewis.e
66487
66488         Sync from coreutils.
66489         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66490         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66491         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66492         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66493         bother returning ENOSYS if settimeofday or stime fails; just let
66494         them return whatever errno they want to return.
66495         * lib/utimens.c: Include unistd.h, for dup2.
66496         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66497         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66498
66499 2005-10-02  Jim Meyering  <jim@meyering.net>
66500
66501         Sync from coreutils.
66502         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66503         from glibc-2.2.5 that fails for read-only files.
66504
66505 2005-10-02  Jim Meyering  <jim@meyering.net>
66506
66507         Sync from coreutils.
66508         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66509         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66510         `#if HAVE_CONFIG_H'.
66511         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66512         Remove AT_FDCWD test.
66513         Do not consume the fd unless successful.
66514         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66515         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66516         block, so that we don't even try to compile it if settimeofday is
66517         available.  This works around a compilation failure on OSF1 V5.1,
66518         due to stime requiring a `long int*' while tv_sec is `int'.
66519
66520 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66521
66522         Sync from coreutils.
66523         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66524         against `yes', rather than just testing for nonempty.
66525
66526 2005-10-01  Simon Josefsson  <jas@extundo.com>
66527
66528         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66529         and Darwin.
66530
66531         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66532         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66533         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66534         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66535         Check if struct addrinfo is declared.
66536
66537 2005-10-01  Simon Josefsson  <jas@extundo.com>
66538
66539         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66540         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66541         AI_* and EAI_* definitions.  Protect function declarations.
66542
66543 2005-10-01  Jim Meyering  <jim@meyering.net>
66544
66545         Sync from coreutils.
66546
66547         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66548         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66549         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66550         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66551         in the inet and nsl libraries.  Required on Solaris 5.7.
66552
66553 2005-10-01  Jim Meyering  <jim@meyering.net>
66554
66555         Sync from coreutils.
66556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66557         in the inet and nsl libraries.  Required on Solaris 5.7.
66558
66559 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66560
66561         * lib/getdelim.c (getdelim): Remove unused variables.
66562
66563 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66566         so that the code works even with ancient cpp.  Portability problem
66567         with GCC 2.7.2.1 reported by Thomas M.Ott.
66568
66569 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66570
66571         * modules/regex (Depends-on): Add strcase.
66572
66573         * modules/gethostname (Licence): Change from GPL to LGPL, since
66574         gethostname.c is a trivial implementation of a standard library
66575         function.
66576         * modules/poll (License): Change from GPL to LGPL, since it's
66577         derived from LGPL code.
66578
66579 2005-09-27  Jim Meyering  <jim@meyering.net>
66580
66581         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66582         HAVE_CONFIG_H.
66583
66584         * lib/intprops.h (signed_type_or_expr__): Define.
66585         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66586         for unsigned types.
66587
66588 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * lib/verify.h (verify_expr): Remove, replacing with:
66591         (verify_true): New macro that returns true instead of void.
66592         (verify_type__): Remove.
66593         (verify): Use verify_true rather than verify_type__.
66594
66595 2005-09-26  Bruno Haible  <bruno@clisp.org>
66596
66597         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66598         is necessary.
66599         (lib_SOURCES): Remove mbchar.c.
66600         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66601         (Files): Add m4/mbrtowc.m4.
66602         * modules/mbiter: Likewise.
66603         * modules/mbuiter: Likewise.
66604
66605 2005-09-26  Bruno Haible  <bruno@clisp.org>
66606
66607         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66608         compile mbchar.c if they are not both present.
66609         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66610         * m4/mbiter.m4 (gl_MBITER): Likewise.
66611         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66612         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66613         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66614
66615 2005-09-25  Jim Meyering  <jim@meyering.net>
66616
66617         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66618         also uses socklen_t.
66619
66620 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         * lib/utimens.c (ENOSYS): Define if not already defined.
66623         (futimens): Support having a null PATH if the file descriptor
66624         is nonnegative.
66625
66626         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66627         Remove.
66628         (__attribute): Define to empty unless GCC 3.1 or later.
66629         This works around a core dump on OpenBSD 3.4, which has GCC
66630         2.95.3, which dumps core when given __attribute__(()).  It also
66631         simplifies other tests, since we really don't want to bother with
66632         worrying about which ancient version of GCC supported what.
66633         Original problem reported by Yoann Vandoorselaere, with part of
66634         the fix suggested by Derek Price.
66635
66636 2005-09-24  Jim Meyering  <jim@meyering.net>
66637
66638         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66639         so we can once again use a positive bitfield width of 1 -- now we
66640         don't have to explain why we were using a bitfield width of 2.
66641
66642 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66643
66644         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66645         and similarly for the other external symbols.  Problem reported
66646         by James Gallager.
66647
66648         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66649         bug reported by Jim Meyering.
66650
66651         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66652         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66653         not needed, since socklen is a prerequisite module.
66654
66655 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66656
66657         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66658         Problem reported by Eric Blake.
66659         (getaddrinfo): Initialize se so that it's not garbage.
66660         Redo internal storage allocation so that it doesn't make unportable
66661         assumptions about alignment.
66662         Fix a memory leak.
66663
66664         * lib/utimens.c (futimens): Use futimesat if available.
66665         Prefer it to futimes since it doesn't have the futimes bug.
66666
66667         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66668         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66669         Instead, declare a function that returns a pointer to an array,
66670         and use verify_type__ to declare the size of the array.
66671         Problem and germ of a solution reported by Bruno Haible.
66672         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66673         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66674
66675 2005-09-23  Jim Meyering  <jim@meyering.net>
66676
66677         Sync from coreutils.
66678         Correct build failure (socklen_t not defined) on at least
66679         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66681
66682 2005-09-23  Jim Meyering  <jim@meyering.net>
66683
66684         * modules/getaddrinfo (Depends-on): Add socklen.
66685
66686 2005-09-23  Bruno Haible  <bruno@clisp.org>
66687
66688         * tests/test-verify.c: New file.
66689
66690 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66691
66692         Sync from coreutils.
66693
66694         * modules/argmatch (Depends-on): Add verify.
66695         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66696         unistd-safer.
66697         * modules/save-cwd (Depends-on): Likewise.
66698
66699         * modules/openat (Files): Add lib/openat-die.c.
66700         (Depends-on): Remove error, exitfail.
66701         Add dirname.
66702
66703         * modules/verify: New file.
66704         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66705         with "verify" module.
66706
66707 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         Sync from coreutils.
66710
66711         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66712         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66713         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66714         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66715         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66716         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66717         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66718         Don't bother checking for string.h, stdlib.h, unistd.h.
66719         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66720         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66721         module's job.
66722         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66723         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66724
66725         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66726         (gl_GETDATE): Use it.
66727
66728         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66729
66730 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         Sync from coreutils.
66733
66734         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66735         stat-time.h.
66736         * lib/argmatch.h: Include verify.h
66737         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66738         (ARGMATCH_ASSERT): Remove; unused.
66739         * lib/canonicalize.c: Assume STDC_HEADERS.
66740         * lib/exclude.c: Include "strcase.h".
66741         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66742         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66743         and stdio-safer.h.
66744         (getusershell): Call fopen, not fopen_safer.
66745         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66746         Do not include unistd-safer.h.
66747         (save_cwd): Don't call fd_safer; no longer needed
66748         now that we include fcntl--.h.
66749
66750         * lib/getdate.y (relative_time): New type.
66751         (RELATIVE_TIME_0): New constant.
66752         (parser_control): Use relative_time instead of doing it ourselves.
66753         (%union): Add new relative_time rel member.
66754         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66755         Now typeless.
66756         (relunit, relunit_snumber): Now of type rel.
66757         (zone, rel, relunit, get_date): Adjust to above changes.
66758
66759         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66760         Do not include unistd-safer.h.
66761         (getloadavg): Don't call fd_safer; no longer needed
66762         now that we include fcntl--.h.
66763
66764         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66765         (make_dir_parents): Treat ENOSYS like EEXIST.
66766
66767         Improve quality of diagnostics on restore_cwd failure.
66768         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66769         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66770         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66771         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66772         each time through the loop.  Do not diagnose restore_cwd failure;
66773         that is the caller's job (and perhaps the caller does not care).
66774
66775         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66776         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66777         If the file already exists but is not a directory, don't bother
66778         to try to make its parents.
66779         Close potential file descriptor leak if we can't chdir("/") (!).
66780         Don't always return true if chdir($PWD) fails; return true only
66781         if the requested action was done successfully (except for the
66782         chdir($PWD)).
66783         Don't log final directory unless we actually made it.
66784         Refactor to avoid duplicate code to fix up permissions.
66785         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66786
66787         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66788         to make it a bit faster and (I hope) clearer.
66789         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66790         Fix bug in formats like %2N.
66791
66792         * lib/verify.h: New file.
66793
66794 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66795
66796         Sync from coreutils.
66797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66798
66799 2005-09-22  Jim Meyering  <jim@meyering.net>
66800
66801         Sync from coreutils.
66802
66803         * m4/lstat.m4 (gl_FUNC_LSTAT):
66804         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66805         Remove obsolete comment.
66806         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66807         * m4/xstrtod.m4: Likewise.
66808
66809         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66810
66811 2005-09-22  Jim Meyering  <jim@meyering.net>
66812
66813         Sync from coreutils.
66814
66815         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66816
66817         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66818         the .tm_year member, since otherwise gcc-4.0 would now warn about
66819         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66820
66821         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66822         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66823
66824         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66825         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66826         when run in a time zone for which daylight savings time is in effect
66827         for the starting date.
66828
66829         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66830         stop us from restricting permissions of just-created absolute-named
66831         directories.
66832         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66833         to restore initial working directory.
66834         * lib/mkdir-p.c (make_dir_parents): New parameter:
66835         different_working_dir, to tell caller if/when we change the working
66836         directory and are unable to return to the initial one.
66837         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66838         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66839         `return false'.  This fixes a bug introduced on 2004-07-30.
66840
66841         * lib/openat.c (fdopendir): Be sure to close the supplied
66842         file descriptor before returning.  This makes our replacement
66843         implementation a little closer to Solaris's, where fdopendir
66844         ties the file descriptor to the returned DIR* pointer.
66845         * lib/openat.c (unlinkat): New function.
66846         * lib/openat.h (unlinkat): Add prototype.
66847         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66848         (openat_restore_fail): Rename from openat_restore_die.
66849         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66850
66851         Provide an alternative to exiting immediately upon save_cwd or
66852         restore_cwd failure.  Now, an application can arrange e.g.,
66853         to perform a longjump in that case.
66854         * lib/openat.c: Include dirname.h.
66855         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66856         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66857         and openat_restore_die rather than calling error directly.
66858         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66859
66860         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66861         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66862         define.
66863
66864         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66865         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66866                             int utc, int nanoseconds);
66867         Background:
66868         date should not have to allocate a megabyte of virtual memory to
66869         handle a format argument like +%1048575T.  When implemented with
66870         strftime, it must allocate such a buffer, use strftime to fill it
66871         in, print it, then free it.
66872         With fprintftime, it simply prints everything and exits.
66873         With no need for memory allocation, that's one fewer way to fail.
66874         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66875         optional field width, not before, so we accept %9:z, not %:9z.
66876         (my_strftime): Be sure to use L_('x') for literals.
66877
66878         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66879         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66880         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66881         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66882         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66883         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66884         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66885         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66886         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66887         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66888         * lib/xgethostname.c, lib/xreadlink.c:
66889         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66890
66891         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66892         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66893         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66894         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66895         and don't include <sys/file.h>).
66896
66897 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66898
66899         Sync from coreutils.
66900
66901         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66902         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66903         [!LDAV_DONE]: Avoid unused variable warning.
66904
66905 2005-09-21  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/unicodeio.h (unicode_to_mb): New declaration.
66908
66909 2005-09-20  Derek Price  <derek@ximbiot.com>
66910
66911         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66912         getaddrinfo.h.
66913
66914 2005-09-20  Bruno Haible  <bruno@clisp.org>
66915
66916         * gnulib-tool: Remove trailing slashes from the values specified for
66917         --source-base, --m4-base, --tests-base, --aux-dir.
66918         Suggested by Simon Josefsson <jas@extundo.com>.
66919
66920 2005-09-20  Bruno Haible  <bruno@clisp.org>
66921
66922         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66923         func_modules_to_filelist, func_import, func_create_testdir): Make all
66924         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66925         change when gnulib-tool is invoked in a different locale.
66926
66927 2005-09-19  Simon Josefsson  <jas@extundo.com>
66928
66929         * m4/socklen.m4: Fix typo.
66930
66931 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66932
66933         Use a consistent style for including <config.h>.
66934         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66935         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66936         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66937         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66938         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66939         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66940         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66941         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66942         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66943         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66944         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66945         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66946         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66947         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66948         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66949         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66950         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66951         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66952         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66953         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66954         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66955         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66956         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66957         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66958         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66959         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66960         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66961         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66962         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66963         lib/xstrtoumax.c, lib/yesno.c:
66964         Standardize inclusion of config.h.
66965         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66966         lib/inttostr.h:  Removed inclusion of config.h from header files.
66967         * lib/inttostr.c:  Adjusted in-tree users.
66968         * lib/timespec.h: Remove superfluous warning to include config.h.
66969         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66970         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66971         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66972         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66973         config.h with HAVE_CONFIG_H.
66974
66975 2005-09-19  Jim Meyering  <jim@meyering.net>
66976
66977         * modules/pathmax (License): Change to LGPL.
66978
66979 2005-09-19  Derek Price  <derek@ximbiot.com>
66980
66981         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66982
66983 2005-09-19  Bruno Haible  <bruno@clisp.org>
66984
66985         * gnulib-tool (import): Provide default for --tests-base.
66986
66987 2005-09-19  Bruno Haible  <bruno@clisp.org>
66988
66989         * doc/quote.texi: New file, extracted from gnulib.texi.
66990         * doc/ctime.texi: New file, extracted from gnulib.texi.
66991         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66992         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66993         * doc/gnulib.texi: Include them.
66994
66995 2005-09-18  Bruno Haible  <bruno@clisp.org>
66996
66997         Portability fix.
66998         * gnulib-tool (func_readlink): New function.
66999         (func_ln_if_changed): Use it.
67000
67001 2005-09-18  Bruno Haible  <bruno@clisp.org>
67002
67003         * gnulib-tool: Support --with-tests also with --import.
67004         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67005         (func_import): Use variables $testsbase and $inctests. Emit a
67006         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67007         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67008         SUBDIRS += $testsdir.
67009         (func_create_testdir): Update.
67010
67011 2005-09-18  Bruno Haible  <bruno@clisp.org>
67012
67013         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67014         instead of $dry_run.
67015         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67016         (func_ln_if_changed): Don't handle dry-run here.
67017         (func_import): In dry-run mode, detect more precisely which actions
67018         would be performed, and don't use "...ing" verbs.
67019
67020 2005-09-18  Bruno Haible  <bruno@clisp.org>
67021
67022         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67023         (func_import): Use join on two temporary files instead of three nested
67024         loops, in order to determine which files are new or old.
67025
67026 2005-09-18  Bruno Haible  <bruno@clisp.org>
67027
67028         * gnulib-tool (func_import): Comment out code that spits out the
67029         new files with --dry-run.
67030
67031 2005-09-18  Bruno Haible  <bruno@clisp.org>
67032
67033         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67034
67035 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * lib/stat-time.h: New file.
67038         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67039         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67040         in a different way.
67041         (timespec_cmp): New function.
67042         * lib/utimecmp.c: Include stat-time.h.
67043         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67044         members exist, not on the obsolescent ST_MTIM_NSEC.
67045         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67046
67047 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67050
67051 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67052
67053         * MODULES.html.sh (File system functions): Add stat-time.
67054         * modules/stat-time: New file.
67055         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67056         is now done in a different way, by the stat-time module.
67057         * modules/utimecmp (Depends-on): Add stat-time.
67058
67059 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67060
67061         * m4/st_mtim.m4: Remove.  Superseded by...
67062         * m4/stat-time.m4: New file.
67063         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67064         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67065
67066 2005-09-15  Derek Price  <derek@ximbiot.com>
67067
67068         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67069
67070 2005-09-15  Derek Price  <derek@ximbiot.com>
67071
67072         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67073         * lib/regex_internal.c: Ditto, using this...
67074         (__GNUC_PREREQ): ...new macro.
67075         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67076         using...
67077         (__GNUC_PREREQ): ...this new macro.
67078
67079         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67080
67081 2005-09-15  Derek Price  <derek@ximbiot.com>
67082             Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67085         changes, consolidating in...
67086         * lib/regex_internal.h: ...this file.
67087
67088 2005-09-13  Jim Meyering  <jim@meyering.net>
67089
67090         * lib/canon-host.c: Filter through gnu indent and reword comments
67091         slightly.
67092         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67093
67094 2005-09-13  Derek Price  <derek@ximbiot.com>
67095
67096         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67097         failure.
67098         Reported by Jim Meyering  <jim@meyering.net>.
67099
67100 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67101
67102         * lib/base64.c: Typo.
67103         (base64_encode): Put b64str in initialized data section.
67104
67105 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67106
67107         Merge glibc and coreutils changes into gnulib, plus a few
67108         extra fixes.
67109         * lib/md5.c: Use #error rather than a string.
67110         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67111         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67112         (__attribute__): Define to empty for non recent-GCC.
67113         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67114         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67115         Renamed from their non-__ counterparts, with new macros replacing
67116         them if not _LIBC.  Add __THROW attribute.
67117         (rol): Remove.
67118         (struct md5_ctx): Align buffer if using GCC.
67119         * lib/sha1.h (struct sha1_ctx): Likewise.
67120         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67121         The old name was backwards.
67122         (NOTSWAP): Remove; not used.
67123         (rol): New macro, moved here from md5.h.
67124         (sha1_process_block): Remove a FIXME that doesn't make sense.
67125
67126 2005-09-12  Derek Price  <derek@ximbiot.com>
67127
67128         Return usable errors from canon-host.
67129         * lib/canon-host.h: New file.
67130         * lib/canon-host.c (canon_host): Wrap...
67131         (canon_host_r): ...this new function, which now relies exclusively on
67132         getaddrinfo.
67133         (ch_strerror): New function.
67134         (last_cherror): New global.
67135         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67136         interface.
67137         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67138         void *.
67139         (freeaddrinfo): Free ai->ai_canonname when set.
67140
67141 2005-09-12  Derek Price  <derek@ximbiot.com>
67142
67143         Make canon-host require getaddrinfo.
67144         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67145         AC_LIBSOURCE canon-host.h.  Call...
67146         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67147         gl_GETADDRINFO.
67148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67149
67150 2005-09-12  Derek Price  <derek@ximbiot.com>
67151
67152         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67153         LGPL.
67154         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67155
67156 2005-09-12  Derek Price  <derek@ximbiot.com>
67157
67158         * lib/gai_strerror.c: Include config.h when available.  Include
67159         getaddrinfo.h before other headers to test interface.
67160         Reported by Larry Jones <lawrence.jones@ugs.com>.
67161
67162 2005-09-12  Derek Price  <derek@ximbiot.com>
67163             Paul Eggert  <eggert@cs.ucla.edu>
67164
67165         * modules/glob (Files): Add glob-libc.h.
67166
67167 2005-09-12  Derek Price  <derek@ximbiot.com>
67168             Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67171         glob_.h, glob-libc.h.
67172         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67173
67174 2005-09-12  Derek Price  <derek@ximbiot.com>
67175             Paul Eggert  <eggert@cs.ucla.edu>
67176
67177         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67178         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67179         protecting things that should be done only in gnulib contexts.
67180         * lib/glob_.h: New file, containing only the glob things needed for
67181         gnulib.
67182         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67183         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67184         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67185         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67186         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67187         and to respect the namespace rules better.
67188
67189 2005-09-08  Simon Josefsson  <jas@extundo.com>
67190
67191         * modules/socklen: New file.
67192
67193 2005-09-08  Simon Josefsson  <jas@extundo.com>
67194
67195         * m4/socklen.m4: New file.
67196
67197 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67198
67199         * modules/utimens (Files): Add m4/utimbuf.m4, since
67200         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67201         Reported by Sergey Poznyakoff.
67202
67203 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67204
67205         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67206         definitions, since that's the preferred style in glibc.
67207         Fix a minor spacing issue, and update copyright notice to match
67208         glibc's.
67209
67210 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67213
67214 2005-09-06  Simon Josefsson  <jas@extundo.com>
67215
67216         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67217         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67218
67219 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67222         warning.
67223
67224 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67225
67226         * config/srclist.txt: Add glibc bug 1302.
67227
67228 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         Change bitset word type from unsigned int to unsigned long int,
67231         as this has better performance on typical 64-bit hosts.
67232         Port bitset code to hosts with unusual word sizes.
67233         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67234         (build_collating_symbol):
67235         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67236         argument is a bitset.  This is merely a style issue, but it makes
67237         it clearer that an entire array is expected.
67238         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67239         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67240         Port to the case where bitset_word is not the same as unsigned int.
67241         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67242         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67243         Likewise.
67244         * lib/regexec.c (check_dst_limits_calc_pos_1,
67245         check_subexp_matching_top):
67246         (build_trtable, group_nodes_into_DFAstates):
67247         Likewise.
67248         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67249         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67250         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67251         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67252         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67253         * lib/regcomp.c (optimize_subexps, lower_subexp):
67254         Work even if bitset_word has holes in its bitwise representation.
67255         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67256         * lib/regexec.c (check_dst_limits_calc_pos_1,
67257         check_subexp_matching_top):
67258         Likewise.
67259         * lib/regex_internal.c (re_string_reconstruct):
67260         Don't assume UCHAR_MAX == 255.
67261         * lib/regex_internal.h (bitset_set_all): Likewise.
67262         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67263         All uses changed.
67264         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67265         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67266         All uses changed.
67267         (BITSET_WORD_MAX): New macro.
67268         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67269         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67270         (bitset_empty, bitset_copy):
67271         Prefer sizeof (bitset) to multiplying it out ourselves.
67272         (bitset_not_merge): Remove; unused.
67273         (bitset_contain): Return bool, not unsigned int with one bit on.
67274         All callers changed.
67275         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67276         alignment than re_node_set; do this by defining a new internal
67277         type struct dests_alloc and using it to allocate memory.
67278
67279 2005-09-05  Bruno Haible  <bruno@clisp.org>
67280
67281         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67282         links.
67283
67284 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67285
67286         * modules/size_max (Makefile.am): Add size_max.h
67287
67288 2005-09-04  Derek Price  <derek@ximbiot.com>
67289
67290         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67291
67292 2005-09-03  Simon Josefsson  <jas@extundo.com>
67293
67294         * gnulib-tool: Fix typo.
67295
67296 2005-09-03  Simon Josefsson  <jas@extundo.com>
67297
67298         * config/srclist.txt: Add glibc bug 1293.
67299
67300 2005-09-03  Derek Price  <derek@ximbiot.com>
67301
67302         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67303         From Larry Jones <lawrence.jones@ugs.com>.
67304
67305 2005-09-02  Simon Josefsson  <jas@extundo.com>
67306
67307         * modules/socklen: New file.
67308
67309 2005-09-02  Simon Josefsson  <jas@extundo.com>
67310
67311         * modules/havelib: New module.
67312
67313         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67314         Use havelib.
67315
67316 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67317
67318         Check for arithmetic overflow when calculating sizes, to prevent
67319         some buffer-overflow issues.  These patches are conservative, in the
67320         sense that when I couldn't determine whether an overflow was possible,
67321         I inserted a run-time check.
67322         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67323         macros.
67324         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67325         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67326         (re_xnrealloc, re_x2nrealloc): New inline functions.
67327         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67328         parse_bracket_exp):
67329         (build_equiv_class, build_charclass): Check for arithmetic overflow
67330         in size expression calculations.
67331         * lib/regex_internal.c (re_string_realloc_buffers):
67332         (build_wcs_upper_buffer, re_node_set_add_intersect):
67333         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67334         (re_dfa_add_node, register_state): Likewise.
67335         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67336         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67337         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67338         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67339
67340 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67341
67342         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67343         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67344
67345 2005-09-02  Bruno Haible  <bruno@clisp.org>
67346
67347         Support for lib vs. lib64 distinction on biarch platforms.
67348         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67349         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67350         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67351
67352 2005-09-02  Bruno Haible  <bruno@clisp.org>
67353
67354         * gnulib-tool (import): In the other first-use case, provide defaults
67355         as well.
67356
67357 2005-09-02  Bruno Haible  <bruno@clisp.org>
67358
67359         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67360         patches not yet found in the latest gettext release.
67361
67362 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67365         to avoid a collision with bits/local_lim.h in glibc.
67366         All uses changed.  Problem reported by Dmitry V. Levin in
67367         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67368
67369         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67370         bugs in int versus size_t comparisons.
67371         (re_string_context_at): Fix bug where the code assumed that
67372         Idx is signed.
67373
67374         Use bool where appropriate.
67375         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67376         All callers changed.
67377         (calc_eclosure_iter): Likewise, for ROOT arg.
67378         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67379         (build_charclass_op): Likewise, for NON_MATCH arg.
67380         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67381         (re_string_construct_common): Likewise, for ICASE arg.
67382         * lib/regexec.c (re_search_2_stub, re_search_stub):
67383         Likewise, for RET_LEN arg.
67384         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67385         (set_regs): Likewise, for FL_BACKTRACK arg.
67386         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67387         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67388         (calc_eclosure_iter, parse_bracket_exp):
67389         Use bool for internal variables that are booleans.
67390         * lib/regexec.c (re_search_internal, check_matching,
67391         proceed_next_node):
67392         (set_regs, build_sifted_states, sift_states_bkref):
67393         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67394         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67395         (find_collation_sequence_value):
67396         Likewise.
67397         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67398         (re_node_set_compare):
67399         Return bool, not int. All callers changed.
67400         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67401         (build_trtable, check_node_accept): Likewise.
67402         * lib/regex_internal.h: Include stdbool.h.
67403
67404         Fix bugs uncovered when converting to bool.
67405         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67406         failure instead of charging ahead blindly.
67407         * lib/regex_internal.c (register_state): Likewise.
67408         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67409         for freeing internal storage.
67410         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67411         bitset pieces used as boolean, to avoid undefined behavior
67412         on hosts that do int overflow checking.
67413
67414 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67415
67416         * config/srclist.txt: Add glibc bugs 1285-1287.
67417
67418 2005-09-01  Jim Meyering  <jim@meyering.net>
67419
67420         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67421         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67422         Require gl_STAT_MACROS, too.
67423
67424 2005-09-01  Bruno Haible  <bruno@clisp.org>
67425
67426         * gnulib-tool (import): In the first-use case, provide defaults.
67427
67428 2005-09-01  Bruno Haible  <bruno@clisp.org>
67429
67430         * gnulib-tool (func_import): Remove the .tmp files.
67431
67432 2005-09-01  Bruno Haible  <bruno@clisp.org>
67433
67434         * gnulib-tool (func_import): Fix handling of symbolic links.
67435
67436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67437
67438         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67439         old glibc regex code mishandles strings longer than 2**31 bytes.
67440         This patch fixes this when the regex code is used in gnulib
67441         (i.e., outside glibc).
67442
67443         This patch should not affect the use of the regex code inside
67444         glibc.  No doubt this problem also needs to be handled for glibc
67445         as well, but the result will be an incompatible change to the
67446         glibc ABI, and the old ABI will have to be supported too.  That
67447         can be the the subject for another patch.
67448
67449         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67450         governing whether the rest of this patch is active.  By default,
67451         the macro is disabled and the patch has no effect.
67452         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67453         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67454         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67455         (re_match_2, re_set_registers): Use the new types.
67456         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67457         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67458         New macros.
67459         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67460         (re_string_context_at, bin_tree_t, re_dfastate_t):
67461         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67462         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67463         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67464         (re_string_char_size_at, re_string_wchar_at):
67465         (re_string_elem_size_at):
67466         Use the new types and macros to port to 64-bit hosts.
67467         Use unsigned types for internal values, so that the code
67468         mostly works even for arrays larger than SSIZE_MAX.
67469         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67470         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67471         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67472         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67473         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67474         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67475         (calc_inveclosure, parse_dup_op, build_range_exp):
67476         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67477         (fetch_number, create_token_tree, mark_opt_subexp):
67478         Likewise.
67479         * lib/regex_internal.c (re_string_construct_common,
67480         create_ci_newstate):
67481         (create_cd_newstate, re_string_allocate, re_string_construct):
67482         (re_string_realloc_buffers, build_wcs_upper_buffer):
67483         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67484         (re_string_reconstruct, re_string_peek_byte_case):
67485         (re_string_fetch_byte_case, re_string_context_at):
67486         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67487         (re_node_set_init_copy, re_node_set_add_intersect):
67488         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67489         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67490         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67491         (re_acquire_state, re_acquire_state_context, register_state):
67492         Likewise.
67493         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67494         search_cur_bkref_entry):
67495         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67496         (re_search_internal, re_search_2_stub, re_search_stub)
67497         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67498         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67499         (update_cur_sifted_state, check_dst_limits):
67500         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67501         (check_subexp_limits, sift_states_bkref, merge_state_array):
67502         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67503         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67504         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67505         (expand_bkref_cache, check_node_accept_bytes):
67506         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67507         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67508         (acquire_init_state_context, check_halt_node_context):
67509         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67510         (sift_states_backward, clean_state_log_if_needed):
67511         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67512         (find_recover_state, transit_state_sb, transit_state_mb):
67513         (transit_state_bkref, build_trtable, match_ctx_clean):
67514         Likewise.
67515         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67516         to work around an assumption that REG_MISSING is negative.
67517
67518         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67519         (seek_collating_symbol_entry) [defined _LIBC]:
67520         (lookup_collation_sequence_value) [defined _LIBC]:
67521         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67522         Use prototypes rather than old-style function definitions.
67523         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67524         (transit_state_sb) [0]:
67525         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67526
67527         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67528         rm_eo.
67529
67530         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67531         (optimize_subexps, lower_subexp):
67532         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67533         since the signed shift might overflow.  Use 1u<<31 instead.
67534         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67535         Likewise.
67536         * lib/regexec.c (check_dst_limits_calc_pos_1,
67537         check_subexp_matching_top): Likewise.
67538
67539         * lib/regcomp.c (optimize_subexps, lower_subexp):
67540         Use CHAR_BIT rather than 8, for clarity.
67541         * lib/regexec.c (check_dst_limits_calc_pos_1):
67542         (check_subexp_matching_top): Likewise.
67543         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67544         have to worry about portability issues when shifting it left.
67545         Remove no-longer-needed test for table_size > 0.
67546         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67547         in a word, as the resulting behavior is undefined.
67548         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67549         in one case, a <= should have been an <, and in another case the
67550         whole test was missing.
67551         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67552         the standard name CHAR_BIT.
67553         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67554         this is not true on one's complement and signed-magnitude hosts.
67555
67556         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67557         next_last_offset.
67558         (struct re_dfa_t): Remove unused member states_alloc.
67559         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67560
67561 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67564         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67565         and large-file glibc and in 32-bit large-file Solaris.
67566
67567 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67570         lengths fit in regoff_t; this isn't true if regoff_t is the same
67571         width as size_t.
67572         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67573         (= START + RANGE) instead of RANGE.  This avoids overflow
67574         problems when regoff_t is the same width as size_t.
67575         All callers changed.
67576         (re_search_2_stub): Check for overflow when adding the
67577         sizes of the two strings.
67578         (re_search_stub): Check for overflow when adding START
67579         to RANGE; if it occurs, substitute the extreme value.
67580
67581 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67584
67585 2005-08-31  Jim Meyering  <jim@meyering.net>
67586
67587         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67588         a pointer-to-const.
67589         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67590         (register_state): Likewise.
67591         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67592         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67593         (group_nodes_into_DFAstates): Likewise.
67594
67595 2005-08-31  Jim Meyering  <jim@meyering.net>
67596
67597         * check-module: Add a FIXME comment.
67598
67599 2005-08-31  Eric Blake  <ebb9@byu.net>
67600
67601         * modules/unistd-safer (Files): Add unistd--.h.
67602         * modules/stdio-safer (Files): Add stdio--.h.
67603
67604 2005-08-31  Derek Price  <derek@ximbiot.com>
67605
67606         * lib/getdelim.c (getdelim): Return EOF on EOF.
67607         Reported by Larry Jones <lawrence.jones@ugs.com>.
67608
67609 2005-08-31  Bruno Haible  <bruno@clisp.org>
67610
67611         Avoid unnecessary diffs in the generated lib/Makefile.am.
67612         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67613         the generated files.
67614         (func_import): Don't set cmd.
67615
67616 2005-08-31  Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/strstr.c: Include <stddef.h>, for NULL.
67619         * lib/strcasestr.c: Likewise.
67620         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67621
67622 2005-08-31  Bruno Haible  <bruno@clisp.org>
67623
67624         * gnulib-tool: New option --macro-prefix.
67625         (func_import): Use macro_prefix.
67626         (import): Handle option --macro-prefix.
67627
67628 2005-08-31  Bruno Haible  <bruno@clisp.org>
67629
67630         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67631         Also use new variables cached_lgpl, cached_libtool.
67632
67633 2005-08-31  Bruno Haible  <bruno@clisp.org>
67634
67635         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67636         always instantiating them.
67637
67638 2005-08-31  Bruno Haible  <bruno@clisp.org>
67639
67640         * gnulib-tool (func_import): Read the previous cached settings
67641         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67642         earlier added by gnulib but are now dropped. Warn when a gnulib file
67643         overwrites a non-gnulib file.
67644
67645 2005-08-31  Bruno Haible  <bruno@clisp.org>
67646
67647         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67648         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67649         projects that don't keep autogenerated files in CVS. Put into
67650         actioncmd only the specified modules, not the transitive closure.
67651
67652 2005-08-31  Bruno Haible  <bruno@clisp.org>
67653
67654         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67655         Create directories that shall be filled.
67656         (import): Don't look for gl_* macros in configure.ac. Recurse across
67657         all directories containing a gnulib-cache.m4 files, if meaningful.
67658
67659 2005-08-31  Bruno Haible  <bruno@clisp.org>
67660
67661         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67662         (import): Set seen_libtool when we see gl_LIBTOOL.
67663
67664 2005-08-31  Bruno Haible  <bruno@clisp.org>
67665
67666         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67667         declaration macro definitions from generated gnulib.m4.
67668
67669 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67670
67671         * lib/iconvme.h: Add prototype for iconv_alloc.
67672
67673 2005-08-29  Simon Josefsson  <jas@extundo.com>
67674
67675         * lib/iconvme.c: Fix errno.
67676
67677 2005-08-29  Bruno Haible  <bruno@clisp.org>
67678
67679         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67680         that it works when the directory contains spaces.
67681
67682 2005-08-29  Bruno Haible  <bruno@clisp.org>
67683
67684         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67685
67686 2005-08-29  Bruno Haible  <bruno@clisp.org>
67687
67688         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67689         Emit more advice.
67690
67691 2005-08-29  Bruno Haible  <bruno@clisp.org>
67692         and Stepan Kasal  <kasal@ucw.cz>
67693
67694         * check-module: If more parameters are given, check each of them
67695         separately; add more exceptions, as noted by Jim Meyering.
67696         (check_module): New procedure.
67697         (%exempt_header): Now contains all exceptions.
67698
67699 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67700
67701         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67702
67703 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67704
67705         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67706
67707 2005-08-28  Bruno Haible  <bruno@clisp.org>
67708
67709         * m4/gnulib-tool.m4: New file.
67710
67711 2005-08-27  Jim Meyering  <jim@meyering.net>
67712
67713         * modules/unistd-safer (Files): Add pipe-safer.c.
67714         * modules/fcntl-safer (Files): Add creat-safer.c.
67715
67716 2005-08-27  Jim Meyering  <jim@meyering.net>
67717
67718         * m4/stdlib-safer.m4: New file.  From coreutils.
67719         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67720         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67721         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67722         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67723         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67724
67725 2005-08-27  Jim Meyering  <jim@meyering.net>
67726
67727         * lib/fopen-safer.c: Merge minor changes from coreutils.
67728         * lib/dup-safer.c: Likewise.
67729         * lib/fd-safer.c: Likewise.
67730
67731         Merge from coreutils.
67732         * lib/stdio--.h: New file.
67733         * lib/stdlib--.h: New file.
67734         * lib/mkstemp-safer.c: New file.
67735
67736         GNU tar needs these.
67737         * lib/pipe-safer.c: New file.
67738         * lib/creat-safer.c: New file.
67739         * lib/fcntl--.h (creat): Define to creat_safer.
67740         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67741         * lib/unistd--.h (pipe): Define to pipe_safer.
67742         * lib/unistd-safer.h: Declare pipe_safer.
67743
67744 2005-08-26  Simon Josefsson  <jas@extundo.com>
67745
67746         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67747         Haible <bruno@clisp.org>.
67748
67749 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         * lib/regex_internal.h: Remove all references to
67752         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67753         or better.
67754         (bitset_not, bitset_merge, bitset_not_merge):
67755         (bitset_mask, re_string_allocate, re_string_construct):
67756         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67757         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67758         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67759         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67760         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67761         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67762         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67763         (re_acquire_state_context):
67764         Remove unnecessary forward decls.
67765         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67766         Put __attribute at function definition,
67767         now that the function decl has been removed.
67768         * lib/regex_internal.c (re_string_peek_byte_case):
67769         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67770         Likewise.
67771
67772 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67773
67774         * m4/regex.m4: Add AC_PREREQ(2.50).
67775         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67776
67777 2005-08-25  Simon Josefsson  <jas@extundo.com>
67778
67779         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67780         __fsetlocking.
67781
67782 2005-08-25  Simon Josefsson  <jas@extundo.com>
67783
67784         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67785         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67786         GLIBC specific code.
67787
67788 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         Make regex safe for g++.  This fixes one real bug (an "err"
67791         that should have been "*err").  g++ problem reported by
67792         Sam Steingold.
67793         * lib/regex_internal.h (re_calloc): New macro, consistent with
67794         re_malloc etc.  All callers of calloc changed to use re_calloc.
67795         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67796         not int.  All callers changed.
67797         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67798         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67799         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67800         (find_recover_state): Change "err" to "*err"; this fixes what
67801         appears to be a real bug.
67802         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67803         versus int.
67804
67805 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         * modules/regex (Depends-on): Add malloc, since the code
67808         assumes that !malloc(0) means failure.
67809
67810 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67813
67814         alloca modernization/simplification for regex.
67815         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67816         needs to be at the start of the file, and can be moved into
67817         regex_internal.h and simplified.
67818         * lib/regex_internal.h: Include <alloca.h>.
67819         (__libc_use_alloca) [!defined _LIBC]: New macro.
67820         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67821         now works outside glibc.
67822
67823 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         * config/srclist.txt: Add glibc bugs 1241, 1245.
67826
67827 2005-08-25  Jim Meyering  <jim@meyering.net>
67828
67829         * lib/open-safer.c: Include <config.h>.
67830         Otherwise, we'd lose LARGEFILE support in any file using
67831         e.g. "fcntl--.h"
67832
67833 2005-08-25  Bruno Haible  <bruno@clisp.org>
67834
67835         * m4/minmax.m4: Require autoconf 2.52.
67836         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67837         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67838         alternatives of translit over the alphabet.
67839         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67840
67841 2005-08-24  Simon Josefsson  <jas@extundo.com>
67842
67843         * tests/test-getpass.c: New file.
67844
67845 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67848         for GNU regex features.
67849
67850 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67853         * lib/regex.h (regerror): Likewise.
67854
67855         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67856         requires this.  (The code never needed it.)
67857
67858         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67859         All uses of recently-renamed identifiers changed to use the new,
67860         POSIX-compliant names.  The code will build and run just fine
67861         without these changes, but it's better to eat our own dog food
67862         and use the standard-conforming names.
67863
67864         * lib/regex.h: Fix a multitude of POSIX name space violations.
67865         These changes have an effect only for programs that define
67866         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67867         do not change anything for programs compiled in the normal way.
67868         Also, there is no effect on the ABI.
67869
67870         (_REGEX_SOURCE): New macro.
67871         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67872         defined and _GNU_SOURCE is not; this fixes a name space violation.
67873
67874         Rename the following macros to obey POSIX requirements.
67875         The old names are still visible as macros if _REGEX_SOURCE is defined.
67876         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67877         RE_BACKSLASH_ESCAPE_IN_LISTS.
67878         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67879         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67880         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67881         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67882         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67883         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67884         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67885         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67886         (REG_INTERVALS): renamed from RE_INTERVALS.
67887         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67888         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67889         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67890         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67891         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67892         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67893         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67894         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67895         RE_UNMATCHED_RIGHT_PAREN_ORD.
67896         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67897         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67898         (REG_DEBUG): renamed from RE_DEBUG.
67899         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67900         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67901         unusual, since we can't clash with the POSIX REG_ICASE.
67902         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67903         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67904         (REG_NO_SUB): renamed from RE_NO_SUB.
67905         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67906         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67907         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67908         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67909         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67910         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67911         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67912         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67913         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67914         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67915         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67916         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67917         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67918         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67919         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67920         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67921         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67922         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67923         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67924         (REG_FIXED): Renamed from REGS_FIXED.
67925         (REG_NREGS): Renamed from RE_NREGS.
67926
67927         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67928         of other REG_* macros, since POSIX says the user is allowed to
67929         #undef these macros selectively.
67930
67931         (reg_errcode_t): Update comment stating what other tables need
67932         to be consistent.
67933
67934         Rename the following enum values to obey POSIX requirements.
67935         The old names are still visible as macros.
67936         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67937         is not defined, since GNU is supposed to be a superset of POSIX as
67938         much as possible, and since we want reg_errcode_t to be a signed
67939         type for implementation consistency.
67940         (_REG_NOERROR): Renamed from REG_NOERROR.
67941         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67942         (_REG_BADPAT): Renamed from REG_BADPAT.
67943         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67944         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67945         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67946         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67947         (_REG_EBRACK): Renamed from REG_EBRACK.
67948         (_REG_EPAREN): Renamed from REG_EPAREN.
67949         (_REG_EBRACE): Renamed from REG_EBRACE.
67950         (_REG_BADBR): Renamed from REG_BADBR.
67951         (_REG_ERANGE): Renamed from REG_ERANGE.
67952         (_REG_ESPACE): Renamed from REG_ESPACE.
67953         (_REG_BADRPT): Renamed from REG_BADRPT.
67954         (_REG_EEND): Renamed from REG_EEND.
67955         (_REG_ESIZE): Renamed from REG_ESIZE.
67956         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67957         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67958         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67959         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67960         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67961
67962         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67963         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67964         changed.  But support the old name if the new one is not defined
67965         and if _REGEX_SOURCE.
67966
67967         Change the following member names in struct re_pattern_buffer.
67968         The old names are still supported if !_REGEX_SOURCE.
67969         The new names are always supported, regardless of _REGEX_SOURCE.
67970         (re_buffer): Renamed from buffer.
67971         (re_allocated): Renamed from allocated.
67972         (re_used): Renamed from used.
67973         (re_syntax): Renamed from syntax.
67974         (re_fastmap): Renamed from fastmap.
67975         (re_translate): Renamed from translate.
67976         (re_can_be_null): Renamed from can_be_null.
67977         (re_regs_allocated): Renamed from regs_allocated.
67978         (re_fastmap_accurate): Renamed from fastmap_accurate.
67979         (re_no_sub): Renamed from no_sub.
67980         (re_not_bol): Renamed from not_bol.
67981         (re_not_eol): Renamed from not_eol.
67982         (re_newline_anchor): Renamed from newline_anchor.
67983
67984         Change the following member names in struct re_registers.
67985         The old names are still supported if !_REGEX_SOURCE.
67986         The new names are always supported, regardless of _REGEX_SOURCE.
67987         (rm_num_regs): Renamed from num_regs.
67988         (rm_start): Renamed from start.
67989         (rm_end): Renamed from end.
67990
67991         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67992         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67993         Prepend __ to parameter names.
67994
67995         Undo yesterday's changes.
67996
67997 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68000         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68001         lib/regex.c.
68002
68003 2005-08-24  Jim Meyering  <jim@meyering.net>
68004
68005         Sync from coreutils.
68006         * m4/fcntl-safer.m4: New file.
68007
68008         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68009         and object files for this module.
68010
68011 2005-08-24  Jim Meyering  <jim@meyering.net>
68012
68013         Sync from coreutils.
68014         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68015
68016 2005-08-24  Jim Meyering  <jim@meyering.net>
68017
68018         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68019         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68020
68021 2005-08-24  Jim Meyering  <jim@meyering.net>
68022
68023         * modules/fcntl-safer: New module.
68024         * modules/fts (Depends-on): Add fcntl-safer.
68025         * MODULES.html.sh (File descriptor based Input/Output):
68026         Add fcntl-safer.
68027
68028 2005-08-24  Bruno Haible  <bruno@clisp.org>
68029
68030         Support for unit test modules.
68031         * modules/README: Mention tests modules.
68032         * modules/TEMPLATE-TESTS: New file.
68033         * gnulib-tool: New options --extract-tests-module, --with-tests and
68034         --tests-base (unused for the moment).
68035         (testsbase, inctests): New variables.
68036         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68037         (func_verify_module): Exclude TEMPLATE-TESTS.
68038         (func_verify_nontests_module, func_verify_tests_module): New functions.
68039         (func_get_dependencies): Add implicit dependency for tests modules.
68040         (func_get_tests_module): New function.
68041         (func_modules_transitive_closure): When --with-tests was specified,
68042         include the unit tests as well, unless explicitly avoided.
68043         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68044         (func_emit_tests_Makefile_am): New function.
68045         (func_create_testdir): When --with-tests was specified, emit a
68046         tests/ directory.
68047         * MODULES.html.sh (Future developments): Update.
68048
68049 2005-08-24  Bruno Haible  <bruno@clisp.org>
68050
68051         * modules/tls-tests: New file.
68052         * tests/test-tls.c: New file, from GNU gettext.
68053
68054 2005-08-24  Bruno Haible  <bruno@clisp.org>
68055
68056         * modules/lock-tests: New file.
68057         * tests/test-lock.c: New file, from GNU gettext.
68058
68059 2005-08-24  Bruno Haible  <bruno@clisp.org>
68060
68061         * lib/lock.h: Add multiple inclusion guard.
68062         * lib/tls.h: Add multiple inclusion guard.
68063
68064 2005-08-24  Bruno Haible  <bruno@clisp.org>
68065
68066         * gnulib-tool: Add support for the --aux-dir option to
68067         --create-testdir, --create-megatestdir, --test, --megatest.
68068         (func_create_testdir, func_create_megatestdir): Optionally emit a
68069         AC_CONFIG_AUX_DIR directive.
68070         (create-testdir, create-megatestdir, test, megatest): Provide a
68071         default value for $auxdir.
68072
68073 2005-08-24  Bruno Haible  <bruno@clisp.org>
68074
68075         * gnulib-tool (import): Use compound statement instead of subshell
68076         where possible.
68077
68078 2005-08-24  Bruno Haible  <bruno@clisp.org>
68079
68080         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68081
68082 2005-08-24  Bruno Haible  <bruno@clisp.org>
68083
68084         * gnulib-tool (func_version): Update.
68085
68086 2005-08-24  Bruno Haible  <bruno@clisp.org>
68087
68088         * gnulib-tool (func_import, func_create_testdir,
68089         func_create_megatestdir): Quote all autoconf macro arguments.
68090
68091 2005-08-24  Bruno Haible  <bruno@clisp.org>
68092
68093         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68094         option --force, because --force causes the aclocal.m4 of each
68095         subdirectory to be newer than the corresponding config.h.in.
68096
68097 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68100         All contents moved to gl_REGEX.
68101         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68102         assume that it does.
68103
68104 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * lib/regex.h (REG_NOSYS)
68107         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68108         Define, since POSIX requires it as of 2001.
68109         (_REG_ENOSYS)
68110         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68111         New private symbol, used to keep the enum signed in all cases.
68112         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68113         Youngman in
68114         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68115
68116         * lib/regex_internal.c (re_string_skip_chars, register_state):
68117         (calc_state_hash):
68118         Remove forward decls; no longer needed now that we use prototypes.
68119         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68120         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68121         (clean_state_log_if_needed): Likewise.
68122
68123 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         * config/srclist.txt: Add glibc bugs 1231-1233.
68126
68127 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         Fix problems reported by Sam Steingold in
68130         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68131         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68132         assumed that reg_errcode_t is a signed type, which is not
68133         necessarily true if _XOPEN_SOURCE is not defined.
68134         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68135         since some compilers warn about it otherwise.
68136
68137 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68138
68139         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68140         (init_word_char, create_initial_state, duplicate_node_closure):
68141         (fetch_token, peek_token_bracket, build_range_exp):
68142         (build_collating_symbol): Remove forward decls; no longer needed
68143         now that we use prototypes.
68144
68145         * lib/regcomp.c:
68146         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68147         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68148         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68149         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68150         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68151         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68152         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68153         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68154         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68155         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68156         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68157         (build_charclass, build_charclass_op, fetch_number, create_tree):
68158         (create_token_tree, mark_opt_subexp, duplicate_tree):
68159         Use prototypes rather than old-style definitions.
68160
68161         * lib/regex_internal.c:
68162         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68163         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68164         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68165         (re_string_reconstruct, re_string_peek_byte_case):
68166         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68167         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68168         (re_node_set_init_copy, re_node_set_add_intersect):
68169         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68170         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68171         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68172         (re_acquire_state, re_acquire_state_context, register_state):
68173         (create_ci_newstate, create_cd_newstate, free_state):
68174         Likewise.
68175         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68176         re_search_2):
68177         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68178         (re_search_internal, prune_impossible_nodes):
68179         (acquire_init_state_context, check_matching, static):
68180         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68181         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68182         (update_regs, sift_states_backward, build_sifted_states):
68183         (clean_state_log_if_needed, merge_state_array):
68184         (update_cur_sifted_state, add_epsilon_src_nodes):
68185         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68186         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68187         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68188         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68189         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68190         (check_arrival, check_arrival_add_next_nodes):
68191         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68192         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68193         (check_node_accept_bytes, check_node_accept, extend_buffers):
68194         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68195         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68196         (sift_ctx_init):
68197         Likewise.
68198
68199         * lib/regex_internal.h:
68200         (re_string_allocate, re_string_construct, re_string_reconstruct):
68201         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68202         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68203         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68204         (re_string_context_at, re_string_peek_byte_case):
68205         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68206         is defined, since we now use prototypes always.
68207
68208         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68209         C89 or better.  All uses removed.
68210
68211 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68212
68213         * config/srclist.txt: Add glibc bugs 1220-1227.
68214
68215 2005-08-20  Jim Meyering  <jim@meyering.net>
68216
68217         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68218         of unused local, dfa.
68219
68220 2005-08-20  Bruno Haible  <bruno@clisp.org>
68221
68222         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68223
68224 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68225
68226         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68227         (re_node_set_insert_last, re_dfa_add_node):
68228         Rename local variables to avoid GCC shadowing warnings.
68229
68230 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68233         [defined lint]: Suppress bogus uninitialized-variable warnings.
68234
68235         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68236         and let the caller return REG_ESPACE if out of space.  This
68237         removes an uninitialied-variable warning with GCC 4.0.1, and also
68238         avoids taking the address of a local variable.  All callers
68239         changed.
68240
68241 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68244         $LIBCSRC/posix/regexec.c.
68245         Add glibc bug 1217 for regcomp.c.
68246
68247 2005-08-19  Jim Meyering  <jim@meyering.net>
68248
68249         * lib/regexec.c (proceed_next_node): Redo local variables to
68250         avoid GCC shadowing warnings.
68251
68252 2005-08-18  Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/strstr.c (strstr): Fix return value in multibyte case.
68255         * lib/strcasestr.c (strcasestr): Likewise.
68256
68257 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68260
68261 2005-08-17  Jim Meyering  <jim@meyering.net>
68262
68263         Make the %s format (seconds since the epoch) work for a negative
68264         number and when used with a zero-padded field width, e.g. %015s.
68265
68266         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68267         label so that it precedes the code to set `digits'.  Otherwise,
68268         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68269         print `00-22'.  Now, it prints `-0022', as it should.
68270
68271 2005-08-17  Bruno Haible  <bruno@clisp.org>
68272
68273         * modules/strstr (Files): Add m4/mbrtowc.m4.
68274         (Depends-on): Add mbuiter.
68275
68276 2005-08-17  Bruno Haible  <bruno@clisp.org>
68277
68278         * modules/strcasestr: New file.
68279         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68280         strcasestr.
68281
68282 2005-08-17  Bruno Haible  <bruno@clisp.org>
68283
68284         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68285
68286 2005-08-17  Bruno Haible  <bruno@clisp.org>
68287
68288         * modules/mbuiter: New file.
68289         * MODULES.html.sh (Extended multibyte and wide character utilities):
68290         Add mbuiter.
68291
68292 2005-08-17  Bruno Haible  <bruno@clisp.org>
68293
68294         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68295         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68296
68297 2005-08-17  Bruno Haible  <bruno@clisp.org>
68298
68299         * m4/strcasestr.m4: New file.
68300
68301 2005-08-17  Bruno Haible  <bruno@clisp.org>
68302
68303         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68304         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68305
68306 2005-08-17  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/strcasestr.h: New file.
68309         * lib/strcasestr.c: New file.
68310
68311 2005-08-17  Bruno Haible  <bruno@clisp.org>
68312
68313         * lib/strcasecmp.c: Use mbuiter.h.
68314
68315 2005-08-17  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/mbuiter.h: New file.
68318
68319 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68322         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68323         and gl_GETOPT are both invoked via different paths (as happens
68324         with GNU tar CVS because it uses both argp and getopt), the former
68325         wins.
68326
68327 2005-08-16  Bruno Haible  <bruno@clisp.org>
68328
68329         * modules/tls: New file.
68330         * MODULES.html.sh (Multithreading): Add tls.
68331
68332 2005-08-16  Bruno Haible  <bruno@clisp.org>
68333
68334         * modules/strnlen1: New file.
68335         * MODULES.html.sh (String handling): Add strnlen1.
68336
68337 2005-08-16  Bruno Haible  <bruno@clisp.org>
68338
68339         * modules/strcase (Files): Add m4/mbrtowc.m4.
68340         (Depends-on): Add strnlen1, mbchar.
68341
68342 2005-08-16  Bruno Haible  <bruno@clisp.org>
68343
68344         * modules/mbiter: New file.
68345         * MODULES.html.sh (Extended multibyte and wide character utilities):
68346         Add mbiter.
68347
68348 2005-08-16  Bruno Haible  <bruno@clisp.org>
68349
68350         * modules/mbfile: New file.
68351         * MODULES.html.sh (Extended multibyte and wide character utilities):
68352         Add mbfile.
68353
68354 2005-08-16  Bruno Haible  <bruno@clisp.org>
68355
68356         * modules/mbchar: New file.
68357         * MODULES.html.sh (Extended multibyte and wide character utilities):
68358         New section.
68359
68360 2005-08-16  Bruno Haible  <bruno@clisp.org>
68361
68362         * m4/tls.m4: New file, from GNU gettext.
68363
68364 2005-08-16  Bruno Haible  <bruno@clisp.org>
68365
68366         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68367         always.
68368         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68369
68370 2005-08-16  Bruno Haible  <bruno@clisp.org>
68371
68372         * m4/mbiter.m4: New file.
68373
68374 2005-08-16  Bruno Haible  <bruno@clisp.org>
68375
68376         * m4/mbfile.m4: New file.
68377
68378 2005-08-16  Bruno Haible  <bruno@clisp.org>
68379
68380         * m4/mbchar.m4: New file.
68381
68382 2005-08-16  Bruno Haible  <bruno@clisp.org>
68383
68384         * lib/tls.h: New file, from GNU gettext.
68385         * lib/tls.c: New file, from GNU gettext.
68386
68387 2005-08-16  Bruno Haible  <bruno@clisp.org>
68388
68389         * lib/strnlen1.h: New file.
68390         * lib/strnlen1.c: New file.
68391
68392 2005-08-16  Bruno Haible  <bruno@clisp.org>
68393
68394         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68395         (mbi_init): Update.
68396         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68397         NUL byte, not after it.
68398
68399 2005-08-16  Bruno Haible  <bruno@clisp.org>
68400
68401         * lib/strcase.h (strcasecmp): Add note in comments.
68402         * lib/strncasecmp.c: Use code from strcasecmp.c.
68403         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68404         (strcasecmp): Work correctly in multibyte locales.
68405
68406 2005-08-16  Bruno Haible  <bruno@clisp.org>
68407
68408         * lib/mbiter.h: New file.
68409
68410 2005-08-16  Bruno Haible  <bruno@clisp.org>
68411
68412         * lib/mbfile.h: New file.
68413
68414 2005-08-16  Bruno Haible  <bruno@clisp.org>
68415
68416         * lib/mbchar.h: New file.
68417         * lib/mbchar.c: New file.
68418
68419 2005-08-16  Bruno Haible  <bruno@clisp.org>
68420
68421         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68422         the valid ones. Makes the comparison operations transitive:
68423         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68424         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68425
68426 2005-08-15  Simon Josefsson  <jas@extundo.com>
68427
68428         * modules/ssize_t (License): Change to 'unlimited'.
68429
68430         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68431
68432 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68435         Add comments for each pending glibc patch.
68436
68437 2005-08-15  Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68440         __cplusplus is defined.
68441
68442 2005-08-14  Jim Meyering  <jim@meyering.net>
68443
68444         Sync from coreutils.
68445
68446         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68447         Use the hash-table-based cycle-detection code not just when
68448         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68449         Reported by James Youngman in
68450         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68451         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68452         FTS_TIGHT_CYCLE_CHECK.
68453         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68454         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68455         once again.
68456         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68457         * lib/fts.c (fd_safer): Remove decl.
68458         Include fcntl--.h rather than unistd-safer.h
68459         (fts_safe_changedir): Don't call fd_safer; no longer needed
68460         now that we include fcntl--.h.
68461
68462 2005-08-12  Simon Josefsson  <jas@extundo.com>
68463
68464         * modules/getndelim2: Use ssize_t module.
68465         * modules/getnline: Likewise.
68466         * modules/safe-read: Likewise.
68467         * modules/xreadlink: Likewise.
68468
68469         * modules/ssize_t: New file.
68470
68471 2005-08-12  Simon Josefsson  <jas@extundo.com>
68472
68473         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68474
68475 2005-08-12  Simon Josefsson  <jas@extundo.com>
68476
68477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68478         ssize_t.
68479
68480 2005-08-12  Simon Josefsson  <jas@extundo.com>
68481
68482         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68483         readline, getdelim and check_version.
68484         (Support for systems lacking ISO C 99: Sizes of integer types):
68485         Add size_max.
68486
68487 2005-08-12  Bruno Haible  <bruno@clisp.org>
68488
68489         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68490
68491 2005-08-11  Simon Josefsson  <jas@extundo.com>
68492
68493         * modules/readline: New file.
68494
68495         * modules/strnlen (Files): Add strnlen.h.
68496
68497 2005-08-11  Simon Josefsson  <jas@extundo.com>
68498
68499         * m4/readline.m4: New file.
68500
68501 2005-08-11  Simon Josefsson  <jas@extundo.com>
68502
68503         * lib/readline.h, readline.c: New file.
68504
68505 2005-08-11  Simon Josefsson  <jas@extundo.com>
68506
68507         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68508         gl_AVOID.
68509
68510 2005-08-11  Bruno Haible  <bruno@clisp.org>
68511
68512         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68513
68514 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68515
68516         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68517
68518 2005-08-10  Simon Josefsson  <jas@extundo.com>
68519
68520         * tests/test-iconvme.c: New file.
68521
68522 2005-08-10  Simon Josefsson  <jas@extundo.com>
68523
68524         * m4/strnlen.m4: New file.
68525
68526         * m4/strndup.m4: Don't check for strnlen declaration, done in
68527         strnlen.m4.
68528
68529 2005-08-10  Simon Josefsson  <jas@extundo.com>
68530
68531         * lib/strndup.c: Use strnlen.h.
68532
68533         * lib/strnlen.h: New file.
68534
68535 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68536
68537         * README: Typos.
68538
68539 2005-08-02  Simon Josefsson  <jas@extundo.com>
68540
68541         * modules/readline: New file.
68542
68543 2005-08-02  Simon Josefsson  <jas@extundo.com>
68544
68545         * modules/getdelim: New file.
68546
68547         * modules/getline: Rewrite, don't use getndelim2.
68548
68549 2005-08-02  Simon Josefsson  <jas@extundo.com>
68550
68551         * m4/getline.m4: Separate out getdelim stuff into separate module.
68552
68553         * m4/getdelim.m4: New file.
68554
68555 2005-08-02  Simon Josefsson  <jas@extundo.com>
68556
68557         * lib/getline.h, getline.c: Rewrite.
68558
68559         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68560
68561 2005-07-31  Bruno Haible  <bruno@clisp.org>
68562
68563         * lib/lock.h (gl_lock_initializer): New macro.
68564         (gl_lock_define_initialized): Use it.
68565         (gl_rwlock_initializer): New macro.
68566         (gl_rwlock_define_initialized): Use it.
68567         (gl_recursive_lock_initializer): New macro.
68568         (gl_recursive_lock_define_initialized): Use it.
68569
68570 2005-07-30  Karl Berry  <karl@gnu.org>
68571
68572         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68573         Report from Ben Pfaff, regarding getopt.
68574
68575 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68578         normal way.
68579         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68580         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68581         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68582         (gl_GETOPT): Use the new macros.  Most of the implementation
68583         is moved to the new macros.  This is for programs like Emacs
68584         that don't want all the functionality of gl_GETOPT.
68585
68586 2005-07-26  Bruno Haible  <bruno@clisp.org>
68587
68588         * m4/lock.m4: Update from GNU gettext.
68589
68590 2005-07-26  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/lock.h: Update from GNU gettext.
68593         * lib/lock.c: Update from GNU gettext.
68594
68595 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68598         obsolescent AC_TRY_RUN.  Include the default includes files, for
68599         'exit'.
68600
68601 2005-07-24  Bruno Haible  <bruno@clisp.org>
68602
68603         * modules/visibility: New file.
68604         * MODULES.html.sh (Misc): Add visibility.
68605
68606 2005-07-24  Bruno Haible  <bruno@clisp.org>
68607
68608         * m4/visibility.m4: New file.
68609
68610 2005-07-24  Bruno Haible  <bruno@clisp.org>
68611
68612         * doc/visibility.texi: New file.
68613
68614 2005-07-22  Bruno Haible  <bruno@clisp.org>
68615
68616         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68617         $(ALLOCA_H), redundant through BUILT_SOURCES.
68618         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68619         redundant through BUILT_SOURCES.
68620         * modules/byteswap (Makefile.am): Remove explicit dependency on
68621         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68622         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68623         $(FNMATCH_H), redundant through BUILT_SOURCES.
68624         * modules/getopt (Makefile.am): Remove explicit dependency on
68625         $(GETOPT_H), redundant through BUILT_SOURCES.
68626         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68627         redundant through BUILT_SOURCES.
68628         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68629         redundant through BUILT_SOURCES.
68630         * modules/stdbool (Makefile.am): Remove explicit dependency on
68631         $(STDBOOL_H), redundant through BUILT_SOURCES.
68632         * modules/stdint (Makefile.am): Remove explicit dependency on
68633         $(STDINT_H), redundant through BUILT_SOURCES.
68634         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68635         Remove explicit dependency on $(SYSEXITS_H).
68636         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68637
68638 2005-07-18  Simon Josefsson  <jas@extundo.com>
68639
68640         * lib/check-version.c (check_version): Accept identical versions too.
68641
68642 2005-07-18  Bruno Haible  <bruno@clisp.org>
68643
68644         * modules/lock: New file.
68645         * MODULES.html.sh (Multithreading): New section.
68646
68647 2005-07-18  Bruno Haible  <bruno@clisp.org>
68648
68649         * m4/lock.m4: New file, from GNU gettext.
68650
68651 2005-07-18  Bruno Haible  <bruno@clisp.org>
68652
68653         * lib/lock.h: New file, from GNU gettext.
68654         * lib/lock.c: New file, from GNU gettext.
68655
68656 2005-07-18  Bruno Haible  <bruno@clisp.org>
68657
68658         * lib/lock.h (gl_once_t): New type.
68659         (gl_once_define, gl_once): New macros.
68660         * lib/lock.c (fresh_once): New variable.
68661         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68662         functions.
68663
68664 2005-07-16  Simon Josefsson  <jas@extundo.com>
68665
68666         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68667         workaround, suggested by Bruno.
68668
68669 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * modules/xalloc (Depends-on): Add xalloc-die.
68672         * modules/xvasprintf (Depends-on): Add xalloc-die.
68673
68674 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68677         with a minor change.
68678
68679 2005-07-15  Bruno Haible  <bruno@clisp.org>
68680
68681         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68682         When using lib/poll.c, define poll as rpl_poll.
68683
68684 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * modules/argp (Depends-on): Remove unlocked-io.
68687
68688 2005-07-14  Derek Price  <derek@ximbiot.com>
68689
68690         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68691         for glob symlink bug.
68692
68693 2005-07-14  Bruno Haible  <bruno@clisp.org>
68694
68695         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68696         Instead, test for *_unlocked function declarations directly.
68697
68698 2005-07-11  Simon Josefsson  <jas@extundo.com>
68699
68700         * modules/size_max: New file.
68701
68702         * modules/xsize: Depend on size_max module for size_max.m4.
68703
68704 2005-07-11  Simon Josefsson  <jas@extundo.com>
68705
68706         * lib/size_max.h: New file.
68707
68708 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68711         copyright symbol and the year.
68712         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68713         (version_etc_va): Use parameterized copyright notice.
68714         Reword to conform to the current GNU coding standards.
68715
68716 2005-07-11  Karl Berry  <karl@gnu.org>
68717
68718         * doc/gnulib.texi (Quoting): new node.
68719         (Initial import): more info, from Patrice.
68720
68721 2005-07-11  Bruno Haible  <bruno@clisp.org>
68722
68723         * gnulib-tool (func_usage): Document option --avoid.
68724         (Command line options): Handle --avoid.
68725         (func_acceptable): New function.
68726         (func_modules_transitive_closure): Use it.
68727
68728 2005-07-11  Bruno Haible  <bruno@clisp.org>
68729
68730         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68731         Reported by Jim Meyering.
68732
68733 2005-07-10  Bruno Haible  <bruno@clisp.org>
68734
68735         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68736         Needed when size_t is smaller than 'unsigned int'.
68737         Reported by Paul Eggert.
68738
68739 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68740
68741         * modules/argp (Depends-on): Add unlocked-io
68742
68743 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68744
68745         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68746         block of defines.
68747
68748 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68751         fix now.
68752
68753 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68754         and Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68757         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68758
68759 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * modules/regex (Files): Add lib/regex_internal.c,
68762         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68763         (Depends-on): Add extensions.
68764         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68765
68766 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68769         pathconf.
68770         * m4/same.m4 (gl_SAME): Likewise.
68771         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68772
68773         * m4/regex.m4: Adjust to new libc regex implementation.
68774         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68775         all the .c and .h parts of (the new) regex.
68776         Quote the m4 stuff better.
68777         Check for RE_ICASE bug of old gnulib.
68778         Check for REG_STARTEND of recent libc.
68779         Rename local variables from jm_* to gl_*.
68780         Quote operand of "test -f".
68781         Say "recent enough" version of libc, not "version 2".
68782         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68783         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68784         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68785         Remove check for btowc, isascii.
68786         Require AM_LANGINFO_CODESET.
68787
68788 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         * lib/regex.c, regex.h: Sync from libc.
68791         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68792         * lib/regexec.c:
68793         New files, synced from libc, except that regex_internal.h
68794         currently has a small porting fix.
68795
68796 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68797
68798         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68799         regex_internal.c, regexec.c.
68800         Add regex_internal.h too, but as a comment, since the libc version
68801         is currently broken in gnulib mode.
68802
68803 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68804
68805         Support programs like Emacs that use gnulib but not gettext.
68806         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68807         * modules/gettext-h: New file.
68808         * modules/gettext (Files): Remove lib/gettext.h.
68809         (Depends-on): Add gettext-h.
68810         (Makefile.am): Remove lib_SOURCES.
68811         * modules/argmatch, modules/c-stack, modules/closeout:
68812         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68813         * modules/execute, modules/file-type, modules/getaddrinfo:
68814         * modules/getopt, modules/human, modules/javacomp:
68815         * modules/javaexec, modules/mkdir-p, modules/obstack:
68816         * modules/openat, modules/pagealign_alloc, modules/pipe:
68817         * modules/quotearg, modules/regex, modules/rpmatch:
68818         * modules/unicodeio, modules/userspec, modules/version-etc:
68819         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68820         * modules/xsetenv:
68821         Depend on gettext-h, not gettext.
68822
68823 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * gnulib-tool (func_import): Add support for 'public domain' license.
68826         * modules/alloca, modules/atexit, modules/memmove:
68827         Now public domain, not GPL.
68828         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68829         * modules/realloc, modules/strerror, modules/strtod:
68830         Now LGPL, not GPL.
68831
68832 2005-07-05  Bruno Haible  <bruno@clisp.org>
68833
68834         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68835         autoconf CVS. Needed for mingw.
68836
68837 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         Remove the dependency of the strftime module on the tzset module.
68840         * modules/strftime (Depends-on): Remove dependency on tzset.
68841
68842 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         Remove the dependency of the strftime module on the tzset module.
68845         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68846         gl_FUNC_TZSET_CLOBBER.
68847
68848 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68849
68850         Remove the dependency of the strftime module on the tzset module.
68851         * lib/strftime.c (my_strftime)
68852         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68853         Copy the input structure, to work around some of the bug with
68854         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68855         Solaris releases, you should also use the tzset module, but we won't
68856         require it as a dependency any more since we don't want LGPLed code
68857         to depend on GPLed code.
68858
68859 2005-07-02  Jim Meyering  <jim@meyering.net>
68860
68861         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68862         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68863         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68864         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68865
68866 2005-07-02  Jim Meyering  <jim@meyering.net>
68867
68868         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68869
68870 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68873         declares only 'struct timespec;' (!).
68874
68875 2005-07-01  Jim Meyering  <jim@meyering.net>
68876
68877         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68878         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68879         * lib/save-cwd.c, tempname.c:
68880         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68881         and don't include <sys/file.h>).
68882
68883 2005-06-29  Jim Meyering  <jim@meyering.net>
68884
68885         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68886         type name.  Use the variable name instead.
68887         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68888         Likewise.
68889
68890 2005-06-28  Simon Josefsson  <jas@extundo.com>
68891
68892         * modules/check-version (Files): Add check-version.m4.
68893
68894 2005-06-28  Simon Josefsson  <jas@extundo.com>
68895
68896         * m4/check-version.m4: New file, suggested by Jim Meyering
68897         <jim@meyering.net>.
68898
68899 2005-06-28  Simon Josefsson  <jas@extundo.com>
68900
68901         * lib/check-version.h, lib/check-version.c: New files.
68902
68903 2005-06-28  Simon Josefsson  <jas@extundo.com>
68904
68905         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68906         collision with global variable.  Better indentation.  Don't
68907         increment buffer pointer beyond buffer end.  Based on comments
68908         from Paul Eggert <eggert@cs.ucla.edu>.
68909
68910         * lib/base64.h: Indent.
68911
68912 2005-06-28  Simon Josefsson  <jas@extundo.com>
68913
68914         * doc/gnulib.texi (Library version handling): New section.
68915
68916 2005-06-28  Jim Meyering  <jim@meyering.net>
68917
68918         * check-module (find_included_lib_files): Hard-code another
68919         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68920         but modules/fts-lgpl (correctly) does not list those files.
68921
68922         * modules/canonicalize (Files): Add lib/pathmax.h.
68923
68924 2005-06-25  Simon Josefsson  <jas@extundo.com>
68925
68926         * modules/check-version: New file.
68927
68928 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68931         initializer of struct addrinfo, as an indication that we don't
68932         care how many members the structure has.
68933
68934 2005-06-24  Derek Price  <derek@ximbiot.com>
68935         and Bruno Haible  <bruno@clisp.org>
68936
68937         Remove stat module & update lstat.
68938         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68939         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68940         * m4/stat.m4: Remove this file.
68941
68942 2005-06-24  Derek Price  <derek@ximbiot.com>
68943         and Bruno Haible  <bruno@clisp.org>
68944
68945         Remove stat module & update lstat.
68946         * lib/stat.c: Remove this file...
68947         (slash_aware_lstat): ...moving this content and its support...
68948         * lib/lstat.c (rpl_lstat): ...into here.
68949         * lib/lstat.h: New file.
68950
68951 2005-06-24  Derek Price  <derek@ximbiot.com>
68952         and Bruno Haible  <bruno@clisp.org>
68953
68954         Remove stat module & update lstat.
68955         * config/srclist.txt (libc sources): Remove stat.
68956
68957 2005-06-24  Derek Price  <derek@ximbiot.com>
68958         and Bruno Haible  <bruno@clisp.org>
68959
68960         Remove stat module & update lstat.
68961         * MODULES.html.sh (stat): Remove.
68962         * MODULES.html: Regenerated.
68963         * modules/lstat (Description): Correct function name.
68964         (Files): Add "lstat.h".
68965         (Depends-on): Remove stat, add xalloc, stat-macros.
68966         * modules/stat: Remove this file.
68967         (Include): Add "lstat.h", remove <sys/stat.h>.
68968
68969 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68972         (ranged_convert): Don't save conversion in a temporary struct.
68973         This causes a warning with GCC 4.0.0, and anyway in the typical
68974         case it's not worth the extra 100 bytes or so of code.
68975         (ranged_convert, __mktime_internal): When calling a function via a
68976         pointer P, use P () rather than (*P) (), as we now assume C89 or
68977         better.
68978
68979 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68982         "who -r" failed to give output.  Problem reported by Tim Waugh.
68983
68984         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68985         (xcalloc): Use it to avoid needless tests.
68986         Problem reported by Jim Meyering.
68987
68988 2005-06-20  Derek Price  <derek@ximbiot.com>
68989
68990         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68991         unnecessary for Autoconfs > 2.59c.
68992
68993 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68994
68995         * lib/argp.h (__option_is_short): Check upper limit of
68996         __key. Isprint() requires its argument to have the value
68997         of an unsigned char or EOF.
68998
68999 2005-06-16  Jim Meyering  <jim@meyering.net>
69000
69001         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69002         when either N or S is zero.
69003
69004 2005-06-16  Derek Price  <derek@ximbiot.com>
69005
69006         * m4/bison.m4: Declare YACC & YFLAGS precious.
69007
69008 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69011         multibyte string or pattern, fall back on unibyte matching.
69012         Problem reported by James Youngman.
69013
69014 2005-06-08  Bruno Haible  <bruno@clisp.org>
69015
69016         * modules/csharpcomp: New file.
69017         * MODULES.html.sh (C#): Add csharpcomp.
69018
69019 2005-06-08  Bruno Haible  <bruno@clisp.org>
69020
69021         * m4/csharpcomp.m4: New file, from GNU gettext.
69022
69023 2005-06-08  Bruno Haible  <bruno@clisp.org>
69024
69025         * lib/csharpcomp.h: New file, from GNU gettext.
69026         * lib/csharpcomp.c: New file, from GNU gettext.
69027         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69028
69029 2005-06-08  Bruno Haible  <bruno@clisp.org>
69030
69031         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69032         warning on mingw.
69033
69034 2005-06-07  Derek Price  <derek@ximbiot.com>
69035
69036         Sync from CVS.
69037         * lib/glob_.h: Indent nested #ifdef.
69038
69039 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         Sync from coreutils.
69042         Use "file name" when talking about file names, instead of "filename"
69043         or "path", as per the GNU coding standards.
69044         * lib/mkdir-p.c: Renamed from makepath.c.
69045         (make_dir_parents): Renamed from make_path.  All callers changed.
69046         * lib/mkdir-p.h: Likewise.  All includers changed.
69047         * lib/filenamecat.c: Renamed from path-concat.c.
69048         (file_name_concat): Renamed from path_concat.  All callers changed.
69049         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69050         * lib/filenamecat.h: Likewise.  All includers changed.
69051         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69052         in comments or local variable names.
69053         * lib/basename.c: Likewise.
69054         * lib/canonicalize.c, canonicalize.h: Likewise.
69055         * lib/dirname.c, dirname.h: Likewise.
69056         * lib/euidaccess.c: Likewise.
69057         * lib/exclude.c: Likewise
69058         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69059         * lib/fsusage.c, fsuage.h: Likewise.
69060         * lib/fts.c, fts_.h: Likewise.
69061         * lib/getcwd.c: Likewise.
69062         * lib/getloadavg.c: Likewise.
69063         * lib/mkstemp.c: Likewise.
69064         * lib/mountlist.c, mountlist.h: Likewise.
69065         * lib/openat.c, openat.h: Likewise.
69066         * lib/readlink-stub.c: Likewise.
69067         * lib/readutmp.c, readutmp.h: Likewise.
69068         * lib/rename.c: Likewise.
69069         * lib/rmdir.c: Likewise.
69070         * lib/same.c: Likewise.
69071         * lib/savedir.c: Likewise.
69072         * lib/stripslash.c: Likewise.
69073         * lib/tempname.c: Likewise.
69074         * lib/xreadlink.c: Likewise.
69075         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69076         All uses changed.
69077         * lib/exclude.h: Likewise.
69078
69079         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69080         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69081         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69082         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69083         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69084         files have been getting away with it for years (MORE/BSD 4.3
69085         is extinct now).
69086         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69087         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69088
69089         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69090         Define to 256, not 255, as per modern POSIX.
69091
69092 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         Sync from coreutils.
69095         Use "file name" when talking about file names, instead of "filename"
69096         or "path", as per the GNU coding standards.
69097         * MODULES.html.sh: mkdir-p renamed from makepath.
69098         filenamecat renamed from path-concat.
69099         * modules/filenamecat: Renamed from modules/path-concat.
69100         (Files): filenamecat.h and filenamecat.c renamed from
69101         path-concat.h and path-concat.c.
69102         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69103         (Include): filenamecat.h, not path-concat.h.
69104         * modules/mkdir-p: Renamed from modules/makepath.
69105         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69106         makepath.c.
69107         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69108         (Include): mkdir-p.h, not makepath.h.
69109
69110 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         Sync from coreutils.
69113         * m4/mkdir-p.m4: Renamed from makepath.m4.
69114         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69115         Rename files from makepath.c to mkdir-p.c, and from
69116         makepath.h to mkdir-p.h.
69117         * m4/filenamecat.m4: Renamed from path-concat.m4.
69118         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69119         Rename files from path-concat.c to filenamecat.c,
69120         and from path-concat.h to filenamecat.h.
69121         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69122         "file name" in local variables or comments.
69123         * m4/rename.m4: Likewise.
69124
69125 2005-06-01  Bruno Haible  <bruno@clisp.org>
69126
69127         * modules/csharpexec: New file.
69128         * MODULES.html.sh (C#): New section.
69129
69130 2005-06-01  Bruno Haible  <bruno@clisp.org>
69131
69132         * m4/csharp.m4: New file, from GNU gettext.
69133         * m4/csharpexec.m4: New file, from GNU gettext.
69134
69135 2005-06-01  Bruno Haible  <bruno@clisp.org>
69136
69137         * lib/csharpexec.h: New file, from GNU gettext.
69138         * lib/csharpexec.c: New file, from GNU gettext.
69139         * lib/csharpexec.sh.in: New file, from GNU gettext.
69140
69141 2005-05-31  Derek Price  <derek@ximbiot.com>
69142             Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         Sync from cvs.
69145         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69146
69147 2005-05-31  Derek Price  <derek@ximbiot.com>
69148             Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         Sync from cvs.
69151         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69152
69153 2005-05-29  Derek Price  <derek@ximbiot.com>
69154
69155         * config/srclist.txt (glob_.h, glob.c): Add these files.
69156
69157 2005-05-29  Derek Price  <derek@ximbiot.com>
69158
69159         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69160         * modules/glob: New file.
69161         * modules/getlogin_r: Add link to POSIX spec in description.
69162
69163 2005-05-29  Derek Price  <derek@ximbiot.com>
69164             Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * m4/glob.m4: New file.
69167
69168 2005-05-29  Derek Price  <derek@ximbiot.com>
69169             Paul Eggert  <eggert@cs.ucla.edu>
69170
69171         * lib/glob_.h, lib/glob.c: New files.
69172
69173 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69176         * modules/fts-lgpl (Depends-on): Remove gettext.
69177
69178 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69181         and don't require gt_INTTYPES_PRI.
69182
69183 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69184
69185         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69186
69187         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69188         the configuration hassle isn't worth it.
69189         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69190         (LONGEST_MODIFIER, PRIuMAX): Remove.
69191
69192 2005-05-27  Bruno Haible  <bruno@clisp.org>
69193
69194         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69195
69196 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69197
69198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69199         _POSIX_PTHREAD_SEMANTICS for Solaris.
69200
69201 2005-05-25  Derek Price  <derek@ximbiot.com>
69202
69203         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69204
69205 2005-05-25  Derek Price  <derek@ximbiot.com>
69206             Paul Eggert  <eggert@cs.ucla.edu>
69207
69208         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69209         * lib/getlogin_r.c, getlogin_r.h: New files.
69210
69211 2005-05-25  Bruno Haible  <bruno@clisp.org>
69212             Derek Price  <derek@ximbiot.com>
69213
69214         * lib/getlogin_r.h: Simplify API documentation.
69215
69216 2005-05-23  Derek Price  <derek@ximbiot.com>
69217
69218         * modules/minmax (Files): Add m4/minmax.m4.
69219         (configure.ac): Add gl_MINMAX.
69220
69221 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69224         so that unistd-safer.h (GPL'ed code) need not be included.
69225
69226 2005-05-22  Bruno Haible  <bruno@clisp.org>
69227
69228         * m4/minmax.m4: New file.
69229         Based on a patch by Derek Price <derek@ximbiot.com>.
69230
69231 2005-05-22  Bruno Haible  <bruno@clisp.org>
69232
69233         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69234         (INT64_MIN): Fix definition.
69235         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69236
69237         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69238         NEED_SIGNED_INT_TYPES.
69239
69240         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69241         HAVE_SYSTEM_INTTYPES.
69242
69243 2005-05-22  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69246         Also include <sys/param.h> if it defines MIN, MAX.
69247         Based on a patch by Derek Price <derek@ximbiot.com>.
69248
69249 2005-05-21  Jim Meyering  <jim@meyering.net>
69250
69251         * modules/fts (Files): Add m4/inttypes-pri.m4.
69252         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69253
69254 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69255
69256         New fts module.
69257         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69258         (setup_dir, free_dir): New functions.
69259         (enter_dir, leave_dir): Define trivial
69260         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69261         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69262         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69263         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69264         Move to fts-cycle.c.
69265         (fts_open): Use setup_dir.
69266         (fts_close): Use free_dir.
69267         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69268         This adds a label and some gotos, but the alternatives were messier.
69269         Check for memory allocation failure when entering a dir.
69270         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69271         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69272         (FTS): New member fts_cycle, that is a union that contains the
69273         old active_dir_ht and cycle_state.  All uses changed to mention
69274         fts_cycle.ht and fts_cycle.state.
69275         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69276         fts.c, with the following changes:
69277         (setup_dir, free_dir): New functions.
69278         (enter_dir): Now returns bool.  Return true if successful, false
69279         if memory exhausted.  All callers changed.
69280         Do not bother partly cleaning up on
69281         memory allocation failure; that is free_dir's job.
69282         However, free ad if hash_insert fails, to avoid memory leak.
69283         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69284         fts->fts_options to see which union member to use.
69285
69286 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69289         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69290
69291 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69294
69295 2005-05-20  Jim Meyering  <jim@meyering.net>
69296
69297         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69298         Now a macro, to pacify GCC.
69299
69300 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69301
69302         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69303         of -1.
69304
69305 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69306
69307         * lib/chown.c (rpl_chown): Return -1 on failure.
69308
69309 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69310
69311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69312         Don't check for stddef.h.
69313         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69314         don't use its results.
69315         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69316         since we include them unconditionally.  Don't require
69317         AM_STDBOOL_H, since stdbool is a prerequisite.
69318         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69319         since we assume C89 or better.
69320         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69321         as we don't use their results.
69322         Don't check for fchdir, memmove, memset, strrchr, as we use
69323         them unconditionally.
69324         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69325         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69326
69327 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69328
69329         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69330         Include <stddef.h> unconditionally, since we assume C89 now.
69331         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69332         * lib/fts.c: Include fts_.h first, to check interface.
69333         Do not include intprops.h; no longer needed.
69334         Include cycle-check.h and hash.h, since fts_.h no longer does.
69335         Remove unnecessary casts of closedir to void.
69336         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69337         decide whether to decrement nlinks.
69338         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69339         (FTS): Use struct hash_table * instead of Hash_table, so that
69340         we no longer need to include hash.h here.
69341
69342 2005-05-18  Jim Meyering  <jim@meyering.net>
69343
69344         * modules/dirfd (License): Change to LGPL.  Most of the code
69345         is already in the public domain.
69346
69347 2005-05-18  Jim Meyering  <jim@meyering.net>
69348
69349         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69350         Reported by Yoann Vandoorselaere.
69351
69352 2005-05-17  Jim Meyering  <jim@meyering.net>
69353
69354         * m4/fts.m4: New file, from coreutils.
69355
69356 2005-05-17  Jim Meyering  <jim@meyering.net>
69357
69358         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69359
69360 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         Sync from coreutils.
69363         * m4/unlinkdir.m4: New file.
69364
69365 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         Sync from coreutils.
69368         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69369         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69370         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69371         White space changes only.
69372         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69373         special.
69374         * lib/yesno.c: Include getline.h, not ctype.h.
69375         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69376         Use getline to remove arbitrary restriction on response length.
69377
69378 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         * config/srclist-update: Spell out "Street" in FSF postal
69381         mail address; this is the style the FSF seems to prefer.
69382
69383         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69384         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69385         this updates FSF postal mail address.
69386
69387         Sync from coreutils.
69388         * modules/unlinkdir: New file.
69389         * modules/yesno (Depends-on): Add getline.
69390         * MODULES.html.sh (File system functions): Add unlinkdir.
69391
69392 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69395         lib/strsep.h:
69396         Change the initial comment to refer to GPL, not LGPL.
69397         gnulib-tool will change it to LGPL as needed.
69398
69399         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69400         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69401         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69402         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69403         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69404         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69405         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69406         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69407         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69408         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69409         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69410         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69411         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69412         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69413         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69414         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69415         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69416         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69417         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69418         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69419         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69420         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69421         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69422         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69423         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69424         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69425         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69426         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69427         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69428         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69429         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69430         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69431         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69432         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69433         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69434         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69435         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69436         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69437         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69438         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69439         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69440         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69441         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69442         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69443         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69444         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69445         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69446         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69447         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69448         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69449         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69450         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69451         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69452         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69453         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69454         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69455         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69456         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69457         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69458         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69459         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69460         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69461         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69462         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69463         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69464         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69465         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69466         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69467         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69468         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69469         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69470         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69471         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69472         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69473         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69474         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69475         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69476         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69477         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69478         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69479         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69480         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69481         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69482         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69483         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69484         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69485         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69486         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69487         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69488         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69489         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69490         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69491         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69492         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69493         lib/yesno.c, lib/yesno.h:
69494         Update FSF postal mail address.
69495
69496 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69497
69498         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69499         tests/test-memmem.c, tests/test-stpncpy.c:
69500         Update FSF postal mail address.
69501
69502 2005-05-13  Bruno Haible  <bruno@clisp.org>
69503
69504         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69505         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69506         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69507         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69508         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69509         Add support for 64-bit integers in the MSVC compiler.
69510
69511 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69512
69513         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69514
69515 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69516
69517         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69518
69519 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         * doc/getdate.texi (General date syntax): Don't say that date
69522         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69523         Problem reported by Nic Ferrier.
69524
69525 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69526
69527         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69528         specified in ai_socktype. Fix invalid ai_protocol
69529         check. ai_protocol is usually set to 0 or depending on
69530         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69531         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69532         ai_socktype / ai_protocol in the returned addrinfo structure.
69533
69534 2005-05-10  Simon Josefsson  <jas@extundo.com>
69535
69536         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69537         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69538
69539 2005-05-10  Karl Berry  <karl@gnu.org>
69540
69541         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69542         (from http://www.gnu.org/licenses).
69543         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69544         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69545         fdl.texi suffices.
69546
69547 2005-05-10  Karl Berry  <karl@gnu.org>
69548
69549         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69550         (COPYING.DOC): remove.
69551
69552         * config/srclist-update: new FSF address.
69553
69554 2005-05-10  Derek Price  <derek@ximbiot.com>
69555
69556         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69557         possible.
69558
69559 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69560             Bruno Haible  <bruno@clisp.org>
69561
69562         * modules/inet_ntop: New file.
69563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69564         inet_ntop.
69565
69566 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69567             Bruno Haible  <bruno@clisp.org>
69568
69569         * m4/inet_ntop.m4: New file.
69570
69571 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69572             Bruno Haible  <bruno@clisp.org>
69573
69574         * lib/inet_ntop.h: New file.
69575         * lib/inet_ntop.c: New file, from glibc with modifications.
69576
69577 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * modules/time_r (License): Change to LGPL.
69580         * modules/extensions (License): Change to LGPL.  Actually,
69581         the license is more permissive than that, but currently gnulib-tool
69582         doesn't know how to handle more-permissive licenses.
69583
69584         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69585         Problem reported by Dave Love.
69586
69587 2005-05-08  Jim Meyering  <jim@meyering.net>
69588
69589         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69590         blank.
69591
69592 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69593
69594         * modules/argmatch (Depends-on): Add stdbool.
69595         * modules/backupfile (Depends-on): Likewise.
69596         * modules/chdir-long (Depends-on): Likewise.
69597         * modules/closeout (Depends-on): Likewise.
69598         * modules/cycle-check (Depends-on): Likewise.
69599         * modules/dirname (Depends-on): Likewise.
69600         * modules/fnmatch (Depends-on): Likewise.
69601         * modules/fsusage (Depends-on): Likewise.
69602         * modules/fwriteerror (Depends-on): Likewise.
69603         * modules/getcwd (Depends-on): Likewise.
69604         * modules/getloadavg (Depends-on): Likewise.
69605         * modules/hard-locale (Depends-on): Likewise.
69606         * modules/makepath (Depends-on): Likewise.
69607         * modules/mountlist (Depends-on): Likewise.
69608         * modules/nanosleep (Depends-on): Likewise.
69609         * modules/posixtm (Depends-on): Likewise.
69610         * modules/quotearg (Depends-on): Likewise.
69611         * modules/readtokens (Depends-on): Likewise.
69612         * modules/readtokens0 (Depends-on): Likewise.
69613         * modules/readutmp (Depends-on): Likewise.
69614         * modules/save-cwd (Depends-on): Likewise.
69615         * modules/strftime (Depends-on): Likewise.
69616         * modules/userspec (Depends-on): Likewise.
69617         * modules/utimecmp (Depends-on): Likewise.
69618         * modules/xgetcwd (Depends-on): Likewise.
69619         * modules/xnanosleep (Depends-on): Likewise.
69620         * modules/xstrtod (Depends-on): Likewise.
69621         * modules/yesno (Depends-on): Likewise.
69622
69623 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69626         needless checks.
69627
69628 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         Merge from coreutils.  Among other things,
69631         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69632         * lib/fd-safer.c: New file.
69633         * lib/fcntl-safer.h, open-safer.c: Remove.
69634         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69635         * lib/dup-safer.c: Include unistd-safer.h first.
69636         Don't include errno.h.
69637         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69638         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69639         * lib/file-type.c: Rely on file-type.h change.
69640         * lib/getloadavg.c: Include unistd-safer.h.
69641         (getloadavg): Use safer open.
69642         * lib/getusershell.c: Include "stdio-safer.h".
69643         (getusershell): Use safer fopen.
69644         * lib/long-options.c (long_options): Use NULL rather than 0.
69645         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69646         'free'.
69647         * lib/modechange.c: Likewise.
69648         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69649         (MODE_DONE): New constant.
69650         (struct mode_change): Remove 'next' member.
69651         (make_node_op_equals): New function; like the old one of the
69652         same name, except it allocates an array.
69653         (mode_compile, mode_create_from_ref): Use it.
69654         (mode_compile): Allocate result as an array, not a linked list.
69655         Parse octal string ourself, so that we catch mistakes like "+0".
69656         (mode_adjust): Arg is an array, not a linked list.
69657         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69658         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69659         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69660         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69661         Remove.  This is now stat-macros.h's job.
69662         (talloc): Remove.  All callers replaced by xalloc, so that
69663         our invokers don't have to worry about reporting memory failures.
69664         (make_node_op_equals): Remove.
69665         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69666         New constants.
69667         (struct mode_change): Moved here from modechange.h.
69668         (mode_append_entry): Remove.
69669         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69670         apps to have incorrect behavior.  Use simpler algorithm for head
69671         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69672         Detect more invalid usages rather than having somewhat-random behavior.
69673         Don't insert an "a=" action, as that leads to incorrect behavior.
69674         (mode_compile, mode_create_from_ref): Return NULL on error instead
69675         of an enum, since now there's only one way to have an error.  All
69676         callers changed.
69677         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69678         at the correct time.  Simplify calculation of "+u" and its ilk.
69679         Don't mishandle "+X".
69680         (mode_free): Remove "register" and localize decls.
69681         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69682         (struct mode_change): Move to modechange.c; callers don't
69683         need to see this stuff.
69684         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69685         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69686         (mode_change, mode_adjust): Reflect the new signatures noted above.
69687         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69688         that might redefine system include files.
69689         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69690         (my_usleep): Use NULL rather than (void *) 0.
69691         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69692         Use siginterrupt to specify that system calls should be interrupted.
69693         (rpl_nanosleep): Move initialization of suspended closer to call of
69694         my_usleep.
69695         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69696         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69697         (desirable_utmp_entry): New function.
69698         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69699         using x2nrealloc, to simplify logic.
69700         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69701         size calculation.  Do not assume utmp file is a regular file.
69702         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69703         (READ_UTMP_CHECK_PIDS): New constant.
69704         * lib/save-cwd.c: Include unistd-safer.h.
69705         (save_cwd): Use fd_safer.
69706         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69707         [!_LIBC] Include "stat-macros.h" instead.
69708         * lib/unistd-safer.h (fd_safer): New decl.
69709
69710 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * modules/getloadavg (Depends-on): Add unistd-safer.
69713         * modules/getusershell (Depends-on): Add stdio-safer.
69714         * modules/lstat (Depends-on): Remove xalloc.
69715         * modules/mkstemp (Depends-on): Add stat-macros.
69716         * modules/modechange (Depends-on): Remove xstrtol.
69717         Add stat-macros, xalloc.
69718         * modules/save-cwd (Depends-on): Add unistd-safer.
69719         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69720         * modules/unistd-safer (Files): Add lib/fd-safer.c
69721         (Makefile.am): Remove lib_SOURCES.
69722
69723         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69724         Remove fcntl-safer; unistd-safer supersedes it.
69725
69726 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69729         AC_HEADER_STAT.
69730         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69731         (gl_PREREQ_CHOWN): Remove.
69732         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69733         it.  Don't require AC_HEADER_STAT.
69734         (gl_PREREQ_LSTAT): Remove.
69735         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69736         Don't require AC_HEADER_STAT.
69737         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69738         (gl_PREREQ_RMDIR): Remove.
69739         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69740         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69741         the stat-macros module a prerequisite.
69742         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69743         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69744         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69745         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69746         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69747         variable names.
69748         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69749         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69750         variable prefixes.
69751         * m4/fcntl-safer.m4: Remove.
69752         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69753         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69754         Invoke gl_PREREQ_FD_SAFER.
69755         (gl_PREREQ_FD_SAFER): New macro.
69756         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69757         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69758         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69759         Remove duplicate call to AC_LIBOBJ(readutmp).
69760         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69761
69762         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69763         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69764
69765 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69766
69767         * MODULES.html.sh (Misc): Add byteswap.
69768
69769 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69770
69771         * modules/getcwd (Depends-on): Add extensions.
69772         * modules/openat (Depends-on): Likewise.
69773
69774 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69775
69776         * modules/byteswap: New file.
69777
69778 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69779
69780         * m4/byteswap.m4: New file.
69781
69782 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69783
69784         * lib/byteswap_.h: New file.
69785
69786 2005-04-25  Karl Berry  <karl@gnu.org>
69787
69788         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69789
69790 2005-04-25  Albert Chin  <china@thewrittenword.com>
69791
69792         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69793         Toolkit C bug.
69794
69795 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69796
69797         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69798         (func_ln_if_changed): Remove forcibly for no error message
69799         in case file does not exist.
69800
69801 2005-04-19  Simon Josefsson  <jas@extundo.com>
69802
69803         * gnulib-tool (Options): Make --symlink mean --symbolic.
69804
69805 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69806
69807         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69808
69809 2005-04-16  Simon Josefsson  <jas@extundo.com>
69810
69811         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69812
69813 2005-04-15  Simon Josefsson  <jas@extundo.com>
69814
69815         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69816
69817 2005-04-15  Simon Josefsson  <jas@extundo.com>
69818
69819         * gnulib-tool: Rename --symlink to --symbolic.
69820
69821 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69822
69823         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69824         symbolic links to files instead of copying/moving.  Add --aux-dir,
69825         specifying directory relative --dir where auxiliary build tools
69826         are placed.
69827
69828 2005-04-14  Bruno Haible  <bruno@clisp.org>
69829
69830         * modules/allocsa (License): Change to LGPL.
69831         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69832
69833 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69836         that "UTC +1 second" continues to work.  Problem reported
69837         by Dmitry V. Levin.
69838         (relunit_snumber): New rule.
69839         (relunit): Use it.
69840
69841 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * lib/getdate.y (universal_time_zone_table): New constant.
69844         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69845         universal_time_zone_table.
69846         (lookup_zone): Prefer universal_time_zone_table to
69847         local_time_zone_table, so that "GMT" time stamps are allowed in
69848         London during the summer.  Problem reported by Ian Abbott.
69849
69850 2005-04-12  Jim Meyering  <jim@meyering.net>
69851
69852         * lib/human.c (humblock): Set *options even when returning due to
69853         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69854         warning from gcc-4.
69855
69856 2005-04-09  Jim Meyering  <jim@meyering.net>
69857
69858         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69859         -Wuninitialized: initialize tm0.tm_year.
69860
69861 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69864         count, since there's no maximum.  All uses changed.
69865         Add member dsts_seen.
69866         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69867         not being INT_MAX.
69868         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69869         Use pc_rels_seen to decide whther a date is absolute.
69870
69871         * lib/getdate.y (number): Don't overwrite year.
69872         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69873         check.
69874
69875 2005-04-02  Simon Josefsson  <jas@extundo.com>
69876
69877         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69878         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69879
69880 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69881
69882         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69883         where no absolute path name can be longer than PATH_MAX.
69884
69885 2005-03-27  Jim Meyering  <jim@meyering.net>
69886
69887         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69888
69889 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69892         "one's complement" -> "ones' complement" in comment, as per Knuth.
69893         "value of type" -> "type or expression" in comment.
69894         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69895
69896 2005-03-26  Jim Meyering  <jim@meyering.net>
69897
69898         Comment nits.
69899         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69900         Correct typos: s/or/of/.
69901
69902 2005-03-26  Jim Meyering  <jim@meyering.net>
69903
69904         * modules/check-include-files: Move to ../ and rename to...
69905         * check-module: ...this.
69906
69907 2005-03-25  Jim Meyering  <jim@meyering.net>
69908
69909         * modules/xvasprintf (Files): Add xalloc.h.
69910
69911 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * modules/gettext (Files): config/config.rpath ->
69914         build-aux/config.rpath
69915         * modules/iconv (Files): Likewise.
69916         Problem reported by Oskar Liljeblad.
69917
69918 2005-03-23  Jim Meyering  <jim@meyering.net>
69919
69920         * modules/check-include-files: New script to check for
69921         missing dependencies, multiple includes, etc.
69922
69923         * modules/c-strtold (Depends-on): Add xalloc.
69924         * modules/c-strtod (Depends-on): Add xalloc.
69925         * modules/hash (Depends-on): Add xalloc.
69926         (Files): Remove lib/xalloc.h.
69927
69928         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69929         * modules/userspec (Files): Add lib/inttostr.h.
69930
69931 2005-03-23  Jim Meyering  <jim@meyering.net>
69932
69933         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69934
69935 2005-03-22  Jim Meyering  <jim@meyering.net>
69936
69937         * modules/stat-macros: New module.
69938         * modules/canonicalize, modules/euidaccess, modules/file-type,
69939         * modules/filemode, modules/lchown, modules/makepath,
69940         * modules/rmdir, modules/stat: Depend on new stat-macros module
69941         rather than listing lib/stat-macros.h manually.
69942         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69943
69944 2005-03-22  Jim Meyering  <jim@meyering.net>
69945
69946         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69947
69948 2005-03-22  Bruno Haible  <bruno@clisp.org>
69949
69950         * config/srclist.txt: Replace target directory 'config' with
69951         'build-aux'.
69952         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69953         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69954         ../build-aux/.
69955
69956 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * modules/chdir-long (Depends-on): Add mempcpy.
69959
69960         * modules/acl, modules/backupfile, modules/c-strtod,
69961         modules/c-strtold, modules/canon-host, modules/canonicalize,
69962         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69963         modules/exclude, modules/exitfail, modules/file-type,
69964         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69965         modules/getdate, modules/getline, modules/getpagesize,
69966         modules/getpass, modules/getugroups, modules/group-member,
69967         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69968         modules/inttostr, modules/long-options, modules/makepath,
69969         modules/md5, modules/memcasecmp, modules/memcoll,
69970         modules/modechange, modules/mountlist, modules/path-concat,
69971         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69972         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69973         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69974         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69975         modules/strftime, modules/strndup, modules/strverscmp,
69976         modules/timespec, modules/unlocked-io, modules/userspec,
69977         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69978         modules/yesno:
69979         Remove lib_SOURCES line from Makefile.am section, as this is now
69980         done automatically by the corresponding Autoconf macro.
69981
69982 2005-03-21  Jim Meyering  <jim@meyering.net>
69983
69984         Changes imported from coreutils.
69985
69986         * lib/cycle-check.c: Don't include xalloc.h.
69987
69988         * lib/path-concat.c: Don't include assert.h.
69989         (path_concat): Remove assertion that would have triggered
69990         for ABASE starting with more than one slash.
69991         Reported by Andreas Schwab.
69992
69993         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69994         properly when ABASE is an absolute file name.
69995         Correct the description of this function.
69996         Include <assert.h>.
69997         Add an assertion and a test driver.
69998         This fixes a bug introduced on 2004-07-02.
69999         Andreas Schwab reported the resulting failure of cp --parents:
70000         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70001
70002 2005-03-21  Jim Meyering  <jim@meyering.net>
70003
70004         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70005         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70006
70007 2005-03-21  Jim Meyering  <jim@meyering.net>
70008         and  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70011         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70012         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70013         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70014         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70015         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70016         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70017         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70018         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70019         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70020         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70021         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70022         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70023         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70024         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70025         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70026         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70027         for these modules.
70028
70029 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70032         (which shouldn't happen), generate nothing instead of returning 0
70033         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70034
70035 2005-03-16  Bruno Haible  <bruno@clisp.org>
70036
70037         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70038         HAVE_LONGLONG_64BIT.
70039
70040 2005-03-16  Bruno Haible  <bruno@clisp.org>
70041
70042         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70043         HAVE_LONGLONG_64BIT.
70044
70045 2005-03-16  Bruno Haible  <bruno@clisp.org>
70046
70047         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70048         HAVE_LONGLONG_64BIT.
70049
70050 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70051
70052         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70053         reliably distinguish strftime failure from empty output on POSIX
70054         hosts.
70055
70056 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70059         (iconv_string): Don't guess a size-zero buffer, as that might cause
70060         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70061         result would be 'too large', where 'too large' is (heuristically)
70062         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70063         overflow concerns.  This will prevent some unwanted malloc failures
70064         when the inputs are very large.
70065
70066 2005-03-15  Karl Berry  <karl@gnu.org>
70067
70068         * config/srclist.txt (config.rpath): from gettext.
70069         * config/config.rpath: update.
70070
70071 2005-03-15  Bruno Haible  <bruno@clisp.org>
70072
70073         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70074         to 'negate'.
70075
70076         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70077         variable.
70078
70079         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70080         results.
70081
70082 2005-03-14  Simon Josefsson  <jas@extundo.com>
70083
70084         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70085         <fx@gnu.org>.
70086
70087 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70090         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70091         intprops.h.
70092         * lib/strtol.c: Likewise.
70093
70094 2005-03-14  Jim Meyering  <jim@meyering.net>
70095
70096         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70097         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70098         to be nonzero so that we (and caller) can detect the difference
70099         between a valid zero-length expansion and an error return, even
70100         when the underlying strftime fails before writing anything into
70101         that location.
70102
70103 2005-03-14  Bruno Haible  <bruno@clisp.org>
70104
70105         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70106         Update from GNU gettext 0.14.3.
70107
70108 2005-03-10  Jim Meyering  <jim@meyering.net>
70109
70110         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70111
70112 2005-03-10  Jim Meyering  <jim@meyering.net>
70113
70114         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70115         so that this module works on systems without fchdir.
70116
70117 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         Factor int-properties macros into a single file, except for
70120         glibc-related files.
70121         * lib/intprops.h: New file.
70122         * lib/getloadavg.c: Include it instead of limits.h.
70123         (INT_STRLEN_BOUND): Remove.
70124         * lib/human.c: Include intprops.h.
70125         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70126         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70127         302/1000.
70128         * lib/inttostr.h: Include intprops.h instead of limits.h.
70129         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70130         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70131         for consistency with intprops.h.
70132         (time_t_is_integer, twos_complement_arithmetic): Use them.
70133         * lib/sig2str.h: Include <signal.h>, intprops.h.
70134         (INT_STRLEN_BOUND): Remove.
70135         * lib/strftime.c (TYPE_SIGNED): Remove.
70136         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70137         * lib/strtol.c: Adjust comments to match intprops.h.
70138         * lib/userspec.c: Include intprops.h.
70139         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70140         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70141         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70142         instead of rolling our own expressions.
70143         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70144
70145         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70146         instead of int.
70147         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70148         the right thing even if adding 1900 would overflow.  Similarly
70149         for tm_mon + 1 and tm_yday + 1.
70150         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70151         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70152         (DO_SIGNED_NUMBER): New macro.
70153         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70154
70155 2005-03-07  Bruno Haible  <bruno@clisp.org>
70156
70157         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70158
70159 2005-03-07  Bruno Haible  <bruno@clisp.org>
70160
70161         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70162
70163 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70164
70165         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70166         (func_import): Only replace files via --import when they have actually
70167         changed.
70168
70169 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70170
70171         * m4/mmap-anon.m4: New file.
70172         * m4/pagealign_alloc.m4: New file.
70173
70174 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70175             Bruno Haible  <bruno@clisp.org>
70176
70177         * modules/pagealign_alloc: New file.
70178         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70179
70180 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70181             Bruno Haible  <bruno@clisp.org>
70182
70183         * lib/pagealign_alloc.h: New file.
70184         * lib/pagealign_alloc.c: New file.
70185
70186 2005-03-03  Bruno Haible  <bruno@clisp.org>
70187
70188         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70189         Use an all-permissive copyright notice, recommended by RMS.
70190
70191 2005-03-02  Bruno Haible  <bruno@clisp.org>
70192
70193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70194         of AIX, the replacement has to be done only after <string.h> is
70195         included, therefore not in config.h. stpncpy.h does the replacement,
70196         and stpncpy.c uses it.
70197
70198 2005-03-02  Bruno Haible  <bruno@clisp.org>
70199
70200         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70201         stpncpy.c uses it.
70202
70203 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70206         The workaround isn't strictly needed for POSIX conformance, and
70207         it's too much of a pain to configure and maintain.  We'll ask
70208         people to fix their kernels instead.
70209         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70210         (NANOSLEEP_BUG_WORKAROUND): Remove.
70211         (xnanosleep): Remove the workaround.
70212
70213 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70216         Reported by Derek Price.
70217         (Include): Add "timespec.h".
70218
70219         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70220
70221 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70224         to detect nanosleep bug.
70225
70226 2005-03-01  Bruno Haible  <bruno@clisp.org>
70227
70228         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70229
70230 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70231
70232         * modules/gethrxtime: New file.
70233         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70234         (Depends-on): Add gethrxtime.
70235         (configure.ac): Add gl_XNANOSLEEP.
70236         (Makefile.am): Remove lib_SOURCES line.
70237
70238 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70241         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70242
70243 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70244
70245         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70246         * lib/timespec.h (gettime): Return void, since it always
70247         succeeds now.  All uses changed.
70248         * lib/gettime.c (gettime): Likewise.
70249         [HAVE_NANOTIME]: Prefer nanotime.
70250         Assume gettimeofday succeeds, as POSIX requires.
70251         Assime time () succeeds, since other code already does.
70252         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70253         (timespec_subtract): Remove.
70254         (NANOSLEEP_BUG_WORKAROUND): New constant.
70255         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70256         things considerably.  Use it only on GNU/Linux hosts, since the
70257         workaround shouldn't be needed elsewhere.
70258
70259 2005-02-24  Bruno Haible  <bruno@clisp.org>
70260
70261         * modules/gettext (Files): Add m4/glibc2.m4.
70262
70263 2005-02-24  Bruno Haible  <bruno@clisp.org>
70264
70265         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70266         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70267         * m4/progtest.m4:
70268         Update from GNU gettext 0.14.2.
70269         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70270
70271 2005-02-24  Bruno Haible  <bruno@clisp.org>
70272
70273         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70274         * lib/config.charset: Update from GNU gettext 0.14.2.
70275
70276 2005-02-24  Bruno Haible  <bruno@clisp.org>
70277
70278         * lib/gettext.h: Update from GNU gettext 0.14.2.
70279
70280 2005-02-23  Simon Josefsson  <jas@extundo.com>
70281
70282         * m4/iconvme.m4: New file.
70283
70284 2005-02-23  Jim Meyering  <jim@meyering.net>
70285
70286         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70287         change.
70288         Thanks to Bruno Haible for catching it.
70289
70290 2005-02-22  Simon Josefsson  <jas@extundo.com>
70291
70292         * modules/iconvme: New file.
70293
70294         * MODULES.html.sh: Add iconvme.
70295
70296 2005-02-22  Simon Josefsson  <jas@extundo.com>
70297
70298         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70299
70300 2005-02-22  Simon Josefsson  <jas@extundo.com>
70301
70302         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70303
70304 2005-02-22  Jim Meyering  <jim@meyering.net>
70305
70306         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70307         s/ifndef/ifdef/.
70308
70309 2005-02-20  Neil Conway  <neilc@samurai.com>
70310
70311         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70312         returned by OSX/Darwin if the specified buffer is not large
70313         enough for the hostname.
70314
70315 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70316
70317         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70318         pass it to _help, otherwise the latter coredumps trying to
70319         dereference state.root_argp.
70320
70321 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         * modules/chdir-long (Depends-on): Add memrchr.
70324         * modules/memrchr (Files): Add lib/memrchr.h.
70325         (Include): "memrchr.h".
70326
70327 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70328
70329         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70330
70331 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70332
70333         * lib/memrchr.h: New file.
70334         * lib/chdir-long.c: Include it.
70335         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70336         Don't bother including stddef.h.
70337
70338 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70341         inclusion.
70342         Include <sys/types.h>, for dev_t.
70343         (ME_DUMMY, ME_REMOTE): Move from here....
70344         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70345         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70346         Dmitry V. Levin.
70347         Include mountlist.h first, to test the interface.
70348
70349 2005-01-29  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/progname.c (program_name): Initialize.
70352         Needed when linking statically on MacOS X.
70353
70354 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70355
70356         Sync from coreutils.
70357         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70358         (Depends-on): Add c-strtod.
70359         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70360
70361 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         Sync from coreutils.
70364         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70365
70366         Remove files that are specific to coreutils.
70367         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70368
70369 2005-01-28  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/javacomp: New file.
70372         * MODULES.html.sh (Java): Add javacomp.
70373
70374 2005-01-28  Bruno Haible  <bruno@clisp.org>
70375
70376         * m4/javacomp.m4: New file, from GNU gettext.
70377
70378 2005-01-28  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/javacomp.sh.in: New file, from GNU gettext.
70381         * lib/javacomp.h: New file, from GNU gettext.
70382         * lib/javacomp.c: New file, from GNU gettext.
70383
70384 2005-01-26  Simon Josefsson  <jas@extundo.com>
70385
70386         * lib/gai_strerror.c: Use GPL in header.
70387
70388 2005-01-26  Bruno Haible  <bruno@clisp.org>
70389
70390         * modules/javaexec: New file.
70391         * MODULES.html.sh (Java): Add javaexec.
70392
70393 2005-01-26  Bruno Haible  <bruno@clisp.org>
70394
70395         * m4/javaexec.m4: New file, from GNU gettext.
70396
70397 2005-01-26  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/javaexec.sh.in: New file, from GNU gettext.
70400         * lib/javaexec.h: New file, from GNU gettext.
70401         * lib/javaexec.c: New file, from GNU gettext.
70402
70403 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70404
70405         * modules/lchown (Depends-on): Remove lchown.h
70406
70407 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70408
70409         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70410         must be defined if the header file was not found, in order
70411         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70412
70413 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70414
70415         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70416         initializers for struct pentry_state.
70417         (__argp_error): Check return value of __asprintf
70418         (__argp_failure): Translate error message
70419
70420         * lib/argp-parse.c: Removed braces around the expansion of N_()
70421
70422 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70423
70424         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70425         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70426         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70427         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70428         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70429         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70430         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70431         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70432         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70433         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70434         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70435         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70436         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70437         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70438         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70439         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70440         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70441         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70442         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70443         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70444         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70445         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70446         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70447         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70448         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70449         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70450         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70451         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70452         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70453         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70454         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70455         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70456         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70457         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70458         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70459         Use an all-permissive copyright notice, recommended by RMS.
70460
70461 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * modules/chdir-long (Depends-on): Remove mempcpy.
70464
70465 2005-01-21  Jim Meyering  <jim@meyering.net>
70466
70467         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70468         same value as for Solaris 9.
70469
70470         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70471         component length.  This included changing the parameter to be
70472         of type `char *' rather than `char const *'.
70473         * lib/chdir-long.h (chdir_long): Update prototype.
70474
70475         * lib/openat.c (fdopendir, fstatat): New functions.
70476         * lib/openat.h: Include headers required for use of DIR and struct
70477         stat.
70478         [AT_SYMLINK_NOFOLLOW]: Define.
70479         (fdopendir, fstatat): Add prototypes.
70480
70481 2005-01-21  Bruno Haible  <bruno@clisp.org>
70482
70483         * modules/classpath: New file.
70484         * MODULES.html.sh (Java): Add classpath.
70485
70486 2005-01-21  Bruno Haible  <bruno@clisp.org>
70487
70488         * lib/classpath.h: New file, from GNU gettext.
70489         * lib/classpath.c: New file, from GNU gettext.
70490
70491 2005-01-20  Simon Josefsson  <jas@extundo.com>
70492
70493         * modules/version-etc-fsf: New file.
70494
70495 2005-01-20  Simon Josefsson  <jas@extundo.com>
70496
70497         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70498         * lib/version-etc.c: Remove version_etc_copyright.
70499         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70500         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70501
70502 2005-01-20  Simon Josefsson  <jas@extundo.com>
70503
70504         * lib/base64.h (isbase64): Add.
70505
70506         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70507         using a unsigned prototype, don't inline.
70508         (base64_decode): Use it.
70509
70510 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70513         it.
70514
70515 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * lib/save-cwd.c (save_cwd): Remove code to support the case
70518         where fchdir is missing or flaky.
70519
70520 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70523
70524 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70527         AC_LIBSOURCES now does this.
70528         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70529         with new ullong_max module.
70530
70531 2005-01-19  Bruno Haible  <bruno@clisp.org>
70532
70533         * modules/sh-quote: New file.
70534         * MODULES.html.sh (Executing programs): Add sh-quote.
70535
70536 2005-01-19  Bruno Haible  <bruno@clisp.org>
70537
70538         * lib/sh-quote.h: New file, from GNU gettext.
70539         * lib/sh-quote.c: New file, from GNU gettext.
70540
70541 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         Merge from coreutils.
70544         * m4/ullong_max.m4: New file.
70545         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70546         (gl_MACROS): Assume localeconv exists.
70547
70548 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         Merge changes from coreutils, as described below in several
70551         changelogs dated today.
70552
70553         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70554         (O_DIRECTORY): Remove; not needed here, since "." must be
70555         a directory.  All uses removed.
70556         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70557         universal on Suns, and we also need to test for IRIX.
70558         Revamp code to use 'if' rather than '#if'.
70559         Avoid unnecessary comparison of cwd->desc to 0.
70560
70561         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70562         for known valid error numbers rather than observed invalid ones.
70563
70564 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70565
70566         * modules/ullong_max: New file.
70567
70568         * modules/chdir-long, modules/openat: New files.
70569         * modules/save-cwd (Depends-on): Depend on chdir-long.
70570         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70571
70572 2005-01-18  Jim Meyering  <jim@meyering.net>
70573
70574         Merge from coreutils.
70575         * m4/chdir-long.m4, m4/openat.m4: New files.
70576         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70577         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70578         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70579         is sane and DOES follow symlinks.  Besides, testing 20 different
70580         systems found no broken chown implementations.
70581         Prompted by a change in rsync's copy of this macro.
70582         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70583
70584         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70585
70586         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70587         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70588         NULL-means-set-to-current-time semantics.
70589         Remove temporary file immediately, rather than waiting
70590         for configure's at-exit trap code to do it.
70591
70592 2005-01-18  Jim Meyering  <jim@meyering.net>
70593
70594         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70595
70596         * lib/utimens.c (futimens): Account for the fact that futimes
70597         can also fail with errno == ENOSYS or errno == ENOENT.
70598         Patch from Dmitry V. Levin.
70599
70600         Change the name of the robust chdir function from chdir to chdir_long.
70601         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70602         (restore_cwd): Use chdir_long, not chdir.
70603         * lib/chdir-long.c: Renamed from chdir.c.
70604         * lib/chdir-long.h: Renamed from chdir.h.
70605         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70606         Hurd.
70607
70608 2005-01-18  Bruno Haible  <bruno@clisp.org>
70609
70610         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70611         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70612         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70613         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70614         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70615         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70616         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70617         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70618         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70619         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70620         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70621         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70622         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70623         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70624         Use an all-permissive copyright notice, recommended by RMS.
70625
70626 2005-01-18  Bob Proulx  <bob@proulx.com>
70627
70628         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70629         simplify offsetof() macro construct to avoid compile failure with
70630         native HP-UX 11.0 ANSI C compiler.
70631
70632 2005-01-17  Bruno Haible  <bruno@clisp.org>
70633
70634         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70635         redundant because stpncpy.m4 takes care of it.
70636
70637 2005-01-17  Bruno Haible  <bruno@clisp.org>
70638
70639         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70640
70641 2005-01-17  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70644         used.
70645
70646 2005-01-17  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/fwriteerror.h (fwriteerror): Change specification to include
70649         fclose.
70650         * lib/fwriteerror.c: Include <stdbool.h>.
70651         (fwriteerror): At the end, close the file stream. Record whether
70652         stdout was already closed.
70653
70654 2005-01-17  Bruno Haible  <bruno@clisp.org>
70655
70656         * lib/execute.c (environ): Declare if needed.
70657         * lib/pipe.c (environ): Likewise.
70658         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70659
70660 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70661
70662         * modules/argp: Depend on vsnprintf
70663
70664 2005-01-10  Jim Meyering  <jim@meyering.net>
70665
70666         * modules/closeout (Depends-on): Add atexit.
70667
70668 2005-01-06  Bruno Haible  <bruno@clisp.org>
70669
70670         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70671
70672 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70673
70674         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70675         definitions to be after all include files, to avoid collisions.
70676         Problem reported by Bob Proulx.
70677
70678 2005-01-04  Jim Meyering  <jim@meyering.net>
70679
70680         Changes imported from coreutils.
70681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70682         as the mkstemp template, use a temporary directory and an
70683         8.3-friendly template to avoid trouble on systems like DJGPP.
70684         Reported by Juan M. Guerrero via Stepan Kasal.
70685         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70686         close. Remove the temporary directory right away, rather than waiting
70687         for configure's at-exit trap code to do it.
70688         Suggestion from Stepan Kasal.
70689
70690 2005-01-01  Simon Josefsson  <jas@extundo.com>
70691
70692         * gnulib-tool: Print #include directives when --import'ing.
70693
70694 2004-12-28  Simon Josefsson  <jas@extundo.com>
70695
70696         * tests/test-base64.c: Include required header files.  Remove
70697         unused variables.
70698
70699 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * modules/error (Depends-on): Remove gettext.
70702
70703 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70706         not needed.  This removes a dependency on the gettext module.
70707         [defined _LIBC]: Do not include <libintl.h>; not needed.
70708
70709 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70710
70711         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70712         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70713
70714 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70717         HAVE_DECL_STRTOLD.
70718
70719 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * modules/getdate (Depends-on): Remove alloca-opt.
70722
70723 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70726
70727 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * lib/argp-parse.c: Include <stddef.h>.
70730         (alignof, alignto): New macros.
70731         (parser_init): Don't assume that void * is aligned sufficiently
70732         for struct option.
70733
70734         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70735         need to extend the stack.
70736         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70737         large.
70738
70739 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70740
70741         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70742
70743 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70746         (2004-10-24) change.  Apparently this was a false alarm.
70747
70748         * modules/getdate: Depend on alloca-opt, not alloca.
70749
70750 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70753         Remove now-obsolete comment about AIX.
70754         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70755         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70756         (YYMAXDEPTH): New macro.
70757
70758 2004-12-18  Simon Josefsson  <jas@extundo.com>
70759
70760         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70761
70762 2004-12-18  Bruno Haible  <bruno@clisp.org>
70763
70764         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70765
70766 2004-12-18  Bruno Haible  <bruno@clisp.org>
70767
70768         * lib/fatal-signal.c (fatal_signals): Make non-const.
70769         (init_fatal_signals): New function.
70770         (uninstall_handlers, install_handlers): Ignore signals that were set to
70771         SIG_IGN.
70772         (at_fatal_signal): Call init_fatal_signals.
70773         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70774         SIG_IGN.
70775         Reported by Paul Eggert.
70776
70777 2004-12-18  Bruno Haible  <bruno@clisp.org>
70778
70779         * doc/alloca.texi: New file.
70780         * doc/alloca-opt.texi: New file.
70781
70782 2004-12-17  Jim Meyering  <jim@meyering.net>
70783
70784         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70785         Otherwise, install-sh could exit with improper exit status when
70786         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70787
70788 2004-12-16  Simon Josefsson  <jas@extundo.com>
70789
70790         * tests/test-base64.c: Add license.
70791
70792 2004-12-15  Stepan Kasal  <address@hidden>
70793
70794         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70795
70796 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * modules/getcwd (Files): Add m4/d-ino.m4.
70799         Suggested by Mark D. Baushke.
70800
70801 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         * lib/getdate.y (textint): New member "negative".
70804         (time_zone_hhmm): New function.
70805         Expect 14 shift-reduce conflicts, not 13.
70806         (o_colon_minutes): New rule.
70807         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70808         (yylex): Set the "negative" member of signed numbers.
70809
70810 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * doc/getdate.texi (Time of day items, Time zone items):
70813         Describe new formats +00:00, UTC+00:00.
70814
70815 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70818         spurious "-l"s.  Problem reported by Stepan Kasal.
70819
70820 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70823         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70824
70825 2004-12-04  Simon Josefsson  <jas@extundo.com>
70826
70827         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70828         Vandoorselaere <yoann@prelude-ids.org>.
70829
70830 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         Changes imported from coreutils.
70833         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70834         exist.
70835         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70836
70837 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         Changes imported from coreutils.
70840         * lib/hard-locale.c: Assume <locale.h> exists.
70841         Include "strdup.h".
70842         (GLIBC_VERSION): New macro.
70843         (hard_locale): Assume setlocale exists.
70844         Rewrite to avoid #ifdef.
70845         Use strdup rather than malloc + strcpy.
70846         * lib/human.c: Assume <locale.h> exists.
70847         (human_readable): Assume localeconv exists.
70848
70849 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * modules/hard-locale (Depends-on): Add strdup.
70852
70853 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70854
70855         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70856         convert T2, not T.  (Imported from libc.)
70857
70858 2004-11-30  Simon Josefsson  <jas@extundo.com>
70859
70860         * modules/restrict (License): Change to LGPL.
70861
70862 2004-11-30  Simon Josefsson  <jas@extundo.com>
70863
70864         * m4/restrict.m4: Add copyright and copying conditions.
70865
70866 2004-11-30  Simon Josefsson  <jas@extundo.com>
70867
70868         * m4/base64.m4: New file.
70869
70870 2004-11-30  Simon Josefsson  <jas@extundo.com>
70871
70872         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70873         base64.
70874
70875         * tests/test-base64.c: New file.
70876
70877         * modules/base64: New file.
70878
70879 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70882         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70883
70884         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70885
70886 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70889         (__getcwd.c): Don't restore errno; glibc doesn't.
70890         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70891         first, falling back to our code only if its results look suspicious.
70892         Ensure that the resulting buffer is only as large as necessary.
70893
70894         * lib/readutmp.c: Include readutmp.h first.
70895         Include <errno.h>, since readutmp.h no longer does that.
70896         * lib/readutmp.h: Don't include <errno.h>,
70897         <sys/param.h>, <time.h>; not needed to establish interface.
70898         (errno): Remove decl.
70899         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70900         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70901         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70902
70903 2004-11-28  Simon Josefsson  <jas@extundo.com>
70904
70905         * lib/base64.h, base64.c: New file.
70906
70907 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70908
70909         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70910
70911 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70914         (Depends-on): Remove pathmax, same.  Add mempcpy.
70915         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70916         (Makefile.am): Append getcwd.h to lib_SOURCES.
70917         (Include): Add getcwd.h.
70918         (Maintainer): Change from Jim Meyering to "all, glibc",
70919         since getdate now uses intended-for-glibc code.
70920         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70921         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70922
70923 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70926         HP's ANSI C compiler.
70927         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70928         Declaring int functions causes warnings on some modern systems and
70929         shouldn't be needed to compile on ancient ones.
70930         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70931         defined.
70932
70933         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70934         with the following changes.
70935         (__set_errno): Parenthesize properly.
70936         Include <stdbool.h>.
70937         (MIN, MAX, MATCHING_INO): New macros.
70938         (__getcwd): Define with prototype, not K&R form.
70939         Use heuristics to allocate default buffer on stack if possible.
70940         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70941         behavior, and to avoid the PATH_MAX limit when computing
70942         ../../../../...
70943         Use MATCHING_INO to compare inode number to file.
70944         Check for arithmetic overflow in size calculations.
70945         Fix bug in reallocation of dot array that caused getcwd to fail
70946         on directories nested deeper than 75.
70947         Be more careful about saving errno on error.
70948         Do not use realloc; use only free+malloc, as this is a bit
70949         more flexible and avoids a needless copy operation.
70950         Do not inspect st_dev and st_ino for symbolic links; POSIX
70951         doesn't specify the latter.
70952         Check for closedir errors.
70953         Avoid needless casts.
70954         Use "#ifdef weak_alias" around weak_alias, to be like other
70955         glibc code.
70956         The following changes to getcwd.c have effect only when used in
70957         gnulib; they have no effect inside glibc proper.
70958         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70959         as alloca isn't used.
70960         (alloca, __alloca): Likewise.
70961         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70962         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70963         unconditionally, as gnulib assumes C89 or better.
70964         Do not include <sys/param.h>.
70965         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70966         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70967         better.
70968         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70969         Include <dirent.h> in a way that is compatible with modern Autoconf.
70970         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70971         New macros, if not already defined.
70972         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70973         Use "_LIBC", not "defined _LIBC", for consistency.
70974         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70975         a mempcpy module.
70976         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70977         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70978         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70979         credit only to Jim Meyering and adjust the copyright dates.
70980         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70981         <stdlib.h>, <unistd.h>, "pathmax.h".
70982         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70983         (INITIAL_BUFFER_SIZE): Remove.
70984         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70985
70986 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70989         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70990         Use the _ONCE methods, for efficiency.
70991         Check for fcntl.h.  In test program, include <errno.h>
70992         and <fcntl.h> if available.  Remove old K&R cruft from
70993         test program.  Check for common errors in GNU/Linux,
70994         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70995         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70996         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70997         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70998         name accordingly.
70999         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71000         accommodate new getcwd.c.
71001         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71002         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71003         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71004         that's all we need now.
71005
71006 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71007
71008         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71009         argp-parse.c depends on getopt internals, that means we should
71010         always use our getopt, to be on the safe side.
71011         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71012         order not to spoil the result of an eventual previous invocation
71013         of gl_GETOPT_SUBSTITUTE.
71014
71015 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71016
71017         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71018         redefinition warnings. To avoid them, include the defines
71019         in `#if !defined __need_getopt ... #endif'. The only place
71020         where __getopt_argv_const is used is in definitions
71021         of getopt_long and getopt_long_only below, which are as well
71022         protected by `#ifndef __need_getopt'.
71023         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71024         __need_getopt after including <stdio.h> and <unistd.h> These
71025         headers might have defined it.
71026
71027 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71028
71029         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71030
71031 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71034         (futimens): New function, which uses futimes if available.
71035         (futimens, utimens): Support timespec==NULL, with same semantics
71036         as utime and utimens.
71037         * lib/utimens.h (futimens): New decl.
71038
71039 2004-11-23  Jim Meyering  <jim@meyering.net>
71040
71041         * lib/getopt_.h: Remove trailing blanks.
71042
71043 2004-11-23  Jim Meyering  <jim@meyering.net>
71044
71045         * lib/__fpending.c: Add comment.
71046
71047 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71048
71049         * modules/canonicalize (Depends-on): Add xreadlink.
71050         Problem reported by James Youngman.
71051
71052 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71055         New macros.
71056         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71057         optopt): Use them instead of invoking ## directly; otherwise, the
71058         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71059
71060 2004-11-19  Bruno Haible  <bruno@clisp.org>
71061
71062         * lib/strtok_r.c: Move comments from here...
71063         * lib/strtok_r.h: ... to here.
71064
71065 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71068         implementations that mishandle size_t overflow.
71069
71070 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71073         might fail.  Problem reported by Yoann Vandoorselaere.
71074         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71075         implementations that mishandle size_t overflow.
71076
71077 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         * modules/canon-host (Depends-on): Add strdup.
71080
71081 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71084
71085 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71086
71087         * lib/canon-host.c: Include "strdup.h".
71088         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71089         Use strdup instead of malloc/strcpy to duplicate strings.
71090
71091         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71092         (human_space_before_unit): New constant.
71093         * lib/human.c (human_readable): Support it.
71094
71095         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71096         (xgetcwd): Set errno correctly when failing.
71097         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71098         the failure is actually due to a PATH_MAX problem.
71099
71100         Further getopt changes to make it more likely that glibc will
71101         buy the changes back.
71102         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71103         (getopt): Use it, so to preserve glibc semantic
71104         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71105         when compiling for libc.
71106         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71107         (getopt_long, getopt_long_only): Use it.
71108
71109         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71110         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71111         (getopt): Argv is now char * const *, as per standard.
71112         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71113         not char *__getopt_argv_const *.
71114         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71115         _getopt_long_only_r): Likewise.
71116         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71117         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71118         _getopt_long_r, _getopt_long_only_r): Likewise.
71119         * lib/getopt_.h (__getopt_argv_const): Remove.
71120         (getopt): Argv is now char * const *, as per standard.
71121
71122         * lib/getdate.y (tORDINAL): New token.
71123         (day, relunit): Allow it for relative times.
71124         (relative_time_table): Use tORDINAL for ordinals.
71125
71126 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71129         Document that "second" isn't allowed as an ordinal number.
71130
71131 2004-11-16  Jim Meyering  <jim@meyering.net>
71132
71133         * modules/closeout (Depends-on): Add fpending.
71134
71135 2004-11-15  Jim Meyering  <jim@meyering.net>
71136
71137         * lib/closeout.c: Include "__fpending.h" once again.
71138         Include <stdbool.h>.
71139         (close_stdout): Don't fail just because stdout was closed initially,
71140         since some programs don't write to stdout in the normal course of
71141         operation (other than --version and --help), and we don't want this
71142         function to make e.g. `touch file >&-' fail.
71143         But do fail if it was closed and someone has tried to write to it.
71144         E.g., `printf foo >&-' must fail.
71145
71146 2004-11-13  Jim Meyering  <jim@meyering.net>
71147
71148         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71149
71150 2004-11-12  Simon Josefsson  <jas@extundo.com>
71151
71152         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71153         small doc fix is still pending.
71154
71155 2004-11-11  Simon Josefsson  <jas@extundo.com>
71156
71157         * modules/strtok_r: New file.
71158
71159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71160         strtok_r.
71161
71162 2004-11-11  Simon Josefsson  <jas@extundo.com>
71163
71164         * m4/strtok_r.m4: New file.
71165
71166         * m4/getopt.m4: Replace opterr.
71167
71168 2004-11-11  Simon Josefsson  <jas@extundo.com>
71169
71170         * lib/strtok_r.h, strtok_r.c: New file.
71171
71172 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71175         of replacing opterr, getopt, etc.  This should handle the
71176         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71177
71178 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71181         we can stop lying to compilers about the constness of argv when we
71182         are compiled outside glibc.
71183         (getopt, getopt_long, getopt_long_only): Use it.
71184         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71185         _getopt_internal, getopt): Likewise.
71186         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71187         _getopt_long_only_r): Likewise.
71188         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71189         _getopt_long_r, _getopt_long_only_r): Likewise.
71190
71191         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71192         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71193         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71194         the other external symbols.
71195         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71196         declaration, since the above renaming now works around collisions.
71197
71198 2004-11-11  Jim Meyering  <jim@meyering.net>
71199
71200         * lib/linebreak.c: Remove trailing blanks.
71201         * lib/alloca_.h: Likewise.
71202         * lib/acosl.c: Likewise.
71203         * lib/euidaccess.c: Likewise.
71204         * lib/allocsa.h: Likewise.
71205
71206 2004-11-10  Simon Josefsson  <jas@extundo.com>
71207
71208         * m4/getaddrinfo.m4: New file.
71209
71210 2004-11-10  Simon Josefsson  <jas@extundo.com>
71211
71212         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71213
71214 2004-11-10  Simon Josefsson  <jas@extundo.com>
71215
71216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71217         getaddrinfo.
71218
71219         * modules/getaddrinfo: New file.
71220
71221 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71224
71225 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * lib/mktime.c (SHR): New macro, which is a portable
71228         substitute for >> that should work even on Crays.
71229         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71230         Problem reported by Mark D. Baushke in
71231         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71232         * lib/getdate.y (SHR): Likewise.
71233         (tm_diff): Use it.
71234         * lib/strftime.c (SHR): Likewise.
71235         (tm_diff): Use it.
71236         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71237         quote_these_too, so that right shifts are well defined.  All uses
71238         changed.
71239
71240 2004-11-10  Jim Meyering  <jim@meyering.net>
71241
71242         Ensure that no close failure goes unreported.
71243         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71244         return early when it seems there's nothing to flush.
71245         Don't include __fpending.h.
71246
71247 2004-11-10  Jim Meyering  <jim@meyering.net>
71248
71249         * modules/closeout (Depends-on): Remove fpending.
71250
71251 2004-11-10  Jim Meyering  <jim@meyering.net>
71252
71253         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71254
71255 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71258         gl_FUNC_STRFTIME.
71259         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71260         and AC_REQUIRE when possible, to avoid duplicate checks.
71261         Check for <wchar.h>.
71262
71263 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71266
71267 2004-11-09  Bruno Haible  <bruno@clisp.org>
71268
71269         * m4/sockpfaf.m4: New file.
71270
71271 2004-11-05  Bruno Haible  <bruno@clisp.org>
71272
71273         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71274         Reported by Mark D. Baushke <mdb@cvshome.org>.
71275
71276 2004-11-04  Bruno Haible  <bruno@clisp.org>
71277
71278         2004-09-11  Bruno Haible  <bruno@clisp.org>
71279                 * allocsa.valgrind: New file.
71280         2004-02-06  Bruno Haible  <bruno@clisp.org>
71281                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71282                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71283                 Reported by Christopher Seip <chris.seip@hp.com>.
71284
71285 2004-11-04  Bruno Haible  <bruno@clisp.org>
71286
71287         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71288         (Makefile.am): Distribute it.
71289
71290 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71291
71292         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71293         with errno == ERANGE if the buffer is too small.
71294         Problem reported by Mark D. Baushke.
71295
71296 2004-11-03  Albert Chin  <china@thewrittenword.com>
71297             Paul Eggert  <eggert@cs.ucla.edu>
71298
71299         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71300         equivalent, substitute $ac_type for equivalent type rather than
71301         blindly using uint32_t *always* which won't work if uint32_t is not
71302         available.  Define _UINT32_T to work around typedef of uint32_t if
71303         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71304         2.5.1.
71305
71306 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71307
71308         * m4/jm-macros.m4: Sync from coreutils.
71309         (gl_MACROS): Check for mbrlen, for pathchk.
71310         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71311
71312 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         * lib/xreadlink.c (MAXSIZE): New macro.
71315         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71316         size does not exceed MAXSIZE.  Avoid cast.
71317         As suggested by Mark D. Baushke in
71318         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71319         if readlink fails with buffer size just under MAXSIZE, try again
71320         with MAXSIZE.
71321
71322 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71323
71324         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71325
71326 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71327         and  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71330         (get_date): Overparenthesize to avoid GCC warning.
71331
71332 2004-11-02  Bruno Haible  <bruno@clisp.org>
71333
71334         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71335         returns void.
71336
71337 2004-11-02  Bruno Haible  <bruno@clisp.org>
71338
71339         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71340         function returns void.
71341
71342 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71345         fflush_unlocked, flockfile, funlockfile, funlockfile,
71346         fputs_unlocked, putc_unlocked.
71347
71348 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71351         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71352         already declared.
71353
71354 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71355
71356         * modules/getdate (Files): Add doc/getdate.texi.
71357         (Depends-on): Add setenv, xalloc.
71358
71359 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71360
71361         * lib/getdate.y: Add support for TZ="foo" within a date string.
71362         Fix some bugs near time_t boundaries.  Reject dates with
71363         out-of-range components, e.g., "Sept 31".
71364         Include <stdlib.h>, "setenv.h", "xalloc.h".
71365         (ISDIGIT_LOCALE): Remove; unused.
71366         Note that the TZ and time functions used here are not reentrant.
71367         (mktime_ok, get_tz): New functions.
71368         (TZBUFSIZE): New constant.
71369         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71370         This requires that we sometimes generate our own TZ="XXX..." setting.
71371
71372 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71373
71374         * doc/getdate.texi: New file, from coreutils with modifications for
71375         the new TZ parsing.
71376
71377 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71378
71379         * lib/mktime.c (not_equal_tm): Remove redundant check.
71380
71381 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         * modules/regex (lib_SOURCES): Add regex.c.
71384         Reported by James Youngman in
71385         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71386
71387 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71388
71389         * lib/getdate.y: Use Bison 1.875 features, and some minor
71390         code cleanups.  This change does not affect semantics.
71391         Don't include <stdlib.h>; no longer needed.
71392         Don't include unlocked-io.h; only the "#if TEST" code uses
71393         stdio, and performance isn't crucial there.
71394         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71395         Bison 1.875 features as described below.
71396         All uses of "PC." replaced by "pc->".
71397         (YYSTYPE): Add a forward declaration.
71398         (yylex, yyerror): Use full prototypes in forward decls.
71399         Use "%pure-parser" rather than obsolescent "%pure_parser".
71400         Use %parse-param and %lex-param instead of obsolescent
71401         YYPARSE_PARAM and YYLEX_PARAM.
71402         (meridian_table, month_and_day_table, time_units_table,
71403         relative_time_table, time_zone_table, military_table,
71404         lookup_zone, lookup_word, get_date):
71405         Use NULL instead of 0 where appropriate.
71406         (to_hour): Avoid abort (), to avoid a dependency on
71407         stdlib.h.
71408         (yyerror, yylex): Now accepts parser_control * arg.
71409         (main) [TEST]: Use '\0' rather than 0 for char.
71410
71411 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71414
71415 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71416
71417         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71418         It's now the caller's responsibility to handle the case where
71419         !HAVE_GETPAGESIZE && !defined getpagesize.
71420
71421         * lib/mktime.c (leapyear): Arg is long int, not int.
71422
71423 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71426
71427 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71430         missing.  Problem reported by James Youngman.
71431
71432 2004-10-16  Simon Josefsson  <jas@extundo.com>
71433
71434         * gnulib-tool: Fix comments.  Fix parse problem.
71435         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71436
71437 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71440         implementation of getopt_long.  Problem reported by Alexander Taler in:
71441         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71442
71443 2004-10-15  Bruno Haible  <bruno@clisp.org>
71444
71445         * gnulib-tool: Untabify. Initialize supplied_libname.
71446         (func_usage): More homogenous output.
71447         (func_modules_transitive_closure, func_modules_to_filelist,
71448         func_emit_lib_Makefile_am): New functions.
71449         (func_import): New function, extracted from big case statement. Use
71450         func_get_license, func_modules_transitive_closure,
71451         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71452         opt_lgpl. Don't use test -a, as it's not portable.
71453         (func_create_testdir): Use func_modules_transitive_closure,
71454         func_modules_to_filelist, func_emit_lib_Makefile_am.
71455
71456 2004-10-15  Bruno Haible  <bruno@clisp.org>
71457
71458         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71459
71460 2004-10-15  Bruno Haible  <bruno@clisp.org>
71461
71462         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71463         the portions belonging to each module.
71464         Suggested by Derek Robert Price <derek@ximbiot.com>.
71465
71466 2004-10-12  Simon Josefsson  <jas@extundo.com>
71467
71468         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71469         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71470         to real functions.
71471
71472 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71473
71474         * modules/vsnprintf: New file.
71475
71476 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71477
71478         * m4/vsnprintf.m4: New file.
71479
71480 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71481
71482         * lib/vsnprintf.h: New file.
71483         * lib/vsnprintf.c: New file.
71484
71485 2004-10-11  Bruno Haible  <bruno@clisp.org>
71486
71487         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71488         vsnprintf.
71489
71490 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71491
71492         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71493
71494 2004-10-07  Bruno Haible  <bruno@clisp.org>
71495
71496         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71497         fits into the provided buffer.
71498
71499 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * lib/diacrit.c, diacrit.h: Add GPL notice.
71502
71503         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71504         notice.
71505         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71506         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71507         This avoids a potential constant-folding bug.
71508
71509 2004-10-05  Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71512         for the declaration of strsep.
71513
71514 2004-10-05  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71517
71518 2004-10-04  Simon Josefsson  <jas@extundo.com>
71519
71520         * modules/memmem: New file.
71521         * tests/test-memmem.c: New file.
71522         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71523
71524 2004-10-04  Simon Josefsson  <jas@extundo.com>
71525
71526         * m4/memmem.m4: New file.
71527
71528 2004-10-04  Simon Josefsson  <jas@extundo.com>
71529
71530         * lib/memmem.h: New file.
71531         * lib/memmem.c: New file, taken from glibc.
71532
71533 2004-10-04  Simon Josefsson  <jas@extundo.com>
71534
71535         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71536         '#ifdef USE_UNLOCKED_IO'.
71537
71538 2004-10-04  Simon Josefsson  <jas@extundo.com>
71539
71540         * config/srclist.txt: Add memmem from glibc.
71541
71542 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71543
71544         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71545
71546         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71547         modules/exclude, modules/getdate, modules/getline,
71548         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71549         modules/getusershell, modules/linebuffer, modules/md5,
71550         modules/mountlist, modules/posixtm, modules/readtokens,
71551         modules/readutmp, modules/regex, modules/sha1,
71552         modules/version-etc, modules/yesno:
71553         Remove dependency on unlocked-io.
71554
71555 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71556
71557         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71558
71559         * m4/unlocked-io.m4: Add copyright notice.
71560         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71561
71562 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71565         * lib/xmalloc.c (xmemdup): Likewise.
71566         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71567         XFREE): Remove these long-obsolescent macros.
71568         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71569         * lib/xstrdup.c: Remove.
71570
71571         * lib/regex.c (re_comp): Cast gettext return value to char *,
71572         Problem reported by Martin Neitzel via Mark D. Baushke.
71573
71574 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71577         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71578         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71579         regex.c, sha1.c, version-etc.c, yesno.c:
71580         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71581         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71582         the includer's responsibility.
71583
71584         Sync from coreutils.
71585
71586         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71587         points to the start of a string, as the C Standard says the
71588         resulting behavior is undefined.
71589
71590         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71591         simple -> simple_backups, numbered_existing ->
71592         numbered_existing_backups, numbered -> numbered_backups
71593         to avoid shadowing problems.  All uses changed.
71594         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71595         * lib/backupfile.c (check_extension, numbered_backup):
71596         Rename locals to avoid shadowing 'basename'.
71597         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71598         once.
71599
71600         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71601         * lib/.cvsignore: Add getopt.h.
71602
71603 2004-10-04  Bruno Haible  <bruno@clisp.org>
71604
71605         * modules/README: New file.
71606         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71607         not a module.
71608
71609 2004-10-02  Jim Meyering  <jim@meyering.net>
71610
71611         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71612
71613 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71614
71615         * modules/strsep: New file.
71616
71617 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71618
71619         * m4/strsep.m4: New file.
71620
71621 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71622
71623         * lib/strsep.h: New file.
71624         * lib/strsep.c: New file.
71625
71626 2004-10-01  Simon Josefsson  <jas@extundo.com>
71627
71628         * lib/snprintf.c (snprintf): Handle size==0.
71629
71630 2004-10-01  Simon Josefsson  <jas@extundo.com>
71631             Bruno Haible  <bruno@clisp.org>
71632
71633         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71634         (snprintf): Declare 'args'.
71635
71636 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * lib/snprintf.c: Remove comments as to why each header is needed.
71639
71640 2004-10-01  Bruno Haible  <bruno@clisp.org>
71641
71642         * MODULES.html.sh: Add strsep.
71643
71644 2004-09-30  Simon Josefsson  <jas@extundo.com>
71645
71646         * modules/snprintf: New file.
71647
71648 2004-09-30  Simon Josefsson  <jas@extundo.com>
71649
71650         * m4/snprintf.m4: New file.
71651
71652 2004-09-30  Simon Josefsson  <jas@extundo.com>
71653
71654         * lib/snprintf.h, lib/snprintf.c: New files.
71655
71656 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71657
71658         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71659         (hol_entry_help): Never translate an empty string.
71660         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71661         * lib/argp.h (OPTION_NO_TRANS): New option.
71662
71663 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * modules/argp (Maintainer): Replace Simon Josefsson
71666         by Sergey Poznyakoff.
71667
71668 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71671         changes merged back into glibc.
71672
71673 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71676
71677 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71678
71679         * lib/xvasprintf.c: Include xalloc.h.
71680         (xvasprintf): Use xalloc_die, not xmalloc_die.
71681
71682 2004-09-29  Bruno Haible  <bruno@clisp.org>
71683
71684         * modules/alloca-opt: New file, derived from modules/alloca.
71685         * modules/allocsa: Depend on alloca-opt instead of alloca.
71686         * modules/setenv: Likewise.
71687         * modules/vasnprintf: Likewise.
71688         * MODULES.html.sh: Add alloca-opt.
71689
71690 2004-09-28  Simon Josefsson  <jas@extundo.com>
71691
71692         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71693         LGPL, and to replace license template from GPL to LGPL.
71694
71695 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71696
71697         * modules/dummy: Change license to LGPL.
71698
71699 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71700
71701         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71702
71703 2004-09-24  Simon Josefsson  <jas@extundo.com>
71704
71705         * modules/minmax (License): Change from GPL to LGPL.
71706
71707 2004-09-23  Simon Josefsson  <jas@extundo.com>
71708
71709         * gnulib-tool (--import): Typo.
71710
71711 2004-09-23  Simon Josefsson  <jas@extundo.com>
71712
71713         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71714
71715 2004-09-22  Bruno Haible  <bruno@clisp.org>
71716
71717         * modules/*: Add 'License' field.
71718         * gnulib-tool: Accept --extract-license option.
71719         (func_get_license): New function.
71720
71721 2004-09-21  Bruno Haible  <bruno@clisp.org>
71722
71723         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71724         Reported by Simon Josefsson.
71725
71726 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71729         gl_AC_TYPE_LONG_LONG.
71730
71731 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71732
71733         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71734
71735 2004-09-18  Simon Josefsson  <jas@extundo.com>
71736         and  Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71739         calls with autoreconf.  Define GL_LIB.
71740
71741 2004-09-14  Karl Berry  <karl@gnu.org>
71742
71743         * config/srclist.txt: unsync setenv.c, sigh.
71744
71745 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71748         Problem reported by Bruno Haible in:
71749         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71750
71751 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71752
71753         * config/srclist.txt: Comment out argp-pvh.c.
71754
71755 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71758         in case some system header has #define'd it.  Problem reported by
71759         Soeren D. Schulze in
71760         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71761
71762 2004-09-09  Karl Berry  <karl@gnu.org>
71763
71764         * regex.[ch]: delete from the root.  These were supposed to be
71765                 synced with emacs cvs, but this has not happened for about
71766                 a year, and anyway nothing else uses emacs regex.[ch].
71767                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71768                 lib/regex[.ch] is untouched.
71769
71770 2004-09-09  Bruno Haible  <bruno@clisp.org>
71771
71772         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71773
71774 2004-09-09  Bruno Haible  <bruno@clisp.org>
71775
71776         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71777         modifications.
71778         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71779
71780 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71781
71782         * modules/xvasprintf: New file.
71783         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71784
71785 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71786
71787         * lib/xvasprintf.h: New file.
71788         * lib/xvasprintf.c: New file.
71789         * lib/xasprintf.c: New file.
71790
71791 2004-09-08  Bruno Haible  <bruno@clisp.org>
71792
71793         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71794
71795 2004-09-08  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71798         length is > INT_MAX.
71799         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71800         more.
71801
71802 2004-09-08  Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/stdint_.h: New file, taken from GNU clisp.
71805
71806 2004-09-08  Bruno Haible  <bruno@clisp.org>
71807             Oskar Liljeblad  <oskar@osk.mine.nu>
71808
71809         * modules/stdint: New file.
71810         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71811
71812 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71813
71814         Import from coreutils.
71815         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71816         strings on unbounded length.  alloca's performance benefits aren't
71817         that important here.
71818         (V_STRDUP): Remove.
71819         (parse_with_separator): New function, with most of the internals
71820         of the old parse_user_spec.  Allow user to omit both user and group,
71821         for compatibility with FreeBSD.
71822         Clone only the user name, not the entire spec.
71823         Do not set *uid, *gid unless entirely successful.
71824         Avoid memory leak in some failing cases.
71825         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71826         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71827         (parse_user_spec): Rewrite to use parse_with_separator.
71828
71829 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * modules/userspec: Don't depend on alloca.
71832
71833 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71836
71837 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71840         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71841         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71842
71843 2004-08-16  Simon Josefsson  <jas@extundo.com>
71844
71845         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71846         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71847         Add --dry-run for --import.
71848         Let user provided command line parameters override configure.ac
71849         settings.
71850
71851 2004-08-12  Simon Josefsson  <jas@extundo.com>
71852
71853         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71854         as discussed with Paul Eggert in threads rooted at
71855         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71856         and
71857         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71858         Before, the test was empty, and relied on ELIDE_CODE in source
71859         code.)
71860         (gl_PREREQ_GETOPT): New macro.
71861         (gl_GETOPT): Use them.
71862
71863 2004-08-12  Simon Josefsson  <jas@extundo.com>
71864
71865         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71866         * lib/getopt_.h: Renamed from getopt.h.
71867
71868 2004-08-12  Simon Josefsson  <jas@extundo.com>
71869
71870         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71871         Change default library name from libfoo to libgnu.
71872         Now, if you have a configure.ac that says:
71873                 gl_SOURCE_BASE(gl)
71874                 gl_M4_BASE(gl/m4)
71875                 gl_MODULES(error getopt etcetera)
71876                 gl_INIT
71877         you can import all you need by running:
71878                 ../gnulib/gnulib-tool --import
71879
71880         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71881         (Makefile.am): Rewrite, use logic from argz.
71882         (Include): Use <getopt.h> instead of "getopt.h".
71883
71884 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * modules/argp (Files): Add m4/unlocked-io.m4.
71887         (Depends-on): Add extensions.
71888
71889 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71890
71891         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71892         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71893         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71894         Check for program_invocation_name, program_invocation_short_name,
71895         flockfile, funlockfile, features.h, _getopt_long_only_r.
71896
71897 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71898
71899         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71900         its complicated substitute.
71901         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71902         and program_invocation_name.
71903         (__argp_basename) [!_LIBC]: Remove; the only use was
71904         replaced by its body.
71905         (__argp_short_program_name): Change condition from
71906         !defined __argp_short_program_name to
71907         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71908         to match argp-namefrob.h.
71909         (__argp_failure): Don't assume strerror_r returns char *.
71910         * lib/argp-parse.c (N_): Define unconditionally.
71911         (argp_default_options): Fill out initializers with 0 to avoid
71912         gcc warnings.
71913
71914 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71917         getopt1.c.
71918
71919 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         Merge from coreutils.
71922
71923         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71924
71925         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71926         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71927
71928 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         Merge from coreutils.
71931
71932         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71933         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71934         for Reliant Unix 5.43.
71935
71936         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71937         (union fooround): Use uintmax_t, not long int.
71938         The rest is a merge from libc:
71939         [defined _LIBC]: Include <shlib-compat.h>.
71940         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71941
71942         * lib/settime.c (settime): Recode to avoid warning with
71943         Sun Forte C 6U2.
71944
71945         * lib/strverscmp.c: Convert to UTF-8.
71946
71947 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71950         m4/uintmax_t.m4.
71951
71952 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * modules/xalloc-die: New file.
71955         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71956
71957         * modules/md5 (Files): Add m4/uint32_t.m4.
71958         * modules/sha1: Renamed from modules/sha.
71959         (Files):
71960         Rename lib/sha.h to lib/sha1.h.
71961         Rename lib/sha.c to lib/sha1.c.
71962         Rename m4/sha.m4 to m4/sha1.m4.
71963         (lib_SOURCES): Likewise.
71964         (configure.ac): Rename gl_SHA to gl_SHA1.
71965         (Include): sha.h -> sha1.h.
71966
71967 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71970         * m4/sha1.m4: Renamed from sha.m4.
71971         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71972
71973 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/obstack.h (obstack_empty_p):
71976         Don't assume that chunk->contents is suitably aligned.
71977         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71978         Likewise. Problem reported by Benno in
71979         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71980
71981         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71982         readable.  This could be improved further but it'd take some work.
71983
71984 2004-08-08  Simon Josefsson  <jas@extundo.com>
71985
71986         * modules/xgethostname (Depends-on): Remove exit and error (not
71987         used).
71988
71989         * modules/getpass-gnu: Add getpass.h.
71990         (Depends-on): Add stdbool.
71991         * modules/getpass: Add getpass.h.
71992
71993 2004-08-08  Simon Josefsson  <jas@extundo.com>
71994
71995         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71996         Check getpass declaration.
71997
71998 2004-08-08  Simon Josefsson  <jas@extundo.com>
71999
72000         * lib/xgethostname.c: Don't include error.h (not used).
72001
72002         * lib/getpass.h: Add.
72003         * lib/getpass.c: Include getpass.h first.
72004
72005 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/xalloc-die.c: New file.
72008         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72009         All uses removed.
72010         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72011         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72012         xalloc-die.c.
72013         (_, N_, xalloc_die): Move to xalloc-die.c.
72014         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72015         so that we needn't mess with xalloc_msg_memory_exhausted.
72016
72017         * lib/sha1.h: Renamed from sha.h.
72018         (SHA1_H): Renamed from _SHA_H.
72019         (sha1_ctx): Renamed from sha_ctx.
72020         (sha1_init_ctx): Renamed from sha_init_ctx.
72021         (sha1_process_block): Renamed from sha_process_block.
72022         (sha1_process_bytes): Renamed from sha_process_bytes.
72023         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72024         (sha1_read_ctx): Renamed from sha_read_ctx.
72025         (sha1_stream): Renamed from sha_stream.
72026         (sha1_buffer): Renamed from sha_buffer.
72027         * lib/sha1.c: Likewise; renamed from sha.c.
72028         Do not include <sys/types.h>.
72029         Include <stddef.h> rather than <stdlib.h>.
72030
72031 2004-08-08  Bruno Haible  <bruno@clisp.org>
72032
72033         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72034         FILESYSTEM_PREFIX_LEN.
72035         * lib/progreloc.c: Likewise.
72036         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72037
72038 2004-08-06  Simon Josefsson  <jas@extundo.com>
72039
72040         * modules/progname (Depends-on): Don't depend on stdbool.
72041
72042 2004-08-06  Simon Josefsson  <jas@extundo.com>
72043
72044         * modules/getsubopt: New file.
72045         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72046         getsubopt.
72047
72048 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         More merge from coreutils.
72051
72052         * m4/utimens.m4, m4/utimecmp.m4: New files.
72053         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72054         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72055         prereq.m4, sha.m4: Import changes from coreutils.
72056
72057 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72058
72059         More merge from coreutils.
72060         * modules/raise, modules/readtokens0, modules/utimens:
72061         * modules/utimecmp, module/xnanosleep: New files.
72062         * modules/strftime: Add lib/strftime.h.
72063         Change include from <time.h> to "strftime.h".
72064         * modules/yesno: Add lib/yesno.h.
72065         * modules/backupfile: Remove lib/addext.c.
72066         * modules/euidaccess: Add stat-macros.h.
72067         * modules/canonicalize, modules/euidaccess,
72068         modules/filemode, modules/lchown, modules/makepath,
72069         modules/rmdir, modules/stat: Likewise.
72070
72071 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         Merge from tar.
72074         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72075         SIZE_MAX is a valid preprocessor constant.
72076         (__argp_basename): Change from "#ifndef _LIBC"
72077         to "#ifndef __argp_short_program_name", so that
72078         we don't compile these functions for tar.
72079
72080         More merges from coreutils.
72081         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72082         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72083         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72084         * lib/addext.c: Remove; no longer needed.
72085         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72086         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72087         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72088         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72089         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72090         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72091         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72092         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72093         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72094         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72095         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72096         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72097         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72098         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72099         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72100         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72101         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72102         Import changes from coreutils.
72103
72104 2004-08-05  Simon Josefsson  <jas@extundo.com>
72105
72106         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72107
72108 2004-08-05  Simon Josefsson  <jas@extundo.com>
72109
72110         * m4/getsubopt.m4: New file.
72111
72112 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72113
72114         Merge from coreutils.
72115
72116         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72117         * m4/getcwd-path-max.m4: New files.
72118
72119         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72120         FILESYSTEM_PREFIX_LEN ->
72121         FILE_SYSTEM_PREFIX_LEN.
72122         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72123         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72124         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72125         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72126
72127         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72128         prerequisite modules now handle the DOS stuff.
72129         Don't check for unistd.h.
72130
72131 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72132
72133         Merge from coreutils.
72134
72135         * lib/.gdb-history: Remove; this doesn't belong here.
72136
72137         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72138         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72139         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72140         * lib/getcwd.c: New files.
72141
72142         * lib/dirname.h: Include <stdbool.h>.
72143         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72144         for consistency with POSIX terminology.  All uses changed.
72145         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72146         (strip_trailing_slashes): Use bool for booleans.
72147         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72148
72149         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72150         sometimes returns a positive errno value even when it succeeds.
72151         (print_errno_message) [!LIBC]: Fall back on strerror if
72152         __strerror_r fails.
72153
72154         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72155         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72156         (longest_relative_suffix): New function.
72157         (path_concat): Use it.  Assume first argument is not NULL.
72158         Port to DOS.  Omit redundant separators.
72159         Report an error instead of returning NULL.
72160         Use mempcpy instead of memcpy.
72161         (xpath_concat): Remove: not declared or used.
72162
72163         * lib/same.h: Include <stdbool.h>
72164         (same_name): Return bool, not int.
72165         * lib/same.c (same_name): Likewise.
72166         (errno): Don't declare; we assume C89 or better now.
72167
72168         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72169         if not already defined.
72170
72171         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72172         * lib/dup-safer.c (errno): Likewise.
72173
72174 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         Merge from coreutils.
72177         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72178         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72179         * modules/path-concat: Don't depend on strdup.
72180
72181 2004-08-03  Simon Josefsson  <jas@extundo.com>
72182
72183         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72184         * lib/progname.h: Don't include stdbool.h.
72185
72186 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72189         * MODULES.html.sh (func_all_modules): Remove fatal.
72190
72191 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72194
72195 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72196
72197         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72198         working.
72199
72200 2004-08-02  Simon Josefsson  <jas@extundo.com>
72201
72202         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72203         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72204         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72205
72206 2004-08-01  Simon Josefsson  <jas@extundo.com>
72207
72208         * lib/xgetdomainname.c: Include stdlib.h, for free().
72209
72210 2004-07-19  Bruno Haible  <bruno@clisp.org>
72211
72212         * MODULES.html.sh (func_all_modules): Add dummy.
72213
72214 2004-07-16  Simon Josefsson  <jas@extundo.com>
72215
72216         * modules/dummy: New file.
72217
72218 2004-07-16  Simon Josefsson  <jas@extundo.com>
72219
72220         * lib/dummy.c: New file.
72221
72222 2004-07-16  Bruno Haible  <bruno@clisp.org>
72223
72224         * lib/backupfile.h: Add extern "C" for C++.
72225         * lib/closeout.h: Likewise.
72226         * lib/copy-file.h: Likewise.
72227         * lib/findprog.h: Likewise.
72228         * lib/full-write.h: Likewise.
72229         * lib/pathname.h: Likewise.
72230         * lib/progname.h: Likewise.
72231         * lib/stpcpy.h: Likewise.
72232         * lib/stpncpy.h: Likewise.
72233         * lib/strcase.h: Likewise.
72234         * lib/strstr.h: Likewise.
72235         * lib/xalloc.h: Likewise.
72236
72237         * lib/mbswidth.h: Add extern "C" for C++.
72238         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72239
72240 2004-07-13  Robert Millan  <robertmh@gnu.org>
72241
72242         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72243
72244 2004-07-09  Simon Josefsson  <jas@extundo.com>
72245
72246         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72247         failed without this.)
72248
72249 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         * modules/chown (Files): Add lib/fchown-stub.c, since
72252         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72253
72254 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * lib/fchown-stub.c: New file.
72257
72258 2004-06-24  Jim Meyering  <jim@meyering.net>
72259
72260         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72261
72262 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * modules/argz: Omit "#include".
72265
72266         * MODULES.html.sh (func_all_modules): Add calloc, to match
72267         2004-06-01 addition of calloc module.
72268
72269 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         * m4/argz.m4: New file, which is autoupdated from libtool.
72272
72273 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72276         libtool.
72277
72278 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * config/srclist-update: Don't insist on "USA." before the
72281         close-comment, as libtool omits the period and puts the */ on a
72282         separate line.
72283         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72284         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72285
72286 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72287
72288         * modules/argz: New file.
72289         * MODULES.html.sh (func_all_modules): Add argz.
72290
72291 2004-06-12  Jim Meyering  <jim@meyering.net>
72292         and  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * modules/hash (Files): Add lib/xalloc.h.
72295         * modules/pipe (Depends-on): Add wait-process.
72296         * modules/stat (Depends-on): Add xalloc.
72297         * modules/userspec (Files): Add lib/userspec.h.
72298         * modules/xstrto
72299
72300         Upgrade from gettext-0.13.
72301         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72302         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72303         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72304
72305 2004-06-10  Jim Meyering  <jim@meyering.net>
72306
72307         * lib/calloc.c: New file.
72308
72309 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * lib/getdate.y (yylex): Allow space between sign and number.
72312         Problem reported by Dan Jacobson.
72313
72314 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         Merge from coreutils CVS.
72317
72318         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72319         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72320         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72321         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72322         xstrtol.m4: Fix copyright date and/or serial number.
72323
72324         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72325         See if we need an fchown replacement.
72326         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72327         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72328         and use the replacement function if we detect either defect.
72329
72330         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72331         gl_UTIMECMP.
72332
72333 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72334         and  Jim Meyering  <jim@meyering.net>
72335
72336         Merge from coreutils CVS.
72337
72338         * lib/stat-macros.h: New file, with contents from file-type.h
72339         and coreutils' system.h.
72340         * lib/file-type.c: Include "stat-macros.h".
72341         * lib/file-type.h (file_type): Move all macro definitions to new file,
72342         stat-macros.h.
72343
72344         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72345         Wrap old code with this conditional.
72346         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72347         function that does not dereference symlinks.
72348         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72349
72350         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72351         dependency problems.
72352         (xreadlink): Accept new arg SIZE, for efficiency.
72353         All decls and uses changed.
72354         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72355
72356         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72357         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72358
72359         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72360         sysexits.h.
72361
72362 2004-06-01  Jim Meyering  <jim@meyering.net>
72363
72364         * m4/calloc.m4: New file.
72365
72366 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72369         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72370         Also, fix a typo in a diagnostic.
72371
72372 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72373
72374         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72375         or AC_FUNC_REALLOC.
72376
72377 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72380         macros to be defined.
72381         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72382         the allocator returns NULL because the requested size is zero.
72383
72384 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72385
72386         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72387         var.  Add comment explaining why libc still defines it.  This
72388         merges the following patch from glibc:
72389         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72390
72391 2004-05-20  Andreas Schwab  <schwab@suse.de>
72392
72393         * m4/free.m4: Replace free if it not known to work, not the other
72394         way round.
72395
72396 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72399         present in glibc since revision 1.1 of this file.
72400         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72401         obstack_alignment_mask, obstack_alloc, obstack_base,
72402         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72403         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72404         obstack_grow0, obstack_init, obstack_int_grow,
72405         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72406         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72407         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72408         nonexistent functions.
72409
72410 2004-05-18  Karl Berry  <karl@gnu.org>
72411
72412         * config/srclist.txt: break link for vasnprintf.c.
72413
72414 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         Port obstack to the AS/400, where pointers are 16 bytes wide and
72417         you cannot cast an integer to a valid pointer.  This patch is
72418         currently waiting to be integrated into glibc; see
72419         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72420
72421         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72422         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72423         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72424         (struct obstack): temp member is now a union of a pointer and
72425         an integer, instead of an integer.  All integer uses changed.
72426         This does not affect the physical layout of struct obstack,
72427         except on hosts (like the AS/400) where the size or alignment of
72428         void * is greater than that of ptrdiff_t.
72429         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72430         __STDC__)]: Store temporary in pointer member of union, not
72431         integer member.
72432         * lib/obstack.c: Include <stddef.h>, for offsetof.
72433         (struct fooalign): Remove; it doesn't need a name.
72434         (union fooround): Change double to long double, and add void *.
72435         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72436         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72437         not a macro.  Hence the values are always int; so remove all
72438         casts-to-int in uses.
72439
72440 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72441
72442         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72443         we can get this patch merged into glibc.
72444
72445 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72446             Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         * m4/argp: Depend on alloca.
72449
72450 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72451             Paul Eggert  <eggert@cs.ucla.edu>
72452
72453         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72454         freecoding.
72455
72456 2004-05-17  Bruno Haible  <bruno@clisp.org>
72457
72458         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72459         precision that consists of a '.' followed by an empty digit string.
72460         Patch by Tor Lillqvist <tml@iki.fi>.
72461
72462 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72463
72464         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72465         for backward compatibility with older code.  We need our own
72466         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72467         it under some other name, and our alloca.h will define it.
72468
72469 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72470             Derek Price  <derek@ximbiot.com>
72471
72472         * lib/alloca.c: Include <alloca.h>, to get our interface.
72473         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72474         include <alloca.h> first.  Use C89 prototype for alloca; this
72475         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72476         Use #elif for simplicity, since we can assume C89 now.
72477         Don't try to source the system alloca.h since it will not be found
72478         and to prevent recursively including its replacement.
72479         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72480         * lib/regex.c: Likewise.
72481
72482 2004-05-16  Derek Price  <derek@ximbiot.com>
72483             Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         getline cleanup.  This changes the getndelim2 API: both order of
72486         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72487         no delimiter).
72488
72489         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72490         interface does that.
72491         (getline): Always use getdelim, so that we don't have two
72492         copies of this code.
72493         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72494         if available.
72495         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72496         (GETNDELIM2_MAXIMUM): New macro.
72497         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72498         instead of the old practice of delim2==0.  All callers changed.
72499         Return -1 on overflow, instead of returning junk.
72500         Do not set *linesize unless allocation succeeds.
72501         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72502         that we include sys/types.h.
72503         * lib/getnline.h: Likewise.
72504         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72505         (getndelim2): Reorder arguments.
72506         * lib/getnline.c (getnline, getndelim):
72507         Don't discard the NMAX argument.
72508         (getnline): Invoke getndelim, to avoid code duplication.
72509         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72510         of (size_t) -1 by callers of the getnline family.
72511
72512 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72513
72514         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72515         Check for gettimeofday.
72516         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72517         Check for settimeofday, stime.
72518
72519 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         * lib/nanosleep.c (suspended): Change its type from int to
72522         sig_atomic_t volatile.
72523         (first_call): Make it private to rpl_nanosleep, and have it
72524         be zero initially as that's a bit faster.
72525         (my_usleep): Round up fractional times instead of truncating them,
72526         as this is the usual meaning for 'sleep'.
72527
72528         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72529         doesn't work.
72530         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72531         (ENOSYS): Define if not defined.
72532         (settime): Fall back on stime if it exists and settimeofday fails.
72533         But don't bother with fallbacks if a method fails with errno == EPERM.
72534
72535 2004-05-11  Jim Meyering  <jim@meyering.net>
72536
72537         Prior to this change, the save_cwd caller required read access to the
72538         current directory on most systems (ones with the fchdir function).
72539
72540         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72541         fails, try write-only, and finally, resort to using xgetcwd.
72542
72543 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * lib/obstack.c, obstack.h: Import changes from libc.
72546
72547 2004-04-28  Bruno Haible  <bruno@clisp.org>
72548
72549         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72550         also implicitly appends .exe to executables.
72551         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72552         accepts Windows pathnames.
72553         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72554         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72555         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72556         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72557         Reported by Derek Robert Price <derek@ximbiot.com>.
72558
72559 2004-04-21  Karl Berry  <karl@gnu.org>
72560
72561         * config/srclist.txt (localcharset.c): break sync.
72562
72563 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72564
72565         * m4/host-os.m4: Add a copyright notice.
72566
72567 2004-04-20  Jim Meyering  <jim@meyering.net>
72568
72569         Change UTILS_ to gl_ in AC_DEFINE'd names.
72570         Change utils_- and jm_-prefixed variables, too.
72571         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72572         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72573         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72574
72575         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72576         Don't emit trailing blanks.
72577         Also rename jm_-prefixed variables to have gl_ prefix.
72578
72579         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72580         Also rename jm_-prefixed variables to have gl_ prefix.
72581
72582         * m4/jm-macros.m4: Reflect the renamings.
72583         * m4/prereq.m4: Likewise.
72584
72585 2004-04-20  Jim Meyering  <jim@meyering.net>
72586
72587         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72588         memory.
72589
72590 2004-04-20  Jim Meyering  <jim@meyering.net>
72591             Bruno Haible  <bruno@clisp.org>
72592
72593         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72594         memory when realloc fails.
72595
72596 2004-04-19  Jim Meyering  <jim@meyering.net>
72597
72598         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72599         now that readutmp.c may call `free (0)'.
72600
72601 2004-04-19  Bruno Haible  <bruno@clisp.org>
72602
72603         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72604         * m4/inttypes_h.m4: Likewise.
72605         * m4/stdint_h.m4: Likewise.
72606         * m4/intmax_t.m4: Likewise.
72607         * m4/uintmax_t.m4: Likewise.
72608
72609 2004-04-18  Jim Meyering  <jim@meyering.net>
72610
72611         * m4/prereq.m4: Don't forbid jm_ prefix.
72612
72613         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72614         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72615         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72616         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72617         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72618         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72619         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72620         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72621         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72622         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72623         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72624         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72625         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72626         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72627         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72628         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72629         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72630         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72631         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72632
72633 2004-04-18  Jim Meyering  <jim@meyering.net>
72634
72635         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72636         failure, don't leak memory and do call END_UTMP_ENT.
72637
72638 2004-04-16  Jim Meyering  <jim@meyering.net>
72639
72640         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72641         coreutils' stat program.
72642         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72643
72644 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72645
72646         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72647         C89.
72648         (CHAR_BIT): Remove, since we assume C89.
72649         Include <stdint.h> if available, as per current Autoconf CVS advice.
72650
72651 2004-03-31  Jim Meyering  <jim@meyering.net>
72652
72653         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72654         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72655         * m4/xalloc.m4: Likewise.
72656
72657 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72658
72659         Merge from coreutils.
72660
72661         * m4/inttostr.m4: New file.
72662         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72663         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72664         Require gl_CLOCK_TIME.
72665         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72666
72667 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72668
72669         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72670         not bool, to be more consistent with Unix conventions.
72671         Suggested by Bruno Haible.
72672
72673         Merge from coreutils.
72674
72675         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72676         * lib/umaxtostr.c: New files.
72677
72678         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72679         the usual <time.h> dance.
72680         (get_date): Change signature to support fractional time stamps.
72681         All callers changed.
72682         * lib/getdate.y: Include "getdate.h" first, as we can now
72683         assume C89 and don't need to worry about 'const'.
72684         Similarly, include "unlocked-io.h" near start, not in middle.
72685         Include <limits.h>.
72686         (textint.value): Use long int rather than int.
72687         (textint.digits): Use size_t rather than int.
72688         (BILLION, LOG10_BILLION): New constants.
72689         (parser_control): New member rel_ns.  Members day_ordinal,
72690         time_zone, month, day, hour, minutes, rel_year, rel_month,
72691         rel_day, rel_hour, rel_minutes, rel_seconds
72692         are now long int, not int.  Member seconds is now struct timespec,
72693         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72694         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72695         not int.
72696         (%union.intval): Now long int, not int.
72697         New member timespec.
72698         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72699         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72700         (spec): Now is a timespec or an item list.
72701         (timespec, items): New nonterminals.
72702         (time, rel, relunit, number, get_date):
72703         Add support for fractional seconds.
72704         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72705         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72706         (to_hour): First arg is now long int, not int.
72707         (to_year): Returns long int, not int.
72708         Don't treat year -70 like 70.
72709         (tm_diff): Returns long int, not int.
72710         (lookup_word): Use bool instead of int when appropriate.
72711         (yylex): Use size_t for count, not int.
72712         Detect overflow when parsing large integer constants.
72713         Add support for fractions.
72714         (get_date): Make pointers 'const' if possible.
72715         Use more-portable code to detect integer overflow.
72716         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72717         Don't use ctime; it's not reliable if the year has >4 digits.
72718
72719         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72720         This is for compatibility with BSD.
72721
72722         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72723         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72724         From coreutils' system.h.
72725
72726         * lib/userspec.c: Don't include "posixver.h".
72727         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72728         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72729         compatible extension.  Simplify code by removing a boolean int
72730         that was always nonzero if a string was nonnull.
72731
72732 2004-03-30  Jim Meyering  <jim@meyering.net>
72733
72734         Merge from coreutils.
72735
72736         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72737         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72738         on some systems one must include <grp.h> before it.
72739         Reported by Christian Krackowizer.
72740
72741 2004-03-30  Jim Meyering  <jim@meyering.net>
72742
72743         Merge from coreutils.
72744
72745         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72746
72747         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72748         an empty input stream.
72749
72750         * lib/readtokens.c: Include <stdbool.h>.
72751         (readtoken): Use `size_t' rather than int/long.
72752         All callers adjusted.
72753         Use `bool' rather than `int' where appropriate.
72754         Use memset rather than an explicit loop.
72755         Use x2nrealloc rather than xrealloc.
72756         Allow the use of `\0' as a delimiter.
72757         (readtokens): Likewise.
72758         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72759
72760 2004-03-30  Jim Meyering  <jim@meyering.net>
72761
72762         * m4/realloc.m4: Remove file, since now it does no more than
72763         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72764         the `configure.ac' section of module/realloc.
72765         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72766
72767 2004-03-30  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72770         nonnull.
72771
72772 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72773
72774         Merge changes to getloadavg.c from coreutils and Emacs.
72775
72776         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72777         Define to an expression, not to the empty string.
72778         Include cloexec.h and xalloc.h.
72779         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72780         Use set_cloexec_flag rather than rolling our own.
72781         * lib/cloexec.c, lib/cloexec.h: New files.
72782
72783 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72784
72785         * m4/cloexec.m4: New file.
72786
72787 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72788
72789         * lib/getopt.h: Sync with libc CVS.
72790
72791 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72792             Bruno Haible  <bruno@clisp.org>
72793
72794         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72795         mbswidth.
72796
72797 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72798             Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/mbswidth.h: Include <wchar.h> only if
72801         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72802         <wchar.h>.
72803         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72804
72805 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72806
72807         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72808         Sync with libc CVS.
72809         * lib/getopt_int.h: New file, also synced from libc.
72810
72811 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72812
72813         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72814         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72815         Bring back getopt.c, getopt.h, getopt1.c.
72816
72817 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72818
72819         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72820         All uses changed.  Check for sa_sigaction member; this fixes
72821         a bug first reported by Jason Andrade in
72822         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72823
72824 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72825
72826         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72827         '#if' expressions.  Unlike the code it replaces, it does not
72828         depend on (defined _SC_PAGESIZE).  However, it does depend on
72829         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72830         first reported by Jason Andrade in
72831         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72832
72833 2004-02-25  Simon Josefsson  <jas@extundo.com>
72834
72835         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72836
72837 2004-02-25  Simon Josefsson  <jas@extundo.com>
72838
72839         * lib/strdup.h: New file.
72840         * lib/strdup.c: Include it.
72841         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72842         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72843
72844 2004-02-23  Karl Berry  <karl@gnu.org>
72845
72846         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72847         (from fencepost.gnu.org:/gd/gnuorg).
72848
72849 2004-02-23  Karl Berry  <karl@gnu.org>
72850
72851         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72852         * config/srclist.txt: add maintain/standards documents.
72853
72854 2004-02-18  Bruno Haible  <bruno@clisp.org>
72855
72856         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72857         Reported by Derek Robert Price <derek@ximbiot.com>.
72858
72859 2004-02-16  Karl Berry  <karl@gnu.org>
72860
72861         * config/mkinstalldirs, install-sh: update from automake.
72862
72863 2004-02-06  Karl Berry  <karl@gnu.org>
72864
72865         * m4/po.m4: update from gettext 0.14.1.
72866
72867 2004-02-06  Karl Berry  <karl@gnu.org>
72868
72869         * lib/config.charset: update from gettext 0.14.1.
72870
72871 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72872
72873         Add comments and code, prompted by suggestions from Bruno Haible
72874         for sh-quote.
72875         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72876         describing the enum quoting_style values.
72877         * lib/quotearg.c (quotearg_alloc): New function.
72878         (quotearg_buffer_restyled): Treat lone { and } as special.
72879         Treat = as special.  Work around bug with older shells
72880         that "see" a '\' that is really the 2nd byte of a multibyte char.
72881         Quote empty string with shell_quoting_style.
72882
72883 2004-02-03  Bruno Haible  <bruno@clisp.org>
72884
72885         * m4/pipe.m4: New file, from GNU gettext.
72886
72887 2004-02-03  Bruno Haible  <bruno@clisp.org>
72888
72889         * lib/pipe.h: New file, from GNU gettext.
72890         * lib/pipe.c: New file, from GNU gettext.
72891
72892 2004-01-27  Bruno Haible  <bruno@clisp.org>
72893
72894         * m4/execute.m4: New file, from GNU gettext.
72895
72896 2004-01-27  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/execute.h: New file, from GNU gettext.
72899         * lib/execute.c: New file, from GNU gettext.
72900         * lib/w32spawn.h: New file, from GNU gettext.
72901
72902 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72903
72904         Merge from diffutils.
72905
72906         * lib/file-type.c (file_type): Add typed memory objects.
72907         * lib/file-type.h (S_TYPEISTMO): New macro.
72908
72909         * lib/c-stack.h (c_stack_action): Remove argv argument.
72910         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72911         (die): Don't calculate message unless segv_action returns.
72912         (get_stack_location, min_address_from_argv, max_address_from_argv,
72913         volatile stack_base, volatile_stack_size): Remove.
72914         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72915         that every segmentation violation is a stack overflow.  (Ouch!)
72916         See Debian bug 136249 (still outstanding) for more info about why
72917         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72918
72919 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72920
72921         Exit-status fix from coreutils.
72922
72923         Use exit_failure consistently in place of EXIT_FAILURE,
72924         so that program exit statuses are consistent on failure.
72925
72926         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72927         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72928         * lib/argmatch.h: Comment fix to match the above.
72929         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72930         Now a macro referring to exit_failure, instead of a separate
72931         variable.  Include "exitfail.h" to get it.
72932         * lib/xstrtol.h: Include "exitfail.h".
72933         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72934
72935         * lib/long-options.c (parse_long_options): Use prototype
72936         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72937         for clarity.
72938
72939 2004-01-21  Jim Meyering  <jim@meyering.net>
72940
72941         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72942         so as not to conflict with a different-sized __mktime_internal
72943         function in GNU libc.
72944         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72945         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72946
72947 2004-01-20  Karl Berry  <karl@gnu.org>
72948
72949         * config/config.guess: update from config.
72950
72951         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72952
72953 2004-01-20  Bruno Haible  <bruno@clisp.org>
72954
72955         Safer stack allocation.
72956         * lib/setenv.c: Include allocsa.h.
72957         (alloca): Remove fallback definition.
72958         (freea): Remove macro.
72959         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72960         instead of freea.
72961
72962 2004-01-20  Bruno Haible  <bruno@clisp.org>
72963
72964         * m4/eealloc.m4: New file, from GNU gettext.
72965
72966 2004-01-20  Bruno Haible  <bruno@clisp.org>
72967
72968         * m4/allocsa.m4: New file, from GNU gettext.
72969
72970 2004-01-20  Bruno Haible  <bruno@clisp.org>
72971
72972         * lib/xallocsa.h: New file, from GNU gettext.
72973         * lib/xallocsa.c: New file, from GNU gettext.
72974
72975 2004-01-20  Bruno Haible  <bruno@clisp.org>
72976
72977         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72978
72979 2004-01-20  Bruno Haible  <bruno@clisp.org>
72980
72981         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72982         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72983         specially.
72984
72985 2004-01-20  Bruno Haible  <bruno@clisp.org>
72986
72987         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72988         patch.
72989
72990 2004-01-20  Bruno Haible  <bruno@clisp.org>
72991
72992         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72993
72994 2004-01-20  Bruno Haible  <bruno@clisp.org>
72995
72996         * lib/eealloc.h: New file.
72997
72998 2004-01-20  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/binary-io.h: Avoid warnings on Cygwin.
73001
73002 2004-01-20  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/allocsa.h: New file, from GNU gettext.
73005         * lib/allocsa.c: New file, from GNU gettext.
73006
73007 2004-01-18  Karl Berry  <karl@gnu.org>
73008
73009         * doc/gpl.texi, doc/lgpl.texi: new files.
73010
73011 2004-01-18  Karl Berry  <karl@gnu.org>
73012
73013         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73014         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73015
73016 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73017
73018         Merge from coreutils.
73019
73020         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73021         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73022         (gl_DEFAULT_POSIX2_VERSION): Move
73023         the documentation from 'configure' into 'config.hin',
73024         so that 'configure --help' isn't burdened by it and
73025         we don't have to worry about its formatting there.
73026         Reword the documentation so that it's more succinct
73027         and can be run together into a single paragraph.
73028         * m4/same.m4 (gl_SAME): Check for pathconf.
73029
73030 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73031
73032         Merge from coreutils.
73033
73034         * lib/posixver.c: Include posixver.h.
73035
73036         * lib/same.c: Include <stdbool.h>, <limits.h>.
73037         (_POSIX_NAME_MAX): Define if not defined.
73038         (MIN): New macro.
73039         (same_name): If file names are silently truncated, report
73040         that the file names are the same if they are the same after
73041         the silent truncation.
73042
73043         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73044         conversion function.
73045         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73046         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73047         longer needed.
73048
73049 2004-01-15  Jim Meyering  <jim@meyering.net>
73050
73051         Merge from coreutils.
73052
73053         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73054         if no library is required.
73055         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73056         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73057         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73058         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73059         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73060         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73061         value, $ac_cv_search_crypt, if it's "none required".
73062         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73063         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73064         not gl_FUNC_GETLOADAVG.
73065         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73066         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73067
73068 2004-01-15  Jim Meyering  <jim@meyering.net>
73069
73070         Merge from coreutils.
73071
73072         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73073         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73074         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73075
73076         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73077         optional configure-time default.
73078
73079         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73080
73081         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73082
73083 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73084
73085         Merge from coreutils.
73086
73087         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73088         value, $ac_cv_search_nanosleep, if it's "none required".
73089
73090 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73091
73092         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73093         with like-named macro in fnmatch.c.
73094         (EXT): Use an internal constant instead.
73095
73096         Merge fnmatch patches from glibc.
73097         * lib/fnmatch.c (mbsinit): Remove define.
73098         Add libc_hidden_ver (__fnmatch, fnmatch).
73099         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73100         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73101
73102 2004-01-14  Karl Berry  <karl@gnu.org>
73103
73104         * config/install-sh: update from automake.
73105
73106 2004-01-13  Karl Berry  <karl@gnu.org>
73107
73108         * config/install-sh: update from automake.
73109
73110 2004-01-09  Karl Berry  <karl@gnu.org>
73111
73112         * config/install-sh: update from automake.
73113
73114 2004-01-05  Karl Berry  <karl@gnu.org>
73115
73116         * config/config.{sub,guess}: update from config.
73117
73118 2003-12-31  Karl Berry  <karl@gnu.org>
73119
73120         * config/depcomp: update from automake.
73121
73122 2003-12-14  Karl Berry  <karl@gnu.org>
73123
73124         * lib/config.charset: update from gettext-runtime.
73125
73126 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73127
73128         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73129         Bug reported by Alfred M. Szmidt.
73130
73131 2003-12-03  Bruno Haible  <bruno@clisp.org>
73132
73133         * m4/gettext.m4: Upgrade from gettext-0.13.
73134         * m4/po.m4: Upgrade from gettext-0.13.
73135         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73136         * m4/intmax.m4: New file, from gettext-0.13.
73137         * m4/printf-posix.m4: New file, from gettext-0.13.
73138
73139 2003-11-29  Karl Berry  <karl@gnu.org>
73140
73141         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73142
73143 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73144             Bruno Haible  <bruno@clisp.org>
73145
73146         * lib/printf-parse.h: Don't include sys/types.h.
73147         (ARG_NONE): New macro.
73148         (char_directive): Change type of *arg_index fields to size_t.
73149         * lib/printf-parse.c: Don't include sys/types.h.
73150         (SSIZE_MAX): Remove macro.
73151         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73152         Remove unnecessary overflow check.
73153         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73154         fields.
73155
73156 2003-11-25  Bruno Haible  <bruno@clisp.org>
73157
73158         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73159
73160 2003-11-25  Bruno Haible  <bruno@clisp.org>
73161
73162         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73163         gt_TYPE_SSIZE_T.
73164
73165 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73166
73167         * modules/alloca: Remove dependency on xalloc.
73168
73169 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73170
73171         * lib/alloca.c: Remove dependency on xalloc module.
73172         (xalloc_die): Remove.
73173         (memory_full) [!defined emacs]: New macro.
73174         [!defined emacs]: Don't include xalloc.h.
73175         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73176         address arithmetic overflows.  Change datatypes a bit to avoid
73177         unnecessary casts.
73178
73179 2003-11-22  Jim Meyering  <jim@meyering.net>
73180
73181         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73182         s/size/size_t/.
73183
73184 2003-11-21  Karl Berry  <karl@gnu.org>
73185
73186         * config/config.{sub,guess}: update from config.
73187
73188 2003-11-18  Karl Berry  <karl@gnu.org>
73189
73190         * config/config.{sub,guess}: update from config.
73191
73192         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73193
73194 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73195
73196         * README: Mention that S+T cannot overflow if S is the size of
73197         an existing object and T is sufficiently small.
73198
73199 2003-11-17  Jim Meyering  <jim@meyering.net>
73200
73201         On systems without utime and without a utimes function capable of
73202         dealing with a NULL struct utimbuf* argument, this utime replacement
73203         could -- in unusual circumstances -- leak a file descriptor.
73204         * lib/utime.c: Include <unistd.h> and <errno.h>.
73205         (utime_null): Be sure to close `fd' and to preserve errno.
73206         Reported by Geoff Collyer via Arnold Robbins.
73207
73208 2003-11-17  Bruno Haible  <bruno@clisp.org>
73209
73210         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73211         (Depends-on): Add xsize.
73212
73213 2003-11-17  Bruno Haible  <bruno@clisp.org>
73214
73215         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73216
73217 2003-11-17  Bruno Haible  <bruno@clisp.org>
73218
73219         * lib/vasnprintf.c (alloca): Remove fallback definition.
73220         (freea): Remove definition.
73221         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73222         Reported by Paul Eggert.
73223
73224 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73225             Bruno Haible  <bruno@clisp.org>
73226
73227         Protect against address arithmetic overflow.
73228         * lib/printf-args.h: Include stddef.h.
73229         (arguments): Change type of field 'count' to size_t.
73230         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73231         'unsigned int' where appropriate.
73232         * lib/printf-parse.h: Include sys/types.h.
73233         (char_directive): Change type of *arg_index fields to ssize_t.
73234         (char_directives): Change type of fields 'count', max_*_length to
73235         size_t.
73236         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73237         (SSIZE_MAX): Define fallback value.
73238         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73239         instead of 'int' where appropriate. Check a_allocated, d_allocated
73240         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73241         * lib/vasnprintf.c: Include xsize.h.
73242         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73243         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73244         overflow. Avoid wraparound when converting a width or precision from
73245         decimal to binary.
73246
73247 2003-11-16  Bruno Haible  <bruno@clisp.org>
73248
73249         Update from GNU gettext.
73250         * lib/printf-parse.c: Generalize to it can be compiled for wide
73251         strings.
73252         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73253         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73254         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73255         SNPRINTF): New macros.
73256         Don't include <alloca.h> if the file is used inside libintl.
73257         (local_wcslen): New function, for Solaris 2.5.1.
73258         (VASNPRINTF): Use it instead of wcslen.
73259
73260 2003-11-16  Bruno Haible  <bruno@clisp.org>
73261
73262         * lib/xsize.h (xmax): New function.
73263         (xsum, xsum3, xsum4): Declare as "pure" functions.
73264
73265 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73266
73267         * modules/xalloc (Files): Undo latest change, since xalloc.h
73268         no longer needs SIZE_MAX or PTRDIFF_MAX.
73269
73270 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73271
73272         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73273         gl_PTRDIFF_MAX.
73274
73275 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73276
73277         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73278         "return", to pacify some unknown compiler.  Problem reported
73279         by Joerg Schilling.
73280
73281 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73282
73283         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73284         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73285         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73286         heuristic is just as accurate as far as we know, and it removes a
73287         dependency on size_max.m4 and ptrdiff_max.m4.
73288
73289 2003-11-11  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/xsize (Files): Add m4/size_max.m4.
73292         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73293
73294 2003-11-11  Bruno Haible  <bruno@clisp.org>
73295
73296         * m4/size_max.m4: New file.
73297         * m4/ptrdiff_max.m4: New file.
73298         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73299         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73300         (gl_XALLOC): Invoke it.
73301
73302 2003-11-11  Bruno Haible  <bruno@clisp.org>
73303
73304         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73305         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73306         defined.
73307
73308 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73309
73310         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73311         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73312         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73313         From Bruno Haible.
73314         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73315         not (size_t) -1, since it's defined here.
73316
73317 2003-11-09  Karl Berry  <karl@gnu.org>
73318
73319         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73320
73321 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73322
73323         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73324         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73325         Reject sizes of exactly SIZE_MAX bytes.
73326         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73327         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73328
73329 2003-11-05  Bruno Haible  <bruno@clisp.org>
73330
73331         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73332         SIZE_MAX defined in <limits.h> on Solaris.
73333
73334 2003-11-04  Jim Meyering  <jim@meyering.net>
73335
73336         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73337         variable names, rather than @VAR@.
73338         * modules/poll: Likewise.
73339
73340 2003-11-04  Bruno Haible  <bruno@clisp.org>
73341
73342         * modules/xsize: New file.
73343         * modules/linebreak: Depend on xsize.
73344         * MODULES.html.sh (func_all_modules): Add xsize.
73345
73346 2003-11-04  Bruno Haible  <bruno@clisp.org>
73347
73348         * m4/xsize.m4: New file.
73349
73350 2003-11-04  Bruno Haible  <bruno@clisp.org>
73351
73352         * lib/xsize.h: New file.
73353         * lib/linebreak.c: Include xsize.h.
73354         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73355         argument for overflow.
73356         Suggested by Paul Eggert.
73357
73358 2003-11-03  Karl Berry  <karl@gnu.org>
73359
73360         * config/config.{guess,sub}: update from config.
73361
73362 2003-11-03  Jim Meyering  <jim@meyering.net>
73363
73364         * modules/userspec (lib_SOURCES): Add userspec.h.
73365         (Include): Add "userspec.h".
73366         Improve description.
73367
73368 2003-11-03  Jim Meyering  <jim@meyering.net>
73369
73370         * lib/userspec.c: Include "userspec.h".
73371         * lib/userspec.h: New file.
73372
73373 2003-11-03  Bruno Haible  <bruno@clisp.org>
73374
73375         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73376
73377 2003-11-03  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73380         available, to avoid (extremely rare) race condition.
73381         Suggested by Paul Eggert.
73382
73383 2003-11-02  Karl Berry  <karl@gnu.org>
73384
73385         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73386
73387 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73388
73389         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73390         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73391         (read_filesystem_list): Set and use me_type_malloced.
73392         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73393         whatever the type happens to be), for brevity and consistency.
73394         Check for size calculation overflow on Alphas running OSF/1.
73395
73396 2003-10-31  Jim Meyering  <jim@meyering.net>
73397
73398         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73399
73400         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73401
73402 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73403             Bruno Haible  <bruno@clisp.org>
73404
73405         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73406         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73407
73408 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73409
73410         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73411         netbsd*-gnu*.  Suggested by Robert Millan.
73412
73413 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73414
73415         * modules/group-member: Depend on stdbool.
73416
73417 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73418
73419         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73420
73421 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73422
73423         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73424         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73425         after the 'gnu' in these cases.  This fixes some bugs in the
73426         previous change, and is based on suggestions by Robert Millan.
73427
73428 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73429
73430         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73431         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73432         no longer needed.
73433         * lib/quotearg.c (quotearg_n_options): Use it.
73434         * lib/group-member.c: Include <stdbool.h>.
73435         (free_group_info): Arg is now const *; don't free arg.
73436         (get_group_info): Now returns bool and accepts struct group_info *,
73437         rather than returning a malloc'ed struct group_info *.
73438         All uses changed.  Check for overflow in internal size calculation.
73439
73440         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73441         rather than xmalloc/xrealloc.
73442         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73443         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73444         conformance bug: the old code used a pointer after freeing the
73445         storage that it addressed.
73446         * lib/hash.c (hash_initialize): Simplify the code by using
73447         xalloc_oversized rather than doing it by hand.
73448         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73449         the buffer preserved.  Use free and xmalloc instead.
73450         * lib/quotearg.c (quotearg_n_options): Likewise.
73451         Use a simpler test for size overflow.  Don't use xalloc_oversized
73452         because unsigned int might be wider than size_t (!); this suggests
73453         that we should switch from unsigned int to size_t for slot numbers.
73454
73455 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73456
73457         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73458         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73459         NetBSD kernels.  Requested by Richard Stallman.
73460
73461 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73462
73463         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73464         to allocate the returned structure.  Do not allocate a subarray,
73465         as x2nrealloc will do that.
73466         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73467         instead of xnrealloc.
73468         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73469
73470 2003-10-27  Bruno Haible  <bruno@clisp.org>
73471
73472         * lib/stdbool_.h: Better support for BeOS.
73473
73474 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73475
73476         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73477         now uses inline.
73478
73479 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73480
73481         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73482         callers that want to do their own size-overflow checking.  Include
73483         <stdbool.h>, since xalloc_oversized returns bool.
73484         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73485         to use xalloc_oversized.
73486
73487         Add two functions x2realloc, x2nrealloc, for programs that grow
73488         arrays dynamically by doubling their sizes.
73489         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73490         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73491         New functions.
73492
73493         Port to C99 semantics for 'inline' of external functions.
73494         Bug reported by Bruno Haible.
73495         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73496         with the old contents of xnmalloc.
73497         (xnmalloc, xmalloc): Use it.
73498         (xnrealloc_inline): New static inline function,
73499         with the old contents of xnrealloc.
73500         (xnrealloc, xrealloc): Use it.
73501
73502         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73503         that.
73504
73505 2003-10-26  Karl Berry  <karl@gnu.org>
73506
73507         * config/srclist.txt (COPYING.DOC): no longer available from
73508         /gd/gnuorg; don't know where the ultimate source is.
73509
73510 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73511
73512         Fix several address-calculation bugs in the hash modules,
73513         plus some minor code cleanup.
73514
73515         * lib/hash.h: Include <stdbool.h>, for bool.
73516         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73517         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73518         hash_get_n_entries, hash_get_max_bucket_length,
73519         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73520         hash_rehash): Use size_t rather than unsigned.
73521         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73522         hash_get_n_buckets_used, hash_get_n_entries,
73523         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73524         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73525         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73526         Likewise.
73527         (SIZE_MAX): Define if not defined.
73528         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73529         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73530         hash_print):
73531         Use const * when possible.
73532         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73533         (check_tuning): Fix bug: if tuning parameters were very close to
73534         0 or 1, rounding errors could have caused subscript violations.
73535         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73536         (hash_initialize): Add 'fail:' label
73537         to free table and return NULL, and use it to simplify code.
73538         Use calloc rather than clearing the storage ourself.
73539         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73540         buffer size calculations.
73541         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73542         Include <stddef.h>, for size_t.
73543         * lib/hash-pjw.c (hash_pjw): Likewise.
73544         Switch to method described by Bruno Haible.
73545         Include <limits.h>, for CHAR_BIT.
73546         (SIZE_BITS): New macro.
73547
73548 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73549
73550         * m4/getline.m4 (AM_FUNC_GETLINE):
73551         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73552         hosts.  Problem reported by Derek Robert Price in
73553         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73554         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73555         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73556
73557 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73558
73559         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73560         ceiling the allocation at NMAX bytes rather than silently
73561         discarding input bytes before NMAX is reached.  This makes
73562         a difference only if NMAX exceeds SIZE_MAX / 2.
73563
73564         * lib/obstack.c: Merge from glibc.
73565         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73566         Add libc_hidden_def (_obstack_newchunk).
73567         (_obstack_free) [! defined _LIBC]: Remove.
73568         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73569         a clone of the function body.
73570         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73571         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73572
73573         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73574         glibc.
73575         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73576         arg to memcpy.
73577
73578         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73579         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73580         Don't use lvalue casts, as GCC plans to remove support for them
73581         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73582         was also present in the non-GCC version, indicating that this
73583         code had always been buggy and had never been widely used.
73584         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73585         Use the fast variant of each macro, rather than copying the
73586         definiens of the fast variant; that way, we'll be more likely to
73587         catch future bugs in the fast variants.
73588
73589 2003-10-20  Bruno Haible  <bruno@clisp.org>
73590
73591         * modules/wait-process: New file.
73592         * MODULES.html.sh (func_all_modules): Add wait-process.
73593
73594 2003-10-20  Bruno Haible  <bruno@clisp.org>
73595
73596         * m4/wait-process.m4: New file.
73597
73598 2003-10-20  Bruno Haible  <bruno@clisp.org>
73599
73600         * lib/wait-process.h: New file, from GNU gettext.
73601         * lib/wait-process.c: New file, from GNU gettext.
73602
73603 2003-10-19  Jim Meyering  <jim@meyering.net>
73604
73605         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73606         HPUX 10.20.
73607
73608 2003-10-18  Karl Berry  <karl@gnu.org>
73609
73610         * config/config.guess: update from config.
73611
73612 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73613
73614         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73615         (getgroups): First arg is int, not size_t.
73616         Don't let 'free' mangle errno.
73617
73618 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73619
73620         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73621
73622 2003-10-16  Karl Berry  <karl@gnu.org>
73623
73624         * config/config.{guess,sub}: update from config.
73625
73626 2003-10-16  Jim Meyering  <jim@meyering.net>
73627
73628         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73629         memcpy.
73630
73631 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73632
73633         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73634         (SIZE_MAX): Remove.
73635         (new_exclude, add_exclude_file): Initial size no longer needs to
73636         be a power of 2.
73637         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73638         our own address arithmetic overflow checking.
73639
73640         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73641         (fnmatch): Do not alloca more than 2000 wide characters;
73642         instead, use malloc for large buffers.
73643         Check for address arithmetic overflow, and return -1
73644         with errno set to ENOMEM in that case.
73645         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73646         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73647         instead, return -1.  Check for address arithmetic overflow.
73648
73649 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73650
73651         Handle invalid suffixes and overflow independently, so that
73652         callers can treat them independently as needed.  Fix some bugs in
73653         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73654         suffix for a human-readable blocksize.  The major caller-visible
73655         change is the addition of a new
73656         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73657         that both overflow and suffix chars were found.
73658
73659         * lib/human.c (humblock): Don't check separately for invalid suffix
73660         char; that is xstrtoumax's job (now that its bug is fixed).
73661         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73662         INTMAX_MAX]: New macros.
73663         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73664         TYPE_MAXIMUM): New macros.
73665         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73666         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73667         if overflow occurs, as it's what __strtol does and it's more useful
73668         in practice.
73669         (__xstrtol): If __strtol reports some error other than ERANGE,
73670         reflect it to the caller as LONGINT_INVALID.  If it reports
73671         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73672         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73673         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73674         value.
73675         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73676         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73677         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73678         [defined UINTMAX_MAX]: New macros.
73679
73680 2003-10-14  Bruno Haible  <bruno@clisp.org>
73681
73682         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73683
73684 2003-10-14  Bruno Haible  <bruno@clisp.org>
73685
73686         * m4/sig_atomic_t: New file, from GNU gettext.
73687         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73688
73689 2003-10-14  Bruno Haible  <bruno@clisp.org>
73690
73691         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73692         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73693         Also use volatile where needed.
73694
73695 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73696
73697         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73698         Change maintainer from Bruno Haible to 'all'.
73699
73700 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73701
73702         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73703
73704 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73705
73706         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73707         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73708         and define in terms of the other primitives.
73709         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73710         (SIZE_MAX): Define if not already defined.
73711         (array_size_overflow): New function.
73712         (xalloc_die): Abort instead of exiting if 'error' returns.
73713         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73714         (xmalloc, xrealloc): Use them.
73715         (xcalloc): Check for address arithmetic overflow.
73716         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73717         a bit faster than strcpy.
73718
73719 2003-10-10  Simon Josefsson  <jas@extundo.com>
73720
73721         * modules/argp (Depends-on): Add restrict and strcase.
73722
73723 2003-10-10  Simon Josefsson  <jas@extundo.com>
73724
73725         * m4/argp.m4: Add AC_C_INLINE.
73726
73727 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73728
73729         Merge getpass from libc, plus a few fixes.
73730
73731         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73732         Include <stdbool.h>.
73733         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73734         __fsetlocking to empty.
73735         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73736         do include <bits/libc-lock.h>.
73737         Do not include <fcntl.h>; not needed.
73738         [_LIBC]: Include <wchar.h>.
73739         (NOTCANCEL_MODE): New macro.
73740         (flockfile, funlockfile) [_LIBC]: New macros.
73741         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73742         [!_LIBC]: New macros.
73743         (call_fclose): New function.
73744         (getpass): Use it.  Save tty stream separately; this simplifies the
73745         code and makes it more reliable if stdin happens to equal stdout.
73746         Invoke __fsetlocking on tty.
73747         Handle thread cancellation if needed.
73748         Namespace cleanup (use __tcgetattr, __getline).
73749         Use bool for Booleans.
73750         [USE_IN_LIBIO]: Handle wide streams.
73751         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73752         stream might go where.
73753
73754         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73755         doesn't have to include <stdio.h> before us.
73756         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73757         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73758         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73759         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73760         if not declared, so that we can use getpass.c code from libc without
73761         rewriting it.
73762         (flockfile, ftrylockfile, funlockfile): New macros.
73763
73764 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73765
73766         * modules/getpass: Depend on stdbool.
73767
73768 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73769
73770         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73771
73772 2003-10-07  Karl Berry  <karl@gnu.org>
73773
73774         * config/config.{guess,sub}: update from config.
73775
73776 2003-10-06  Jim Meyering  <jim@meyering.net>
73777             Bruno Haible  <bruno@clisp.org>
73778
73779         This lets translators provide better translations for the
73780         "Written by ..." part of --version output.
73781         * lib/version-etc.h: Include stdarg.h.
73782         (version_etc_copyright): Declare as readonly.
73783         (version_etc): Make this function variadic with a NULL-terminated list
73784         of author name strings.
73785         (version_etc_va): New declaration.
73786         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73787         (version_etc_copyright): Declare as readonly.
73788         (version_etc_va): New function. Provide a different translatable string
73789         for each possible number of authors < 10. Abbreviate when there are 10
73790         authors or more.
73791         (version_etc): Make this function variadic. Call version_etc_va.
73792         Suggestion from Gary V. Vaughan.
73793
73794         * lib/long-options.h (parse_long_options): Change prototype: the
73795         authors string is moved to the end and becomes variadic.
73796         * lib/long-options.c: Include stdarg.h.
73797         (parse_long_options): Make this function variadic, too.
73798         Call version_etc_va, not version_etc.
73799
73800 2003-10-06  Bruno Haible  <bruno@clisp.org>
73801
73802         * modules/version-etc-2: Remove file.
73803         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73804
73805 2003-10-06  Bruno Haible  <bruno@clisp.org>
73806
73807         * modules/fatal-signal: New file.
73808         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73809
73810 2003-10-06  Bruno Haible  <bruno@clisp.org>
73811
73812         * m4/fatal-signal.m4: New file.
73813         * m4/signalblocking.m4: New file, from GNU gettext.
73814
73815 2003-10-06  Bruno Haible  <bruno@clisp.org>
73816
73817         * lib/version-etc-2.h: Remove file.
73818         * lib/version-etc-2.c: Remove file.
73819
73820 2003-10-06  Bruno Haible  <bruno@clisp.org>
73821
73822         * lib/fatal-signal.h: New file, from GNU gettext.
73823         * lib/fatal-signal.c: New file, from GNU gettext.
73824
73825 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73826
73827         * README: Rework advice for preventing empty .o files.
73828         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73829         not <sys/types.h>.
73830
73831 2003-10-04  Karl Berry  <karl@gnu.org>
73832
73833         * lib/argp*: update from libc.
73834
73835 2003-10-04  Karl Berry  <karl@gnu.org>
73836
73837         * config/config.{guess,sub}: update from config.
73838
73839 2003-10-02  Bruno Haible  <bruno@clisp.org>
73840
73841         * modules/lchown (Include): Add lchown.h.
73842         * modules/time_r (Include): Use "..." syntax.
73843         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73844
73845 2003-10-01  Simon Josefsson  <jas@extundo.com>
73846
73847         * MODULES.html.sh (func_all_modules): Move gethostname from section
73848         'based on' to section 'lacking' POSIX:2001.
73849
73850 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73851
73852         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73853         to output mode on the same stream.
73854
73855 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73856
73857         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73858         Fix arg typo in previous patch.
73859
73860 2003-09-28  Jim Meyering  <jim@meyering.net>
73861
73862         * lib/error.c: Correct cpp indentation.
73863
73864 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73865
73866         * modules/free: New file.
73867
73868 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73869
73870         * m4/free.m4: New file.
73871
73872 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73873
73874         * lib/minmax.h (MIN, MAX)
73875         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73876         Omit the special code that used __typeof__, since we worry that
73877         it could be more trouble than it's worth.  See:
73878         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73879         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73880
73881         * lib/free.c: New file.
73882
73883 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73884
73885         Trivial fixes to Makefile.am parts of module listings.
73886         * modules/strstr: Append strstr.h to lib_SOURCES.
73887         * modules/strcase: Likewise, for strcase.h.
73888
73889 2003-09-27  Karl Berry  <karl@gnu.org>
73890
73891         * config/mkinstalldirs: update from automake.
73892
73893 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73894
73895         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73896         (error_tail): Do not loop, reallocating temporary buffer, since
73897         the output cannot contain more wide characters than the input
73898         contains bytes, the size must be big enough already.  This avoids
73899         one potential size overflow calculation.  Check for size overflow
73900         when calculating temporary buffer size.  Free temporary buffer
73901         when done, if it was allocated with malloc; this plugs a memory
73902         leak.  Remove casts from void * to pointers, that are no longer
73903         needed now that we're assuming C89 or better.
73904
73905         Merge error changes from glibc.
73906
73907         * lib/error.c, error.h: Update copyright notice header to match glibc.
73908         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73909         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73910         Disable cancellation while printing error.
73911         * lib/error.h: Prepend __ to parameter names.
73912
73913 2003-09-26  Jim Meyering  <jim@meyering.net>
73914
73915         * lib/error.c (error_tail): Move some declarations
73916         into inner scope where the local variables are used.
73917
73918 2003-09-26  Bruno Haible  <bruno@clisp.org>
73919
73920         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73921         stpncpy().
73922         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73923
73924 2003-09-26  Bruno Haible  <bruno@clisp.org>
73925
73926         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73927         (stpncpy): Define as alias for gnu_stpncpy.
73928         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73929
73930 2003-09-25  Simon Josefsson  <jas@extundo.com>
73931
73932         * lib/xgetdomainname.h: New file.
73933         * lib/xgetdomainname.c: New file.
73934
73935 2003-09-25  Simon Josefsson  <jas@extundo.com>
73936             Bruno Haible  <bruno@clisp.org>
73937
73938         * modules/getdomainname: New file.
73939         * modules/xgetdomainname: New file.
73940         * MODULES.html.sh (func_all_modules): Add getdomainname,
73941         xgetdomainname.
73942
73943 2003-09-25  Simon Josefsson  <jas@extundo.com>
73944             Bruno Haible  <bruno@clisp.org>
73945
73946         * m4/getdomainname.m4: New file.
73947
73948 2003-09-25  Simon Josefsson  <jas@extundo.com>
73949             Bruno Haible  <bruno@clisp.org>
73950
73951         * lib/getdomainname.h: New file.
73952         * lib/getdomainname.c: New file.
73953
73954 2003-09-25  Karl Berry  <karl@gnu.org>
73955
73956         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73957
73958 2003-09-25  Karl Berry  <karl@gnu.org>
73959
73960         * config/install-sh: update from automake.
73961
73962 2003-09-25  Bruno Haible  <bruno@clisp.org>
73963
73964         * modules/version-etc-2: New file, from modules/version-etc with
73965         modifications.
73966         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73967
73968 2003-09-25  Bruno Haible  <bruno@clisp.org>
73969
73970         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73971         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73972
73973 2003-09-24  Simon Josefsson  <jas@extundo.com>
73974
73975         * modules/xgethostname: Add xgethostname.h.
73976
73977 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73978
73979         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73980         the buffer associated with the argument.  Bug reported by
73981         Simon Josefsson.
73982
73983 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73984
73985         * README: Document assumptions that 'int' is at least 32 bits
73986         wide, that integer arithmetic is 2's complement without overflow,
73987         that there are no holes in integer values, that adding sizes of
73988         two nonoverlapping objects can't overflow, and that all-bits-zero
73989         yields scalar zero.  Fix spelling and capitalization typos.
73990
73991 2003-09-19  Karl Berry  <karl@gnu.org>
73992
73993         * lib/argp.h: update from libc.
73994
73995 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73996
73997         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73998         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73999         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74000
74001 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74002
74003         * gnulib-tool: Use "test -h", not "test -L", for portability
74004         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74005         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74006         (sed_extract_prog): Issue s commands one-by-one, rather than
74007         using \| in one s command.
74008
74009 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74010
74011         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74012         input error, instead of returning NULL the next time we are called
74013         (and therefore losing track of errno).
74014
74015 2003-09-16  Bruno Haible  <bruno@clisp.org>
74016
74017         * gnulib-tool (func_create_testdir): Warn about duplicated
74018         dependencies.
74019
74020 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74021
74022         * modules/argmatch, modules/fatal, modules/obstack,
74023         modules/xalloc, modules/xgethostname: Sort dependencies by
74024         importance, not alphabetically.
74025
74026 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74027
74028         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74029         fails, so that the caller gets the proper errno.
74030
74031         * lib/readutmp.c (read_utmp): Likewise.
74032         Check for fstat error.  Close stream and free storage
74033         when failing.
74034
74035 2003-09-14  Karl Berry  <karl@gnu.org>
74036
74037         * config/srclist.txt (strdup.c): disable for c89 changes.
74038
74039 2003-09-14  Jim Meyering  <jim@meyering.net>
74040
74041         * lib/getloadavg.c: Correct cpp indentation.
74042         * lib/strdup.c: Likewise.
74043         * lib/vasnprintf.c: Likewise.
74044
74045 2003-09-14  Bruno Haible  <bruno@clisp.org>
74046
74047         * modules/fwriteerror: New file.
74048         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74049
74050 2003-09-14  Bruno Haible  <bruno@clisp.org>
74051
74052         * lib/fwriteerror.h: New file.
74053         * lib/fwriteerror.c: New file.
74054
74055 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74056
74057         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74058         modules/xgethostname, modules/xalloc: Depend on exit.
74059
74060 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74061
74062         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74063
74064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74065         and AC_MINIX, too, so that their extensions are available.
74066
74067         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74068         This macro has been superseded by gl_BACKUPFILE.
74069
74070         More patches to assume C89 or better.
74071
74072         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74073
74074         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74075         unconditionally.
74076         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74077         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74078         Include <string.h>, <stdlib.h> unconditionally.
74079         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74080         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74081         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74082         headers or for string.h.
74083         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74084         or strtoul.
74085
74086         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74087         headers.
74088         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74089         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74090         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74091         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74092         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74093         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74094         memcpy, memset.
74095         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74096         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74097         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74098         strtol.
74099         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74100         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74101         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74102         strtoul.
74103
74104 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74105
74106         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74107         * lib/obstack.c [!defined _LIBC]: Likewise.
74108         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74109         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74110         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74111
74112         More changes to assume C89 or better.
74113
74114         * lib/error.c (error_tail): Assume vprintf.
74115
74116         * lib/argmatch.c (getenv): Remove decl.
74117         * lib/progreloc.c (get_full_program_name): Define via prototype.
74118         * lib/setenv.c (clearenv): Likewise.
74119         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74120         needed.
74121         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74122         (malloc, memcpy): Remove decls.
74123         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74124         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74125         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74126         (memcpy): Remove macro.
74127         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74128         (__P): Remove.  All uses removed.
74129         (PTR): Remove.  All uses changed to void *.
74130         (CHAR_BIT, NULL): Remove.
74131         (spaces, zeros, memset_space, memset_zero)
74132         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74133         Remove.
74134         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74135         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74136         Define with prototype.
74137         Remove now-unnecessary prototype decl.
74138         (extra_args_spec): Assume ANSI C.  All uses changed.
74139         (extra_args_spec_iso): Remove.
74140         (my_strftime, emacs_strftimeu): Define via prototype.
74141         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74142         unconditionally.
74143         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74144         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74145         (strtoul, strtol): Remove decls.
74146         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74147         LONG_MAX): Remove.
74148         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74149         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74150         (LOCALE_PARAM_PROTO): New macro.
74151         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74152         (INTERNAL (strtol), strtol): Define with a prototype.
74153         (PARAMS): Remove.  All uses removed.
74154         * lib/tempname.c: Include <string.h> unconditionally.
74155         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74156         * lib/xgethostname.c (main): Define with a prototype.
74157         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74158         Include <stdlib.h> unconditionally.
74159         (calloc, malloc, realloc, free): Remove decls.
74160         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74161         Include <stdlib.h> unconditionally.  Sort include file names.
74162         (strtod): Remove.
74163         (xstrtod): Define with a prototype.
74164         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74165         (strtol, strtoul): Remove decls.
74166
74167 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74168
74169         More patches to assume C89 or better.
74170         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74171         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74172         string.h, memchr, STDC_HEADERS.
74173
74174 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74175
74176         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74177         Include <stdlib.h>, <string.h> unconditionally.
74178         Remove now-unnecessary cast to char *.
74179         * lib/strnlen.c: Include <string.h> unconditionally.
74180         * lib/yesno.c (yesno): Define with a prototype.
74181
74182 2003-09-11  Bruno Haible  <bruno@clisp.org>
74183
74184         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74185
74186 2003-09-10  Jim Meyering  <jim@meyering.net>
74187
74188         * lib/error.c: Correct indentation of cpp directives.
74189
74190 2003-09-10  Bruno Haible  <bruno@clisp.org>
74191
74192         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74193         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74194         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74195         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74196         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74197         <stdlib.h> and <string.h> checks.
74198         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74199         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74200
74201 2003-09-10  Bruno Haible  <bruno@clisp.org>
74202
74203         * lib/strcspn.c: Include <string.h> unconditionally.
74204         * lib/strpbrk.c: Include <string.h> unconditionally.
74205         * lib/strstr.c: Include <string.h> unconditionally.
74206         * lib/unicodeio.c: Include <string.h> unconditionally.
74207         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74208         * lib/unsetenv.c: Likewise.
74209         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74210         * lib/yesno.c: Include <stdlib.h> unconditionally.
74211         (rpmatch): Add prototype.
74212
74213 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74214
74215         More patches to assume C89 or better.
74216         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74217         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74218         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74219         or for string.h.
74220         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74221         stdlib.h.
74222         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74223         C headers.
74224         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74225         string.h.
74226         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74227         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74228         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74229         or for string.h.
74230         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74231         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74232         C headers.
74233         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74234         memcpy.
74235         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74236         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74237         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74238         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74239         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74240         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74241         string.h, free.
74242         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74243         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74244         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74245         C headers, or for string.h.
74246         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74247         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74248         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74249         headers, memory.h, stdlib.h, string.h, strings.h.
74250         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74251         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74252         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74253         strchr.
74254         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74255         headers, memory.h, string.h.
74256         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74257         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74258         free.
74259         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74260         headers.
74261         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74262         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74263         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74264         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74265         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74266
74267 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74268
74269         More K&R removal.
74270
74271         * lib/acosl.c (main): Use a prototype.
74272         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74273         tanl.c: Likewise.
74274
74275         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74276
74277         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74278         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74279         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74280         with a prototype.
74281         * lib/getopt.c (const): Remove macro.
74282         Include <string.h> unconditionally.
74283         (my_index): Remove; all uses changed to strchr.
74284         (strlen): Remove decl.
74285         (exchange): Remove forward decl; no longer needed.
74286         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74287         Define with prototype.
74288         * lib/getopt1.c (const): Remove macro.
74289         (getopt_long, getopt_long_only, main): Define with prototype.
74290
74291         * lib/getugroups.c: Include <string.h> unconditionally.
74292
74293         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74294         (getusershell, setusershell, endusershell, readname, main):
74295         Define with prototypes.
74296
74297         * lib/group-member.c: Include group-member.h first.
74298         Include <stdlib.h> unconditionally.
74299
74300         * lib/hard-locale.c: Include hard-locale.h first.
74301         Include <stdlib.h>, <string.h> unconditionally.
74302
74303         * lib/hash.c (free, malloc): Remove decls.
74304         Include <stdlib.h> unconditionally.
74305
74306         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74307         (getenv): Do not declare.
74308
74309         * lib/idcache.c: Include <string.h> unconditionally.
74310
74311         * lib/long-options.c: Include long-options.h first, to test interface.
74312         Include <stdlib.h> unconditionally.
74313
74314         * lib/makepath.c: Include makepath.h first, to test interface.
74315         Include <stdlib.h> and <string.h> unconditionally.
74316
74317         * lib/linebuffer.c: Include <stdlib.h>.
74318         (free): Remove decl.
74319
74320         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74321         stddef.h. rpl_malloc returns void *, not char *.
74322         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74323         prototype.
74324
74325         * lib/md5.h: Include <limits.h> unconditionally.
74326         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74327         (__P): Remove; all uses removed.
74328         * lib/md5.c: Include "md5.h" first.
74329         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74330         md5_buffer, md5_process_bytes, md5_process_block):
74331         Define with prototypes.
74332         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74333         * lib/sha.c: Include "sha.h" first.
74334         Include <stdlib.h>, <string.h> unconditionally.
74335
74336         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74337         * lib/memcmp.c (__ptr_t): Likewise.
74338         * lib/memrchr.c (__ptr_t): Likewise.
74339         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74340         Include <string.h> unconditionally.
74341         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74342         * lib/memchr.c: Include <stdlib.h> unconditionally.
74343         * lib/memchr.c (LONG_MAX): Remove.
74344         * lib/memrchr.c (LONG_MAX): Likewise.
74345         * lib/memchr.c (__memchr): Define via a prototype.
74346         * lib/memrchr.c (__memrchr): Likewise.
74347         * lib/memcmp.c (__P): Remove, and remove all uses.
74348         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74349         Remove forward decls; no longer needed.
74350         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74351         Use types required by C89 in prototype.
74352
74353         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74354         * lib/savedir.c: Likewise.
74355         * lib/mkdir.c (free): Remove decl.
74356         * lib/rmdir.c (rmdir): Define with a prototype.
74357         * lib/savedir.c: Include savedir.h first, to test interface.
74358
74359         * lib/mktime.c (STDC_HEADERS): Remove.
74360         Include <stdlib.h>, <string.h> unconditionally.
74361
74362         * lib/modechange.c: Include <stdlib.h> unconditionally.
74363         (malloc): Remove decl.
74364
74365         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74366         (free): Remove decl.
74367
74368         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74369         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74370         (This type really should be intptr_t, but that's a C99ism.)
74371         (_obstack_memcpy): Remove: all uses changed to memcpy.
74372         Include <string.h> unconditionally.
74373         (struct obstack): Assume __STDC__ for types of members
74374         chunkfun, freefun, extra_arg.
74375         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74376         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74377         obstack_begin, obstack_specify_allocation,
74378         obstack_specify_allocation_with_arg, obstack_chunkfun,
74379         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74380         Remove unprototyped decls and the macros that use them.
74381         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74382         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74383         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74384         (defined __STDC__ && __STDC__)]:
74385         Remove nonprototyped code.
74386         Include <stdlib.h> unconditionally.
74387         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74388         _obstack_allocated_p, _obstack_free, obstack_free,
74389         _obstack_memory_used, print_and_abort):
74390         Define using prototypes.
74391         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74392         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74393         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74394         obstack_next_free, obstack_object_size, obstack_room) [0]:
74395         Remove unused, unprototyped code.
74396
74397         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74398
74399         * lib/physmem.c (physmem_total, physmem_available, main): Define
74400         with prototypes.
74401
74402         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74403         (main): Define with a prototype.
74404
74405         * lib/posixver.c (getenv): Remove decl.
74406
74407         * lib/putenv.c (malloc): Returns void *, not char *.
74408         Include <string.h> unconditionally.
74409         (strchr, memcpy, NULL): Do not define.
74410
74411         * lib/readtokens.c: Include readtokens.h first, to test interface.
74412         Include <stdlib.h>, <string.h> unconditionally.
74413         (init_tokenbuffer): Define with a prototype.
74414
74415         * lib/regex.c (PARAMS): Remove.  All uses removed.
74416         All uses of _RE_ARGS removed, too.
74417         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74418         unconditionally.
74419         (bzero): Assume memset exists.
74420         (memcmp, memcpy, NULL): Remove.
74421         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74422         char, or assignments to local vars of type signed char.
74423         (init_syntax_once, PREFIX(extract_number_and_incr),
74424         PREFIX(print_partial_compiled_pattern),
74425         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74426         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74427         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74428         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74429         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74430         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74431         wcs_compile_range, byte_compile_range, truncate_wchar,
74432         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74433         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74434         count_mbs_length, wcs_re_match_2_internal,
74435         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74436         PREFIX(alt_match_null_string_p),
74437         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74438         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74439         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74440         now-unnecessary declaration, if any.
74441         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74442         regcomp, regexec):
74443         Remove now-unnecessary casts among pointer types.
74444         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74445
74446         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74447         (free): Remove decl.
74448
74449         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74450
74451         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74452         (free): Remove decl.
74453
74454         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74455         * lib/xgetcwd.c: Likewise.
74456
74457         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74458         (free): Remove decl.
74459
74460         * lib/strchrnul.c (strchrnul): Define with a prototype.
74461         Fix bug: c_in was not converted to char before searching.
74462
74463         The following changes are not K&R related:
74464
74465         * lib/group-member.h: Include <sys/types.h>, so that this file is
74466         self-contained.
74467         * lib/makepath.h: Likewise.
74468
74469         * lib/getusershell.c (readname, default_index, line_size, readname):
74470         Use size_t, not int, for sizes.
74471         (readname): If the size overflows, report an error instead of
74472         looping forever.
74473
74474 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74475
74476         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74477         libc.
74478
74479 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74480
74481         * README: New section: portability guidelines.
74482
74483 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74484
74485         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74486         C89 spec.
74487
74488 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74489
74490         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74491
74492 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74493
74494         Assume C89 or better; remove K&R cruft.
74495         A few of these changes were first proposed by Derek Robert Price
74496         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74497
74498         * lib/addext.c: Include <string.h> unconditionally.
74499         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74500         Don't declare getenv or malloc.
74501
74502         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74503         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74504         (NULL): Remove.
74505         (find_stack_direction, alloca): Use prototypes.
74506
74507         * lib/atexit.c (atexit): Define using a prototype.
74508
74509         * lib/basename.c, dirname.c, stripslash.c:
74510         Include <string.h> unconditionally.
74511
74512         * lib/bcopy.c: Include <stddef.h>.
74513         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74514
74515         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74516
74517         * lib/error.h (error, error_at_line, error_print_progname)
74518         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74519         * lib/error.c: Include error.h first, to check interface.
74520         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74521         (VA_START): Remove; all uses changeed to va_start.
74522         (exit, strerror): Remove decls.
74523         (error_print_progname): Prototype uncondionally.
74524         Don't include <errno.h>; no longer needed.
74525         (private_strerror): Remove.
74526         (error_tail): Always define.
74527         (error, error_at_line): Assume C89 or better; always use prototypes.
74528         * lib/fatal.c: Include "fatal.h" first, to test interface.
74529         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74530         (VA_START): Remove; all uses changed to va_start.
74531         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74532         this case.
74533         (exit): Remove decl.
74534         (fatal): Prototype unconditionally.  Assume va_start works.
74535         Abort at end, to pacify gcc.
74536
74537         * lib/euidaccess.c (main): Define with a prototype.
74538
74539         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74540
74541         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74542
74543         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74544         prototypes.
74545         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74546         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74547         (getenv): Remove decl.
74548         (fnmatch): Define using a prototype.
74549         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74550         (FCT): Define using a prototype.
74551
74552         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74553
74554         * lib/gethostname.c: Include <stddef.h>.
74555         (gethostname): Define with prototype.  Length is size_t, not int.
74556
74557 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74558
74559         Assume C89 or better; remove K&R cruft.
74560         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74561         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74562         string.h, getenv, malloc.
74563         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74564         headers.
74565         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74566         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74567         do not check for strerror.
74568         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74569         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74570         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74571         do not check for doprnt or vprintf.
74572         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74573         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74574
74575 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74576
74577         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74578         getversion.c should have been removed then, but was accidentally
74579         preserved.
74580
74581         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74582         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74583
74584 2003-09-08  Karl Berry  <karl@gnu.org>
74585
74586         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74587                 config, forget about prep.
74588
74589         * config/depcomp, missing: update from automake.
74590
74591 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74592
74593         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74594         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74595
74596 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74597
74598         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74599         copy_tm_result.  Bug reported by Simon Josefsson in
74600         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74601
74602 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74603
74604         * m4/time_r.m4: New file.
74605         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74606         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74607         is. Check for timegm declaration.
74608         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74609         Do not check for gmtime_r.
74610         Replace mktime if __mktime_internal does not exist and if mktime
74611         hasn't been replaced already.
74612
74613 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74614
74615         * lib/time_r.c, lib/time_r.h: New files.
74616
74617         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74618         __localtime_r.
74619         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74620         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74621
74622         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74623         __gmtime_r.
74624         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74625         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74626         Include <time_r.h>.
74627
74628         * lib/timegm.c: Switch to glibc implementation, with the following
74629         changes:
74630         [defined HAVE_CONFIG_H]: Include <config.h>.
74631         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74632         (__mktime_internal) [!defined _LIBC]: New decl.
74633         (__gmtime_r) [!defined _LIBC]: New macro and function.
74634         (timegm): Use a prototype, since gnulib assumes C89.
74635         Do not bother declaring tmp to be const, as it's not really usefu.
74636         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74637         (timegm): Declare only if HAVE_DECL_TIMEGM.
74638
74639 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74640
74641         * MODULES.html.sh (func_all_modules): Add time_r.
74642         * modules/time_r: New file.
74643         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74644         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74645
74646 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74647
74648         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74649         Bug reported by Lute Kamstra in
74650         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74651
74652         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74653         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74654         course with correspondingly smaller numbers for tomorrow and
74655         yesterday.  From Tadayoshi Funaba.  Originally installed into
74656         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74657         coreutils merge?).
74658
74659 2003-08-31  Simon Josefsson  <jas@extundo.com>
74660
74661         * modules/timegm: New file.
74662         * MODULES.html.sh (func_all_modules): Add timegm.
74663
74664 2003-08-31  Simon Josefsson  <jas@extundo.com>
74665
74666         * m4/timegm.m4: New file.
74667
74668 2003-08-31  Simon Josefsson  <jas@extundo.com>
74669
74670         * lib/timegm.h: New file.
74671         * lib/timegm.c: New file.  Based on
74672         wget-1.8.2/src/http.c:mktime_from_utc.
74673
74674 2003-08-31  Karl Berry  <karl@gnu.org>
74675
74676         * lib/argp.h: update from libc.
74677
74678 2003-08-28  Bruno Haible  <bruno@clisp.org>
74679
74680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74681         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74682         followed by '#define fnmatch fnmatch_posix' gives an error.
74683
74684 2003-08-28  Bruno Haible  <bruno@clisp.org>
74685
74686         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74687         warning on QNX, which defines O_BINARY to 000000.
74688
74689 2003-08-27  Jim Meyering  <jim@meyering.net>
74690
74691         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74692         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74693         would fail after 32.  Reported by Danny Levinson.  Details here:
74694         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74695
74696 2003-08-24  Bruno Haible  <bruno@clisp.org>
74697
74698         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74699         MSVC7 <stdio.h> is included later.
74700
74701 2003-08-22  Simon Josefsson  <jas@extundo.com>
74702
74703         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74704
74705 2003-08-20  Karl Berry  <karl@gnu.org>
74706
74707         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74708
74709 2003-08-20  Bruno Haible  <bruno@clisp.org>
74710
74711         * modules/progname: New file.
74712         * MODULES.html.sh (func_all_modules): Add progname.
74713
74714 2003-08-20  Bruno Haible  <bruno@clisp.org>
74715
74716         * lib/progname.h: New file, from GNU gettext.
74717         * lib/progname.c: New file, from GNU gettext.
74718         * lib/progreloc.c: New file, from GNU gettext.
74719
74720 2003-08-19  Jim Meyering  <jim@meyering.net>
74721
74722         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74723         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74724
74725 2003-08-19  Bruno Haible  <bruno@clisp.org>
74726
74727         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74728         more.
74729
74730 2003-08-19  Bruno Haible  <bruno@clisp.org>
74731
74732         * lib/xstrdup.c: Assume <string.h> exists.
74733
74734 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74735
74736         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74737         in makefile rules.
74738
74739 2003-08-18  Jim Meyering  <jim@meyering.net>
74740
74741         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74742         * m4/lib-ld.m4: Likewise.
74743
74744 2003-08-18  Jim Meyering  <jim@meyering.net>
74745
74746         * lib/setenv.h: Indent nested cpp directive.
74747         * lib/vasnprintf.c: Remove trailing blanks.
74748
74749 2003-08-17  Simon Josefsson  <jas@extundo.com>
74750
74751         * modules/xstrndup: New file.
74752         * MODULES.html.sh (func_all_modules): Add xstrndup.
74753
74754 2003-08-17  Simon Josefsson  <jas@extundo.com>
74755
74756         * modules/argp: Fix autoconf macro name. Add more dependencies.
74757
74758 2003-08-17  Simon Josefsson  <jas@extundo.com>
74759
74760         * m4/xstrndup.m4: New file.
74761
74762 2003-08-17  Simon Josefsson  <jas@extundo.com>
74763
74764         * m4/argp.m4: New file.
74765
74766 2003-08-17  Simon Josefsson  <jas@extundo.com>
74767             Bruno Haible  <bruno@clisp.org>
74768
74769         * lib/xstrndup.h: New file.
74770         * lib/xstrndup.c: New file.
74771
74772 2003-08-17  Bruno Haible  <bruno@clisp.org>
74773
74774         * modules/strndup (Files, Include): Add lib/strndup.h.
74775
74776 2003-08-17  Bruno Haible  <bruno@clisp.org>
74777
74778         * modules/euidaccess (Files): Add lib/euidaccess.h.
74779
74780 2003-08-17  Bruno Haible  <bruno@clisp.org>
74781
74782         * lib/strndup.h: New file.
74783
74784 2003-08-17  Bruno Haible  <bruno@clisp.org>
74785
74786         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74787         like AC_GNU_SOURCE.
74788         * modules/extensions (configure.ac): Comment out the invocation of
74789         gl_USE_SYSTEM_EXTENSIONS.
74790
74791 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74792
74793         Merges from coreutils, etc.
74794         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74795         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74796         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74797         fixing a typo.
74798         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74799         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74800
74801 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74802
74803         Document merge from coreutils.
74804         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74805         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74806         * modules/utime: Add m4/utimes-null.m4.
74807
74808 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74809
74810         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74811         space, undoing this 2003-08-12 change:
74812         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74813
74814 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74815
74816         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74817         strtoul.c from libc, undoing this 2003-08-12 change:
74818         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74819
74820 2003-08-16  Jim Meyering  <jim@meyering.net>
74821
74822         Merges from coreutils.
74823         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74824         prefix.  Adjust cache variables similarly.  Create 500 rather than
74825         just 300 files, to exercise bug on Darwin6.5, too.
74826         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74827         $missing_dir.
74828         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74829         AM_SYS_POSIX_TERMIOS.
74830         Reported by mkc@mathdogs.com.
74831         Also change use of $am_cv_sys_posix_termios
74832         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74833         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74834         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74835         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74836         in /proc/mounts until it finds one with matching device number.  This
74837         is unnecessary when the FILE argument *is* a mount point.  No stat call
74838         is necessary in that case.  So, disable the statvfs-testing code on
74839         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74840         as RedHat bug# 84846.
74841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74842         to 1MB, so as not to render systems with no stack size limit (e.g.,
74843         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74844         Include <unistd.h>.  On some systems,
74845         it is required for the definition of _SC_PAGESIZE.
74846
74847 2003-08-16  Jim Meyering  <jim@meyering.net>
74848
74849         Merge from coreutils.
74850         * lib/xstrtoimax.c: #else #if -> #elif.
74851         * lib/xstrtoumax.c: Likewise.
74852
74853 2003-08-16  Jim Meyering  <jim@meyering.net>
74854
74855         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74856         * m4/utimes.m4: Removed.
74857         * m4/utimes-null.m4: Renamed from utimes.m4.
74858
74859         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74860         to 1MB, so as not to render systems with no stack size limit (e.g.,
74861         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74862         Include <unistd.h>.  On some systems,
74863         it is required for the definition of _SC_PAGESIZE.
74864
74865 2003-08-16  Jim Meyering  <jim@meyering.net>
74866         and Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         Merges from coreutils, etc.
74869
74870         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74871         using the latest version from cvs.  This avoids problems with #line
74872         directives using a vendor (Sun) compiler.
74873         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74874         Don't set GETGROUPS_LIB here; now it's
74875         done via getgroups.m4's wrapper function.
74876         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74877         rather than just in sh-util/configure.in, so that the
74878         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74879         same.
74880         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74881         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74882         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74883         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74884         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74885         Remove code that is now done by the newly-required macros.
74886         Append $(EXEEXT) to DF_PROG.
74887         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74888         Do not invoke or require the following here,
74889         since prereq.m4 or some gnulib .m4 now does this for us:
74890         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74891         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74892         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74893         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74894         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74895         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74896         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74897         AC_FUNC_OBSTACK.
74898         Do not replace the following functions, as this is now the job
74899         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74900         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74901         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74902         atexit getpass, strdup, getpagesize.
74903         Replace 'raise'.
74904         Do not check for the following functions, as this is now the job
74905         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74906         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74907         setregid.
74908         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74909         Check for sys/sysctl.h.
74910         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74911         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74912         of checking for ssize_t ourselves.
74913
74914         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74915         Require every macro that gnulib/modules/* suggests for us.
74916         (jm_PREREQ_ADDEXT): New macro.
74917         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74918         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74919
74920         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74921         (gl_PHYSMEM): Use it.
74922         Also check for `table' function.
74923         Check for new headers and functions.
74924         Add check for sys/sysmp.h.
74925         With suggestions from Kaveh Ghazi.
74926         Ignore headers that are present but cannot be compiled.  This
74927         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74928         C 5.4.
74929
74930 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74931
74932         Document merge from coreutils.
74933         * modules/userspec: Depend on posixver.
74934         * modules/strftime: Depend on tzset.
74935
74936 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74937
74938         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74939         rather than tab, after '#' in shell-script copyright notices.
74940         Suggested by Bruno Haible.
74941
74942 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74943
74944         * config/srclist-update: Use three spaces, rather than tab, after '#'
74945         in shell-script copyright notices.  Suggested by Bruno Haible.
74946         Remove unnecessary parenthesization in regular expression.
74947
74948 2003-08-15  Jim Meyering  <jim@meyering.net>
74949
74950         Merge from coreutils.
74951         * lib/xgethostname.c: Include <stdlib.h>.
74952         (xghostname): Don't exit for anything other than memory-related
74953         failure; just return NULL.
74954         * lib/userspec.c: Include "posixver.h".
74955         (parse_user_spec): Accept `.' as a separator only
74956         in pre-POSIX-200112 mode.
74957         * lib/strtoimax.c: Use #elif rather than #else #if.
74958         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74959         Remove function, now that we can rely on a working tzset function.
74960         [!_LIBC]: Ensure that the required autoconf test has been run.
74961         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74962         Use underlying_strftime for %r.
74963         * lib/sha.c: Merge in some clean-up and optimization changes from
74964         glibc.
74965         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74966         Ensure that it is a multiple of 64.
74967         Rearrange loop exit tests so as to avoid performing an
74968         additional fread after encountering an error or EOF.
74969         * lib/realloc.c: Update copyright date.
74970
74971 2003-08-15  Jim Meyering  <jim@meyering.net>
74972         and Paul Eggert  <eggert@twinsun.com>
74973
74974         Merge from coreutils.
74975         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74976         member but strut utmpx does not.  Needed for AIX 4.3.3.
74977         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74978
74979 2003-08-15  Jim Meyering  <jim@meyering.net>
74980         and Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         Merges from coreutils, etc.
74983         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74984         Require gl_FUNC_TZSET_CLOBBER.
74985         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74986         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74987         members.
74988
74989 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74990
74991         Help the merge from coreutils.
74992         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74993         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74994         * m4/tzset.m4: Use it too.
74995
74996 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74997
74998         * modules/tzset: New file.
74999
75000 2003-08-14  Jim Meyering  <jim@meyering.net>
75001
75002         Merges from coreutils.
75003         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75004         variable names, rather than @FNMATCH_H@.
75005         * modules/alloca: Likewise for $(ALLOCA_H).
75006
75007         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75008         the three copies of the literal target, `fnmatch.h'.
75009         * modules/alloca (alloca.h): Likewise.
75010
75011 2003-08-14  Jim Meyering  <jim@meyering.net>
75012
75013         Merge from coreutils.
75014         * m4/tzset.m4: New file.
75015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75016         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75017         otherwise, AIX 5.1 systems would end up using the latter.
75018         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75019         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75020         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75021         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75022
75023 2003-08-14  Jim Meyering  <jim@meyering.net>
75024
75025         Merge from coreutils.
75026         * lib/obstack.h: Whitespace changes.
75027         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75028         and xcalloc return values.
75029         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75030         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75031         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75032         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75033         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75034         error from mntctl.
75035         Use mntctl's return value to drive the entry-processing loop, since
75036         we can't rely on the value of the vmt_length member in the last
75037         entry.  On some systems doing so could result in exhausting
75038         virtual memory.  Based in part on a patch from Mike Jetzer.
75039
75040 2003-08-14  Jim Meyering  <jim@meyering.net>
75041         and Paul Eggert  <eggert@twinsun.com>
75042
75043         Merges from coreutils, plus other fixes.
75044         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75045         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75046         for credits and details.  Thanks to Kaveh Ghazi for helping
75047         to keep these files in sync.
75048         (ARRAY_SIZE): Define it.
75049         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75050         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75051         (memcasecmp): Don't assume size_t fits in unsigned int.
75052         Remove casts and duplicate code.
75053         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75054         (memcpy): Remove definition.
75055         Merge in some clean-up and optimization changes from glibc.
75056         [BLOCKSIZE]: Move definition to top of file.
75057         Ensure that it is a multiple of 64.
75058         Rearrange loop exit tests so as to avoid performing an
75059         additional fread after encountering an error or EOF.
75060         * lib/md5.h (md5_uintptr): Define.
75061         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75062         return to the initial working directory.  Preserve errno
75063         for caller.
75064         * lib/idcache.c: Include "xalloc.h".
75065         (xmalloc, xrealloc): Remove decls.
75066         (getuser): Remove casts no longer required in C89.
75067         * lib/human.c: Include stdio.h, for sprintf.
75068         * lib/group-member.c: Include "xalloc.h".
75069         (xmalloc, xrealloc): Remove decls.
75070         (get_group_info): Remove casts no longer required in C89.
75071         * lib/getusershell.c (readname): Remove casts no longer required in
75072         C89.
75073         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75074         * lib/getline.c: Whitespace fix, from coreutils.
75075
75076 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75077
75078         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75079         Check for isascii.
75080
75081         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75082         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75083         Undo previous (whitespace-only) change.
75084
75085 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75086
75087         * lib/exclude.c: Include <ctype.h>
75088         (IN_CTYPE_DOMAIN): New macro.
75089         (is_space): New fn.
75090         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75091         and empty lines.
75092
75093         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75094         Undo previous (whitespace-only) change.
75095
75096 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75097
75098         * config/srclist-update: Change update back to the old behavior,
75099         leaving whitespace alone.  Use one 'sed' command rather than a
75100         pipeline.
75101         (fixlicense): Now a variable, not a function.
75102         (remove_trailing_blanks): Remove.
75103         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75104         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75105         Undo previous (whitespace-only) change.
75106
75107 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75108
75109         Merge from coreutils.
75110         * modules/euidaccess: Add lib_SOURCES, include for new
75111         file euidaccess.h
75112
75113 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75114
75115         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75116         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75117         Normalize leading white space and remove trailing white space.
75118
75119         Merge from coreutils
75120         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75121
75122         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75123         0.12.1.  These files are now being upgraded automatically by
75124         ../config/srclist-update.
75125
75126 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75127
75128         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75129         Normalize leading white space and remove trailing white space.
75130         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75131         notice, as per ../config/srclist-update.
75132
75133         Merge from coreutils.
75134         * lib/euidaccess.h: New file.
75135         * lib/euidaccess.c: Include it.
75136         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75137         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75138         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75139
75140 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75141
75142         * config/srclist-update: Add copyright notice.
75143         (remove_id_lines, remove_trailing_blanks): New constants.
75144         (fixfile): Use them to normalize spacing a bit in copied files.
75145         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75146         Normalize leading white space and remove trailing white space.
75147
75148         * config/texinfo.tex: Sync with texinfo.
75149
75150         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75151         strtoul.c from libc, to merge coreutils whitespace changes.
75152
75153         * config/srclist.txt: Get the following m4 files from gettext:
75154         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75155         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75156         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75157         wint_t.m4.
75158
75159 2003-08-12  Karl Berry  <karl@gnu.org>
75160
75161         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75162         been made.
75163
75164 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75165
75166         * modules/gnu-source, m4/gnu-source.m4:
75167         Remove; we're assuming Autoconf 2.54 or later now.
75168         Suggested by Bruno Haible.
75169         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75170
75171 2003-08-11  Bruno Haible  <bruno@clisp.org>
75172
75173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75174
75175 2003-08-11  Bruno Haible  <bruno@clisp.org>
75176
75177         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75178         (vasnprintf): Use it instead of wcslen.
75179
75180 2003-08-11  Bruno Haible  <bruno@clisp.org>
75181
75182         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75183         value to ensure that _Bool promotes to int. Use #define for _Bool when
75184         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75185
75186 2003-08-10  Karl Berry  <karl@gnu.org>
75187
75188         * lib/regex.h: update from libc (whitespace fix).
75189
75190 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75191
75192         Merge some files from coreutils.  These changes were
75193         originally made by Jim Meyering.
75194         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75195         many older Unixes require this.
75196         * lib/alloca.c (alloca): Remove cast to argument of free;
75197         no longer needed in C89.
75198         * lib/alloca_.h, regex.h: Fix white space to match
75199         what GNU indent does.
75200
75201 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75202
75203         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75204         apparently Emacs's Unicode mode got confused before my 2003-08-05
75205         checkin.
75206
75207 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75208
75209         * m4/extensions.m4: New file.
75210         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75211         Require gl_USE_SYSTEM_EXTENSIONS.
75212         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75213         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75214
75215 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75216
75217         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75218         * modules/extensions, modules/gnu-source: New files.
75219         * modules/timespec, modules/unlocked-io: Depend on extensions.
75220
75221 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75222
75223         * modules/restrict: New file.
75224         * MODULES.html.sh (func_all_modules): Add restrict.
75225         * modules/regex: Depend on restrict.
75226
75227 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75228
75229         * m4/restrict.m4: New file.
75230         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75231
75232 2003-08-07  Bruno Haible  <bruno@clisp.org>
75233
75234         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75235         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75236
75237 2003-08-07  Bruno Haible  <bruno@clisp.org>
75238
75239         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75240         makes the module 'getndelim2' compatible with the module 'getline'.
75241
75242 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75243
75244         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75245         byte with "\201" to avoid glitches when editing that source file
75246         with multi-gnome-terminal.
75247
75248 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75249
75250         * lib/bumpalloc.h: Remove.
75251
75252 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75253
75254         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75255         * modules/bumpalloc: Remove.
75256
75257 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75258
75259         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75260         GNU coding style.
75261
75262         Merge from coreutils.
75263         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75264         1. From glibc.
75265         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75266         from Karl Berry, implemented by Jim Meyering.
75267         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75268         from Dmitry V. Levin.
75269         Remove anachronistic cast of xrealloc.
75270         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75271         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75272         type. Otherwise, it wouldn't compile with at least /bin/cc on
75273         ymp-cray-unicos9.0.2.X.
75274         Combine two mostly-identical uses of alloca into one.
75275         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75276
75277 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75278
75279         [From Emacs.]
75280
75281         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75282         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75283         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75284         obsolete NLIST_NAME_UNION.
75285         [__GNU__]: Undef BSD and FSCALE.
75286         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75287
75288 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75289
75290         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75291         an enum type, so that it's guaranteed to promote to int.  See:
75292         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75293
75294 2003-08-03  Karl Berry  <karl@gnu.org>
75295
75296         * config/depcomp: update from automake.
75297
75298 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75299
75300         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75301         (strerror): Don't assume that a printable int fits in 14 bytes.
75302
75303 2003-07-31  Bruno Haible  <bruno@clisp.org>
75304
75305         * modules/getpass-gnu: New file.
75306         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75307
75308 2003-07-31  Bruno Haible  <bruno@clisp.org>
75309
75310         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75311
75312 2003-07-24  Karl Berry  <karl@gnu.org>
75313
75314         * config/missing: update from automake.
75315
75316 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75317             Bruno Haible  <bruno@clisp.org>
75318
75319         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75320         * lib/getline.c (getline, getdelim): Likewise.
75321         Remove _GNU_SOURCE define; now it's defined in config.h through
75322         m4/getline.m4.
75323
75324 2003-07-23  Karl Berry  <karl@gnu.org>
75325
75326         * config/config.sub: update from prep.
75327
75328 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75329
75330         * modules/xalloc (Depends-on): Add exitfail.
75331         * modules/xmemcoll: Likewise.
75332
75333 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75334
75335         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75336         over-parenthesization in macros.
75337
75338         Sync with coreutils.
75339
75340         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75341         required by C99.
75342
75343         Use `exit_failure' for xalloc and xmemcoll instead of their own
75344         private exit-failure variables.
75345         * lib/xalloc.h (xalloc_exit_failure): Remove.
75346         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75347         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75348         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75349         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75350         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75351
75352 2003-07-20  Jim Meyering  <jim@meyering.net>
75353
75354         * modules/closeout (Depends-on): Add exitfail.
75355         Suggestion from Bruno Haible.
75356
75357 2003-07-19  Karl Berry  <karl@gnu.org>
75358
75359         * config/config.sub: update from prep.
75360
75361 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75362
75363         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75364         Remove.
75365         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75366         to test that it can stand by itself.  Include "exitfail.h".
75367         Clients should set exit_failure instead.
75368         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75369
75370 2003-07-18  Bruno Haible  <bruno@clisp.org>
75371
75372         * modules/getndelim2: New file.
75373         * modules/getline: Share files with module getndelim2.
75374         * modules/getnline: Depend on getndelim2 instead of sharing files with
75375         it. Add getnline.c to lib_SOURCES.
75376         * MODULES.html.sh (func_all_modules): Add getndelim2.
75377
75378 2003-07-18  Bruno Haible  <bruno@clisp.org>
75379
75380         * m4/getndelim2.m4: New file.
75381         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75382         invoke gl_PREREQ_GETNDELIM2.
75383         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75384         gl_PREREQ_GETNDELIM2.
75385         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75386         gl_GETNDELIM2.
75387
75388 2003-07-18  Bruno Haible  <bruno@clisp.org>
75389
75390         * lib/getndelim2.h: New file.
75391         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75392         getndelim2.h.
75393         (getndelim2): Make non-static. Change return type to ssize_t.
75394         * lib/getline.h: Change argument names.
75395         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75396         * lib/getnline.c: Include getndelim2.h.
75397
75398 2003-07-18  Andreas Schwab  <schwab@suse.de>
75399
75400         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75401
75402 2003-07-17  Karl Berry  <karl@gnu.org>
75403
75404         * config/config.sub: update from prep.
75405
75406 2003-07-17  Bruno Haible  <bruno@clisp.org>
75407
75408         * modules/getnline: New file.
75409         * modules/getline: Add lib/getndelim2.c to source file list.
75410         * MODULES.html.sh (func_all_modules): Add getnline.
75411
75412 2003-07-17  Bruno Haible  <bruno@clisp.org>
75413
75414         * m4/getnline.m4: New file.
75415
75416 2003-07-17  Bruno Haible  <bruno@clisp.org>
75417
75418         * m4/Makefile.am.in: Remove file.
75419         * m4/Makefile.am: Remove file.
75420         * m4/Makefile.in: Remove file.
75421
75422 2003-07-17  Bruno Haible  <bruno@clisp.org>
75423
75424         * lib/getnline.h: New file.
75425         * lib/getnline.c: New file.
75426         * lib/getndelim2.c: New file, extracted from getline.c.
75427         (getndelim2): Renamed from getdelim2, with added nmax argument.
75428         * lib/getline.c: Include getndelim2.c.
75429         (getdelim2): Moved out to getndelim2.c.
75430         (getline, getdelim): Update.
75431
75432 2003-07-17  Bruno Haible  <bruno@clisp.org>
75433
75434         * lib/Makefile.am: Remove file.
75435         * lib/Makefile.in: Remove file.
75436
75437 2003-07-17  Bruno Haible  <bruno@clisp.org>
75438
75439         * configure.in: Remove file.
75440         * Makefile.in: Remove file.
75441
75442 2003-07-17  Bruno Haible  <bruno@clisp.org>
75443
75444         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75445
75446 2003-07-16  Karl Berry  <karl@gnu.org>
75447
75448         * config/srclist-update: was running fixlicense twice, which caused
75449                 texinfo.tex to be nullified for some reason.  Simplify,
75450                 $gplsrc is no longer needed as far as I can see?
75451
75452 2003-07-16  Jim Meyering  <jim@meyering.net>
75453
75454         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75455
75456 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75457
75458         * config/srclist.txt: Get the following files from gettext-runtime/intl
75459         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75460         ref-del.sin.  From Bruno Haible.
75461         * config/srclist-update (fixfile): Change grep pattern again, since the
75462         previous fix didn't work (there was another trailing $).  Use
75463         '[$]' to escape the $s.
75464
75465 2003-07-15  Karl Berry  <karl@gnu.org>
75466
75467         * lib/vasnprintf.c: update from gettext.
75468
75469 2003-07-15  Karl Berry  <karl@gnu.org>
75470
75471         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75472         gets expanded when surrounded by '$'.
75473
75474 2003-07-15  Jim Meyering  <jim@meyering.net>
75475
75476         * modules/save-cwd: Don't depend on error.  From Derek Price.
75477
75478 2003-07-15  Jim Meyering  <jim@meyering.net>
75479
75480         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75481
75482 2003-07-14  Simon Josefsson  <jas@extundo.com>
75483
75484         * modules/mempcpy: New file.
75485         * MODULES.html.sh (func_all_modules): Add mempcpy.
75486
75487 2003-07-14  Simon Josefsson  <jas@extundo.com>
75488
75489         * m4/mempcpy.m4: New file.
75490
75491 2003-07-14  Simon Josefsson  <jas@extundo.com>
75492
75493         * lib/mempcpy.h: New file.
75494         * lib/mempcpy.c: New file.
75495
75496 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75497
75498         * modules/getdate, modules/posixtm: Depend on mktime.
75499
75500 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75501
75502         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75503         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75504         unicodeio.c, unicodeio.h, unlocked-io.h:
75505         Switch from LGPL to GPL.
75506
75507 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75508
75509         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75510         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75511         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75512         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75513         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75514         updated automatically by ../config/srclist-update.  This changes
75515         their license from LPGL to GPL.
75516
75517 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75518
75519         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75520         assumed to refer to the root of the most recent stable gettext version.
75521         * config/srclistvars.sh: Add defaults for eggert.
75522         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75523         Match "This program" as well as "The program".  This is needed
75524         for gettext.
75525
75526 2003-07-14  Jim Meyering  <jim@meyering.net>
75527
75528         Don't emit diagnostics.  Let callers do that.
75529         * lib/save-cwd.c: Don't include "error.h".
75530         (save_cwd): Don't call error.  Ensure that errno is valid
75531         when returning nonzero.
75532
75533         * lib/save-cwd.h (restore_cwd): Update prototype.
75534         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75535         Simplify.  Don't call error upon failure.  Let callers do that.
75536         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75537         when auditing is enabled.  But don't bother updating the #if.
75538
75539 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75540
75541         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75542         it breaks C++ compilation.
75543         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75544
75545 2003-07-10  Simon Josefsson  <jas@extundo.com>
75546
75547         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75548
75549 2003-07-10  Jim Meyering  <jim@meyering.net>
75550
75551         * m4/clock_time.m4: Remove trailing blank.
75552         * m4/intmax_t.m4: Likewise.
75553
75554 2003-07-10  Jim Meyering  <jim@meyering.net>
75555
75556         * lib/vasnprintf.c: Remove trailing blanks.
75557         Make cpp indentation consistent.
75558
75559 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75560
75561         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75562         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75563         Switch from LGPL to GPL.
75564
75565 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75566
75567         * config/srclist.txt: Sort sublists.  Add
75568         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75569         that differ from gnulib for one reason or another; we'd like this list
75570         to be smaller but for now let's document what we have.
75571
75572 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75573
75574         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75575         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75576         and sweeter "eval x=$x".
75577         * config/srclist.txt: Get lib/argp* from glibc.
75578
75579 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75580
75581         * lib/mktime.c: Fix some boundary cases and remove need for floating
75582         point.
75583
75584         Issue a compile-time diagnostic if time_t is floating point, or if
75585         two's complement arithmetic is not in effect, or if arithmetic
75586         right shift does not propagate the sign.  These assumptions were
75587         all in the original code but they weren't checked.
75588
75589         (TIME_T_MIDPOINT, verify): New macros.
75590         (__isleap): Remove; it has integer overflow problems.
75591         (leapyear): New function, without those problems.
75592         (ydhms_tm_diff): Remove; splitting into two parts.
75593         (ydhms_diff): New function, containing the arithmetic part of
75594         the old ydhms_tm_diff function.  Issue a compile-time
75595         diagnostic if we are not using C99 integer division.
75596         Avoid casts when possible.
75597         (guess_time_tm): New function, containing the checking part of
75598         the old ydhms_tm_diff function.  Return the new value, rather than
75599         the difference between it and the old.  Accept a new argument T
75600         so that *T specifies the old value.  Check for overflow in the result.
75601
75602         (__mktime_internal): Use a time_t offset, not a long int offset.
75603         This undoes the 2003-06-04 change, which is no longer needed now
75604         that we have better overflow checking.
75605         (localtime_offset): Likewise.
75606
75607         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75608         and long are 64-bit but int is only 32-bit.
75609         (ydhms_diff): Use long int to store year1 and yday1.
75610         Issue a compile-time diagnostic if long int is not wide enough.
75611
75612         (__mktime_internal): Use long int to store adjusted year and yday.
75613         Use plain C rather than preprocessor commands, if that doesn't
75614         affect efficiency.
75615         Check for overflow (and try to repair) after each probe
75616         rather than checking only at the very end.  This avoids some bugs
75617         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75618         does not equal GMT offset at maximum time).
75619         Use integer to check for overflow rather than floating point; this
75620         is more portable to non-IEEE hosts, and is a tad faster.
75621         When we detect that we are oscillating between two values,
75622         don't check whether tm_isdst has the requested value, since
75623         we already know the answer.  When tm_isdst has the wrong value,
75624         use a different heuristic to find the right one, based on the
75625         extreme values actually observed in practice in tz2003a,
75626         rather than the (overly optimistic) "previous 3 calendar quarters".
75627
75628         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75629         "T const" to accommodate glibc style.
75630         (check_result): Use less-confusing report format.  "long" -> "long int.
75631         (main): Likewise.
75632         Don't loop if the iteration overflows time_t.
75633         Allow a negative step in the iteration.
75634
75635 2003-07-06  Karl Berry  <karl@gnu.org>
75636
75637         * config/depcomp: update from automake.
75638         * config/config.sub: update from prep.
75639
75640 2003-07-03  Karl Berry  <karl@gnu.org>
75641
75642         * config/config.guess: update from prep.
75643
75644 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75645
75646         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75647         xreadlink.c now includes it unconditionally.
75648
75649 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75650
75651         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75652         having it depend on HAVE_SYS_TYPES_H.
75653
75654 2003-07-01  Bruno Haible  <bruno@clisp.org>
75655
75656         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75657         <sys/types.h> should be sufficient.
75658         Reported by Paul Eggert.
75659
75660 2003-06-26  Karl Berry  <karl@gnu.org>
75661
75662         * config/depcomp: update from automake.
75663
75664 2003-06-26  Bruno Haible  <bruno@clisp.org>
75665
75666         * modules/human: Depend on module stdbool.
75667
75668 2003-06-25  Bruno Haible  <bruno@clisp.org>
75669
75670         * modules/readlink: New file.
75671         * modules/xreadlink: Depend on it.
75672         * MODULES.html.sh (func_all_modules): Add readlink.
75673
75674 2003-06-25  Bruno Haible  <bruno@clisp.org>
75675
75676         * m4/readlink.m4: New file.
75677
75678 2003-06-25  Bruno Haible  <bruno@clisp.org>
75679
75680         * lib/readlink.c: New file.
75681
75682 2003-06-22  Karl Berry  <karl@gnu.org>
75683
75684         * config/srclist.txt: update mkinstalldirs from automake.
75685         * config/mkinstalldirs: update.
75686
75687 2003-06-22  Bruno Haible  <bruno@clisp.org>
75688
75689         Portability to mingw32.
75690         * m4/ssize_t.m4: New file, from GNU gettext.
75691         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75692         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75693
75694 2003-06-22  Bruno Haible  <bruno@clisp.org>
75695
75696         * modules/safe-read: Add m4/ssize_t.m4.
75697         * modules/xreadlink: Add m4/ssize_t.m4.
75698
75699 2003-06-20  Bruno Haible  <bruno@clisp.org>
75700
75701         Assume C89, so PARAMS isn't needed.
75702         * lib/unicodeio.h (PARAMS): Remove.
75703         * lib/unicodeio.c: Don't use PARAMS.
75704
75705 2003-06-18  Karl Berry  <karl@gnu.org>
75706
75707         * config/config.{guess,sub}: update from prep.
75708
75709 2003-06-18  Jim Meyering  <jim@meyering.net>
75710
75711         Merge changes from coreutils.
75712         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75713         Remove explicit declarations of xmalloc and realloc.
75714         Include xalloc.h.
75715         (read_utmp): Remove anachronistic cast of xmalloc.
75716
75717 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75718
75719         Assume C89, so PARAMS isn't needed.
75720         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75721         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75722         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75723         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75724         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75725         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75726         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75727         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75728         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75729         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75730         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75731         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75732         no longer needed. Anyway, config.h should always be included before any
75733         other file.
75734
75735 2003-06-11  Simon Josefsson  <jas@extundo.com>
75736
75737         * modules/sysexits: New file.
75738         * MODULES.html.sh (func_all_modules): Add sysexits.
75739
75740 2003-06-11  Simon Josefsson  <jas@extundo.com>
75741
75742         * lib/sysexit_.h: New file.
75743
75744 2003-06-11  Derek Price  <derek@ximbiot.com>
75745
75746         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75747         necessary.
75748
75749 2003-06-11  Bruno Haible  <bruno@clisp.org>
75750
75751         * m4/sysexits.m4: New file.
75752
75753 2003-06-10  Simon Josefsson  <jas@extundo.com>
75754
75755         * lib/argp.h: New file, from glibc.
75756         * lib/argp-ba.c: New file, from glibc.
75757         * lib/argp-eexst.c: New file, from glibc.
75758         * lib/argp-fmtstream.c: New file, from glibc.
75759         * lib/argp-fmtstream.h: New file, from glibc.
75760         * lib/argp-fs-xinl.c: New file, from glibc.
75761         * lib/argp-help.c: New file, from glibc.
75762         * lib/argp-namefrob.h: New file, from glibc.
75763         * lib/argp-parse.c: New file, from glibc.
75764         * lib/argp-pv.c: New file, from glibc.
75765         * lib/argp-pvh.c: New file, from glibc.
75766         * lib/argp-xinl.c: New file, from glibc.
75767
75768 2003-06-10  Simon Josefsson  <jas@extundo.com>
75769
75770         * modules/strchrnul: New file.
75771
75772 2003-06-10  Simon Josefsson  <jas@extundo.com>
75773
75774         * modules/argp: New file.
75775
75776 2003-06-10  Simon Josefsson  <jas@extundo.com>
75777
75778         * m4/strchrnul.m4: New file.
75779
75780 2003-06-10  Simon Josefsson  <jas@extundo.com>
75781
75782         * lib/strchrnul.h: New file.
75783         * lib/strchrnul.c: New file.
75784
75785 2003-06-10  Bruno Haible  <bruno@clisp.org>
75786
75787         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75788
75789 2003-06-07  Karl Berry  <karl@gnu.org>
75790
75791         * config/config.{guess,sub}: update from prep.
75792
75793 2003-06-07  Jim Meyering  <jim@meyering.net>
75794
75795         * modules/strtod: Use $(...) notation, not @...@ for
75796         AC_REPLACE'd variables.
75797         * modules/localcharset: Likewise.
75798
75799 2003-06-07  Jim Meyering  <jim@meyering.net>
75800
75801         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75802         in place of my name in the copyright comment.
75803         Remove definition and uses of __P.
75804
75805         From coreutils.
75806         * lib/stat.c: Don't declare xmalloc explicitly.
75807         Instead, include "xalloc.h".
75808         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75809         xrealloc, and xcalloc return values.
75810         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75811         Improve comment.
75812         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75813
75814 2003-06-07  Bruno Haible  <bruno@clisp.org>
75815
75816         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75817         avoid AC_CONFIG_LINKS.
75818         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75819         fnmatch.h, to avoid AC_CONFIG_LINKS.
75820         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75821
75822 2003-06-07  Bruno Haible  <bruno@clisp.org>
75823
75824         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75825         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75826         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75827         directory.
75828         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75829         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75830         directory.
75831
75832 2003-06-06  Jim Meyering  <jim@meyering.net>
75833
75834         Merge from coreutils.
75835         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75836         Consolidate declarations and initializations of *_base* locals.
75837
75838         Merge from coreutils.
75839         This avoids a core dump on systems without GNU putenv,
75840         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75841         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75842         (unsetenv): New static function, from GNU libc.
75843         (rpl_putenv): Use it.
75844
75845         * lib/modechange.c: Remove trailing blanks.
75846
75847         Merge from coreutils.
75848         * lib/fsusage.c: Remove declaration of statfs.
75849         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75850
75851         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75852
75853 2003-06-06  Jim Meyering  <jim@meyering.net>
75854
75855         * lib/stdbool_.h: Renamed from stdbool.h.in.
75856
75857 2003-06-06  Jim Meyering  <jim@meyering.net>
75858             Bruno Haible  <bruno@clisp.org>
75859
75860         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75861         Adjust Makefile.am snippet not to redirect directly to target.
75862         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75863
75864 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75865
75866         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75867         mismatch, look in future quarters as well as past.  This fixes a
75868         bug when processing fall-backwards gaps immediately after a long
75869         period of daylight-saving time.
75870
75871         * lib/mktime.c: Assume freestanding C89 or better.
75872         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75873         (__P): Remove; not used.
75874         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75875         (mktime, not_equal_tm, print_tm, check_result,
75876         main): Use prototypes.  Use const * where appropriate.
75877         (main): Fix typo in testing code that uncovered by above changes.
75878         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75879
75880 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75881
75882         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75883         locale.h, localeconv.  This merges changes from coreutils.
75884
75885         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75886         It can be removed after the next Autoconf is released.
75887         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75888         needed.
75889
75890 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75891
75892         * lib/mktime.c: Fix Debian bug 177940
75893         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75894         (localtime_offset): Now long int, not time_t, because we want it
75895         to be guaranteed to be signed.  All uses changed.
75896         (__mktime_internal): If overflow would occur when adding offset,
75897         don't add it.
75898
75899         Merge 'human' changes from coreutils.  Rewrite to support
75900         locale-specific notations like thousands separators.
75901         * lib/human.c: Simplify authorship notice.
75902         Include human.h immediately after config.h.
75903         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75904         <limits.h>: Do not include, since human.h does.
75905         (SIZE_MAX, UINTMAX_MAX): New macros.
75906         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75907         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75908         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75909         (power_letter): Renamed from suffixes.
75910         (generate_suffix_backwards): Remove.
75911         (adjust_value): Now takes int style (because of human.h changes)
75912         and long double value (for greater precision on some platforms).
75913         (group_number): New function.
75914         (human_readable): Use it.  Use integer options, not enum.
75915         Put the options before the sizes in the arg list.
75916         Support all the new options.
75917         The old human_readable function has been removed;
75918         use inttostr.h instead.
75919         (human_readable, default_block_size, humblock):
75920         Use uintmax_t, not int, for block sizes.
75921         (human_readable_inexact, block_size_types): Remove.
75922         (block_size_opts): New constant.
75923         (human_options): Renamed from human_block_size, with new signature
75924         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75925         * lib/human.h: Add copyright and authorship notice.
75926         Include <limits.h> and <stdbool.h> unconditionally.
75927         (PARAMS): Remove.  All uses removed.
75928         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75929         (enum human_inexact_style): Remove tag; now a nameless enum.
75930         (human_floor, human_ceiling, human_round_to_even): Now have
75931         values 2, 0, 1 rather than -1, 1, 0.
75932         (human_group_digits, human_suppress_point_zero, human_autoscale,
75933         human_base_1024, human_SI, human_B): New constants.
75934         (human_readable_inexact, human_block_size): Remove.
75935         (human_readable): Size args are now uintmax_t, not int.
75936         (human_options): New decl.
75937
75938         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75939         unnecessary now that we assume C89 or better.  This change
75940         imported from coreutils.
75941
75942         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75943         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75944         in the 2003-05-30 sync from glibc.
75945
75946         .h files should stand alone, but we shouldn't include <sys/types.h>
75947         if we can get away with just <stddef.h>.
75948
75949         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75950         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75951         rather than <sys/types.h>, as we merely need size_t.
75952         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75953         to get size_t.
75954         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75955         Include <stdio.h>, to get FILE.
75956         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75957         memcasecmp.h has included <stddef.h> and all we need is size_t.
75958         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75959         our interface, instead of including <sys/types.h>
75960
75961 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75962
75963         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75964         now, as glibc mktime is buggy on non-glibc systems.
75965
75966 2003-06-03  Karl Berry  <karl@gnu.org>
75967
75968         * config/config.sub: update from prep.
75969
75970 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75971
75972         [from coreutils]
75973         Fix some minor time-related bugs with POSIX time arguments.
75974         Some valid time stamps were being rejected (notably -1, and
75975         time stamps before 1900 on 64-bit hosts).  And some invalid
75976         time stamps were being accepted, e.g. September 31.
75977
75978         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75979         that we can return (time_t) -1 successfully.
75980         * lib/posixtm.c: Likewise.
75981         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75982         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75983         (t): Remove static var.
75984         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75985         of static var.  All uses changed.
75986         (year): Do not reject years before 1900; they can occur with
75987         64-bit time_t.
75988         (posix_time_parse): Do not check for out-of-range components;
75989         that is now the caller's responsibility, since our checks were
75990         only approximations.
75991         (posixtime): Use mktime to check for out-of-range components,
75992         since it knows them exactly.
75993         If mktime returns (time_t) -1, check whether an error actually occurred
75994         by invoking localtime on -1.
75995         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75996         posixtime failures better.
75997         Improve the test data (in comments only).
75998
75999 2003-06-02  Karl Berry  <karl@gnu.org>
76000
76001         * config/mkinstalldirs (version): new variable.
76002         (--version): new option.
76003         (usage): improve message.
76004
76005 2003-05-30  Karl Berry  <karl@gnu.org>
76006
76007         * lib/mktime.c: update from libc.
76008
76009 2003-05-30  Bruno Haible  <bruno@clisp.org>
76010
76011         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76012         * config/config.rpath: Upgrade to gettext-0.12.1.
76013
76014 2003-05-30  Bruno Haible  <bruno@clisp.org>
76015
76016         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76017         * m4/nls.m4: New file, from gettext-0.12.1.
76018         * m4/po.m4: New file, from gettext-0.12.1.
76019         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76020
76021 2003-05-30  Bruno Haible  <bruno@clisp.org>
76022
76023         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76024         * lib/localcharset.h: Likewise.
76025         * lib/localcharset.c: Likewise.
76026
76027 2003-05-29  Karl Berry  <karl@gnu.org>
76028
76029         * config/config.rpath: update from gettext.
76030
76031 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76032
76033         Assume the headers required for C89 freestanding compilers.
76034         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76035         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76036         * m4/human.m4 (gl_HUMAN): Likewise.
76037         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76038         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76039         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76040         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76041         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76042         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76043
76044 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76045
76046         Assume the headers required for C89 freestanding compilers.
76047         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76048         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76049         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76050         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76051         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76052         define, since <limits.h> is guaranteed to do that.
76053         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76054         * lib/exclude.c: Include <stdbool.h> unconditionally.
76055         * lib/tempname.c: Include <stddef.h> unconditionally.
76056         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76057         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76058         <stddef.h> does that.
76059         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76060         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76061         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76062         needed.
76063         * lib/xstrtol.c: Likewise.
76064         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76065         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76066
76067         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76068         warnings on some platforms.
76069
76070         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76071         arbitrarily.
76072
76073 2003-05-26  Jim Meyering  <jim@meyering.net>
76074
76075         Merge in a change from coreutils:
76076         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76077         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76078         that condition, rather than `-1' which is slightly misleading.
76079         Change the name of the cache variable to have the gl_ prefix.
76080         Prompted by a patch from Richard Dawe for DJGPP.
76081
76082 2003-05-24  Karl Berry  <karl@gnu.org>
76083
76084         * config/config.guess: update from prep.
76085
76086 2003-05-22  Karl Berry  <karl@gnu.org>
76087
76088         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76089
76090 2003-05-20  Karl Berry  <karl@gnu.org>
76091
76092         * config/config.guess: update from prep.
76093
76094 2003-05-18  Karl Berry  <karl@gnu.org>
76095
76096         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76097         might actually be set by the user.
76098
76099         * config/depcomp, install-sh, mdate-sh: update from automake.
76100
76101 2003-05-17  Bruno Haible  <bruno@clisp.org>
76102
76103         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76104         invalid expansion for AC_EGREP_CPP.
76105         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76106         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76107         Suggested by Akim Demaille <akim@epita.fr> in
76108         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76109
76110 2003-05-12  Jim Meyering  <jim@meyering.net>
76111
76112         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76113         the space-padded-by-default conversion specifiers, %e, %k, %l.
76114
76115 2003-05-12  Bruno Haible  <bruno@clisp.org>
76116
76117         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76118         the string is longer than 4 KB.
76119
76120 2003-05-11  Karl Berry  <karl@gnu.org>
76121
76122         * config/config.{guess,sub}: update from prep.
76123
76124 2003-05-09  Bruno Haible  <bruno@clisp.org>
76125
76126         * modules/error: Add m4/strerror_r.m4 to file list.
76127
76128 2003-05-03  Bruno Haible  <bruno@clisp.org>
76129
76130         Upgrade to Unicode-4.0.
76131         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76132         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76133         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76134         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76135         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76136         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76137         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76138         Change width of U+E0100..U+E01EF from 1 to 0.
76139
76140 2003-04-25  Jim Meyering  <jim@meyering.net>
76141
76142         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76143         of type size_t, not int.
76144
76145 2003-04-25  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/copy-file.c: Include <stddef.h>, for size_t.
76148
76149 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76150
76151         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76152         code which expansion is under static control.  Patch imported from
76153         Akim Demaille's patch to Bison; see
76154         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76155
76156 2003-04-14  Bruno Haible  <bruno@clisp.org>
76157
76158         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76159
76160 2003-04-11  Jim Meyering  <jim@meyering.net>
76161
76162         Merge changes from Coreutils.
76163
76164         2003-03-22  Jim Meyering  <jim@meyering.net>
76165
76166         * lib/strftime.c (widen): Cast alloca return value to proper type.
76167
76168         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76169
76170         From GNU libc.
76171         * lib/strftime.c (my_strftime): Handle very large width
76172         specifications for numeric values correctly.  Improve checks for
76173         overflow.
76174
76175         2003-01-19  Jim Meyering  <jim@meyering.net>
76176
76177         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76178         definitions.
76179         (nl_get_alt_digit) [! defined my_strftime]: Define.
76180         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76181         _nl_get_alt_digit and _nl_get_walt_digit.
76182
76183         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76184         libc. These changes have no effect outside of _LIBC.
76185
76186 2003-04-10  Bruno Haible  <bruno@clisp.org>
76187
76188         * modules/findprog: New file.
76189         * MODULES.html.sh (func_all_modules): Add it.
76190
76191 2003-04-10  Bruno Haible  <bruno@clisp.org>
76192
76193         * m4/findprog.m4: New file.
76194         * m4/eaccess.m4: New file.
76195
76196 2003-04-10  Bruno Haible  <bruno@clisp.org>
76197
76198         * lib/findprog.h: New file, from GNU gettext.
76199         * lib/findprog.c: New file, from GNU gettext.
76200
76201 2003-04-05  Jim Meyering  <jim@meyering.net>
76202
76203         Merge changes from Coreutils.
76204
76205         * lib/exclude.h (PARAMS): Remove definition and uses.
76206         * lib/exclude.c: Remove uses of `PARAMS'.
76207
76208         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76209         Add test-cases for DOS filenames. Declare program_name.
76210         (main): Set up program_name.  Patch by Rich Dawe.
76211
76212         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76213         error from mntctl.
76214         Use mntctl's return value to drive the entry-processing loop, since
76215         we can't rely on the value of the vmt_length member in the last
76216         entry.  On some systems doing so could result in exhausting
76217         virtual memory.  Based in part on a patch from Mike Jetzer.
76218
76219 2003-04-04  Bruno Haible  <bruno@clisp.org>
76220
76221         * modules/linebreak: New file.
76222         * MODULES.html.sh (func_all_modules): Add it.
76223
76224 2003-04-04  Bruno Haible  <bruno@clisp.org>
76225
76226         * m4/linebreak.m4: New file.
76227
76228 2003-04-04  Bruno Haible  <bruno@clisp.org>
76229
76230         * lib/linebreak.h: New file, from GNU gettext.
76231         * lib/linebreak.c: New file, from GNU gettext with slight
76232         modifications.
76233         * lib/lbrkprop.h: New file, from GNU gettext.
76234
76235 2003-04-03  Bruno Haible  <bruno@clisp.org>
76236
76237         * modules/utf8-ucs4: New file.
76238         * modules/utf16-ucs4: New file.
76239         * modules/ucs4-utf8: New file.
76240         * modules/ucs4-utf16: New file.
76241         * MODULES.html.sh (func_all_modules): Add them.
76242
76243 2003-04-03  Bruno Haible  <bruno@clisp.org>
76244
76245         * m4/utf-ucs4.m4: New file.
76246         * m4/ucs4-utf.m4: New file.
76247
76248 2003-04-03  Bruno Haible  <bruno@clisp.org>
76249
76250         * lib/utf8-ucs4.h: New file, from GNU gettext.
76251         * lib/utf16-ucs4.h: New file, from GNU gettext.
76252         * lib/ucs4-utf8.h: New file, from GNU gettext.
76253         * lib/ucs4-utf16.h: New file, from GNU gettext.
76254
76255 2003-04-02  Bruno Haible  <bruno@clisp.org>
76256
76257         * modules/binary-io: New file.
76258         * MODULES.html.sh (func_all_modules): Add it.
76259
76260 2003-04-02  Bruno Haible  <bruno@clisp.org>
76261
76262         * lib/binary-io.h: New file, from GNU gettext.
76263
76264 2003-04-01  Bruno Haible  <bruno@clisp.org>
76265
76266         * modules/pathname: New file.
76267         * MODULES.html.sh (func_all_modules): Add it.
76268
76269 2003-04-01  Bruno Haible  <bruno@clisp.org>
76270
76271         * lib/pathname.h: New file, from GNU gettext.
76272         * lib/concatpath.c: New file, from GNU gettext.
76273
76274 2003-03-30  Bruno Haible  <bruno@clisp.org>
76275
76276         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76277
76278 2003-03-30  Bruno Haible  <bruno@clisp.org>
76279
76280         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76281         function chown() doesn't exist.
76282
76283 2003-03-28  Bruno Haible  <bruno@clisp.org>
76284
76285         * modules/copy-file: New file.
76286         * MODULES.html.sh (func_all_modules): Add it.
76287
76288 2003-03-28  Bruno Haible  <bruno@clisp.org>
76289
76290         * m4/copy-file.m4: New file.
76291
76292 2003-03-28  Bruno Haible  <bruno@clisp.org>
76293
76294         * lib/copy-file.h: New file, from GNU gettext.
76295         * lib/copy-file.c: New file, from GNU gettext.
76296
76297 2003-03-18  Jim Meyering  <jim@meyering.net>
76298
76299         * lib/quote.c (quote_n): Fix typo in comment.
76300
76301 2003-03-18  Bruno Haible  <bruno@clisp.org>
76302
76303         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76304         checking.
76305         * m4/onceonly_2_57.m4: Likewise.
76306
76307 2003-03-17  Bruno Haible  <bruno@clisp.org>
76308
76309         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76310         (m4_quote): Remove macro.
76311         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76312
76313 2003-03-14  Jim Meyering  <jim@meyering.net>
76314
76315         Merge changes from Coreutils.
76316         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76317         to be const, in order to avoid warnings.
76318         (obstack_room): Likewise.
76319         (obstack_empty_p): Likewise.
76320
76321 2003-03-14  Bruno Haible  <bruno@clisp.org>
76322
76323         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76324         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76325
76326 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76327
76328         Merge changes from Bison.
76329         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76330         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76331         when compiling Bison 1.875's `bitset bset = obstack_alloc
76332         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76333         * lib/hash.c: Include <stdbool.h> unconditionally.
76334
76335 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76336
76337         * m4/onceonly.m4 (m4_quote): New macro.
76338         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76339         Quote AC_FOREACH variable-expansions properly.
76340
76341 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76342
76343         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76344
76345 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76346
76347         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76348         Reported by Bruce Becker; see:
76349         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76350
76351 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76352             Bruno Haible  <bruno@clisp.org>
76353
76354         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76355         Reported by John Hughes, see
76356         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76357
76358 2003-02-20  Bruno Haible  <bruno@clisp.org>
76359
76360         * MODULES.html.sh (func_all_modules): Add poll.
76361
76362 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76363
76364         * modules/poll: New file.
76365
76366 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76367
76368         * lib/poll_.h: New file.
76369         * lib/poll.c: New file.
76370
76371 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76372
76373         * m4/poll.m4: New file.
76374
76375 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76376
76377         * modules/mathl: New file.
76378
76379 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76380
76381         * lib/mathl.h: New file.
76382         * lib/acosl.c: New file.
76383         * lib/asinl.c: New file.
76384         * lib/atanl.c: New file.
76385         * lib/ceill.c: New file.
76386         * lib/cosl.c: New file.
76387         * lib/expl.c: New file.
76388         * lib/floorl.c: New file.
76389         * lib/frexpl.c: New file.
76390         * lib/ldexpl.c: New file.
76391         * lib/logl.c: New file.
76392         * lib/sincosl.c: New file.
76393         * lib/sinl.c: New file.
76394         * lib/sqrtl.c: New file.
76395         * lib/tanl.c: New file.
76396         * lib/trigl.c: New file.
76397         * lib/trigl.h: New file.
76398
76399 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76400
76401         * m4/mathl.m4: New file.
76402
76403 2003-02-18  Bruno Haible  <bruno@clisp.org>
76404
76405         * MODULES.html.sh (func_all_modules): Add mathl.
76406
76407 2003-02-17  Bruno Haible  <bruno@clisp.org>
76408
76409         * modules/mkdtemp: New module.
76410         * MODULES.html.sh (func_all_modules): Add it.
76411
76412 2003-02-17  Bruno Haible  <bruno@clisp.org>
76413
76414         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76415
76416 2003-02-17  Bruno Haible  <bruno@clisp.org>
76417
76418         * lib/mkdtemp.h: New file, from GNU gettext.
76419         * lib/mkdtemp.c: New file, from GNU gettext.
76420
76421 2003-02-02  Jim Meyering  <jim@meyering.net>
76422
76423         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76424         e.g. glibc-2.2.93.
76425
76426 2003-01-31  Bruno Haible  <bruno@clisp.org>
76427
76428         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76429         'rpl_rename'.
76430         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76431         'rpl_strnlen'.
76432         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76433         'rpl_strtod'.
76434         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76435         'rpl_utime'.
76436
76437 2003-01-31  Bruno Haible  <bruno@clisp.org>
76438
76439         * lib/rename.c: #undef rename before defining rpl_rename.
76440         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76441
76442 2003-01-30  Bruno Haible  <bruno@clisp.org>
76443
76444         * modules/vasnprintf, modules/vasprintf: New modules.
76445         * MODULES.html.sh (func_all_modules): Add them.
76446
76447 2003-01-30  Bruno Haible  <bruno@clisp.org>
76448
76449         * m4/signed.m4: New file, from GNU gettext.
76450         * m4/longdouble.m4: New file, from GNU gettext.
76451         * m4/wchar_t.m4: New file, from GNU gettext.
76452         * m4/wint_t.m4: New file, from GNU gettext.
76453         * m4/vasnprintf.m4: New file.
76454         * m4/vasprintf.m4: New file.
76455
76456 2003-01-30  Bruno Haible  <bruno@clisp.org>
76457
76458         * lib/printf-args.h: New file, from GNU gettext.
76459         * lib/printf-args.c: New file, from GNU gettext.
76460         * lib/printf-parse.h: New file, from GNU gettext.
76461         * lib/printf-parse.c: New file, from GNU gettext.
76462         * lib/vasnprintf.h: New file, from GNU gettext.
76463         * lib/vasnprintf.c: New file, from GNU gettext.
76464         * lib/asnprintf.c: New file, from GNU gettext.
76465         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76466         * lib/vasprintf.c: New file, from GNU gettext.
76467         * lib/asprintf.c: New file, from GNU gettext.
76468
76469 2003-01-29  Bruno Haible  <bruno@clisp.org>
76470
76471         * modules/stpncpy: New module.
76472         * MODULES.html.sh (func_all_modules): Add it.
76473
76474 2003-01-29  Bruno Haible  <bruno@clisp.org>
76475
76476         * m4/stpncpy.m4: New file.
76477
76478 2003-01-29  Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76481         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76482
76483 2003-01-28  Bruno Haible  <bruno@clisp.org>
76484
76485         * modules/c-ctype: New module.
76486         * MODULES.html.sh (func_all_modules): Add it.
76487
76488 2003-01-28  Bruno Haible  <bruno@clisp.org>
76489
76490         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76491         Paul Eggert.
76492         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76493         Paul Eggert.
76494
76495 2003-01-27  Bruno Haible  <bruno@clisp.org>
76496
76497         * modules/xsetenv: New module.
76498         * MODULES.html.sh (func_all_modules): Add it.
76499
76500 2003-01-27  Bruno Haible  <bruno@clisp.org>
76501
76502         * lib/xsetenv.h: New file, from GNU gettext.
76503         * lib/xsetenv.c: New file, from GNU gettext.
76504
76505 2003-01-23  Jim Meyering  <jim@meyering.net>
76506
76507         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76508         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76509
76510 2003-01-23  Bruno Haible  <bruno@clisp.org>
76511
76512         * modules/minmax: New module.
76513         * MODULES.html.sh (func_all_modules): Add it.
76514
76515 2003-01-23  Bruno Haible  <bruno@clisp.org>
76516
76517         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76518         Eggert.
76519
76520 2003-01-22  Bruno Haible  <bruno@clisp.org>
76521
76522         * modules/exit: New module.
76523         * MODULES.html.sh (func_all_modules): Add it.
76524
76525 2003-01-22  Bruno Haible  <bruno@clisp.org>
76526
76527         * lib/exit.h: New file, from GNU gettext.
76528
76529 2003-01-19  Bruno Haible  <bruno@clisp.org>
76530
76531         * gnulib-tool: Recognize option --extract-maintainer.
76532         (func_get_maintainer): New function.
76533         * modules/*: Add Maintainer entry.
76534
76535 2003-01-16  Jim Meyering  <jim@meyering.net>
76536
76537         * m4/regex.m4: The `regex' struct is both input and output.
76538         Initialize it before each use.  Patch by Tim Waugh.
76539
76540 2003-01-16  Bruno Haible  <bruno@clisp.org>
76541
76542         * MODULES.html.sh: Add a table of contents. Add the module name as
76543         leftmost column. Add hyperlinks.
76544
76545 2003-01-15  Bruno Haible  <bruno@clisp.org>
76546
76547         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76548
76549 2003-01-15  Bruno Haible  <bruno@clisp.org>
76550
76551         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76552         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76553         suffix.
76554
76555 2003-01-15  Bruno Haible  <bruno@clisp.org>
76556
76557         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76558
76559 2003-01-15  Bruno Haible  <bruno@clisp.org>
76560
76561         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76562         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76563
76564 2003-01-14  Jim Meyering  <jim@meyering.net>
76565
76566         * lib/same.c (same_name): Tweak a comment.
76567
76568 2003-01-14  Bruno Haible  <bruno@clisp.org>
76569
76570         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76571         when a string comparison is sufficient.
76572
76573 2003-01-14  Bruno Haible  <bruno@clisp.org>
76574
76575         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76576         'unsigned int'.
76577
76578 2003-01-14  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/hash-pjw.c: Add comment about low quality of this function.
76581
76582 2003-01-13  Bruno Haible  <bruno@clisp.org>
76583
76584         * modules/stpcpy: Distribute lib/stpcpy.h.
76585         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76586
76587 2003-01-13  Bruno Haible  <bruno@clisp.org>
76588
76589         * modules/*: Add a description.
76590         * modules/strpbrk: Fix Makefile.am snippet.
76591         * modules/strtoimax: Fix dependencies.
76592         * modules/strtoumax: Likewise.
76593
76594 2003-01-13  Bruno Haible  <bruno@clisp.org>
76595
76596         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76597         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76598         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76599
76600 2003-01-13  Bruno Haible  <bruno@clisp.org>
76601
76602         * gnulib-tool (func_create_testdir): Store config/* files in the main
76603         directory.
76604         * config.rpath: Move to ...
76605         * config/config.rpath: ... here.
76606         * modules/gettext: Contains config/config.rpath, not config.rpath.
76607         * modules/iconv: Likewise.
76608
76609 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76610
76611         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76612         to avoid collisions with libcurses and libreadline.
76613
76614         * m4/getstr.m4: Remove.
76615         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76616
76617 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76618
76619         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76620         to avoid collisions with libcurses and libreadline.
76621
76622         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76623         * lib/getstr.h, getstr.c: Remove.
76624         * lib/getline.c: Include "getline.h", to check interface.
76625         Move body of old getstr.c here: this defines MIN_CHUNK and
76626         declares getdelim2, which is renamed from getstr.
76627         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76628
76629         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76630         All uses changed.
76631         * lib/linebuffer.h: Likewise.
76632         (readline): Remove backward-compatibility macro.
76633
76634 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76635
76636         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76637         to avoid collisions with libcurses and libreadline.
76638         * getstr: Remove.
76639         * MODULES.html.sh: Remove getstr.
76640         * modules/getline: Depend on unlocked-io, not getstr.
76641
76642 2003-01-12  Jim Meyering  <jim@meyering.net>
76643
76644         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76645
76646 2003-01-10  Bruno Haible  <bruno@clisp.org>
76647
76648         * modules/alloca: Change Makefile.am requirements. Simplify Include
76649         requirements. Add lib/alloca_.h to file list.
76650
76651 2003-01-10  Bruno Haible  <bruno@clisp.org>
76652
76653         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76654
76655 2003-01-10  Bruno Haible  <bruno@clisp.org>
76656
76657         * lib/alloca_.h: New file.
76658         * lib/getdate.y: Unconditionally include alloca.h.
76659         * lib/makepath.c: Likewise.
76660         * lib/setenv.c: Likewise.
76661         * lib/userspec.c: Likewise.
76662
76663 2003-01-09  Karl Berry  <karl@gnu.org>
76664
76665         * MODULES.html.sh: include `dirname $0` in PATH, to find
76666         gnulib-tool.
76667
76668 2003-01-09  Bruno Haible  <bruno@clisp.org>
76669
76670         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76671         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76672
76673 2003-01-09  Bruno Haible  <bruno@clisp.org>
76674
76675         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76676
76677 2003-01-09  Bruno Haible  <bruno@clisp.org>
76678
76679         * lib/stdbool.h.in: New file.
76680
76681 2003-01-09  Bruno Haible  <bruno@clisp.org>
76682
76683         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76684         * MODULES.html.sh: Likewise.
76685
76686 2003-01-08  Jim Meyering  <jim@meyering.net>
76687
76688         * lib/full-write.c: Undefine and define-away `const' after inclusion
76689         of errno.h, not before.  Suggestion from Bruno Haible.
76690
76691 2003-01-08  Bruno Haible  <bruno@clisp.org>
76692
76693         * modules/full-read: Depend on full-write.
76694
76695 2003-01-08  Bruno Haible  <bruno@clisp.org>
76696
76697         * lib/safe-read.c: Include specification header first, to ensure its
76698         selfcontainedness.
76699         * lib/full-write.c: Likewise.
76700
76701 2003-01-07  Jim Meyering  <jim@meyering.net>
76702
76703         * lib/full-write.c: Rework so that it may serve to define full_read,
76704         too.
76705         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76706
76707 2003-01-07  Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76710         <inttypes.h>.
76711         * lib/xstrtol.h: Likewise.
76712         * lib/xstrtoimax.c: Likewise.
76713         * lib/xstrtoumax.c: Likewise.
76714         * lib/human.h: Likewise.
76715
76716         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76717         on systems that have <inttypes.h> but not <stdint.h>.
76718
76719 2003-01-07  Bruno Haible  <bruno@clisp.org>
76720
76721         * MODULES.html.sh: Add copyright notice.
76722         (missed_files): Omit CVS directory entries.
76723         (func_module): Make it work with sed-3.02.
76724         * MODULES.txt: Remove file.
76725
76726 2003-01-06  Jim Meyering  <jim@meyering.net>
76727
76728         * lib/version-etc.c: Update year in translatable copyright string.
76729
76730 2003-01-03  Karl Berry  <karl@gnu.org>
76731
76732         * config/config.{guess,sub}: update from prep.
76733
76734 2003-01-02  Karl Berry  <karl@gnu.org>
76735
76736         * doc/COPYING.DOC: belatedly updated to 1.2.
76737
76738 2003-01-01  Karl Berry  <karl@gnu.org>
76739
76740         * gnulib-tool (func_verify_module): report module name $module in
76741         error message, not $1.
76742         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76743         be created, only if it doesn't exist.
76744         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76745
76746 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76747
76748         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76749
76750 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76751
76752         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76753         memcmp if strcoll doesn't work.
76754
76755 2002-12-31  Bruno Haible  <bruno@clisp.org>
76756
76757         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76758         nonempty.
76759
76760 2002-12-31  Bruno Haible  <bruno@clisp.org>
76761
76762         * lib/memcoll.c (STRCOLL): New macro.
76763         (memcoll): Use it.
76764
76765 2002-12-31  Bruno Haible  <bruno@clisp.org>
76766
76767         * lib/localcharset.h: New file.
76768         * lib/localcharset.c: Include it.
76769         * lib/unicodeio.c: Likewise.
76770
76771 2002-12-31  Bruno Haible  <bruno@clisp.org>
76772
76773         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76774         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76775
76776 2002-12-31  Bruno Haible  <bruno@clisp.org>
76777
76778         * lib/getline.h: Include <stddef.h>, for size_t.
76779
76780         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76781         * lib/unicodeio.c: Don't include <stddef.h>.
76782
76783 2002-12-31  Bruno Haible  <bruno@clisp.org>
76784
76785         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76786         HAVE_TM_ZONE.
76787
76788 2002-12-24  Karl Berry  <karl@gnu.org>
76789
76790         * config/config.guess: update from prep.
76791
76792 2002-12-24  Bruno Haible  <bruno@clisp.org>
76793
76794         General infrasructure.
76795         * m4/README: Rewritten.
76796         * m4/onceonly.m4: New file.
76797         * m4/onceonly_2_57.m4: New file.
76798
76799         Module atexit.
76800         * m4/atexit.m4: New file.
76801
76802         Module strtod.
76803         * m4/strtod.m4: New file.
76804
76805         Module strtol.
76806         * m4/strtol.m4: New file.
76807
76808         Module strtoul.
76809         * m4/strtoul.m4: New file.
76810
76811         Module memchr.
76812         * m4/memchr.m4: New file.
76813
76814         Module memcmp.
76815         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76816         (jm_FUNC_MEMCMP): Invoke it.
76817
76818         Module memcpy.
76819         * m4/memcpy.m4: New file.
76820
76821         Module memmove.
76822         * m4/memmove.m4: New file.
76823
76824         Module memset.
76825         * m4/memset.m4: New file.
76826
76827         Module strcspn.
76828         * m4/strcspn.m4: New file.
76829
76830         Module strpbrk.
76831         * m4/strpbrk.m4: New file.
76832
76833         Module strstr.
76834         * m4/strstr.m4: New file.
76835
76836         Module strerror.
76837         * m4/strerror.m4: New file.
76838
76839         Module mktime.
76840         * m4/mktime.m4: Renamed from jm-mktime.m4.
76841         (gl_PREREQ_MKTIME): New macro.
76842         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76843
76844         Module malloc.
76845         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76846         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76847         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76848
76849         Module realloc.
76850         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76851         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76852         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76853
76854         Module strftime.
76855         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76856         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76857         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76858         gl_TM_GMTOFF.
76859         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76860
76861         Module xalloc.
76862         * m4/xalloc.m4: New file.
76863
76864         Module alloca.
76865         * m4/alloca.m4: New file.
76866
76867         Module putenv.
76868         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76869         (jm_FUNC_PUTENV): Invoke it.
76870
76871         Module setenv.
76872         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76873         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76874         when invoked twice.
76875         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76876         gt_FUNC_SETENV.
76877
76878         Module memrchr.
76879         * m4/memrchr.m4: New file.
76880
76881         Module stpcpy.
76882         * m4/stpcpy.m4: New file.
76883
76884         Module strcase.
76885         * m4/strcase.m4: New file.
76886
76887         Module strdup.
76888         * m4/strdup.m4: New file.
76889
76890         Module strnlen.
76891         * m4/strnlen.m4: New file.
76892
76893         Module strndup.
76894         * m4/strndup.m4: New file.
76895
76896         Module xstrtod.
76897         * m4/xstrtod.m4: New file.
76898
76899         Module xstrtol.
76900         * m4/xstrtol.m4: New file.
76901
76902         Module getdate.
76903         * m4/getdate.m4: New file.
76904
76905         Module unlocked-io.
76906         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76907         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76908         * m4/jm-glibc-io.m4n: Remove file.
76909
76910         Module long-options.
76911         * m4/long-options.m4: New file.
76912
76913         Module md5.
76914         * m4/md5.m4: New file.
76915
76916         Module sha.
76917         * m4/sha.m4: New file.
76918
76919         Module getstr.
76920         * m4/getstr.m4: New file.
76921
76922         Module getline.
76923         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76924         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76925         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76926         simply getline. Infoke gl_PREREQ_GETLINE.
76927
76928         Module obstack.
76929         * m4/obstack.m4: New file.
76930
76931         Module hash.
76932         * m4/hash.m4: New file.
76933
76934         Module readtokens.
76935         * m4/readtokens.m4: New file.
76936
76937         Module strverscmp.
76938         * m4/strverscmp.m4: New file.
76939
76940         Module stdbool.
76941         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76942         OSF/1.
76943
76944         Module strtoll.
76945         * m4/strtoll.m4: New file.
76946
76947         Module strtoull.
76948         * m4/strtoull.m4: New file.
76949
76950         Module strtoimax.
76951         * m4/strtoimax.m4: New file.
76952
76953         Module strtoumax.
76954         * m4/strtoumax.m4: New file.
76955
76956         Module xstrtoimax.
76957         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76958         jm_AC_PREREQ_XSTRTOIMAX.
76959         Moved the strtol prerequisites to strtol.m4.
76960         Moved the strtoll prerequisites to strtoll.m4.
76961         Moved the strtoimax prerequisites to strtoimax.m4.
76962
76963         Module xstrtoumax.
76964         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76965         jm_AC_PREREQ_XSTRTOUMAX.
76966         Moved the strtoul prerequisites to strtoul.m4.
76967         Moved the strtoull prerequisites to strtoull.m4.
76968         Moved the strtoumax prerequisites to strtoumax.m4.
76969
76970         Module chown.
76971         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76972         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76973
76974         Module dup2.
76975         * m4/dup2.m4: New file.
76976
76977         Module ftruncate.
76978         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76979         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76980
76981         Module getgroups.
76982         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76983         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76984
76985         Module gettimeofday.
76986         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76987         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76988         gl_PREREQ_GETTIMEOFDAY.
76989
76990         Module mkdir.
76991         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76992         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76993
76994         Module mkstemp.
76995         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76996         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76997         jm_AC_TYPE_UINTMAX_T.
76998         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76999
77000         Module stat.
77001         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77002         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77003
77004         Module lstat.
77005         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77006         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77007
77008         Module timespec.
77009         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77010         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77011         * m4/st_mtim.m4: Indentation.
77012
77013         Module nanosleep.
77014         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77015         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77016         gl_PREREQ_NANOSLEEP.
77017
77018         Module regex.
77019         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77020         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77021         (gl_REGEX): New macro.
77022
77023         Module rename.
77024         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77025         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77026
77027         Module rmdir.
77028         * m4/rmdir.m4: New file.
77029
77030         Module utime.
77031         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77032         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77033         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77034
77035         Module dirname.
77036         * m4/dirname.m4: New file.
77037
77038         Module getopt.
77039         * m4/getopt.m4: New file.
77040
77041         Module unistd-safer.
77042         * m4/unistd-safer.m4: New file.
77043
77044         Module fnmatch.
77045         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77046         declaration.
77047         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77048         (gl_FUNC_FNMATCH_POSIX): New macro.
77049         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77050         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77051         simply fnmatch.
77052
77053         Module exclude.
77054         * m4/exclude.m4: New file.
77055
77056         Module human.
77057         * m4/human.m4: New file.
77058
77059         Module acl.
77060         * m4/acl.m4: Nop.
77061
77062         Module backupfile.
77063         * m4/backupfile.m4: New file.
77064         * m4/d-ino.m4: Indentation.
77065
77066         Module fsusage.
77067         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77068         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77069         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77070
77071         Module dirfd.
77072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77073         requirements.
77074
77075         Module euidaccess.
77076         * m4/euidaccess.m4: New file.
77077
77078         Module file-type.
77079         * m4/file-type.m4: New file.
77080
77081         Module fileblocks.
77082         * m4/fileblocks.m4: New file.
77083
77084         Module filemode.
77085         * m4/filemode.m4: New file.
77086
77087         Module isdir.
77088         * m4/isdir.m4: New file.
77089
77090         Module lchown.
77091         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77092         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77093
77094         Module makepath.
77095         * m4/makepath.m4: New file.
77096
77097         Module modechange.
77098         * m4/modechange.m4: New file.
77099
77100         Module mountlist.
77101         * m4/mountlist.m4: New file.
77102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77103         Indentation.
77104
77105         Module path-concat.
77106         * m4/path-concat.m4: New file.
77107
77108         Module pathmax.
77109         * m4/pathmax.m4: New file.
77110
77111         Module same.
77112         * m4/same.m4: New file.
77113
77114         Module save-cwd.
77115         * m4/save-cwd.m4: New file.
77116
77117         Module savedir.
77118         * m4/savedir.m4: New file.
77119
77120         Module xgetcwd.
77121         * m4/xgetcwd.m4: New file.
77122         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77123
77124         Module xreadlink.
77125         * m4/xreadlink.m4: New file.
77126
77127         Module safe-read.
77128         * m4/safe-read.m4: New file.
77129
77130         Module safe-write.
77131         * m4/safe-write.m4: New file.
77132
77133         Module closeout.
77134         * m4/closeout.m4: New file.
77135
77136         Module stdio-safer.
77137         * m4/stdio-safer.m4: New file.
77138
77139         Module getpass.
77140         * m4/getpass.m4: New file.
77141
77142         Module getugroups.
77143         * m4/getugroups.m4: New file.
77144
77145         Module group-member.
77146         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77147         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77148
77149         Module idcache.
77150         * m4/idcache.m4: New file.
77151
77152         Module userspec.
77153         * m4/userspec.m4: New file.
77154
77155         Module gettime.
77156         * m4/clock_time.m4: New file.
77157         * m4/gettime.m4: New file.
77158
77159         Module settime.
77160         * m4/settime.m4: New file.
77161
77162         Module posixtm.
77163         * m4/posixtm.m4: New file.
77164
77165         Module gethostname.
77166         * m4/gethostname.m4: New file.
77167
77168         Module canon-host.
77169         * m4/canon-host.m4: New file.
77170
77171         Module gettext.
77172         * m4/codeset.m4: New file, from gettext-0.11.5.
77173         * m4/gettext.m4: New file, from gettext-0.11.5.
77174         * m4/glibc21.m4: New file, from gettext-0.11.5.
77175         * m4/iconv.m4: New file, from gettext-0.11.5.
77176         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77177         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77178         * m4/inttypes.m4: New file, from gettext-0.11.5.
77179         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77180         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77181         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77182         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77183         * m4/lib-link.m4: New file, from gettext-0.11.5.
77184         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77185         * m4/progtest.m4: New file, from gettext-0.11.5.
77186         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77187         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77188         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77189
77190         Module localcharset.
77191         * m4/localcharset.m4: New file.
77192
77193         Module hard-locale.
77194         * m4/hard-locale.m4: New file.
77195
77196         Module mbswidth.
77197         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77198         onceonly macros.
77199         * m4/mbrtowc.m4: Add comment.
77200
77201         Module memcasecmp.
77202         * m4/memcasecmp.m4: New file.
77203
77204         Module memcoll.
77205         * m4/memcoll.m4: New file.
77206
77207         Module unicodeio.
77208         * m4/unicodeio.m4: New file.
77209
77210         Module rpmatch.
77211         * m4/rpmatch.m4: New file.
77212
77213         Module yesno.
77214         * m4/yesno.m4: New file.
77215
77216         Module exitfail.
77217         * m4/exitfail.m4: New file.
77218
77219         Module c-stack.
77220         * m4/c-stack.m4 (gl_C_STACK): New macro.
77221         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77222
77223         Module error.
77224         * m4/error.m4 (gl_ERROR): New macro.
77225         (jm_PREREQ_ERROR): Use onceonly macros.
77226
77227         Module fatal.
77228         * m4/fatal.m4: New file.
77229
77230         Module getloadavg.
77231         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77232         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77233
77234         Module getpagesize.
77235         * m4/getpagesize.m4: New file.
77236
77237         Module getusershell.
77238         * m4/getusershell.m4: New file.
77239
77240         Module physmem.
77241         * m4/physmem.m4: New file.
77242
77243         Module posixver.
77244         * m4/posixver.m4: New file.
77245
77246         Module quotearg.
77247         * m4/quotearg.m4: New file.
77248
77249         Module quote.
77250         * m4/quote.m4: New file.
77251
77252         Module readutmp.
77253         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77254
77255         Module sig2str.
77256         * m4/sig2str.m4: New file.
77257
77258         Other.
77259         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77260         ulonglong.m4.
77261         * m4/intmax_t.m4: New file.
77262         * m4/d-type.m4: Indentation.
77263         * m4/jm-macros.m4: Update.
77264         * m4/prereq.m4 (jm_PREREQ): Update.
77265         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77266         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77267         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77268         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77269         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77270         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77271         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77272         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77273         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77274         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77275         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77276         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77277         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77278         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77279         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77280         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77281         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77282         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77283         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77284
77285 2002-12-24  Bruno Haible  <bruno@clisp.org>
77286
77287         * MODULES.txt: Update according to m4/ changes.
77288
77289         Module gettext.
77290         * config.rpath: New file, from gettext-0.11.5.
77291
77292         * modules/*: New module descriptions.
77293         * gnulib-tool: New file.
77294         * MODULES.html.sh: New file.
77295
77296 2002-12-21  Karl Berry  <karl@gnu.org>
77297
77298         * doc/fdl.texi: update to version 1.2.
77299
77300 2002-12-19  Karl Berry  <karl@gnu.org>
77301
77302         * config/config.guess: update from prep.
77303
77304 2002-12-18  Bruno Haible  <bruno@clisp.org>
77305
77306         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77307         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77308
77309 2002-12-17  Bruno Haible  <bruno@clisp.org>
77310
77311         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77312         stdlib.h, string.h.
77313
77314 2002-12-17  Bruno Haible  <bruno@clisp.org>
77315
77316         * lib/canon-host.c (strdup): Remove unused declaration.
77317
77318         * lib/fsusage.c: Include full_read.h.
77319         (get_fs_usage): Use full_read instead of safe_read.
77320
77321         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77322
77323 2002-12-12  Karl Berry  <karl@gnu.org>
77324
77325         * config/config.guess: update from prep.
77326
77327 2002-12-11  Bruno Haible  <bruno@clisp.org>
77328
77329         * m4/setenv.m4: New file, from gettext-0.11.5.
77330
77331 2002-12-11  Bruno Haible  <bruno@clisp.org>
77332
77333         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77334         not unsetenv().
77335         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77336         modifications:
77337
77338         2002-12-11  Bruno Haible  <bruno@clisp.org>
77339
77340                 * setenv.c (alloca): Fall back to malloc.
77341                 (freea): New macro.
77342                 (setenv): Use freea() to free memory allocated with alloca().
77343
77344         2002-11-13  Bruno Haible  <bruno@clisp.org>
77345
77346                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77347                 function declarations.
77348                 * unsetenv.c (unsetenv): Likewise.
77349
77350         2002-03-04  Bruno Haible  <bruno@clisp.org>
77351
77352                 Portability to AIX 4.3.3.
77353                 * unsetenv.c: New file, extracted from setenv.c.
77354                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77355
77356         2001-12-20  Bruno Haible  <bruno@clisp.org>
77357
77358                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77359                 use malloc instead. For SunOS 4.
77360
77361         2001-12-11  Bruno Haible  <bruno@clisp.org>
77362
77363                 * setenv.c: Declare alloca.
77364                 (compar_fn_t): New typedef.
77365                 (KNOWN_VALUE, STORE_VALUE): Use it.
77366
77367         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77368         setenv.h.
77369
77370 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77371
77372         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77373         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77374         Choose values that are less likely to collide with system fnmatch
77375         options.
77376         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77377         defined (e.g., a pure POSIX system).
77378         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77379         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77380
77381 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77382
77383         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77384         a pain in practice to deal with generated m4 files.  This change
77385         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77386
77387         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77388         and jm-glibc-io.m4, as they are no longer a special case.
77389         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77390         kludge and the auto-generation stuff.  Check only whether the
77391         functions are declared, not whether they exist, since older hosts
77392         that don't declare the functions can't use the optimization anyway.
77393
77394 2002-12-06  Jim Meyering  <jim@meyering.net>
77395
77396         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77397
77398         Merge in changes from libc's misc/error.c, in preparation
77399         for the merge of gnulib's changes back into libc.
77400
77401         * lib/error.c (_): Define only if not already defined.
77402         Move definition to follow all #include directives.
77403         Include unlocked-io.h only if !_LIBC.
77404         [_LIBC]: Include <libio/libioP.h>.
77405         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77406         (fflush): Tweak definition to use INTUSE.
77407         (putc): Define.
77408
77409 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77410
77411         * lib/alloca.c [defined emacs]: Include "lisp.h".
77412         (xalloc_die) [defined emacs]: New macro.
77413         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77414         [! defined emacs]: Include <xalloc.h>.
77415         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77416         (pointer): Typedef to POINTER_TYPE *.
77417         (malloc): Remove decl; we now always use xmalloc.
77418         (alloca): Use old-style definition, since Emacs needs this.
77419         Check for arithmetic overflow when computing combined size.
77420
77421 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77422
77423         Do not generate unlocked-io.h automatically, since it's easier to
77424         maintain it by hand.
77425
77426         * lib/unlocked-io.h: New file, from GNU diffutils,
77427         but with proper copyright notice and attribution.
77428         * lib/gen-uio: Remove.
77429         * lib/Makefile.am: Add copyright notice.
77430         (libfetish_a_SOURCES): Add unlocked-io.h.
77431         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77432         (DISTCLEANFILES, io_functions): Remove macros.
77433         (EXTRA_DIST): Remove gen_uio.
77434         (unlocked-io.h): Remove rule.
77435
77436 2002-12-04  Jim Meyering  <jim@meyering.net>
77437
77438         Reflect the fact that stat.c and lstat.c are no longer generated.
77439         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77440         (DISTCLEANFILES): Likewise.
77441         (EXTRA_DIST): Likewise.
77442         (all_local): Don't depend on stat.c or lstat.c.
77443         (stat.c, lstat.c): Remove rules.
77444         (EXTRA_DIST): Remove xstat.in.
77445
77446         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77447         * lib/stat.c: New file.  Contents mostly from xstat.in.
77448         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77449         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77450
77451         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77452         too.
77453         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77454
77455 2002-12-03  Jim Meyering  <jim@meyering.net>
77456
77457         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77458         but not semantics, to minimize the differences between these two files.
77459         (safe_read): Change comment to mention SAFE_READ_ERROR.
77460
77461         * lib/safe-read.c (IS_EINTR): Define.
77462         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77463
77464 2002-12-02  Jim Meyering  <jim@meyering.net>
77465
77466         * lib/safe-read.c (EINTR): Define.
77467         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77468         (INT_MAX): Provide fallback.
77469         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77470
77471         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77472
77473 2002-12-02  Bruno Haible  <bruno@clisp.org>
77474
77475         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77476         Define, taken from safe-read.c.
77477         (INT_MAX): Provide fallback.
77478         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77479         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77480
77481         * lib/safe-read.c (EINTR): Remove definition.
77482         (safe_read): Don't use EINTR if it is absent.
77483
77484 2002-12-01  Jim Meyering  <jim@meyering.net>
77485
77486         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77487         zero.
77488         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77489
77490 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77491
77492         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77493         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77494         with `if (! (value < limit)) abort ();', for readability.
77495
77496 2002-11-26  Karl Berry  <karl@gnu.org>
77497
77498         * lib/strdup.c: copy from libc again, with jim's ok.
77499         * lib/.cppi-disable: re-add strdup.c
77500
77501 2002-11-25  Karl Berry  <karl@gnu.org>
77502
77503         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77504         instead of "strtol.c".
77505
77506 2002-11-25  Karl Berry  <karl@gnu.org>
77507
77508         * config/install-sh: update from automake for variable quoting, $0 in
77509         error msgs, etc.
77510
77511         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77512         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77513         entry.
77514
77515 2002-11-25  Jim Meyering  <jim@meyering.net>
77516
77517         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77518
77519 2002-11-24  Karl Berry  <karl@gnu.org>
77520
77521         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77522         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77523
77524 2002-11-24  Jim Meyering  <jim@meyering.net>
77525
77526         Update from coreutils:
77527
77528         * lib/mktime.c: Merge in changes from libc.
77529
77530         Avoid a link-time failure on some Linux systems.
77531         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77532         (otherwise).
77533         (__mon_yday): Declare with the STATIC attribute.
77534         (__mktime_internal): Likewise.
77535         Based on a report from Greg Schafer.
77536
77537 2002-11-23  Jim Meyering  <jim@meyering.net>
77538
77539         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77540         Use `unsigned', not `int', as type of index.
77541
77542         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77543
77544         * lib/fsusage.c: Remove unneeded parentheses around operands of
77545         `defined'.
77546
77547 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77548
77549         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77550         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77551         so that we can be included first.
77552         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77553         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77554         No need to include stddef.h or sys/types.h any more.
77555         Surround local include files with "", not "<>".
77556         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77557         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77558         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77559         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77560         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77561         (ISPRINT): Remove; no longer needed now that we assume C89.
77562
77563         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77564         Preserve errno.
77565
77566         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77567         quotearg_char): Use SIZE_MAX rather than
77568         (size_t) -1 when we are talking about "infinity".
77569
77570         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77571
77572 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77573
77574         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77575         hint that one should use `if (! x) abort ();' rather than `assert
77576         (x);', and anyway it's one less thing to worry about configuring.
77577         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77578         hash_rehash, hash_insert): Use abort rather than assert.
77579
77580 2002-11-22  Bruno Haible  <bruno@clisp.org>
77581
77582         * lib/safe-read.h: Assume C89. Add comments.
77583         (safe_read): Change return type to size_t.
77584         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77585         byte counts > SSIZE_MAX correctly.
77586         * lib/safe-write.h: New file.
77587         * lib/safe-write.c: New file.
77588         * lib/full-read.h: New file.
77589         * lib/full-read.c: New file.
77590         * lib/full-write.h: Assume C89. Add comments.
77591         * lib/full-write.c: Include safe-write.h.
77592         (full_write): Rewritten to use safe_write.
77593         Suggested by Jim Meyering and Paul Eggert.
77594
77595 2002-11-21  Jim Meyering  <jim@meyering.net>
77596
77597         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77598
77599         Merge in changes from the coreutils.
77600
77601         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77602         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77603         <stdint.h>.
77604         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77605         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77606         int.  Work more efficiently if X is the same width as uintmax_t.
77607         Do not compare X to -1, to avoid bogus compiler warning.
77608         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77609         Don't assume that f_frsize and f_bsize are the same type.
77610
77611         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77612         warning on FreeBSD.
77613
77614         * lib/makepath.c (make_path): Restore umask *before* creating the final
77615         component.
77616         (make_path): Minor reformatting.
77617
77618         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77619         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77620         HAVE_MALLOC/HAVE_REALLOC.
77621
77622         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77623         dummy ones.  At least on GNU/Linux systems, `auto' means something
77624         else.
77625         From Michael Stone.
77626
77627 2002-11-21  Bruno Haible  <bruno@clisp.org>
77628
77629         Remove case insensitive option matching.
77630         * lib/argmatch.h (argcasematch): Remove declaration.
77631         (ARGCASEMATCH): Remove macro.
77632         (__xargmatch_internal): Remove case_sensitive argument.
77633         (XARGMATCH): Update.
77634         (XARGCASEMATCH): Remove macro.
77635         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77636         case_sensitive argument.
77637         (argcasematch): Remove function.
77638         (__xargmatch_internal): Remove case_sensitive argument.
77639         (main): Use XARGMATCH instead of XARGCASEMATCH.
77640
77641         * lib/xmalloc.c: Change compile-time error message. Add comment about
77642         required autoconf version.
77643
77644 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77645
77646         Merge argmatch cleanups from Bison.  Assume C89.
77647
77648         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77649         Include stdlib.h, for EXIT_FAILURE.
77650         Always include <string.h>, since we assume C89.
77651         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77652         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77653         Include <stddef.h> instead, since it's all we need for size_t.
77654         (PARAMS): Remove.  All uses removed.
77655         (ARRAY_CARDINALITY): Do not bother to #undef.
77656         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77657         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77658         Remove unnecessary parentheses.
77659         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77660         Insert necessary parentheses.
77661         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77662         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77663
77664 2002-11-19  Bruno Haible  <bruno@clisp.org>
77665
77666         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77667         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77668
77669         * lib/mbswidth.h (PARAMS): Remove macro.
77670         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77671         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77672
77673         * lib/gcd.h (PARAMS): Remove macro.
77674         (gcd): Use ANSI C function declarations.
77675         * lib/gcd.c (gcd): Likewise.
77676
77677 2002-11-15  Bruno Haible  <bruno@clisp.org>
77678
77679         * lib/strcspn.c: Include <stddef.h>.
77680         (strcspn): Use ANSI C function declaration. Change return type to
77681         size_t. Use NULL.
77682         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77683         (strpbrk): Use NULL.
77684         * lib/strpbrk.h (PARAMS): Remove macro.
77685         (strpbrk): Use ANSI C function declaration.
77686         * lib/strstr.c: Don't include <sys/types.h>.
77687         * lib/strstr.h (PARAMS): Remove macro.
77688         (strstr): Use ANSI C function declarations.
77689
77690 2002-11-14  Karl Berry  <karl@gnu.org>
77691
77692         * config/mkinstalldirs: `do' on separate line, instead of
77693         `for var; do'.
77694
77695 2002-11-06  Bruno Haible  <bruno@clisp.org>
77696
77697         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77698         * lib/gcd.c (gcd): Likewise.
77699
77700 2002-11-05  Bruno Haible  <bruno@clisp.org>
77701
77702         * lib/gcd.h: New file, from gettext-0.11.5.
77703         * lib/gcd.c: New file, from gettext-0.11.5.
77704
77705 2002-11-05  Bruno Haible  <bruno@clisp.org>
77706
77707         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77708         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77709         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77710         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77711
77712         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77713         <libintl.h>.
77714         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77715         <libintl.h>.
77716
77717         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77718         * lib/human.c: Include gettext.h instead of <libintl.h>.
77719         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77720         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77721         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77722         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77723         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77724         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77725         (textdomain): Remove definition.
77726         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77727
77728         * lib/long-options.c: Remove include of <libintl.h> and definition of
77729         _.
77730         * lib/same.c: Remove include of <libintl.h> and definition of _.
77731
77732 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77733
77734         * lib/config.charset: A few additions for Solaris.
77735
77736 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77737
77738         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77739         * lib/localcharset.c (locale_charset): Declare as extern "C".
77740
77741 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77742
77743         * lib/config.charset: msdos in uk_UA uses CP1125.
77744
77745 2002-11-04  Bruno Haible  <bruno@clisp.org>
77746
77747         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77748         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77749         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77750         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77751         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77752
77753 2002-11-04  Bruno Haible  <bruno@clisp.org>
77754
77755         * lib/localcharset.c (locale_charset): Don't return an empty string.
77756
77757 2002-11-04  Bruno Haible  <bruno@clisp.org>
77758
77759         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77760         aliases.
77761
77762 2002-11-04  Bruno Haible  <bruno@clisp.org>
77763
77764         * lib/config.charset: Update for newest glibc. Add canonical names
77765         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77766
77767 2002-11-04  Bruno Haible  <bruno@clisp.org>
77768
77769         * lib/config.charset: Add support for NetBSD.
77770
77771 2002-11-04  Bruno Haible  <bruno@clisp.org>
77772
77773         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77774
77775 2002-11-01  Bruno Haible  <bruno@clisp.org>
77776
77777         * configure.in: Add AC_CONFIG_AUX_DIR call.
77778         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77779         test/Makefile.
77780         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77781
77782 2002-09-28  Karl Berry  <karl@gnu.org>
77783
77784         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77785         installed automake until the next release, since changes have been
77786         made.
77787
77788 2002-09-25  Karl Berry  <karl@gnu.org>
77789
77790         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77791         * lib/getopt*: copy from libc/posix.
77792         * lib/gettext.h: copy from gettext.
77793         * lib/.cppi-disable: add strdup.c, gettext.h.
77794
77795 2002-09-25  Karl Berry  <karl@gnu.org>
77796
77797         * config/srclist.txt: enable gettext.h check.
77798         * config/config.{guess,sub}: update from prep.
77799         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77800                 from automake 1.6.3.
77801         See srclist*.
77802
77803 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77804
77805         * regex.c (PATFETCH): Remove the translating fetch.
77806         (PATFETCH_RAW): Rename to PATFETCH.
77807         (set_image_of_range): New fun.
77808         (SET_RANGE_TABLE_WORK_AREA): Use it.
77809         (regex_compile): Don't translate the pattern chars so eagerly.
77810         Only do it when inserting an `exactn' bytecode or when handling
77811         a char-range.
77812         (mutually_exclusive_p): Avoid empty statement.
77813
77814 2002-07-06  Jim Meyering  <meyering@lucent.com>
77815
77816         * m4/README: Don't mention Makefile.am.in.
77817         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77818
77819 2002-07-01  Jim Meyering  <meyering@lucent.com>
77820
77821         * lib/c-stack.c: Include sys/time.h.
77822         From Volker Borchert.
77823
77824 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77825
77826         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77827
77828 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77829
77830         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77831         New macro.  Use it uniformly instead of
77832         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77833         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77834         reported by Vin Shelton.
77835
77836 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77837
77838         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77839         Do not assume SA_SIGINFO behavior.
77840         Bug reported by Jim Meyering on NetBSD 1.5.2.
77841
77842 2002-06-22  Jim Meyering  <meyering@lucent.com>
77843
77844         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77845         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77846
77847         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77848         now that configure.ac uses AC_GNU_SOURCE.
77849         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77850         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77851
77852         Update to latest tools.  Suggestions from Paul Eggert.
77853         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77854         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77855         * m4/fnmatch.m4: Likewise.
77856         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77857         to AC_HEADER_STDBOOL
77858
77859 2002-06-22  Jim Meyering  <meyering@lucent.com>
77860
77861         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77862         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77863
77864 2002-06-22  Jim Meyering  <meyering@lucent.com>
77865
77866         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77867
77868         * lib/exitfail.c, exitfail.h: Likewise.
77869         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77870
77871         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77872         of fnmatch.h.
77873         (EXTRA_DIST): Add fnmatch_loop.c.
77874         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77875
77876         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77877         * lib/fnmatch.c: Update from diffutils-2.8.2.
77878         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77879         * lib/fnmatch.h: Remove file.
77880
77881 2002-06-21  Jim Meyering  <meyering@lucent.com>
77882
77883         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77884         * m4/mbrtowc.m4: Likewise.
77885
77886         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77887         * m4/mbswidth.m4: Reflect name change:
77888         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77889         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77890
77891         * m4/lib-link.m4: Update from gettext-0.11.2.
77892         * m4/gettext.m4: Likewise.
77893
77894         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77895         From Alfred M. Szmidt.
77896
77897 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77898
77899         * lib/file-type.h: Report an error if neither S_ISREG nor
77900         S_IFREG is defined, instead of using a test specific to glibc
77901         2.2.  This should be safe, since POSIX requires S_ISREG and
77902         Unix Version 7 had S_IFREG.  We don't need to check for
77903         <sys/types.h> since we don't use any symbols that it defines.
77904
77905 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77906
77907         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77908         $@-t, so that each temporary file name is unique and valid in the first
77909         8 characters, for operation under DOS.
77910
77911 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77912
77913         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77914
77915 2002-06-15  Jim Meyering  <meyering@lucent.com>
77916
77917         Work even with DJGPP 2.03, which lacks support for symlinks.
77918         From Richard Dawe.
77919         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77920         is defined.
77921         * lib/lchown.c (S_ISLNK): Likewise.
77922
77923 2002-06-15  Jim Meyering  <meyering@lucent.com>
77924
77925         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77926         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77927         have been included before this file.
77928
77929 2002-06-14  Jim Meyering  <meyering@lucent.com>
77930
77931         * lib/file-type.h: Use the version from diffutils-2.8.2.
77932         * lib/file-type.c: Likewise.
77933
77934 2002-06-07  Jim Meyering  <meyering@lucent.com>
77935
77936         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77937         They're needed at least for NetBSD 1.5.2.
77938         ($statxfs_includes): Include those same headers.
77939         ($statxfs_includes): Include sys/vfs.h if available.
77940         ($statxfs_includes): Likewise for sys/statvfs.h.
77941         Check for the following members in both structs statfs and statvfs:
77942         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77943
77944 2002-06-01  Jim Meyering  <meyering@lucent.com>
77945
77946         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77947         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77948
77949 2002-05-28  Jim Meyering  <meyering@lucent.com>
77950
77951         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77952         Reported by Volker Borchert.
77953
77954 2002-05-27  Jim Meyering  <meyering@lucent.com>
77955
77956         Fix a problem seen only on nonconforming systems whereby ls.c's
77957         use of localtime, and then of gettimeofday would cause trouble:
77958         the localtime call used to initialize rpl_gettimeofday's save
77959         mechanism would clobber ls's current local time information so
77960         that in any long listing the first file would always be listed
77961         with date 1970-01-01.  Analysis by Volker Borchert.
77962
77963         * lib/gettimeofday.c (localtime): Undefine.
77964         (rpl_localtime): New function.
77965
77966 2002-05-27  Jim Meyering  <meyering@lucent.com>
77967
77968         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77969         localtime.
77970
77971         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77972         use the replacement function; it wouldn't resolve at link time.
77973         Reported by Volker Borchert.
77974
77975 2002-05-22  Jim Meyering  <meyering@lucent.com>
77976
77977         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77978         file-type.h.
77979         * lib/file-type.h: New file.
77980         * lib/file-type.c (file_type): New file/function.  Extracted from
77981         diffutils.
77982
77983 2002-04-30  Jim Meyering  <meyering@lucent.com>
77984
77985         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77986
77987 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77988
77989         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77990
77991 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77992
77993         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77994         Do not check for alloca.h (no longer used) or stdbool.h (was never
77995         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77996
77997 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77998
77999         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78000
78001 2002-04-29  Jim Meyering  <meyering@lucent.com>
78002
78003         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78004         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78005         Use AC_FUNC_STRNLEN here instead.
78006
78007         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78008         With autoconf-2.53a, it's part of AC_PROG_CC.
78009
78010 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78011
78012         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78013         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78014
78015 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78016
78017         * lib/sig2str.h, lib/sig2str.c: New files.
78018         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78019
78020 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78021
78022         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78023         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78024         of 127, since 64 is the largest conceivable number for ancient
78025         nonstandard hosts.
78026         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78027
78028 2002-04-28  Jim Meyering  <meyering@lucent.com>
78029
78030         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78031
78032 2002-04-24  Jim Meyering  <meyering@lucent.com>
78033
78034         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78035         (jm_PREREQ): Use it.
78036
78037         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78038         mach/mach.h fcntl.h.
78039         Check for this function: setlocale.
78040
78041 2002-04-24  Jim Meyering  <meyering@lucent.com>
78042
78043         * lib/gettext.h: New file, from Gettext.
78044         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78045         (libfetish_a_SOURCES): Add gettext.h.
78046
78047 2002-04-16  Jim Meyering  <meyering@lucent.com>
78048
78049         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78050         ut_pid, ut_id, ut_exit.
78051
78052 2002-04-16  Jim Meyering  <meyering@lucent.com>
78053
78054         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78055         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78056         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78057
78058 2002-04-12  Jim Meyering  <meyering@lucent.com>
78059
78060         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78061         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78062         existence of the getmntinfo function.  Needed for Darwin 5.3.
78063
78064         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78065         This is necessary at least on Darwin 5.3.
78066
78067         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78068         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78069         strnlen.o in the library, and that makes some versions of ranlib
78070         object.
78071
78072 2002-04-12  Jim Meyering  <meyering@lucent.com>
78073
78074         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78075
78076 2002-04-09  Jim Meyering  <meyering@lucent.com>
78077
78078         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78079         to be more precise.  Rather than saying we're checking whether the
78080         function `works', say what we're testing.
78081         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78082         Reported by Bruno Haible.
78083
78084 2002-03-10  Jim Meyering  <meyering@lucent.com>
78085
78086         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78087         Suggestion from Santiago Vila.
78088
78089 2002-03-08  Jim Meyering  <meyering@lucent.com>
78090
78091         * lib/rename.c: Mention that this wrapper is needed also on
78092         mips-dec-ultrix4.4 systems.
78093
78094 2002-03-02  Jim Meyering  <meyering@lucent.com>
78095
78096         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78097         not HAVE_CLOCK_SETTIME.
78098
78099 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78100
78101         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78102         Check for clock_settime.
78103
78104 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78105
78106         * lib/nanosleep.h: Rename to....
78107         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78108
78109         * lib/gettime.c: New file.
78110         * lib/settime.c: New file.
78111         * lib/stime.c: Remove.
78112
78113         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78114         timespec.h.  Remove nanosleep.h.
78115
78116 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78117
78118         * m4/acl.m4: New file.
78119         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78120         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78121
78122 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78123
78124         * lib/acl.c, lib/acl.h: New files.
78125         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78126
78127 2002-02-24  Jim Meyering  <meyering@lucent.com>
78128
78129         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78130         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78131         cause trouble.  Reported by Nelson Beebe.
78132
78133 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78134
78135         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78136         compilers that don't know that xalloc_die never returns.
78137
78138 2002-02-20  Jim Meyering  <meyering@lucent.com>
78139
78140         * lib/getdate.c: Regenerate using bison-1.33.
78141
78142 2002-02-17  Jim Meyering  <meyering@lucent.com>
78143
78144         * config/config.guess (main): Don't use `head -1'; it's no longer
78145         portable. Use `sed 1q' instead.
78146
78147 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78148
78149         * m4/codeset.m4: Upgrade to gettext-0.11.
78150         * m4/gettext.m4: Upgrade to gettext-0.11.
78151         * m4/glibc21.m4: Upgrade to gettext-0.11.
78152         * m4/iconv.m4: Upgrade to gettext-0.11.
78153         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78154         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78155         * m4/lib-ld.m4: New file, from gettext-0.11.
78156         * m4/lib-link.m4: New file, from gettext-0.11.
78157         * m4/lib-prefix.m4: New file, from gettext-0.11.
78158         * m4/progtest.m4: Upgrade to gettext-0.11.
78159
78160 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78161
78162         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78163         (jm_PREREQ): Use it.
78164
78165 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78166
78167         * lib/posixver.c, lib/posixver.h: New files.
78168         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78169
78170 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78171             Bruno Haible  <bruno@clisp.org>
78172
78173         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78174         (fwrite_success_callback): New declaration.
78175         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78176         print_unicode_char. Call failure callback instead of error.
78177         (fwrite_success_callback): New function.
78178         (exit_failure_callback): New function.
78179         (fallback_failure_callback): New function.
78180         (print_unicode_char): Call unicode_to_mb.
78181
78182 2002-01-26  Jim Meyering  <meyering@lucent.com>
78183
78184         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78185         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78186
78187 2002-01-26  Jim Meyering  <meyering@lucent.com>
78188
78189         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78190
78191 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78192
78193         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78194
78195 2002-01-22  Jim Meyering  <meyering@lucent.com>
78196
78197         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78198         Otherwise, some versions of automake would omit the rule that makes
78199         Makefile from Makefile.in.
78200
78201 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78202
78203         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78204         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78205         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78206         (memcoll): Set errno to zero if there is no error.
78207
78208         * lib/quotearg.c (quotearg_buffer_restyled):
78209         Fix bug with quoting buffers containing NUL when backslashing escapes.
78210         This bug was exposed by the other changes in this patch.
78211         (quotearg_n_options): New arg ARGSIZE.
78212         All callers changed.
78213         (quoting_options_from_style): New function.
78214         (quotearg_n_style): Use it.
78215         (quotearg_n_style_mem): New function.
78216
78217         * lib/quotearg.h (quotearg_n_style_mem): New function.
78218
78219 2002-01-19  Jim Meyering  <meyering@lucent.com>
78220
78221         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78222         Remove useless quotes: DF_PROG="df".
78223         * m4/strnlen.m4: New file.
78224
78225 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78226
78227         * lib/backupfile.c (ISDIGIT): Comment fix.
78228         * lib/getdate.y (ISDIGIT): Likewise.
78229         * lib/posixtm.c (ISDIGIT, year): Likewise.
78230         * lib/strverscmp.c (ISDIGIT): Likewise.
78231         * lib/userspec.c (ISDIGIT): Likewise.
78232
78233 2002-01-16  Jim Meyering  <meyering@lucent.com>
78234
78235         * lib/getdate.y: Add three semicolons, each just before a closing
78236         brace. Bison (as of version 1.31) no longer papers over that mistake.
78237
78238 2002-01-05  Jim Meyering  <meyering@lucent.com>
78239
78240         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78241
78242 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78243
78244         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78245         not silently exit merely because the output buffer happens to
78246         have nothing pending.
78247
78248 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78249
78250         See the big note in ../ChangeLog.
78251         * lib/human.c (suffixes): Prefer K to k for 1024.
78252         (generate_suffix_backwards): New function.
78253         (human_readable_inexact): Use it.
78254         * lib/xstrtol.c (__xstrtol): If there is no number but there
78255         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78256         Accept 'K' as well as 'k'.
78257
78258 2001-12-15  Jim Meyering  <meyering@lucent.com>
78259
78260         * lib/regex.h (__restrict_arr): Update from libc.
78261
78262         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78263         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78264         (STREQ): Define.
78265
78266 2001-12-14  Jim Meyering  <meyering@lucent.com>
78267
78268         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78269         Suggestion from Bruno Haible.
78270
78271 2001-12-10  Jim Meyering  <meyering@lucent.com>
78272
78273         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78274         xrealloc, Instead, include "xalloc.h".
78275         (initbuffer): Don't cast xmalloc return value to char*.
78276         (readline): Reword comment.
78277         Don't cast xrealloc return value to char*
78278         Return NULL, not 0.
78279
78280 2001-12-09  Jim Meyering  <meyering@lucent.com>
78281
78282         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78283         about `signed and unsigned type in conditional expression'.
78284         * lib/posixtm.c (posix_time_parse): Likewise.
78285
78286         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78287
78288         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78289         to avoid a pedantic warning.
78290
78291         * lib/getstr.c: Don't include assert.h.
78292         (getstr): Remove warning-evoking assertions.
78293         Return -1 if offset parameter is out of bounds.
78294         Change the type of a local from int to size_t.
78295
78296         * lib/strftime.c (my_strftime_localtime_r): Include this function
78297         definition in the `#if ! HAVE_TM_GMTOFF' block.
78298
78299         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78300         Include xalloc.h instead.
78301
78302 2001-12-02  Jim Meyering  <meyering@lucent.com>
78303
78304         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78305         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78306         included.
78307
78308         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78309         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78310
78311 2001-11-30  Akim Demaille  <akim@epita.fr>
78312
78313         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78314         before being defined.
78315
78316 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78317
78318         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78319         First arg is int, not unsigned.
78320         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78321         (SIZE_MAX, UINT_MAX): New macros.
78322         (quotearg_n_options): Abort if N is negative.
78323         Avoid overflow check on hosts where size_t is 64 bits and int
78324         is 32 bits, as overflow is impossible there.
78325         Fix off-by-one typo that caused unnecessary reallocation.
78326
78327 2001-11-27  Jim Meyering  <meyering@lucent.com>
78328
78329         * lib/tempname.c: Merge with version from libc.
78330         * lib/regex.c: Likewise.
78331
78332         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78333         systems for which STDC_HEADERS is 0, it was not included, resulting in
78334         a warning about an integer-to-pointer conversion problem with getenv.
78335         Reported by Volker Borchert.
78336
78337 2001-11-26  Jim Meyering  <meyering@lucent.com>
78338
78339         * lib/gtod.h: Remove file.
78340         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78341         * lib/gettimeofday.c: Don't include gtod.h.
78342         (GTOD_init): Remove function.
78343         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78344         Suggestion from Volker Borchert.
78345
78346 2001-11-23  Jim Meyering  <meyering@lucent.com>
78347
78348         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78349         it.
78350         * lib/hash.c (struct hash_table): Define it here instead.
78351
78352 2001-11-22  Jim Meyering  <meyering@lucent.com>
78353
78354         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78355
78356 2001-11-20  Jim Meyering  <meyering@lucent.com>
78357
78358         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78359         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78360
78361 2001-11-19  Jim Meyering  <meyering@lucent.com>
78362
78363         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78364         directory.  Use "conftestXXXXXX" as the template.
78365         Suggestion from Paul Eggert.
78366
78367         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78368         immediately, so the test doesn't mistakenly hit the max-open-files
78369         limit.
78370
78371 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78372
78373         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78374         (TEMPORARIES): New macro.
78375         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78376         removes an artificial limitation (e.g. HP-UX 10.20, where
78377         TMP_MAX is 17576).
78378
78379 2001-11-18  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78382
78383 2001-11-18  Jim Meyering  <meyering@lucent.com>
78384
78385         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78386         on SunOS 4.
78387
78388         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78389         files will be created before anything else.
78390
78391 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78392
78393         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78394         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78395
78396 2001-11-17  Jim Meyering  <meyering@lucent.com>
78397
78398         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78399         Prompted by a report from Bob Proulx.
78400
78401         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78402         Instead, require UTILS_FUNC_MKSTEMP.
78403
78404 2001-11-17  Jim Meyering  <meyering@lucent.com>
78405
78406         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78407         Now, that's done as part of AC_FUNC_STRTOD.
78408
78409 2001-11-17  Jim Meyering  <meyering@lucent.com>
78410
78411         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78412         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78413         rather than group writable.  Patch by Juan F. Codagnone.
78414
78415         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78416         xrealloc, Instead, include "xalloc.h".
78417
78418         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78419         Remove explicit declarations of xmalloc, xrealloc,
78420         and xstrdup.  Instead, include "xalloc.h".
78421
78422         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78423         unlocked-io.h.
78424         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78425         Likewise.
78426         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78427
78428         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78429         Reported by Padraig Brady.
78430
78431         * lib/mkstemp.c: #undef mkstemp.
78432         Include config.h.
78433         (rpl_mkstemp): Rename from mkstemp.
78434         Protoize.
78435
78436 2001-11-16  Jim Meyering  <meyering@lucent.com>
78437
78438         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78439         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78440         determine the amount of total physical memory, use pstat_getstatic.
78441         HPUX-11 doesn't define _SC_PHYS_PAGES.
78442         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78443         If sysconf couldn't be used to determine the amount of available
78444         physical memory, use both pstat_getstatic and pstat_getdynamic.
78445         Based on a patch from Bob Proulx.
78446
78447 2001-11-10  Jim Meyering  <meyering@lucent.com>
78448
78449         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78450         (jm_PREREQ): Use it.
78451
78452 2001-11-09  Jim Meyering  <meyering@lucent.com>
78453
78454         * m4/jm-macros.m4: Require autoconf-2.52f.
78455         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78456         Use these AC_-prefixed names, not the AM_-prefixed ones.
78457
78458         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78459
78460 2001-11-05  Jim Meyering  <meyering@lucent.com>
78461
78462         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78463
78464 2001-11-04  Jim Meyering  <meyering@lucent.com>
78465
78466         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78467         $DEFS.
78468
78469 2001-11-03  Jim Meyering  <meyering@lucent.com>
78470
78471         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78472         of AC_DEFUN.
78473
78474         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78475         know the name of the variable in the macro definition.
78476
78477 2001-11-03  Jim Meyering  <meyering@lucent.com>
78478
78479         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78480         in argmatch_to_argument call.
78481
78482         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78483         argument.
78484
78485         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78486         e.g., a fault due to an attempt to free a NULL pointer.
78487
78488 2001-11-01  Jim Meyering  <meyering@lucent.com>
78489
78490         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78491         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78492
78493 2001-11-01  Jim Meyering  <meyering@lucent.com>
78494
78495         * lib/dirfd.c, lib/dirfd.h: New files.
78496         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78497
78498         * lib/hash.c (hash_print) [TESTING]: Clean up.
78499
78500 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78501
78502         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78503         to avoid a warning if -Wall.
78504
78505 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78506
78507         * README: New file
78508         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78509         (per RMS's instructions, this is now the canonical source)
78510         * lgpl/, gpl/: New directories.
78511
78512 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78513
78514         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78515
78516 2001-10-21  Jim Meyering  <meyering@lucent.com>
78517
78518         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78519         this code would end up calling gettext even in packages built
78520         with --disable-nls.
78521         * lib/getopt.c (_): Likewise.
78522         * lib/regex.c (_): Likewise.
78523
78524 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78525
78526         * m4/error.m4 (jm_PREREQ_ERROR):
78527         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78528         AC_FUNC_STRERROR_R does that.
78529         Check for strerror declaration.
78530
78531         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78532         are supposed to have them these days.
78533         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78534         Merge changes from latest Autoconf CVS.
78535         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78536         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78537         POSIX decided to standardize on the int flavor of strerror_r.
78538
78539 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78540
78541         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78542         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78543         Use strerror_r that is only a macro, even if it is not a function.
78544         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78545         (private_strerror): Use prototypes, not old-style function definition.
78546         (print_errno_message): New function.
78547         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78548         char*-flavored one.
78549         (error_tail, error, error_at_line): Use it.
78550
78551 2001-10-11  Jim Meyering  <meyering@lucent.com>
78552
78553         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78554         and quote_n (1, ... to avoid clobbering a buffer.
78555
78556 2001-10-05  Jim Meyering  <meyering@lucent.com>
78557
78558         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78559         hash-pjw.h.
78560         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78561         * lib/hash-pjw.h: New file.
78562
78563 2001-09-30  Jim Meyering  <meyering@lucent.com>
78564
78565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78566         `struct fsstat' has the `f_fstypename' member.
78567         Use that to define FS_TYPE, which is now used to make
78568         the getfsstat link test tighter.
78569
78570 2001-09-30  Jim Meyering  <meyering@lucent.com>
78571
78572         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78573         Include <sys/ucred.h>, for Apple Darwin.
78574         Include sys/mount.h and sys/fs_types.h only if available.
78575         (FS_TYPE): Define.
78576         (read_filesystem_list): Use FS_TYPE.
78577
78578 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78579
78580         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78581         a boolean context.
78582
78583 2001-09-29  Jim Meyering  <meyering@lucent.com>
78584
78585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78586         [one-argument getmntent function]): Include stdio.h before mntent.h.
78587         SunOS 4.1.x needs it for the declaration of `FILE'.
78588         Patch by Volker Borchert.
78589
78590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78591         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78592         sys/fs_types.h, and make the link-test for getfsstat guard #include
78593         directives with appropriate #if HAVE_*_H tests so that we can
78594         detect getfsstat on Apple Darwin1.3.7 systems.
78595         Reported by Nelson Beebe.
78596         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78597
78598 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78599
78600         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78601         #defines strtoimax.  Also treat the other strto* functions
78602         like strtoimax.
78603
78604         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78605         Check for strtoul and strtoumax,
78606         as those declarations are made even in the signed case.
78607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78608         Likewise, for strtol and strtoimax.
78609
78610 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78611
78612         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78613         #defines strtoimax.  Also treat the other strto* functions
78614         like strtoimax.
78615
78616         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78617         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78618         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78619
78620 2001-09-26  Jim Meyering  <meyering@lucent.com>
78621
78622         Most macros in unlocked-io.h had the wrong number of arguments.
78623         * lib/gen-uio: New script.
78624         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78625         * lib/unlocked-io.hin: Remove file.
78626         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78627         rather than trying to embed it here.
78628         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78629         Reported by Padraig Brady.
78630
78631 2001-09-25  Volker Borchert  <bt@teknon.de>
78632
78633         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78634         `result'.
78635
78636 2001-09-24  Jim Meyering  <meyering@lucent.com>
78637
78638         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78639
78640 2001-09-23  Jim Meyering  <meyering@lucent.com>
78641
78642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78643         instead of the mere test for existence of mntent.h.  The latter
78644         would get a false-positive on AIX 3.4 systems.
78645         In the outer getmntent if-block, don't die if neither of the getmntent
78646         tests succeeds.  Instead, just fall through and continue with the
78647         remaining tests.
78648
78649 2001-09-23  Jim Meyering  <meyering@lucent.com>
78650
78651         * lib/mountlist.c: Remove useless parentheses in #if directives.
78652         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78653         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78654
78655 2001-09-22  Jim Meyering  <meyering@lucent.com>
78656
78657         * m4/gettext.m4: New file.  From gettext.
78658         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78659         * m4/progtest.m4: Likewise
78660         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78661         * m4/glibc21.m4: Likewise.
78662
78663         * m4/libintl.m4: Remove.  No longer used.
78664
78665 2001-09-22  Jim Meyering  <meyering@lucent.com>
78666
78667         * lib/localcharset.c: Update from latest gettext.
78668         * lib/config.charset: Likewise.
78669
78670 2001-09-20  Jim Meyering  <meyering@lucent.com>
78671
78672         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78673         strtoimax.
78674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78675         strtoumax.
78676
78677 2001-09-20  Jim Meyering  <meyering@lucent.com>
78678
78679         * lib/xstrtol.c (strtoimax): Guard declaration with
78680         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78681         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78682         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78683         (strtoumax): Likewise, for completeness (it wasn't necessary).
78684
78685 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78686
78687         * lib/strtoimax.c (HAVE_LONG_LONG):
78688         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78689         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78690         to work around bug in IBM C compiler.
78691
78692 2001-09-17  Jim Meyering  <meyering@lucent.com>
78693
78694         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78695         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78696         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78697         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78698         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78699         whenever the right hand side need not be expanded by the shell.
78700
78701 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78702
78703         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78704         library.  It's not correct, as some older glibcs are buggy.
78705         fnmatch wasn't fixed until glibc 2.2.
78706
78707         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78708         special shell magic here.
78709
78710 2001-09-16  Jim Meyering  <meyering@lucent.com>
78711
78712         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78713         * m4/jm-macros.m4: Require it.
78714
78715 2001-09-16  Jim Meyering  <meyering@lucent.com>
78716
78717         * lib/mkdir.c: New file.
78718
78719 2001-09-15  Jim Meyering  <meyering@lucent.com>
78720
78721         * m4/jm-macros.m4: Check for help2man.
78722
78723 2001-09-11  Jim Meyering  <meyering@lucent.com>
78724
78725         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78726         The body, by Paul Eggert, was moved here from configure.in.
78727         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78728
78729 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78730
78731         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78732         (jm_PREREQ): Use it.
78733
78734 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78735
78736         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78737         Use ssize_t, not int, to store result of readlink.
78738         Check for ssize_t overflow as well as size_t overflow,
78739         as POSIX says the result of readlink is implementation-defined
78740         when ssize_t overflows.
78741         Remove unnecessary cast to char*.
78742         Use free+malloc instead of realloc, as the storage doesn't need
78743         to be preserved and it's clearer and can be more efficient that way.
78744         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78745         * lib/xreadlink.h (xreadlink): Update prototype.
78746
78747 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78748
78749         * lib/xgetcwd.c: Revert some of the previous change; intead,
78750         fix the HAVE_GETCWD_NULL code to behave more like the
78751         !HAVE_GETCWD_NULL code used to.
78752
78753         Include "xalloc.h".
78754         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78755         invoke xalloc_die.
78756
78757 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78758
78759         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78760         sys/param.h, as pathmax.h includes them.
78761
78762 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78763
78764         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78765         (jm_PREREQ_XGETCWD): New macro.
78766
78767         * m4/getcwd.m4: New file.
78768
78769 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78770
78771         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78772         like the HAVE_GETCWD_NULL code.
78773         Include pathmax.h if not HAVE_GETCWD.
78774         Do not include xalloc.h.
78775         (INITIAL_BUFFER_SIZE): New symbol.
78776         Do not use xmalloc / xrealloc, since the caller is responsible for
78777         handling errors.  Preserve errno around `free' during failure.
78778         Do not overrun buffer when using getwd.
78779
78780 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78781
78782         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78783         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78784         getcwd (NULL, 0).
78785
78786 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78787
78788         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78789         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78790         spotted by Jim Meyering.
78791
78792 2001-09-03  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78795         failure.
78796
78797 2001-09-02  Jim Meyering  <meyering@lucent.com>
78798
78799         * lib/error.c: Update from GNU libc.
78800
78801 2001-09-01  Jim Meyering  <meyering@lucent.com>
78802
78803         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78804         Used by df.
78805
78806 2001-09-01  Jim Meyering  <meyering@lucent.com>
78807
78808         * lib/xreadlink.c: New file.
78809         * lib/xreadlink.h: New file.
78810         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78811         xreadlink.h.
78812
78813         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78814         doesn't conflict with sparc Solaris 7's definition in
78815         /usr/include/sys/int_types.h.
78816
78817         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78818         files.
78819         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78820         and strncasecmp as r-values.  Unixware didn't have declarations.
78821
78822 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78823
78824         * lib/xstrtol.h: Add copyright notice.
78825         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78826         LONGINT_INVALID_SUFFIX_CHAR.
78827
78828 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78829
78830         * lib/xstrtol.c (strtoimax): New decl.
78831
78832 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78833
78834         * lib/xgetcwd.c: Don't include pathmax.h.
78835         Include stdlib.h and unistd.h if available.
78836         Include xalloc.h.
78837         (xmalloc, xstrdup, free): Remove decls.
78838         (xgetcwd): Don't assume sizes fit in unsigned.
78839         Check for overflow when computing sizes.
78840         Simplify reallocation code.
78841
78842 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78843
78844         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78845         a directory's st_size can have an arbitrary value, so the old
78846         usage could waste an arbitrary amount of memory.  All uses
78847         changed.
78848         * lib/savedir.h: Update prototype.
78849
78850 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78851
78852         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78853
78854         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78855         old strtoimax.c.
78856
78857         Also, make the following further changes to make this file's
78858         configuration more similar to that of strtol.c:
78859         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78860         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78861         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78862         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78863         changed to signed values.
78864
78865         And make the following changes as well:
78866         Fix copyright notice, as 1999 was missing.
78867         (verify): New macro.
78868         (strtoimax): Check sizes at compile-time, not run-time.
78869         Prefer strtol to strtoll if both work.
78870         (main): Remove; it was not that useful and was a pain to maintain.
78871
78872         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78873
78874 2001-08-31  Jim Meyering  <meyering@lucent.com>
78875
78876         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78877         Use an initial, malloc'd, buffer of length 128 rather than
78878         a statically allocated one of length 1024.
78879
78880 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78881
78882         Simplify code, partly by assuming autoconf 2.52 semantics.
78883
78884         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78885
78886         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78887         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78888         All uses removed.
78889         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78890         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78891         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78892         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78893         jm_AC_HEADER_INTTYPES_H.
78894         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78895
78896         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78897
78898         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78899         Quote first arg of AC_DEFUN.
78900         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78901         since they are needed to parse the include file even if we need
78902         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78903         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78904         but with opposite signedness.
78905
78906 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78907
78908         Merge 'exclude' changes from tar 1.13.22.
78909         This fixes one or two unlikely storage allocation overflow bugs,
78910         but doesn't change user-visible behavior otherwise.
78911
78912 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78913
78914         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78915         (jm_PREREQ_EXCLUDE): New macro.
78916
78917 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78918
78919         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78920         tm to be declared.
78921
78922 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78923
78924         * lib/hash.c: Remove '2001' from copyright notice.
78925
78926 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78927
78928         * lib/full-write.h: New file.
78929         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78930         * lib/full-write.c: Correct credits, as cccp.c no longer
78931         exists and anyway it was so heavily changed from the old cccp
78932         code as to be unrecognizable.  Include full-write.h.
78933         (full_write): Return size_t, with short writes meaning failure.
78934         All callers changed.  This fixes a bug with large buffers
78935         on 64-bit hosts.
78936         * lib/utime.c: Include full-write.h.
78937
78938 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78939
78940         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78941         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78942         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78943         Include if available.
78944         (<xalloc.h>): Include
78945         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78946         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78947         collide with FNM macros.
78948         (struct patopts): New struct.
78949         (struct exclude): Use it, as exclude patterns now come with options.
78950         (new_exclude): Support above changes.
78951         (new_exclude, add_exclude_file):
78952         Initial size must now be a power of two to simplify overflow checking.
78953         (free_exclude, fnmatch_no_wildcards): New function.
78954         (excluded_filename): No longer requires options arg, as the options
78955         are determined by add_exclude.  Now returns bool, not int.
78956         (excluded_filename, add_exclude):
78957         Add support for the fancy new exclusion options.
78958         (add_exclude, add_exclude_file): Now takes int options arg.
78959         Check for arithmetic overflow when computing sizes.
78960         (add_exclude_file): xrealloc might modify errno, so don't
78961         realloc until after errno might be used.
78962
78963         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78964         New macros.
78965         (free_exclude): New decl.
78966         (add_exclude, add_exclude_file): Now takes int options arg.
78967         (excluded_filename): No longer requires options arg, as the options
78968         are determined by add_exclude.  Now returns bool, not int.
78969
78970 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78971
78972         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78973
78974 2001-08-27  Jim Meyering  <meyering@lucent.com>
78975
78976         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78977
78978         * lib/version-etc.c (N_): Remove definition.
78979         Revert most of last change.
78980         Instead, simply don't mark the `Copyright...' string for translation.
78981         Based on advice from Paul Eggert.
78982
78983         * lib/strtoxmax.c: Tweak comment.
78984
78985 2001-08-26  Jim Meyering  <meyering@lucent.com>
78986
78987         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78988
78989         * m4/xstrtoimax.m4: New file.
78990         * m4/xstrtoumax.m4: Add comments explaining why we
78991         AC_REPLACE_FUNCS(strtol).
78992
78993 2001-08-26  Jim Meyering  <meyering@lucent.com>
78994
78995         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78996         of copyright with `%s' so translators don't get an untranslated
78997         message in 2002.
78998         (COPYRIGHT_YEAR): Define.
78999         (version_etc): Use fprintf rather than fputs.
79000         Suggestion from Ulrich Drepper.
79001
79002         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79003
79004         * lib/strtoll.c: New file, from GNU libc.
79005         * lib/xstrtoimax.c: New file.
79006
79007         * lib/xstrtol.h: Add xstrtoimax.
79008         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79009         * lib/strtoimax.c: New file.  Likewise, but first define
79010         STRTOUXMAX_SIGNED.
79011
79012         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79013         ...
79014         * lib/strtoxmax.c: ... then renamed to this.
79015
79016 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79017
79018         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79019         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79020         (jm_AC_TYPE_INTMAX_T): New macro.
79021         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79022
79023         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79024
79025         * m4/longlong.m4: Renamed from ulonglong.m4.
79026         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79027         * m4/uintmax_t.m4: Removed.
79028
79029 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79030
79031         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79032         Port to Solaris 8, where 'sed' requires a space after the 'r'
79033         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79034         Redirect output to $tmp just once.
79035
79036 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79037
79038         * lib/addext.c (<errno.h>): Include.
79039         (errno): Declare if not defined.
79040         (addext): Work correctly when pathconf returns -1 and leaves
79041         errno alone because there is no limit.  Also, work even if
79042         pathconf returns a value greater than SIZE_MAX.
79043
79044 2001-08-12  Jim Meyering  <meyering@lucent.com>
79045
79046         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79047         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79048         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79049         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79050         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79051         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79052         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79053         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79054         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79055         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79056         utime.m4, utimes.m4, xstrtoumax.m4:
79057         Quote the first argument in each use of AC_DEFUN.
79058
79059 2001-08-12  Jim Meyering  <meyering@lucent.com>
79060
79061         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79062         Simply `return getcwd (NULL, 0);'.
79063         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79064         Use 1300 as initial value for length, not PATH_MAX.
79065
79066         * lib/pathmax.h: Clean up cpp syntax.
79067
79068 2001-08-12  Jim Meyering  <meyering@lucent.com>
79069
79070         * lib/gettimeofday.c: New file.
79071         * lib/gtod.h: New file.
79072         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79073
79074 2001-08-05  Jim Meyering  <meyering@lucent.com>
79075
79076         * m4/jm-macros.m4: Require autoconf-2.52.
79077
79078 2001-08-04  Jim Meyering  <meyering@lucent.com>
79079
79080         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79081         stmt, to get in sync with glibc.
79082
79083 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79084
79085         The following changes are from gettext 0.10.39 as maintained by
79086         Bruno Haible.
79087
79088         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79089         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79090         with inverted sense.  All uses changed.
79091
79092         * lib/mbswidth.c: Don't include <limits.h>.
79093         Include <stdlib.h> and <string.h> unconditionally.
79094         (iswcntrl, mbsinit, ISCNTRL): New macros.
79095         (mbsnwidth): Use K&R style function declarations.
79096         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79097         can optimize it when MB_CUR_MAX == 1.
79098         The width of control characters is zero, not 1.
79099
79100 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79101
79102         The following changes are from gettext 0.10.39 as maintained by
79103         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79104
79105         * m4/codeset.m4: Upgrade to serial AM1.
79106         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79107         all uses changed.  Quote first arg of AC_DEFUN.
79108         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79109
79110         * m4/iconv.m4: Upgrade to serial AM2.
79111         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79112         Add --with-libconv-prefix.
79113         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79114         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79115         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79116         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79117         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79118
79119         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79120         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79121         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79122         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79123         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79124         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79125         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79126         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79127         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79128
79129         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79130         string.h any more.
79131
79132         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79133         not the default value.
79134
79135         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79136         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79137         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79138         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79139         Also check for iswcntrl, used for wcwidth fallback.
79140         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79141         to Autoconf 2.13.
79142
79143 2001-08-03  Jim Meyering  <meyering@lucent.com>
79144
79145         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79146         as it was in the original.  Reported by Paul Eggert.
79147
79148 2001-07-16  Jim Meyering  <meyering@lucent.com>
79149
79150         * m4/gettimeofday.m4: New file.
79151         Prompted by a report from Bernhard Baehr.
79152
79153 2001-07-15  Jim Meyering  <meyering@lucent.com>
79154
79155         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79156         stuff. Now it's in ../Makefile.cfg.
79157
79158 2001-07-15  Jim Meyering  <meyering@lucent.com>
79159
79160         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79161         (BUILT_SOURCES): Add unlocked-io.h.
79162         (io_functions): Define.
79163         (unlocked-io.h): New rule.
79164         (DISTCLEANFILES): Add unlocked-io.h.
79165         (all-local): Depend on unlocked-io.h, to ensure it is created.
79166
79167         * lib/unlocked-io.hin: New file
79168
79169         * lib/regex.c: Update from glibc.
79170
79171 2001-07-05  Jim Meyering  <meyering@lucent.com>
79172
79173         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79174         recommendation.
79175         (libfetish_a_SOURCES): Put all .h files here instead.
79176         Remove a thus-exposed (better checks in automake) duplicate and
79177         two unnecessary .h files.
79178
79179 2001-07-04  Jim Meyering  <meyering@lucent.com>
79180
79181         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79182         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79183         distcheck failure.
79184
79185 2001-07-02  Jim Meyering  <meyering@lucent.com>
79186
79187         The following changes were prompted by suggestions from Bruno Haible.
79188
79189         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79190         is now generated.
79191         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79192         definition of EXTRA_DIST.
79193         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79194         ensure that the generated file is created/updated whenever the list
79195         of $(unlocked_functions) is changed.
79196         (jm-glibc-io.m4): New rule.
79197         (unlocked-io.h): New rule -- currently unused.
79198
79199 2001-06-24  Jim Meyering  <meyering@lucent.com>
79200
79201         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79202         unmatched right bracket, rather than kludging it with an extra,
79203         falsely-matching quote in a comment.  Patch by Akim Demaille.
79204
79205 2001-06-11  Jim Meyering  <meyering@lucent.com>
79206
79207         * lib/regex.c: Update from GNU libc.
79208
79209 2001-05-27  Jim Meyering  <meyering@lucent.com>
79210
79211         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79212         Check for ut_type in struct utmp.
79213
79214 2001-05-27  Jim Meyering  <meyering@lucent.com>
79215
79216         * lib/readutmp.h (UT_TYPE): Define.
79217
79218 2001-05-24  Jim Meyering  <meyering@lucent.com>
79219
79220         * lib/argmatch.c: Include "quote.h".
79221         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79222         quote function.  Reported by Göran Uddeborg.
79223
79224 2001-05-22  Jim Meyering  <meyering@lucent.com>
79225
79226         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79227         now that we use the package-supplied version unconditionally.
79228         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79229
79230 2001-05-21  Jim Meyering  <meyering@lucent.com>
79231
79232         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79233         shell syntax errors.
79234
79235 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79236
79237         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79238
79239 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79240
79241         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79242         Don't bother to check library strftime, since
79243         we'll be using our own my_strftime function anyway.
79244         Define my_strftime instead of strftime.
79245
79246 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79247
79248         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79249         which is not yet declared.
79250
79251 2001-05-15  Jim Meyering  <meyering@lucent.com>
79252
79253         * m4/regex.m4: Use proper quoting so brackets appear in the test
79254         program.
79255         Reported by, and with help from, Bruno Haible.
79256
79257 2001-05-13  Jim Meyering  <meyering@lucent.com>
79258
79259         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79260         undefined.
79261
79262 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79263
79264         dirname code cleanup.  base_name now behaves more compatibly
79265         with POSIX basename when given file names that have trailing
79266         slashes, and similarly for dir_name.  Add new primitives
79267         base_len and dir_len.  Put the directory-name-related decls
79268         into dirname.h.
79269
79270         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79271         * lib/backupfile.c (base_name): Likewise.
79272         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79273         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79274         * lib/makepath.c (strip_trailing_slashes): Likewise.
79275         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79276         ISSLASH): Likewise.
79277         * lib/rename.c (strip_trailing_slashes): Likewise.
79278         * lib/same.c (base_name): Likewise.
79279         * lib/stripslash.c (ISSLASH): Likewise.
79280
79281         * lib/addext.c: Include <dirname.h> after size_t is defined.
79282         * lib/backupfile.c: Likewise.
79283
79284         * lib/addext.c (addext): Use base_len to trim redundant
79285         trailing slashes instead of doing it ourselves.
79286         But do not trim the last slash if it is not redundant.
79287
79288         * lib/backupfile.c (find_backup_file_name,
79289         max_backup_version): Use base_len instead of rolling it ourselves.
79290         Handle the case of "" and (on DOS) "C:" correctly.
79291
79292         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79293         needed. Include <string.h>, <dirname.h>.
79294         (base_name): Allow file names ending in slashes, other than names
79295         that are all slashes.  In this case, return the basename followed
79296         by the slashes.  This is more general, and can be used in places
79297         where the original base_name purposely had an assertion failure.
79298         (base_len): New function.
79299
79300         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79301         Do not include <assert.h>; no longer needed.
79302         Include xalloc.h.
79303         (memrchr): Remove decl.
79304         (dir_name_r): Remove.
79305         (dir_len): Renamed from dirlen.  All callers changed.
79306         Rewrite in terms of base_name, for simplicity and consistency.
79307         (dir_name): Never return NULL.  All callers changed.
79308         Do not include <stdlib.h> in test program; no longer needed.
79309         return 0; is fine for test program.
79310
79311         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79312         New macros.
79313         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79314
79315         * lib/path-concat.c (path_concat): Use base_len to compute
79316         base length, not strlen; this means we cannot rely on memcpy
79317         to null-terminate.
79318
79319         * lib/same.c (STREQ): Remove.
79320         (same_name): Handle the case where the basename ends in trailing '/'.
79321
79322         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79323         a slash was stripped.  Do not strip the last slash after a
79324         file system prefix.
79325
79326 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79327
79328         * lib/Makefile.am (libfetish_a_SOURCES):
79329         Add strftime.c, since we now compile it on all hosts.
79330
79331         * lib/strftime.c (my_strftime):
79332         Define to nstrftime if emacs, but only if my_strftime is not defined.
79333         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79334         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79335         Add one more extra argument: a nanoseconds value.
79336         All uses changed.
79337         (ns): New macro.
79338         (my_strftime function): Add %N format.
79339         (emacs_strftimeu): Renamed from emacs_strftime,
79340         with extra ut argument.
79341
79342 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79343
79344         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79345
79346 2001-04-21  Jim Meyering  <meyering@lucent.com>
79347
79348         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79349         doesn't interfere.
79350
79351 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79352
79353         * m4/ftruncate.m4: Check for chsize.
79354         Link with ftruncate.o unconditionally if ftruncate is missing.
79355         This was required when cross-compiling to i586-mingw32msvc.
79356
79357 2001-04-08  Jim Meyering  <meyering@lucent.com>
79358
79359         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79360         recomputed; that's necessary when the offset spans a DST transition.
79361         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79362
79363 2001-04-02  Jim Meyering  <meyering@lucent.com>
79364
79365         * lib/regex.h, regex.c: Update from GNU libc.
79366
79367 2001-03-24  Jim Meyering  <meyering@lucent.com>
79368
79369         * m4/jm-macros.m4: Require autoconf-2.49d.
79370
79371 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79372
79373         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79374
79375 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79376
79377         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79378
79379 2001-03-17  Jim Meyering  <meyering@lucent.com>
79380
79381         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79382         now that the version in autoconf is equivalent.
79383         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79384
79385         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79386         Suggestion from Akim Demaille.
79387
79388         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79389         (jm_PREREQ_TEMPNAME): New function.
79390
79391 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79392
79393         * lib/tempname.c (uint64_t): Define to uintmax_t if
79394         not defined, and if UINT64_MAX is not defined.
79395         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79396         Reported by John David Anglin.
79397
79398 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79399
79400         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79401         resolve alias if codeset is empty.
79402         * lib/config.charset (BeOS): Use wildcard syntax.
79403
79404 2001-03-13  Jim Meyering  <meyering@lucent.com>
79405
79406         * lib/path-concat.c (path_concat)
79407         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79408         concatenating e.g., `C:' and `foo'.
79409         From Bruno Haible.
79410
79411 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79412
79413         * lib/localcharset.c (locale_charset): Don't use
79414         setlocale(LC_CTYPE,NULL). Don't return NULL.
79415         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79416
79417 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79418
79419         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79420         support for DOS/DJGPP.
79421
79422 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79423
79424         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79425         lacks mkstemp.  Compile our own tempname.c if we compile our own
79426         mkstemp.c, as mkstemp relies on tempname.
79427
79428 2001-03-01  Jim Meyering  <meyering@lucent.com>
79429
79430         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79431         AH_VERBATIM really does output its argument verbatim.
79432
79433 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79434
79435         * lib/Makefile.am (libfetish_a_SOURCES):
79436         Add dup-safer.c, fopen-safer.c.
79437         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79438
79439         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79440         * lib/unistd-safer.h: New files.
79441
79442 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79443
79444         The mkstemp replacement is taken from glibc 2.2.2, with some
79445         portability fixes for use outside glibc, as follows:
79446
79447         * lib/tempname.c (struct_stat64): New macro.
79448         (direxists, __gen_tempname): Use it.
79449         This avoids a portability problem with Solaris 8.
79450
79451         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79452         (<stddef.h>, <stdint.h>, <string.h>):
79453         Include only if STDC_HEADERS || _LIBC.
79454         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79455         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79456         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79457         (__set_errno): Define this macro if <errno.h> doesn't.
79458         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79459         Define these macros if <stdio.h> doesn't.
79460         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79461         Define these macros if <sys/stat.h>
79462         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79463         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79464         __xstat64): Define if not _LIBC.
79465         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79466         (__gen_tempname): Invoke gettimeofday only if
79467         HAVE_GETTIMEOFDAY || _LIBC;
79468         otherwise, fall back on plain "time".
79469         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79470
79471         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79472
79473         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79474
79475 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79476
79477         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79478
79479 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79480
79481         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79482         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79483         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79484         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79485
79486 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79487
79488         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79489         Remove workaround macros for hosts that have mbrtowc but not
79490         mbstate_t, as we now insist on proper declarations for both
79491         before using mbrtowc.
79492
79493 2001-02-17  Jim Meyering  <meyering@lucent.com>
79494
79495         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79496         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79497         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79498         UnixWare 7.1.1.
79499
79500         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79501         rather than AC_CACHE_VAL.
79502
79503 2001-02-17  Jim Meyering  <meyering@lucent.com>
79504
79505         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79506         around included file name.
79507
79508         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79509
79510         * lib/strftime.c: Update from GNU libc (the only changes were to
79511         comments).
79512
79513 2001-02-17  Jim Meyering  <meyering@lucent.com>
79514
79515         * lib/regex.c: Update from libc.
79516
79517 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79518
79519         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79520         clash.
79521
79522 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79523
79524         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79525         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79526         Reported by Mark Hounschell via Paul Eggert.
79527
79528 2001-02-07  Jim Meyering  <meyering@lucent.com>
79529
79530         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79531
79532 2001-02-05  Jim Meyering  <meyering@lucent.com>
79533
79534         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79535         it includes the patch required for `large file' support with at least
79536         HP-UX's 10.20 /bin/cc.
79537
79538 2001-02-03  Jim Meyering  <meyering@lucent.com>
79539
79540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79541         AS_IF, now that it works once again (mysteriously).
79542         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79543
79544 2001-01-30  Jim Meyering  <meyering@lucent.com>
79545
79546         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79547         * m4/chown.m4: Rename conftestchown to conftest.chown.
79548         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79549         s/conftestdir2/conftest.d2/.
79550         * m4/utimes.m4: s/conftestdata/conftest.data/
79551         Inspired by Pavel Roskin's change in autoconf.
79552
79553 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79554
79555         * lib/config.charset: Update for FreeBSD 4.2.
79556
79557 2001-01-27  Jim Meyering  <meyering@lucent.com>
79558
79559         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79560         a use of AS_IF.
79561         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79562
79563 2001-01-26  Jim Meyering  <meyering@lucent.com>
79564
79565         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79566         quotearg.c includes it.
79567
79568 2001-01-26  Jim Meyering  <meyering@lucent.com>
79569
79570         * lib/quotearg.c: Include stddef.h.
79571         * lib/quote.c: Include stddef.h.
79572         Reported by Axel Kittenberger.
79573
79574         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79575         line in double quotes so that it evokes a better diagnostic.
79576         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79577         Reported by Axel Kittenberger.
79578
79579 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79580
79581         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79582         as if it was a `charset'.
79583
79584 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79585
79586         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79587         has const.
79588
79589 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79590
79591         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79592         to avoid a warning.  Add back 'const' to inptr.
79593
79594 2001-01-20  Jim Meyering  <meyering@lucent.com>
79595
79596         Be sure that headers are checked before used in code compiled
79597         for the type checks.
79598         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79599         In place of that, invoke jm_CHECK_ALL_TYPES.
79600         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79601         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79602         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79603         The check for ssize_t was mistakenly run before the test for unistd.h.
79604
79605         The configure-time check for stdbool.h was missing.
79606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79607         (jm_PREREQ_HASH): New function.
79608
79609 2001-01-17  Jim Meyering  <meyering@lucent.com>
79610
79611         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79612         for autoconf-2.49c.
79613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79614
79615 2001-01-16  Jim Meyering  <meyering@lucent.com>
79616
79617         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79618         From Bruno Haible.
79619
79620 2001-01-14  Jim Meyering  <meyering@lucent.com>
79621
79622         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79623         foo and bar.  Create conftestdir/ in the script, not in the C code.
79624         Remove directories in the script, not in the C code.
79625         Remove conftestdir{,2} before trying to create the directory.
79626         Make the entire configure script fail if the mkdir fails.
79627
79628 2001-01-14  Jim Meyering  <meyering@lucent.com>
79629
79630         * lib/rename.c: New file.  From Volker Borchert.
79631         Include stdlib.h, string.h or strings.h, and xalloc.h.
79632         Use strip_trailing_slashes rather than open-coding it.
79633
79634 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79635
79636         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79637
79638 2001-01-03  Jim Meyering  <meyering@lucent.com>
79639
79640         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79641         of local `inptr' to avoid warning with some system declarations of
79642         iconv.
79643
79644 2001-01-02  Volker Borchert  <bt@teknon.de>
79645
79646         * m4/rename.m4: New file.
79647         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79648
79649 2001-01-01  Jim Meyering  <meyering@lucent.com>
79650
79651         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79652         even on systems with utmpx.h.  It's necessary for the declaration of
79653         utmp's ut_user member.  Reported by Andreas Jaeger.
79654
79655         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79656         available. They are required for the declarations of getgrgid and
79657         getpwuid resp.
79658         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79659         Reported by Andreas Jaeger.
79660
79661 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79662
79663         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79664         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79665         so `make install' also works in VPATH builds.
79666
79667 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79668
79669         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79670         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79671         can be used in subdirectories.
79672
79673 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79674
79675         * lib/modechange.c: Do not assume that mode_t uses the
79676         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79677         the other-execute bit of FOO even if S_IXOTH != 1.
79678
79679         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79680         WOTH, XOTH, ALLM): New macros.
79681         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79682          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79683         Use them.
79684         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79685         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79686         (mode_compile):
79687         No need to use uintmax_t; unsigned long is long enough.
79688         Don't bother to get suffix since we don't use it.
79689
79690 2000-12-26  Jim Meyering  <meyering@lucent.com>
79691
79692         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79693         better with autoheader.
79694
79695 2000-12-24  Jim Meyering  <meyering@lucent.com>
79696
79697         * lib/hash.c (is_prime): Return explicit boolean values.
79698         (hash_get_first): Return NULL to appease Irix5.6's 89.
79699         Reported by Nelson Beebe.
79700
79701 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79702
79703         * lib/localcharset.c (locale_charset): Add support for Win32.
79704
79705 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79706
79707         * lib/physmem.h, lib/physmem.c: New files.
79708
79709         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79710         (noinst_HEADERS): Add physmem.h.
79711
79712         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79713         't' for compatibility with Solaris 8 sort.
79714
79715 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79716
79717         * lib/config.charset: Add support for BeOS.
79718
79719 2000-12-17  Jim Meyering  <meyering@lucent.com>
79720
79721         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79722         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79723
79724 2000-12-16  Jim Meyering  <meyering@lucent.com>
79725
79726         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79727         N and M) would have treated it like `chown N:N FILE'.
79728
79729         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79730
79731 2000-12-16  Jim Meyering  <meyering@lucent.com>
79732
79733         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79734         SHELLS_FILE to a file name that's useful on djgpp systems.
79735         Include stdlib.h.
79736         (ADDITIONAL_DEFAULT_SHELLS): Define.
79737         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79738         Based mostly on a patch from Prashant TR.
79739
79740 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79741
79742         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79743         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79744         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79745
79746 2000-12-08  Andreas Schwab  <schwab@suse.de>
79747
79748         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79749         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79750
79751 2000-12-07  Jim Meyering  <meyering@lucent.com>
79752
79753         * lib/stripslash.c (ISSLASH): Define.
79754         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79755         `/'.
79756         From Prashant TR.
79757
79758         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79759         (dir_name_r): Declare this function as static.
79760         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79761         manifest itself on a name containing a mix of slashes and
79762         backslashes.
79763         Make this function work with names starting with a DOS-style
79764         drive letter and colon prefix.
79765         (dir_name): Append `.' if necessary.
79766         Based mostly on patches from Prashant TR and Eli Zaretskii.
79767
79768         * lib/dirname.h (dir_name_r): Remove prototype.
79769
79770 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79771
79772         * m4/off_t-format.m4: Remove this file.
79773         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79774
79775 2000-12-06  Jim Meyering  <meyering@lucent.com>
79776
79777         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79778         replacement strtoull, we may well need the replacement strtoul, too.
79779         Check for declarations of strtoul and strtoull.
79780         Check for strtol.  Mainly as a cue to cause automake to include
79781         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79782         Check for limits.h -- strtol.c needs it.
79783
79784 2000-12-05  Jim Meyering  <meyering@lucent.com>
79785
79786         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79787
79788 2000-12-04  Jim Meyering  <meyering@lucent.com>
79789
79790         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79791         Also include memory.h, stdlib.h, unistd.h if appropriate.
79792         Reported by Andreas Jaeger (conflicting declaration of malloc).
79793
79794 2000-12-02  Jim Meyering  <meyering@lucent.com>
79795
79796         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79797         * m4/jm-macros.m4 (jm_MACROS): require it.
79798
79799 2000-12-02  Jim Meyering  <meyering@lucent.com>
79800
79801         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79802
79803 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79804
79805         * lib/memrchr.c: Include <config.h> before any system include file.
79806
79807 2000-11-30  Jim Meyering  <meyering@lucent.com>
79808
79809         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79810
79811 2000-11-30  Jim Meyering  <meyering@lucent.com>
79812
79813         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79814
79815 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79816
79817         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79818
79819 2000-11-26  Jim Meyering  <meyering@lucent.com>
79820
79821         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79822
79823 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79824
79825         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79826         size of (size_t) -1; it's not portable.
79827
79828 2000-11-17  Jim Meyering  <meyering@lucent.com>
79829
79830         * lib/strstr.c: Update from GNU libc.
79831
79832 2000-11-17  Akim Demaille  <akim@epita.fr>
79833
79834         * lib/obstack.h: Formatting changes.
79835         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79836         prevent type checking.
79837         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79838         cast the value to (void *): assigning a `foo *' to a `void *'
79839         variable is valid.
79840         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79841
79842 2000-11-16  Jim Meyering  <meyering@lucent.com>
79843
79844         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79845
79846 2000-11-11  Jim Meyering  <meyering@lucent.com>
79847
79848         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79849
79850 2000-11-10  Jim Meyering  <meyering@lucent.com>
79851
79852         * lib/obstack.h: Update from GNU libc.
79853         * lib/obstack.c: Likewise.
79854
79855 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79856
79857         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79858
79859 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79860
79861         * lib/getusershell.c (setusershell): Use rewind rather than
79862         fseek/fseeko, to avoid configuration hassles with fseeko.
79863         Don't bother opening SHELLS_FILE if shellstream is NULL;
79864         it's not necessary.
79865
79866 2000-11-05  Jim Meyering  <meyering@lucent.com>
79867
79868         * lib/makepath.h (make_dir): Declare.
79869         * lib/makepath.c (make_dir): Remove `static' attribute.
79870         Tweak a comment.
79871
79872 2000-11-04  Jim Meyering  <meyering@lucent.com>
79873
79874         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79875
79876 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79877
79878         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79879         last one in a bucket, advance to the next bucket.
79880
79881 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79882
79883         * lib/fnmatch.c: Do not comment out all the code if we are using
79884         the GNU C library, because in some cases we are replacing buggy
79885         code in the GNU C library itself.
79886
79887 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79888
79889         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79890         (regex_compile): Catch bogus \(\1\).
79891
79892 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79893
79894         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79895         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79896         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79897
79898 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79899
79900         * lib/error.h, getline.h, modechange.h:
79901         Remove "2000" from Copyright line, as the file hasn't been
79902         changed this year other than in the copyright notice.
79903
79904         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79905         was changed this year.
79906
79907 2000-10-29  Jim Meyering  <meyering@lucent.com>
79908
79909         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79910         renaming.
79911         * m4/ls-mntd-fs.m4: Likewise
79912
79913 2000-10-29  Jim Meyering  <meyering@lucent.com>
79914
79915         * lib/xstat.in: Fix grammar in comment.
79916
79917 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79918
79919         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79920         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79921         doesn't define __restrict_arr.
79922
79923 2000-10-28  Jim Meyering  <meyering@lucent.com>
79924
79925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79926         (jm_PREREQ_MEMCHR): New function.
79927
79928 2000-10-28  Jim Meyering  <meyering@lucent.com>
79929
79930         * lib/memchr.c: Update from libc.
79931         Adjust for portability:
79932         [HAVE_STDLIB_H]: Include stdlib.h.
79933         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79934         Undef __memchr, too.
79935         [!weak_alias]: Define __memchr to memchr.
79936
79937         * lib/regex.c: Update from libc.
79938         * lib/regex.h: Likewise.
79939         * lib/getopt1.c: Likewise.
79940         * lib/memcmp.c: Likewise.
79941
79942         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79943         Avoid using fseek, when possible -- it's broken by design.
79944         Patch by Ulrich Drepper.
79945
79946 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79947
79948         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79949         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79950         Giving in to popular pressure to shut up the compiler with casts.
79951
79952 2000-10-26  Jim Meyering  <meyering@lucent.com>
79953
79954         * lib/strftime.c: Update from libc.
79955
79956 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79957
79958         * regex.c: More `unsigned char' -> `re_char' changes.
79959         Also change several `int' into `re_wchar_t'.
79960         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79961         (PUSH_FAILURE_POINTER): Don't cast any more.
79962         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79963         We want GCC to complain, since this piece of code makes
79964         re_match non-reentrant, which *should* be fixed.
79965         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79966         (EXTEND_BUFFER): Use RETALLOC.
79967         (SET_LIST_BIT): Don't cast.
79968         (re_wchar_t): New type.
79969         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79970         that those two functions will always properly return.
79971         (IMMEDIATE_QUIT_CHECK): Cast to void.
79972         (analyse_first): Use recursion rather than an explicit stack.
79973         (re_compile_fastmap): Can't fail anymore.
79974         (re_search_2): Don't check re_compile_fastmap for failure.
79975         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79976         Now also sets the new value (passed in a new argument).
79977         (re_match_2_internal): Use it.
79978         Also, use a new var `reg' of type size_t when looping through regs
79979         rather than reuse the inappropriate `mcnt'.
79980
79981 2000-10-25  Jim Meyering  <meyering@lucent.com>
79982
79983         * lib/obstack.c: Update from libc.
79984
79985 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79986
79987         * regex.c (regex_compile): Change the way of handling a range from
79988         a char less than 256 to a char not less than 256.
79989
79990 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79991
79992         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79993         NT-Emacs only.
79994         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79995         so that re_search functions only quit when callers expect them to.
79996
79997 2000-10-23  Jim Meyering  <meyering@lucent.com>
79998
79999         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80000         wrong.  That set_locale call must not have any side effects.
80001         From Paul Eggert.
80002
80003 2000-10-22  Jim Meyering  <meyering@lucent.com>
80004
80005         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80006         [CYCLIC]: Remove now-unused definition.
80007
80008         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80009         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80010         Suggestion from Ulrich Drepper.
80011
80012 2000-10-21  Jim Meyering  <meyering@lucent.com>
80013
80014         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80015         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80016         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80017
80018 2000-10-21  Jim Meyering  <meyering@lucent.com>
80019
80020         * lib/dirname.c (memrchr): Declare if necessary.
80021         (dir_name): Remove the restriction that there be no
80022         trailing slashes.  Now, this code skips past them, effectively
80023         ignoring them.
80024         [TEST_DIRNAME] (main): New unit tests.
80025
80026         * lib/memrchr.c: New file from GNU libc.
80027         Undef __memrchr, too.
80028         [!weak_alias]: Define __memrchr to memrchr.
80029         Guard weak_alias use with `#ifdef weak_alias'.
80030
80031 2000-10-21  Jim Meyering  <meyering@lucent.com>
80032
80033         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80034         (dir_name): Use dir_name_r.
80035         * lib/dirname.h (dir_name_r): Declare it.
80036
80037 2000-10-17  Jim Meyering  <meyering@lucent.com>
80038
80039         * lib/quote.h (PARAMS): Define and use.
80040         Reported by Akim Demaille.
80041
80042         * lib/getopt.c: Update from libc.
80043
80044 2000-10-16  Jim Meyering  <meyering@lucent.com>
80045
80046         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80047         setlocale.
80048         From Jan Fedak.
80049
80050 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80051
80052         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80053
80054 2000-09-25  Jim Meyering  <meyering@lucent.com>
80055
80056         * lib/md5.h (rol): Define (from GnuPG).
80057
80058         * lib/sha.c: Give credit (GnuPG) where due.
80059         (M): Use rol rather than open-coding it.
80060         Add a FIXME comment.
80061
80062 2000-09-21  Jim Meyering  <meyering@lucent.com>
80063
80064         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80065         Reported by Michael Stone.
80066
80067 2000-09-20  Jim Meyering  <meyering@lucent.com>
80068
80069         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80070         (noinst_HEADERS): Add sha.h.
80071         Based on code from Scott G. Miller and from GnuPG.
80072
80073 2000-09-18  Jim Meyering  <meyering@lucent.com>
80074
80075         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80076         LIBS. Otherwise, everyone ends up linking with -lelf for some
80077         configurations.
80078         Reported by Mike Stone.
80079
80080 2000-09-15  Jim Meyering  <meyering@lucent.com>
80081
80082         * lib/regex.c: Update from libc.
80083
80084 2000-09-10  Jim Meyering  <meyering@lucent.com>
80085
80086         * lib/getopt.c (_getopt_internal): Update from glibc.
80087
80088 2000-09-09  Jim Meyering  <meyering@lucent.com>
80089
80090         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80091         think it should be used as a general replacement for isascii.
80092         * lib/fnmatch.c: Likewise.
80093         * lib/mbswidth.c: Likewise
80094         * lib/regex.c: Likewise.
80095
80096         Don't use atoi.
80097         * lib/userspec.c: Include sys/param.h and limits.h.
80098         Include xstrtol.h.
80099         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80100         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80101         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80102         UID, GID.  Check range.
80103
80104 2000-09-06  Jim Meyering  <meyering@lucent.com>
80105
80106         * lib/getopt.c (_getopt_internal): Update from glibc.
80107
80108 2000-08-30  Jim Meyering  <meyering@lucent.com>
80109
80110         * lib/strftime.c: Merge in changes from GNU libc.
80111
80112 2000-08-26  Jim Meyering  <meyering@lucent.com>
80113
80114         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80115         * m4/fpending.m4: New file.
80116
80117 2000-08-26  Jim Meyering  <meyering@lucent.com>
80118
80119         * lib/closeout.c: Include "__fpending.h".
80120         (close_stdout_status): Return right away if there's nothing to flush.
80121
80122         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80123         * lib/__fpending.c: New file.
80124         * lib/__fpending.h: New file.
80125
80126 2000-08-20  Jim Meyering  <meyering@lucent.com>
80127
80128         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80129         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80130         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80131
80132 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80133
80134         Improve fileutils installation on systems where running
80135         programs (like install) can't be unlinked.
80136         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80137         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80138
80139 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80140
80141         Standardize on "memory exhausted" instead of "Memory exhausted"
80142         or "virtual memory exhausted".
80143         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80144         "virtual memory exhausted".
80145         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80146         our own message.
80147         * lib/userspec.c (parse_user_spec): Likewise.
80148         * lib/bumpalloc.h: comment fix
80149         * lib/same.c, userspec.c: Include xalloc.h.
80150
80151         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80152         not char *const and pointing to a constant array.
80153         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80154         (xrealloc): Comment fix.
80155
80156         * lib/userspec.c (parse_user_spec):
80157         Don't translate a message until just before returning,
80158         to avoid unnecessary translation.
80159
80160 2000-08-07  Jim Meyering  <meyering@lucent.com>
80161
80162         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80163         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80164         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80165         getgroups.c, gethostname.c, getopt.h, group-member.c,
80166         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80167         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80168         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80169         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80170         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80171         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80172         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80173         yesno.c: Back out Copyright date changes for each file with no change
80174         this year.  This eases coordination with other programs using the same
80175         source code modules.  From Paul Eggert.
80176
80177 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80178
80179         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80180         not char, for compatibility with glibc 2.1.3 strftime.c.
80181
80182 2000-08-03  Greg McGary  <greg@mcgary.org>
80183
80184         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80185         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80186         (EXTEND_BUFFER): Use them.
80187
80188 2000-08-01  Jim Meyering  <meyering@lucent.com>
80189
80190         * lib/dirname.c (ISSLASH): Define.
80191         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80192         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80193         both `\' and `/' may be use as path separators.
80194         Based on a patch from Prashant TR.
80195
80196 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80197
80198         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80199         slot vector a constant, since it might get modified.
80200
80201 2000-07-31  Jim Meyering  <meyering@lucent.com>
80202
80203         * lib/xmalloc.c: Use `virtual memory exhausted', not
80204         `Memory exhausted'.
80205         * lib/obstack.c (print_and_abort): Likewise.
80206
80207 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80208
80209         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80210         buffer, so that the caller can always quote one small
80211         component of a "memory exhausted" message in slot 0.
80212         From a suggestion by Jim Meyering.
80213
80214 2000-07-30  Jim Meyering  <meyering@lucent.com>
80215
80216         * lib/makepath.c (make_path): Quote the other instance, too.
80217
80218         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80219         (STATIC_BUF_SIZE): Define.
80220         (quotearg_n_options): Use only statically allocated storage when
80221         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80222         than STATIC_BUF_SIZE.
80223
80224 2000-07-29  Jim Meyering  <meyering@lucent.com>
80225
80226         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80227         * lib/dirname.c (dir_name): Likewise.
80228
80229         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80230         `/'.
80231
80232         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80233         (dir_name): Assert that there are no trailing slashes.
80234
80235 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80236
80237         * lib/mbswidth.h (mbswidth): Add a flags argument.
80238         (mbswidth): New declaration.
80239         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80240         * lib/mbswidth.c (mbswidth): Add a flags argument.
80241         (mbsnwidth): New function.
80242
80243 2000-07-24  Jim Meyering  <meyering@lucent.com>
80244
80245         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80246
80247 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80248
80249         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80250
80251 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80252
80253         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80254         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80255         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80256         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80257         invoke multibyte primitives.
80258
80259 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80260
80261         * lib/quotearg.c:
80262         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80263         so that mbstate_t is always defined.
80264
80265         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80266         be 1 in at least one GCC installation, and this configuration
80267         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80268         performance on hosts that have mbrtowc but have only unibyte
80269         locales, but I assume these hosts are rare.
80270
80271 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80272
80273         * lib/mbswidth.c (_XOPEN_SOURCE):
80274         Don't define; this causes problems on Solaris 7.
80275         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80276
80277 2000-07-23  Jim Meyering  <meyering@lucent.com>
80278
80279         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80280         too: getgrgid, getpwuid, getuid.
80281
80282 2000-07-23  Jim Meyering  <meyering@lucent.com>
80283
80284         * lib/basename.c (base_name): Add an assertion.
80285
80286 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80287
80288         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80289         shadow its mbsinit function.
80290
80291 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80292
80293         * lib/mbswidth.h: New file.
80294         * lib/mbswidth.c: New file.
80295         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80296         (noinst_HEADERS): Add mbswidth.h.
80297
80298 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80299
80300         * lib/config.charset: Add support for FreeBSD. Improve support for
80301         HP-UX and IRIX 6.
80302
80303 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80304
80305         * m4/mbswidth.m4: New file.
80306         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80307
80308 2000-07-15  Jim Meyering  <meyering@lucent.com>
80309
80310         * lib/makepath.c: Include quote.h.
80311         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80312         corresponding argument in a `quote (...)' call.
80313         Give better diagnostics.
80314
80315         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80316         (noinst_HEADERS): Add quote.h.
80317
80318         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80319         from tar's src/misc.c.
80320         * lib/quote.h: New file.  Prototypes for same.
80321
80322 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80323
80324         From a suggestion by Bruno Haible.
80325         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80326         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80327         to decide whether to define the BeOS workaround macro;
80328         this adjusts to the change to AC_MBSTATE_T.
80329
80330 2000-07-14  Jim Meyering  <meyering@lucent.com>
80331
80332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80333         jm_AC_TYPE_UINTMAX_T.
80334
80335 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80336
80337         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80338
80339         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80340         quotearg_buffer_restyled): Add support for
80341         clocale_quoting_style.  Undo previous change to
80342         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80343         and "{RIGHT QUOTATION MARK}" msgids.
80344
80345 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80346
80347         From a suggestion by Bruno Haible.
80348         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80349         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80350         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80351         and mbstate_t, to a single-part test that simply defines mbstate_t.
80352         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80353         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80354
80355 2000-07-10  Jim Meyering  <meyering@lucent.com>
80356
80357         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80358
80359         * m4/gnu-source.m4: Output to confdefs.h directly.
80360         Suggestion from Akim Demaille.
80361
80362 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80363
80364         The old behavior of quoting `like this' doesn't look good with
80365         newer, ISO-style fonts.  See:
80366         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80367
80368         Instead, quote "like this" by default.  Let the translator
80369         tailor the locale-specific quoting behavior by providing
80370         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80371
80372         * lib/quotearg.c (N_): New macro.
80373         (gettext_default): New function.
80374         (quotearg_buffer_restyled): Use
80375         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80376         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80377
80378 2000-07-09  Jim Meyering  <meyering@lucent.com>
80379
80380         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80381         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80382
80383         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80385
80386 2000-07-09  Jim Meyering  <meyering@lucent.com>
80387
80388         * lib/Most files: Update copyright dates to include 2000.
80389
80390 2000-07-08  Jim Meyering  <meyering@lucent.com>
80391
80392         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80393         if not defined.
80394         (xgethostname): Remove now-unnecessary #ifdef.
80395         Move declaration of `err' into loop where it's used.
80396
80397 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80398         and Bruno Haible  <haible@clisp.cons.org>
80399
80400         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80401         only if the test for an object-type mbstate_t fails.  This
80402         prevents us from mistakenly reporting that mbstate_t is a
80403         system object type after we "#define mbstate_t int" to work
80404         around its lack.
80405
80406 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80407         and Bruno Haible  <haible@clisp.cons.org>
80408
80409         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80410
80411 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80412
80413         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80414         to strerror_r.
80415         Include <ctype.h> for use of isalpha.
80416
80417 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80418
80419         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80420         by allocating a larger buffer. Test the gethostname return value for
80421         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80422         returns an error and ENAMETOOLONG isn't defined.
80423
80424 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80425
80426         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80427         dimension.
80428
80429 2000-07-04  Jim Meyering  <meyering@lucent.com>
80430
80431         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80432         of the deprecated AC_CHECKING.
80433
80434 2000-07-04  Jim Meyering  <meyering@lucent.com>
80435
80436         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80437         Reported by Bruno Haible.
80438
80439 2000-07-04  Jim Meyering  <meyering@lucent.com>
80440
80441         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80442         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80443         lacks mbrtowc.
80444
80445 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80446
80447         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80448         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80449
80450 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80451         and Bruno Haible  <haible@clisp.cons.org>
80452
80453         * lib/quotearg.c (mbrtowc):
80454         Assign to *pwc, and return 1 only if result is nonzero.
80455         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80456
80457 2000-07-03  Jim Meyering  <meyering@lucent.com>
80458
80459         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80460
80461 2000-07-03  Jim Meyering  <meyering@lucent.com>
80462
80463         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80464         This is necessary to get a definition of e.g., UTMP_FILE on
80465         HP-UX 10.20.
80466         From Bob Proulx.
80467
80468 2000-07-02  Jim Meyering  <meyering@lucent.com>
80469
80470         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80471
80472         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80473         AC_LIBOBJ(function_name).
80474         * m4/chown.m4: Likewise.
80475         * m4/fnmatch.m4: Likewise.
80476         * m4/ftruncate.m4: Likewise.
80477         * m4/getgroups.m4: Likewise.
80478         * m4/getline.m4: Likewise.
80479         * m4/group-member.m4: Likewise.
80480         * m4/jm-macros.m4: Likewise.
80481         * m4/lstat.m4: Likewise.
80482         * m4/malloc.m4: Likewise.
80483         * m4/memcmp.m4: Likewise.
80484         * m4/nanosleep.m4: Likewise.
80485         * m4/putenv.m4: Likewise.
80486         * m4/realloc.m4: Likewise.
80487         * m4/regex.m4: Likewise.
80488         * m4/stat.m4: Likewise.
80489         * m4/strftime.m4: Likewise.
80490
80491 2000-07-02  Jim Meyering  <meyering@lucent.com>
80492
80493         * lib/quotearg.c (mbstate_t): Don't define here.
80494
80495 2000-07-02  Jim Meyering  <meyering@lucent.com>
80496
80497         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80498
80499 2000-07-01  Jim Meyering  <meyering@lucent.com>
80500
80501         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80502
80503 2000-07-01  Jim Meyering  <meyering@lucent.com>
80504
80505         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80506         problem.
80507
80508 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80509
80510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80511         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80512
80513 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80514
80515         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80516         per change in ../m4/ls-mntd-fs.m4.
80517         (read_filesystem_list): Ignore symbolic links.
80518
80519 2000-06-29  Jim Meyering  <meyering@lucent.com>
80520
80521         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80522         for declaration of strcmp.
80523
80524         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80525
80526         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80527         Avoid warning by casting result to `char *' to remove `const'.
80528
80529 2000-06-28  Jim Meyering  <meyering@lucent.com>
80530
80531         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80532         included by quotearg.c, for which we perform this test.  From
80533         Bruno Haible.
80534
80535 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80536
80537         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80538         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80539         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80540
80541 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80542
80543         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80544
80545 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80546
80547         savedir now sets errno on failure and invokes xmalloc to get memory.
80548         Fix a couple of other minor bugs while we're at it.
80549
80550         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80551         (NAMLEN): Remove macro.
80552         (malloc, realloc): Remove decls.
80553         (stpcpy): Likewise.
80554         ("xalloc.h"): Include.
80555         (NAME_SIZE_DEFAULT): New macro.
80556         (savedir): Use xmalloc / xrealloc to allocate memory.
80557         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80558         Skip "" directory entries.
80559         Use strlen to calculate directory entry length, since the old method
80560         is rarely used these days and isn't worth supporting.
80561         Don't use a pointer after freeing it.
80562         Check for integer overflow when calculating allocation size.
80563         Use memcpy to copy entries, instead of stpcpy.
80564         Set errno properly when returning NULL.
80565         Check for readdir error.
80566
80567 2000-06-26  Jim Meyering  <meyering@lucent.com>
80568
80569         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80570
80571 2000-06-25  Jim Meyering  <meyering@lucent.com>
80572
80573         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80574         Linux header bug when _XOPEN_SOURCE is defined to 500.
80575
80576 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80577
80578         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80579         deficiency.
80580
80581 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80582
80583         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80584         Include xalloc.h.
80585         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80586
80587 2000-06-24  Jim Meyering  <meyering@lucent.com>
80588
80589         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80590         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80591         for which strerror does return char*, but which lacks a conveniently
80592         accessible declaration of the function.  If the compile-test says
80593         strerror_r doesn't work, then resort to a `run'-test that works on
80594         BeOS and segfaults on DEC Unix.
80595
80596 2000-06-24  Jim Meyering  <meyering@lucent.com>
80597
80598         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80599
80600 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80601
80602         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80603         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80604
80605 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80606
80607         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80608         (mbrtowc, mbstate_t): Define substitutes if
80609         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80610         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80611         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80612
80613 2000-06-23  Jim Meyering  <meyering@lucent.com>
80614
80615         * m4/afs.m4: Add missing AC_MSG_RESULT.
80616         Reported by Bruno Haible.
80617
80618         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80619         Suggestion from Bruno Haible.
80620
80621 2000-06-23  Jim Meyering  <meyering@lucent.com>
80622
80623         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80624
80625 2000-06-21  Jim Meyering  <meyering@lucent.com>
80626
80627         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80628
80629 2000-06-21  Jim Meyering  <meyering@lucent.com>
80630
80631         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80632         (noinst_HEADERS): Add getstr.h.
80633
80634         * lib/getline.c (getstr): Move into a separate file.
80635         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80636         the following changes: new parameter, delim2; both delim[12]
80637         parameters have type `int', not `char'.  The latter would lose
80638         with 8-bit delimiters.
80639         * lib/getstr.h: New file.
80640
80641 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80642
80643         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80644         than 1024, return a memory chunk of least possible size, instead
80645         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80646         Use free/xmalloc instead of xrealloc to avoid copying for very long
80647         paths.
80648
80649 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80650
80651         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80652         the empty string.
80653
80654 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80655
80656         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80657         address, not strdup.  Include <stdlib.h> and don't declare free().
80658
80659 2000-06-19  Jim Meyering  <meyering@lucent.com>
80660
80661         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80662
80663 2000-06-18  Jim Meyering  <meyering@lucent.com>
80664
80665         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80666
80667         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80668         `checking whether...' message to be consistent with that of the
80669         lstat test.
80670
80671 2000-06-18  Jim Meyering  <meyering@lucent.com>
80672
80673         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80674         Besides, these days every porting target provides a mkdir function.
80675
80676         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80677         needed. (this snippet comes from src/system.h).
80678
80679 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80680
80681         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80682
80683 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80684
80685         * lib/human.c (adjust_value): New function.
80686         (human_readable_inexact): Apply rounding style even when
80687         printing approximate values.
80688
80689 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80690
80691         * lib/human.c (human_readable_inexact): Allow an input block
80692         size that is not a multiple of the output block size, and vice versa.
80693         Reported by Piergiorgio Sartor.
80694
80695 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80696
80697         * lib/getdate.y (get_date): Apply relative times after time
80698         zone indicator, not before.  Reported by Todd A. Jacobs.
80699
80700 2000-06-13  Jim Meyering  <meyering@lucent.com>
80701
80702         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80703
80704         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80705
80706 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80707
80708         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80709
80710 2000-06-12  Jim Meyering  <meyering@lucent.com>
80711
80712         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80713         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80714         optional argument.
80715         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80716         the optional argument, `lib'.
80717
80718 2000-06-08  Jim Meyering  <meyering@lucent.com>
80719
80720         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80721
80722 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80723
80724         Rewrite largefile configuration so that we don't need to run
80725         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80726         AC_CANONICAL_HOST in configure.in -- jmm]
80727
80728         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80729         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80730         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80731         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80732         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80733         All uses changed.
80734         Instead of inspecting the output of getconf, try to compile the
80735         test program without and with the macro definition.
80736         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80737         for getconf.  Instead, check for the needed flags by compiling
80738         test programs.
80739
80740 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80741
80742         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80743
80744 2000-06-04  Jim Meyering  <meyering@lucent.com>
80745
80746         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80747         SunOS 4.1.4 for which gid_t is an unsigned type.
80748
80749 2000-06-03  Jim Meyering  <meyering@lucent.com>
80750
80751         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80752         now that autoconf requires that.
80753
80754         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80755         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80756         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80757
80758 2000-06-03  Jim Meyering  <meyering@lucent.com>
80759
80760         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80761
80762 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80763
80764         * m4/glibc21.m4: New file.
80765         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80766
80767 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80768
80769         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80770         newer, don't install charset.alias.
80771         * lib/config.charset: Change the Linux/glibc rules so they become empty
80772         on glibc-2.1 or newer.
80773
80774 2000-06-02  Jim Meyering  <meyering@lucent.com>
80775
80776         * lib/mountlist.c: Back out last change.  Instead, do this...
80777         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80778         me_dummy member using the same `ignore'-testing code.
80779         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80780         fs_type strings.
80781         From Mark D. Roth.
80782
80783 2000-05-29  Jim Meyering  <meyering@lucent.com>
80784
80785         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80786         mounts with the `ignore' attribute.  Based on a patch from
80787         Mark D. Roth.
80788
80789 2000-05-28  Jim Meyering  <meyering@lucent.com>
80790
80791         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80792         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80793         * m4/stat.m4: Likewise.
80794         * m4/lstat.m4: Likewise.
80795         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80796
80797         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80798         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80799
80800 2000-05-26  Jim Meyering  <meyering@lucent.com>
80801
80802         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80803
80804 2000-05-24  Jim Meyering  <meyering@lucent.com>
80805
80806         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80807         autoconf requires that.
80808         * m4/lib-check.m4: Likewise.
80809         * m4/jm-macros.m4: Likewise.
80810         * m4/strftime.m4: Likewise.
80811
80812         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80813         AC_CHECK_DECLS, now that autoconf requires that.
80814
80815 2000-05-22  Jim Meyering  <meyering@lucent.com>
80816
80817         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80818         * m4/lstat.m4: Likewise.
80819
80820 2000-05-22  Jim Meyering  <meyering@lucent.com>
80821
80822         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80823
80824 2000-05-20  Jim Meyering  <meyering@lucent.com>
80825
80826         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80827         (jm_PREREQ): Use it.
80828
80829 2000-05-18  Jim Meyering  <meyering@lucent.com>
80830
80831         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80832         back, too, since it may have been modified by allocate_entry.
80833         (hash_delete): Rewrite to use neither the assignment operator
80834         nor the comma operator in an if-expression.
80835
80836 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80837
80838         * lib/closeout.c:
80839         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80840         Remove; no longer needed.
80841         "quotearg.h": Add include.
80842         (file_name): Do not bother to explicitly initialize to NULL; it's less
80843         efficient on some hosts.
80844         (close_stdout_status): Remove test as to whether stdout was already
80845         closed; it breaks for the case "echo x | sort >&-".
80846         Quote file name colons.
80847         Do not assume that _("write error") lacks format strings.
80848
80849 2000-05-15  Jim Meyering  <meyering@lucent.com>
80850
80851         * lib/version-etc.c (version_etc_copyright): Update the copyright
80852         string used in all --version output.
80853
80854 2000-05-14  Jim Meyering  <meyering@lucent.com>
80855
80856         * lib/closeout.c (close_stdout_set_file_name): New function.
80857         (close_stdout_status): Use new file-scoped global.
80858         Return right away if fstat says the stdout file descriptor is invalid.
80859         * lib/closeout.h (close_stdout_set_file_name): Declare.
80860
80861 2000-05-10  Jim Meyering  <meyering@lucent.com>
80862
80863         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80864         (close_stdout_set_status): New function.
80865         * lib/closeout.h (close_stdout_set_status): Declare.
80866
80867 2000-05-09  Jim Meyering  <meyering@lucent.com>
80868
80869         * m4/gettext.m4: Rename this...
80870         * m4/libintl.m4: ...to this.
80871
80872 2000-05-08  Jim Meyering  <meyering@lucent.com>
80873
80874         * lib/long-options.c: Don't include closeout.h.
80875         (parse_long_options): Don't call close_stdout for --version.
80876
80877 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80878
80879         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80880         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80881         2.1.3 bug.  This avoids a clash when files like regex.c define
80882         _GNU_SOURCE.
80883
80884 2000-05-06  Jim Meyering  <meyering@lucent.com>
80885
80886         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80887         (AC_REPLACE_FUNCS): Add strnlen.
80888
80889         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80890         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80891
80892         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80893         AC_SEARCH_LIBS call for nanosleep.
80894         (LIB_NANOSLEEP): Set and AC_SUBST.
80895
80896 2000-05-06  Jim Meyering  <meyering@lucent.com>
80897
80898         * lib/strnlen.c: Undefine __strnlen and strnlen.
80899         [!weak_alias]: Define __strnlen to strnlen.
80900
80901         * lib/atexit.c: New file, from libiberty.
80902
80903 2000-05-06  Jim Meyering  <meyering@lucent.com>
80904
80905         * lib/closeout.c (close_stdout_status): Also check for errors on the
80906         stderr stream.
80907
80908 2000-05-05  Jim Meyering  <meyering@lucent.com>
80909
80910         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80911         AC_SEARCH_LIBS call for clock_gettime.
80912         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80913
80914         * m4/search-libs.m4: Update from autoconf.
80915
80916         su doesn't work on Solaris 2.6.
80917         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80918         <shadow.h>.  Reported by Dragos Harabor.
80919
80920 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80921
80922         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80923         memcpy instead of xmalloc, xrealloc, path_concat.
80924         (locale_charset): Treat empty environment variables as absent.
80925         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80926
80927 2000-05-04  Jim Meyering  <meyering@lucent.com>
80928
80929         * lib/getopt.c: Update from glibc.
80930         * lib/obstack.c: Likewise.
80931         * lib/obstack.h: Likewise.
80932         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80933         file
80934
80935         * lib/regex.h: Likewise.
80936         * lib/strndup.c: Likewise.
80937         * lib/strnlen.c: New file, from glibc.
80938
80939 2000-05-03  Jim Meyering  <meyering@lucent.com>
80940
80941         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80942
80943 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80944
80945         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80946         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80947         compile-time test, rather than inspecting host and OS, to
80948         decide whether to define _LARGEFILE_SOURCE.
80949
80950 2000-05-01  Jim Meyering  <meyering@lucent.com>
80951
80952         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80953
80954         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80955         Based on a patch from Bruno Haible.
80956
80957 2000-05-01  Jim Meyering  <meyering@lucent.com>
80958
80959         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80960
80961 2000-04-29  Jim Meyering  <meyering@lucent.com>
80962
80963         * lib/path-concat.c: Declare strdup only if it's not defined.
80964         * lib/canon-host.c: Likewise.
80965
80966 2000-04-28  Jim Meyering  <meyering@lucent.com>
80967
80968         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80969         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80970         is included first, then limits.h is included by locale.h by libintl.h.
80971         From John David Anglin.
80972
80973 2000-04-25  Jim Meyering  <meyering@lucent.com>
80974
80975         * lib/makepath.c (S_IRWXUGO): Define.
80976         (make_path): Always perform explicit chmod if MODE specifies any
80977         of the `special' permission bits.  Prompted by a bug report against
80978         install from Mate Wierdl and Joost van Baal.
80979
80980 2000-04-18  Jim Meyering  <meyering@lucent.com>
80981
80982         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80983         (jm_PREREQ): Use it.
80984
80985 2000-04-18  Jim Meyering  <meyering@lucent.com>
80986
80987         * lib/README: New file.
80988
80989         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80990         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80991
80992 2000-04-17  Jim Meyering  <meyering@lucent.com>
80993
80994         Get it right :-)
80995         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80996         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80997         Suggestion from Akim Demaille.
80998
80999 2000-04-17  Jim Meyering  <meyering@lucent.com>
81000
81001         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81002         the definition of it to rpl_strftime also defined-away the system's
81003         declaration.
81004
81005 2000-04-15  Jim Meyering  <meyering@lucent.com>
81006
81007         Use `C' to denote so-called `contiguous' files, the same way
81008         that tar does.
81009         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81010         (ftypelet): Use S_ISCTG.
81011         From Michael Deutschmann.
81012
81013 2000-04-14  Jim Meyering  <meyering@lucent.com>
81014
81015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81016         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81017         clobbered.
81018
81019 2000-04-14  Jim Meyering  <meyering@lucent.com>
81020
81021         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81022
81023 2000-04-13  Jim Meyering  <meyering@lucent.com>
81024
81025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81026         AH_VERBATIM to insert required #ifndef into config.h.in.
81027         Suggestion from Akim Demaille.
81028
81029 2000-04-12  Jim Meyering  <meyering@lucent.com>
81030
81031         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81032         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81033         Christian Krackowizer.
81034
81035         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81036         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81037         (AC_SYS_LARGEFILE): Require.
81038         (AM_C_PROTOTYPES): Require.
81039
81040 2000-04-08  Jim Meyering  <meyering@lucent.com>
81041
81042         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81043         names don't conflict.  Reported by Eli Zaretskii.
81044
81045 2000-04-07  Jim Meyering  <meyering@lucent.com>
81046
81047         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81048         sys/types.h, to work around system header problems on AIX 3.2.5.
81049         From Bruno Haible.
81050
81051 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81052
81053         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81054         bug.  Deal with the different error behavior of Irix iconv.
81055
81056 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81057
81058         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81059         IRIX if the installer said otherwise.
81060
81061 2000-04-05  Jim Meyering  <meyering@lucent.com>
81062
81063         Portability tweaks required for ultrix4.3.
81064         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81065         (jm_CHECK_DECLS): Add getutent to the list of functions.
81066         (_jm_DECL_HEADERS): Add utmpx.h.
81067         From John David Anglin.
81068
81069         * m4/strftime.m4: Back out the 2000-04-02 change.
81070         Instead of that change, simply undefine putenv in the test program.
81071
81072 2000-04-05  Jim Meyering  <meyering@lucent.com>
81073
81074         Portability tweaks required for ultrix4.3.
81075         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81076         getutent.
81077         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81078         * lib/canon-host.c: Declare strdup.
81079         * lib/path-concat.c: Likewise.
81080         From John David Anglin.
81081
81082 2000-04-04  Jim Meyering  <meyering@lucent.com>
81083
81084         Be more DOS 8.3-friendly.
81085         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81086         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81087         * lib/Makefile.am: Reflect renaming.
81088         Reported by Eli Zaretskii.
81089
81090         Use a temporary file name that won't clash with `charset.alias'
81091         in the DOS 8.3 name space.
81092         * lib/Makefile.am (charset_tmp): Define.
81093         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81094         (uninstall-local): Likewise.
81095         Reported by Eli Zaretskii.
81096
81097 2000-04-03  Jim Meyering  <meyering@lucent.com>
81098
81099         * m4/gettext.m4: Fix typo in comment.
81100
81101         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81102         textutils/configure.in).  Suggestion from Paul Eggert.
81103         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81104
81105 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81106
81107         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81108         variable in the shell rather than using putenv, which isn't
81109         portable.  This avoids the configure-time inter-test dependency
81110         on the potentially-renamed putenv function.
81111
81112 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81113
81114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81115         before checking struct stat.st_blksize, so that
81116         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81117
81118 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81119
81120         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81121         since strftime.c uses HAVE_STRFTIME to decide whether to use
81122         the underlying strftime.
81123
81124 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81125
81126         * lib/time/strftime.c (my_strftime): Make sure we call the system
81127         strftime, not ourselves, when invoking the underlying strftime.
81128
81129 2000-03-24  Jim Meyering  <meyering@lucent.com>
81130
81131         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81132         (charset_alias): Define.
81133         (install-exec-local): Factor out common code.
81134         (uninstall-local): Split lines longer than 80.
81135         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81136         (SUFFIXES): Define.
81137         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81138         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81139
81140 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81141
81142         * lib/config.charset: Output a line containing "Packages using this
81143         file".
81144         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81145         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81146         ref-del.sed): New rules.
81147
81148 2000-03-17  Jim Meyering  <meyering@lucent.com>
81149
81150         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81151         Otherwise, include <strings.h>
81152
81153 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81154
81155         * lib/unicodeio.c (utf8_wctomb): New function.
81156         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81157         format instead of in UCS-4 with platform dependent endianness.
81158
81159 2000-03-10  Jim Meyering  <meyering@lucent.com>
81160
81161         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81162         From Marco Franzen.
81163
81164 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81165
81166         * lib/savedir.c (savedir): Work even if directory size is
81167         negative; this can happen with some screwy NFS configurations.
81168
81169 2000-03-06  Jim Meyering  <meyering@lucent.com>
81170
81171         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81172         if it's NULL (because we ran out of memory).  From Bruno Haible.
81173
81174 2000-03-05  Jim Meyering  <meyering@lucent.com>
81175
81176         * lib/localcharset.c ("path-concat.h"): Include.
81177         (get_charset_aliases): Use path_concat instead of ANSI string
81178         concatenation.
81179
81180         * lib/unicodeio.h (PARAMS): Define.
81181         Use it to guard prototype.
81182
81183 2000-03-04  Jim Meyering  <meyering@lucent.com>
81184
81185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81186         for lib/localcharset.c.
81187
81188 2000-03-04  Jim Meyering  <meyering@lucent.com>
81189
81190         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81191         installing into it.
81192         (uninstall-local): Uncomment this rule so `make distcheck' works
81193         once again.
81194
81195         * lib/unicodeio.c (<errno.h>): Include it.
81196         (errno): Declare if not defined.
81197
81198         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81199
81200         * lib/config.charset: New version, incorporating remarks from a linux
81201         i18n mailing list.  From Bruno Haible.
81202
81203 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81204
81205         * m4/codeset.m4: New file.
81206         * m4/iconv.m4: New file.
81207         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81208
81209 2000-03-03  Jim Meyering  <meyering@lucent.com>
81210
81211         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81212
81213 2000-03-02  Jim Meyering  <meyering@lucent.com>
81214
81215         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81216         the messages come out on separate lines.
81217
81218         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81219         rather than jm_CHECK_DECLARATIONS.
81220         * m4/decl.m4: Remove now-unused file.
81221
81222         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81223         geteuid.
81224
81225 2000-03-02  Jim Meyering  <meyering@lucent.com>
81226
81227         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81228
81229 2000-03-01  Jim Meyering  <meyering@lucent.com>
81230
81231         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81232         * lib/unicodeio.c: Likewise.
81233
81234 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81235
81236         * lib/config.charset: New file.
81237         * lib/localcharset.c: New file.
81238         * lib/unicodeio.h, lib/unicodeio.c: New files.
81239         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81240         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81241         (noinst_HEADERS): Add unicodeio.h.
81242         (all-local, install-exec-local, charset.alias): New targets.
81243
81244 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81245
81246         * lib/quotearg.c (ALERT_CHAR): New macro.
81247         (quotearg_buffer_restyled): Use it.
81248
81249 2000-02-27  Jim Meyering  <meyering@lucent.com>
81250
81251         * m4/check-decl.m4: Add getenv to the list.
81252
81253 2000-02-27  Jim Meyering  <meyering@lucent.com>
81254
81255         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81256         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81257
81258         * lib/backupfile.c: Guard inclusion of stdlib.h with
81259         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81260         Declare malloc if needed.
81261
81262         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81263         `#ifndef HAVE_DECL..'
81264         now that autoconf always defines the HAVE_DECL_ symbols.
81265         * lib/human.c: Likewise.
81266         * lib/same.c: Likewise.
81267         * lib/strtoumax.c: Likewise.
81268
81269         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81270         declaration check was not run.
81271         * lib/hash.c: Likewise.
81272         * lib/human.c: Likewise.
81273         * lib/same.c: Likewise.
81274         * lib/strtoumax.c: Likewise.
81275
81276         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81277         `.', then first look up the entire `.'-containing string as a login
81278         name.
81279
81280 2000-02-23  Jim Meyering  <meyering@lucent.com>
81281
81282         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81283         in place of my hack.
81284
81285 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81286
81287         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81288         (textint): New typedef.
81289         (parser_control): Member year changed from int to textint.
81290         All uses changed.
81291         (YYSTYPE): Removed; replaced by %union with int and textint members.
81292         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81293         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81294         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81295         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81296         (date, number, to_year): Use width of number in digits, not its value,
81297         to determine whether it's a 2-digit year, or a 2-digit time.
81298         (yylex): Store number of digits of numeric tokens.
81299         Reported by John Kendall.
81300
81301         (parser_control): Changed from struct parser_control to typedef (for
81302         consistency).  All uses changed.
81303
81304         (tID): Removed; not used.
81305         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81306
81307 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81308
81309         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81310         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81311
81312 2000-02-12  Jim Meyering  <meyering@lucent.com>
81313
81314         * lib/userspec.c (ISDIGIT): Define it.
81315         (isdigit): Remove definition.
81316         (is_number): Use ISDIGIT, not isdigit.
81317         <libintl.h>: Include.
81318         (_ and N_): Define.
81319         (parse_user_spec): Mark translatable strings.
81320
81321 2000-02-10  Jim Meyering  <meyering@lucent.com>
81322
81323         With these changes, nanosleep.[ch] are finally enough like the other
81324         lib/* replacement files to compile on a few more losing systems.
81325
81326         * lib/nanosleep.h: Don't include config.h.
81327         Remove prototype from declaration of nanosleep.
81328         (PARAMS): Remove now-unneeded definition.
81329         * lib/nanosleep.c: #undef nanosleep.
81330         (rpl_nanosleep): Rename from nanosleep.
81331
81332 2000-02-10  Jim Meyering  <meyering@lucent.com>
81333
81334         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81335         gnu_nanosleep to rpl_nanosleep.
81336
81337 2000-02-09  Jim Meyering  <meyering@lucent.com>
81338
81339         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81340         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81341
81342 2000-02-08  Akim Demaille  <akim@epita.fr>
81343
81344         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81345         `[' and `]' and remove uses of `changequote'.
81346         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81347         (AC_SYS_LARGEFILE): Likewise.
81348         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81349         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81350         of changequote.
81351         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81352         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81353         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81354         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81355
81356 2000-02-05  Jim Meyering  <meyering@lucent.com>
81357
81358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81359         Remove explicit use of AC_HEADER_TIME.  It is required by
81360         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81361         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81362         in autoconf whereby the expansion of the latter ended up preceding
81363         the expansion of its prerequisite, AC_HEADER_TIME.
81364         Reported by Volker Borchert.
81365
81366 2000-02-03  Jim Meyering  <meyering@lucent.com>
81367
81368         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81369
81370 2000-02-03  Jim Meyering  <meyering@lucent.com>
81371
81372         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81373         rather than with `#if HAVE_UTMPNAME'.
81374
81375 2000-02-02  Jim Meyering  <meyering@lucent.com>
81376
81377         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81378         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81379         Reported by Eli Zaretskii.
81380
81381 2000-02-01  Jim Meyering  <meyering@lucent.com>
81382
81383         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81384
81385 2000-01-31  Jim Meyering  <meyering@lucent.com>
81386
81387         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81388         functions.  Add the time.h and sys/time.h headers along with the
81389         AC_REQUIRE'ment of AC_HEADER_TIME.
81390
81391 2000-01-31  Jim Meyering  <meyering@lucent.com>
81392
81393         * lib/nanosleep.h (nanosleep): Guard declaration with
81394         `#if ! HAVE_DECL_NANOSLEEP'.
81395         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81396         the declaration in that vendor's sys/timers.h.
81397         Reported by Christian Krackowizer.
81398
81399         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81400         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81401         (ISPRINT): Likewise.
81402         Reported by Tom Tromey.
81403
81404 2000-01-30  Jim Meyering  <meyering@lucent.com>
81405
81406         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81407
81408         * m4/prereq.m4 (utmp_includes): Define.
81409         Check for ut_user and ut_name members in both struct utmpx
81410         and struct utmp.
81411
81412 2000-01-30  Jim Meyering  <meyering@lucent.com>
81413
81414         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81415         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81416         header files where only utmpx.ut_user is declared.
81417
81418         * lib/readutmp.h (UT_USER): Define.
81419
81420 2000-01-29  Jim Meyering  <meyering@lucent.com>
81421
81422         * m4/lib-check.m4: New file containing library-related checks from
81423         fileutils and sh-utils (textutils had none).
81424
81425 2000-01-28  Jim Meyering  <meyering@lucent.com>
81426
81427         * m4/perl.m4: Change format of warning message to look more like that
81428         from the missing script.  Suggestion from François Pinard.
81429
81430 2000-01-25  Jim Meyering  <meyering@lucent.com>
81431
81432         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81433         well as time.h in the compile check.
81434         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81435         Fix typo in cross-compiling case: s/yes/no/.
81436
81437 2000-01-23  Jim Meyering  <meyering@lucent.com>
81438
81439         * m4/jm-macros.m4: Move df-related tests here from
81440         fileutils/configure.in
81441
81442         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81443         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81444
81445         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81446         s/space/ac_fsusage_space/.
81447         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81448
81449         * m4/ftruncate.m4: New file (derived from part of
81450         fileutils/configure.in).
81451         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81452         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81453
81454         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81455         AC_SUBST these here, rather than just in sh-util/configure.in, so
81456         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81457         all the same.
81458         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81459         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81460         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81461         (AC_SUBST(POW_LIBM)): Likewise.
81462         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81463
81464 2000-01-23  Jim Meyering  <meyering@lucent.com>
81465
81466         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81467         obstack.c.
81468
81469 2000-01-22  Jim Meyering  <meyering@lucent.com>
81470
81471         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81472
81473         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81474
81475         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81476         configure.in
81477         (AC_CHECK_HEADERS): Likewise for sh-utils.
81478         (AC_CHECK_HEADERS): Likewise for textutils.
81479         Merge the three lists of headers.
81480
81481         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81482         from fileutils' configure.in.
81483
81484         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81485         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81486         check-decl.m4.
81487
81488         * m4/check-decl.m4: Use #if rather than #ifdef.
81489         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81490         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81491         (_jm_DECL_HEADERS): Define new function.
81492         (jm_CHECK_DECLARATIONS): Require it.
81493
81494 2000-01-22  Jim Meyering  <meyering@lucent.com>
81495
81496         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81497         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81498         Required for some AIX systems.  Reported by Christian Krackowizer.
81499         [TESTING] (main): New function.
81500
81501         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81502         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81503         letters.
81504
81505         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81506         iswprint.
81507
81508         * lib/strverscmp.c (ISDIGIT): Define.
81509         (strverscmp): Use ISDIGIT, not isdigit.
81510
81511 2000-01-19  Jim Meyering  <meyering@lucent.com>
81512
81513         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81514         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81515         defines `struct timespec' in <sys/time.h>
81516
81517         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81518         Thanks to Akim for explaining.
81519
81520 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81521
81522         * lib/nanosleep.c (nanosleep):
81523         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81524         POSIX.1 doesn't require SA_INTERRUPT and some systems
81525         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81526         it's been part of POSIX.1 since day 1 (in 1988).
81527
81528 2000-01-17  Jim Meyering  <meyering@lucent.com>
81529
81530         * lib/interlock: Remove unused file.  Reported by François Pinard.
81531
81532 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81533
81534         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81535         alert, backslash, formfeed, and vertical tab unnecessarily in
81536         shell quoting style.
81537
81538 2000-01-16  Jim Meyering  <meyering@lucent.com>
81539
81540         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81541         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81542         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81543         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81544
81545 2000-01-16  Jim Meyering  <meyering@lucent.com>
81546
81547         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81548         because the latter didn't work.
81549
81550 2000-01-15  Jim Meyering  <meyering@lucent.com>
81551
81552         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81553         (AC_REPLACE_FUNCS): Add memcpy and memset.
81554         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81555         Add strpbrk.
81556         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81557
81558 2000-01-12  Jim Meyering  <meyering@lucent.com>
81559
81560         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81561         (jm_PREREQ): Use it.
81562         (jm_PREREQ_READUTMP): New macro.
81563         (jm_PREREQ): Use it.
81564
81565 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81566
81567         Quote multibyte characters correctly.
81568         * m4/c-bs-a.m4: New file.
81569         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81570         (jm_PREREQ): Use it.
81571
81572 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81573
81574         * m4/uintmax_t.m4: Port to autoconf 2.13.
81575
81576 2000-01-08  Jim Meyering  <meyering@ascend.com>
81577
81578         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81579         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81580
81581 2000-01-04  Jim Meyering  <meyering@ascend.com>
81582
81583         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81584         jm_STRUCT_DIRENT_D_TYPE.
81585         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81586         jm_STRUCT_DIRENT_D_INO.
81587         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81588         jm_STRUCT_UTIMBUF.
81589         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81590         renamings.
81591         * m4/utime.m4: Likewise.
81592
81593         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81594         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81595
81596 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81597
81598         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81599         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81600
81601 2000-01-02  Jim Meyering  <meyering@ascend.com>
81602
81603         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81604         remember if this is necessary.
81605
81606 1999-12-26  Jim Meyering  <meyering@ascend.com>
81607
81608         * m4/jm-macros.m4: Use it here.
81609         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81610
81611 1999-12-23  Jim Meyering  <meyering@ascend.com>
81612
81613         * m4/jm-macros.m4: Check for clock_gettime (moved from
81614         fileutils/configure.in)
81615         Check for gettimeofday.
81616
81617 1999-12-20  Jim Meyering  <meyering@ascend.com>
81618
81619         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81620         autoconf-2.14a-1999-12-20.
81621
81622 1999-12-19  Jim Meyering  <meyering@ascend.com>
81623
81624         * m4/lstat-slash.m4: New file.
81625         * m4/jm-macros.m4: Use the new macro:
81626         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81627
81628 1999-12-07  Jim Meyering  <meyering@ascend.com>
81629
81630         * m4/perl.m4: Require that File::Compare be available, too.
81631         Too many systems seem to lack it.
81632
81633         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81634         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81635
81636 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81637
81638         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81639         problem with the QNX 4.25 shell, which doesn't propagate exit
81640         status of failed commands inside shell assignments.
81641
81642 1999-11-17  Jim Meyering  <meyering@ascend.com>
81643
81644         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81645
81646 1999-11-07  Jim Meyering  <meyering@ascend.com>
81647
81648         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81649
81650 1999-11-06  Jim Meyering  <meyering@ascend.com>
81651
81652         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81653         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81654
81655 1999-11-05  Jim Meyering  <meyering@ascend.com>
81656
81657         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81658         configure.in of textutils, fileutils, and sh-utils into this one
81659         (shared between those packages) file.
81660         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81661         AC_STRUCT_ST_BLKSIZE.
81662
81663 1999-11-03  Jim Meyering  <meyering@ascend.com>
81664
81665         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81666         of AC_CHECK_TYPE checks includes unistd.h.
81667         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81668         Suggestion from Akim Demaille.
81669
81670 1999-10-30  Jim Meyering  <meyering@ascend.com>
81671
81672         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81673         m4-quoted string.
81674         * m4/ls-mntd-fs.m4: Likewise.
81675         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81676         * m4/jm-winsz1.m4: Likewise.
81677
81678         * m4/const.m4: Remove file, since the fix made it into the experimental
81679         version of autoconf.
81680         * m4/mktime.m4: Likewise.
81681
81682         * m4/check-type.m4: Remove file, now that the latest version of
81683         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81684
81685         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81686         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81687         AC_CHECK_TYPE.
81688
81689 1999-10-04  Jim Meyering  <meyering@ascend.com>
81690
81691         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81692
81693 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81694
81695         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81696         2.95.1 bug with HP-UX 10.20.
81697
81698 1999-09-17  Jim Meyering  <meyering@ascend.com>
81699
81700         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81701         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81702         due to missing strdup (against sh-utils-2.0).
81703
81704 1999-08-29  Jim Meyering  <meyering@ascend.com>
81705
81706         * m4/jm-macros.m4: Require jm_BISON.
81707         * m4/bison.m4: New file.
81708
81709 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81710
81711         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81712         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81713
81714 1999-08-05  Jim Meyering  <meyering@ascend.com>
81715
81716         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81717         to avoid conflicts with `conftest' on 8+3 filesystems.
81718         Suggestion from Eli Zaretskii.
81719
81720 1999-08-04  Jim Meyering  <meyering@ascend.com>
81721
81722         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81723         fileutils and sh-utils (textutils's getline test was inadequate).
81724         (AM_FUNC_GETLINE): Run this test.
81725         (AC_CHECK_FUNCS): Check for getdelim.
81726         Reported by Bob Proulx.
81727
81728 1999-08-02  Jim Meyering  <meyering@ascend.com>
81729
81730         * m4/jm-macros.m4: Add a comment.
81731
81732 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81733
81734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81735         <inttypes.h> defines strtoumax as a macro (and not as a
81736         function).
81737
81738 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81739
81740         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81741         that we can shift, multiply and divide unsigned long long
81742         values; Ultrix cc can't do it.
81743
81744 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81745
81746         * m4/mktime.m4: New file, which is a preview of what should appear
81747         in the next public autoconf release.
81748
81749 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81750
81751         * m4/lfs.m4: Remove this file.
81752         * m4/largefile.m4: New file.  It contains the old contents of
81753         lfs.m4, except that all names with prefix AC_LFS have been
81754         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81755         compatible with future autoconf versions.  Also, some minor m4
81756         quoting problems have been fixed.
81757
81758 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81759
81760         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81761         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81762         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81763         and simplify the shell code.
81764
81765 1999-08-01  Jim Meyering  <meyering@ascend.com>
81766
81767         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81768         m4.
81769
81770 1999-07-20  Jim Meyering  <meyering@ascend.com>
81771
81772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81773
81774 1999-07-15  Jim Meyering  <meyering@ascend.com>
81775
81776         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81777
81778 1999-05-22  Jim Meyering  <meyering@ascend.com>
81779
81780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81781
81782 1999-05-20  Jim Meyering  <meyering@ascend.com>
81783
81784         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81785         Add a colon after each `then' in case $4 is empty.
81786
81787 1999-05-16  Jim Meyering  <meyering@ascend.com>
81788
81789         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81790
81791 1999-05-10  Jim Meyering  <meyering@ascend.com>
81792
81793         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81794
81795         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81796         AC_FUNC_MKTIME.
81797
81798 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81799
81800         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81801
81802 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81803
81804         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81805         not CPPFLAGS, so that linking works correctly in IRIX.
81806
81807 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81808
81809         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81810
81811 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81812
81813         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81814         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81815         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81816         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81817         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81818
81819         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81820
81821 1999-04-20  Jim Meyering  <meyering@ascend.com>
81822
81823         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81824         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81825         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81826
81827 1999-04-18  Jim Meyering  <meyering@ascend.com>
81828
81829         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81830         * m4/jm-macros.m4: Use it.
81831
81832 1999-04-06  Jim Meyering  <meyering@ascend.com>
81833
81834         * m4/strftime.m4: Remove test for %f.
81835
81836 1999-03-29  Jim Meyering  <meyering@ascend.com>
81837
81838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81839         superset of the AC_TYPE_* checks in the textutils, fileutils,
81840         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81841         AC_TYPE_PID_T.
81842
81843 1999-03-28  Jim Meyering  <meyering@ascend.com>
81844
81845         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81846         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81847         replaced e.g., in the *.sh files of the sh-utils.
81848
81849 1999-03-20  Jim Meyering  <meyering@ascend.com>
81850
81851         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81852         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81853         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81854
81855 1999-03-19  Jim Meyering  <meyering@ascend.com>
81856
81857         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81858
81859 1999-03-12  Jim Meyering  <meyering@ascend.com>
81860
81861         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81862
81863 1999-03-07  Jim Meyering  <meyering@ascend.com>
81864
81865         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81866         declared.
81867
81868 1999-02-17  Jim Meyering  <meyering@ascend.com>
81869
81870         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81871         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81872
81873 1999-02-07  Jim Meyering  <meyering@ascend.com>
81874
81875         * m4/group-member.m4: New file -- extracted from sh-utils'
81876         configure.in.
81877
81878         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81879         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81880
81881 1999-02-06  Jim Meyering  <meyering@ascend.com>
81882
81883         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81884         * m4/fnmatch.m4: Likewise.
81885         * m4/getgroups.m4: Likewise.
81886         * m4/lstat.m4: Likewise.
81887         * m4/malloc.m4: Likewise.
81888         * m4/putenv.m4: Likewise.
81889         * m4/realloc.m4: Likewise.
81890         * m4/regex.m4: Likewise.
81891         * m4/stat.m4: Likewise.
81892         * m4/strftime.m4: Likewise.
81893         Suggestion from Alain Magloire.
81894
81895         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81896         * m4/fnmatch.m4: Likewise.
81897         * m4/getgroups.m4: Likewise.
81898         * m4/getline.m4: Likewise.
81899         * m4/lstat.m4: Likewise.
81900         * m4/malloc.m4: Likewise.
81901         * m4/memcmp.m4: Likewise.
81902         * m4/putenv.m4: Likewise.
81903         * m4/realloc.m4: Likewise.
81904         * m4/regex.m4: Likewise.
81905         * m4/stat.m4: Likewise.
81906         * m4/strftime.m4: Likewise.
81907         Suggestion from Alain Magloire.
81908
81909         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81910         an argument.
81911
81912         * m4/regex.m4: Add a run-time Test for proper operation of
81913         re_compile_pattern.
81914
81915 1999-01-31  Jim Meyering  <meyering@ascend.com>
81916
81917         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81918
81919 1999-01-30  Jim Meyering  <meyering@ascend.com>
81920
81921         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81922
81923         * m4/jm-mktime.m4: Make this a wrapper around the official
81924         AM_FUNC_MKTIME rather than my private copy, now that the official one
81925         is up to date.
81926         * m4/mktime.m4: Remove file.
81927
81928         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81929         * m4/uptime.m4: Likewise.
81930         * m4/uintmax_t.m4: Likewise.
81931
81932 1999-01-28  Jim Meyering  <meyering@ascend.com>
81933
81934         * m4/jm-macros.m4: Use jm_AFS.
81935         * m4/afs.m4: New file (from fileutils' configure.in).
81936
81937         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81938         * m4/chown.m4: Likewise.
81939         * m4/d-ino.m4: Likewise.
81940         * m4/d-type.m4: Likewise.
81941         * m4/fnmatch.m4: Likewise.
81942         * m4/getgroups.m4: Likewise.
81943         * m4/gettext.m4: Likewise.
81944         * m4/jm-mktime.m4: Likewise.
81945         * m4/jm-winsz2.m4: Likewise.
81946         * m4/lcmessage.m4: Likewise.
81947         * m4/ls-mntd-fs.m4: Likewise.
81948         * m4/malloc.m4: Likewise.
81949         * m4/memcmp.m4: Likewise.
81950         * m4/putenv.m4: Likewise.
81951         * m4/realloc.m4: Likewise.
81952         * m4/st_mtim.m4: Likewise.
81953         * m4/strftime.m4: Likewise.
81954
81955 1999-01-16  Jim Meyering  <meyering@ascend.com>
81956
81957         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81958         (ARGMATCH_DIE_DECL): Define.
81959
81960 1999-01-12  Jim Meyering  <meyering@ascend.com>
81961
81962         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81963         Reported by Lars Hecking.
81964
81965 1999-01-10  Jim Meyering  <meyering@ascend.com>
81966
81967         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81968         gross kludge.
81969         * m4/inttypes_h.m4: Likewise.
81970         * m4/lstat.m4: Likewise.
81971         * m4/malloc.m4: Likewise.
81972         * m4/readdir.m4: Likewise.
81973         * m4/realloc.m4: Likewise.
81974         * m4/st_dm_mode.m4: Likewise.
81975         * m4/stat.m4: Likewise.
81976         * m4/utimbuf.m4: Likewise.
81977         * m4/utimes.m4: Likewise.
81978
81979         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81980         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81981         comments in config.h.in are meaningful.
81982
81983         * m4/jm-macros.m4: Require autoconf-2.13 here.
81984
81985         * m4/regex.m4: By default, don't use the included regex.c on systems
81986         with glibc 2.  Suggestion from Uli Drepper.
81987
81988 1999-01-02  Jim Meyering  <meyering@ascend.com>
81989
81990         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81991
81992 1998-12-18  Jim Meyering  <meyering@ascend.com>
81993
81994         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81995         Based on a suggestion from Lars Hecking.
81996
81997 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81998
81999         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82000
82001 1998-11-16  Jim Meyering  <meyering@ascend.com>
82002
82003         * m4/lfs.m4: Double-quote the `uname...` expression.
82004
82005 1998-11-14  Jim Meyering  <meyering@ascend.com>
82006
82007         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82008         * m4/stat.m4: Likewise.
82009
82010 1998-11-03  Jim Meyering  <meyering@ascend.com>
82011
82012         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82013         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82014
82015 1998-10-18  Jim Meyering  <meyering@ascend.com>
82016
82017         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82018
82019 1998-10-17  Jim Meyering  <meyering@ascend.com>
82020
82021         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82022         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82023         calls for those previously hard-coded headers.  Instead, take a new
82024         parameter.
82025         (jm_CHECK_DECLARATIONS): Reflect interface change.
82026         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82027         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82028
82029         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82030
82031 1998-10-14  Jim Meyering  <meyering@ascend.com>
82032
82033         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82034         instead of "TZ=America/Vancouver".  From Paul Eggert.
82035
82036 1998-10-11  Jim Meyering  <meyering@ascend.com>
82037
82038         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82039         This adds a test for a recently added compatibility fix for mktime.c.
82040         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82041
82042 1998-09-27  Jim Meyering  <meyering@ascend.com>
82043
82044         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82045
82046         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82047         ../configure.in, including a change from Gordon Matzigkeit to allow
82048         cross-compiling for the Hurd.
82049
82050         * m4/glibc.m4: New file/macro to test for the GNU C Library
82051         versions 1 and 2.  From Gordon Matzigkeit.
82052         Indent.
82053
82054 1998-09-21  Jim Meyering  <meyering@ascend.com>
82055
82056         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82057
82058 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82059
82060         Port nanosecond-resolution times to UnixWare 2.1.2 and
82061         pedantic Solaris 2.6.
82062
82063         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82064         AC_STRUCT_ST_MTIM.
82065         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82066         Generate name of ns member, instead of just 1 or undef.
82067         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82068
82069 1998-08-15  Jim Meyering  <meyering@ascend.com>
82070
82071         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82072         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82073         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82074         instead of jm_TYPE_SSIZE_T.
82075
82076 1998-08-12  Jim Meyering  <meyering@ascend.com>
82077
82078         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82079
82080 1998-08-02  Jim Meyering  <meyering@ascend.com>
82081
82082         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82083         in acconfig.h manually.
82084
82085 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82086
82087         * m4/st_mtim.m4: New file.
82088
82089 1998-07-28  Jim Meyering  <meyering@ascend.com>
82090
82091         * m4/utimes.m4: Undef stat.
82092
82093 1998-07-25  Jim Meyering  <meyering@ascend.com>
82094
82095         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82096         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82097
82098 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82099
82100         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82101         uid and gid actually remain unchanged.
82102
82103 1998-07-07  Jim Meyering  <meyering@ascend.com>
82104
82105         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82106
82107 1998-07-04  Jim Meyering  <meyering@ascend.com>
82108
82109         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82110         to prove that this macro can be used in packages without regex.c.
82111
82112 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82113
82114         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82115         is to be used.
82116
82117 1998-07-03  Jim Meyering  <meyering@ascend.com>
82118
82119         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82120
82121         * m4/gettext.m4: New file -- from gettext-0.10.35.
82122         * m4/lcmessage.m4: Likewise.
82123         * m4/progtest.m4: Likewise.
82124
82125         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82126         * m4/jm-macros.m4: Require the new macro.
82127
82128 1998-06-29  Jim Meyering  <meyering@ascend.com>
82129
82130         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82131         for the definition of NGROUPS (used in a system header included
82132         by sys/mount.h).
82133
82134 1998-06-28  Jim Meyering  <meyering@ascend.com>
82135
82136         * m4/ls-mntd-fs.m4: New file.
82137         * m4/fstypename.m4: New file.
82138
82139         * m4/jm-macros.m4: Require the new macro.
82140         * m4/jm-glibc-io.m4: New file.
82141
82142 1998-05-19  Jim Meyering  <meyering@ascend.com>
82143
82144         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82145         * m4/lchown.m4: New file.
82146
82147         * m4/Makefile.am.in: New file.
82148         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82149
82150 1998-05-14  Jim Meyering  <meyering@ascend.com>
82151
82152         * m4/Makefile.am (EXTRA_DIST): Add them.
82153         * m4/jm-macros.m4: New file.
82154         * m4/utimbuf.m4: New file.
82155
82156 1998-05-12  Jim Meyering  <meyering@ascend.com>
82157
82158         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82159
82160 1998-05-11  Jim Meyering  <meyering@ascend.com>
82161
82162         * m4/isc-posix.m4: New file.
82163
82164 1998-05-10  Jim Meyering  <meyering@ascend.com>
82165
82166         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82167
82168 1998-05-09  Jim Meyering  <meyering@ascend.com>
82169
82170         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82171         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82172         with automake.
82173
82174         * m4/ssize_t.m4: New file.
82175         * m4/mktime.m4: Remove file -- the new automake has this now.
82176
82177 1998-04-26  Jim Meyering  <meyering@ascend.com>
82178
82179         * m4/assert.m4: New file.
82180         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82181
82182 1998-04-05  Jim Meyering  <meyering@ascend.com>
82183
82184         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82185         (jm_PREREQ): Use it here.
82186
82187 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82188
82189         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82190         in acconfig.h.
82191
82192 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82193
82194         * m4/prereq.m4: New file.
82195         * m4/error.m4: New file.
82196         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82197
82198 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82199
82200         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82201         cache-check for the same variable -- that defeated the purpose of
82202         the test; the test program was never run.  This was a problem only
82203         on systems with losing getline functions -- HP-UX 10.20 is one.
82204         Reported by Bjorn Helgaas.
82205
82206 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82207
82208         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82209
82210 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82211
82212         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82213
82214         * m4/const.m4: New file.  Use an initializer in this declaration
82215         typedef int charset[2]; const charset x;
82216         Reported by Bob Glickstein.
82217
82218 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82219
82220         * m4/chown.m4: Fix reversed types on -1 args to chown.
82221         From Kaveh Ghazi.
82222
82223 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82224
82225         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82226         Add lseek and memchr.
82227
82228         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82229         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82230         have a 20-character limit on names.
82231
82232 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82233
82234         * m4/inttypes_h.m4: New file.
82235         * m4/uintmax_t.m4: New file.
82236         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82237
82238
82239         -----
82240
82241         Local Variables:
82242         coding: utf-8
82243         End:
82244
82245         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82246
82247         Copying and distribution of this file, with or without
82248         modification, are permitted provided the copyright notice
82249         and this notice are preserved.